Skip to content

Commit

Permalink
Merge pull request #138 from SecUSo/development
Browse files Browse the repository at this point in the history
Update to version 3.1.0
  • Loading branch information
udenr authored Jan 23, 2024
2 parents 99f77cf + 90e5cd6 commit 13d0c10
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 7 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Continuous Integration
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: "recursive"

- name: Set up JDK environment
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 17

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Run local unit tests
run: bash ./gradlew test --stacktrace

build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: "recursive"

- name: Set up JDK environment
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 17

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build the app
run: bash ./gradlew build --stacktrace
7 changes: 5 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ android {
applicationId 'org.secuso.privacyfriendlyactivitytracker'
minSdkVersion 17
targetSdkVersion 34
versionCode 15
versionName "3.0.1"
versionCode 16
versionName "3.1.0"
multiDexEnabled true
}

Expand Down Expand Up @@ -71,6 +71,9 @@ dependencies {
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.0-beta1'
implementation 'androidx.multidex:multidex:2.0.1' //with androidx libraries

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.5.2'

def work_version = '2.9.0'
implementation "androidx.work:work-runtime:$work_version"
implementation "androidx.work:work-runtime-ktx:$work_version"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
package org.secuso.privacyfriendlyactivitytracker;

import android.app.Application;
import android.test.ApplicationTestCase;
import static junit.framework.TestCase.assertEquals;

import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
@RunWith(AndroidJUnit4.class)
public class ApplicationTest {
@Test
public void instrumentationTest() throws Exception {
assertEquals("org.secuso.privacyfriendlyactivitytracker", InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageName());
}
}

0 comments on commit 13d0c10

Please sign in to comment.