diff --git a/.github/workflows/android-test.yml b/.github/workflows/android-test.yml
index ed29655..f666cb8 100644
--- a/.github/workflows/android-test.yml
+++ b/.github/workflows/android-test.yml
@@ -8,6 +8,7 @@ jobs:
status: ${{ steps.check-androidTest.outputs.NOT_EMPTY }}
min-sdk-version: ${{ steps.get-sdk-version.outputs.MIN_SDK_VERSION }}
target-sdk-version: ${{ steps.get-sdk-version.outputs.TARGET_SDK_VERSION }}
+ app-id: ${{ steps.get-app-id.outputs.APP_ID }}
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -24,6 +25,10 @@ jobs:
run: |
echo "MIN_SDK_VERSION=$(cat app/build.gradle | grep minSdkVersion | rev | cut -d' ' -f 1 | rev)" >> $GITHUB_OUTPUT
echo "TARGET_SDK_VERSION=$(cat app/build.gradle | grep targetSdkVersion | rev | cut -d' ' -f 1 | rev)" >> $GITHUB_OUTPUT
+ - name: Get app ID
+ id: get-app-id
+ run: |
+ echo "APP_ID=$(cat app/build.gradle | grep applicationId | rev | cut -d' ' -f 1 | rev | tr -d '"')" >> $GITHUB_OUTPUT
test:
needs: check-if-tests-exist
@@ -83,4 +88,11 @@ jobs:
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
- script: ./gradlew :app:connectedCheck --stacktrace
+ script: |
+ adb uninstall ${{needs.check-if-tests-exist.outputs.app-id}} || true
+ adb uninstall ${{needs.check-if-tests-exist.outputs.app-id}}.test || true
+ adb uninstall ${{needs.check-if-tests-exist.outputs.app-id}}.androidTest || true
+ ./gradlew :app:connectedCheck --stacktrace
+ adb uninstall ${{needs.check-if-tests-exist.outputs.app-id}} || true
+ adb uninstall ${{needs.check-if-tests-exist.outputs.app-id}}.test || true
+ adb uninstall ${{needs.check-if-tests-exist.outputs.app-id}}.androidTest || true
\ No newline at end of file
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
index ad4099a..6e50db1 100644
--- a/.github/workflows/changelog.yml
+++ b/.github/workflows/changelog.yml
@@ -2,7 +2,7 @@ name: Changelog Generation
on:
release:
- types: [published, released]
+ types: [published]
workflow_dispatch:
jobs:
@@ -16,6 +16,7 @@ jobs:
- uses: rhysd/changelog-from-release/action@v3
with:
file: CHANGELOG.md
+ pull_request: true
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_summary_template: 'update changelog for %s changes'
args: -l 2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 44e06f7..99f0199 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,19 +1,19 @@
-name: Build Test
-on: [ push, pull_request ]
+name: Continuous Integration
+on: [push, pull_request]
jobs:
- build:
+ test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
- submodules: 'recursive'
+ submodules: "recursive"
- name: Set up JDK environment
uses: actions/setup-java@v3
with:
- distribution: 'zulu'
+ distribution: "zulu"
java-version: 17
- name: Make gradlew executable
@@ -25,5 +25,25 @@ jobs:
- 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
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 1f395d4..fc994b2 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -2,13 +2,13 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
- compileSdkVersion 33
defaultConfig {
applicationId "org.secuso.privacyfriendlypasswordgenerator"
minSdkVersion 21
- targetSdkVersion 33
- versionCode 7
- versionName "1.3.0"
+ targetSdkVersion 34
+ compileSdk 34
+ versionCode 8
+ versionName "1.3.1"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
@@ -24,7 +24,8 @@ android {
}
}
lint {
- abortOnError false
+ abortOnError true
+ warning 'MissingTranslation'
}
namespace 'org.secuso.privacyfriendlypasswordgenerator'
}
@@ -38,25 +39,25 @@ repositories {
dependencies {
implementation project(path: ':backup-api')
implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'androidx.sqlite:sqlite:2.3.1'
+ implementation 'androidx.sqlite:sqlite:2.4.0'
androidTestImplementation('androidx.test.espresso:espresso-core:3.5.1', {
exclude group: 'com.android.support', module: 'support-annotations'
})
- androidTestImplementation 'androidx.test.ext:junit:1.1.5'
+ androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation('com.android.support.test.espresso:espresso-contrib:3.0.2') {
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'support-v4'
exclude module: 'recyclerview-v7'
}
implementation 'androidx.appcompat:appcompat:1.6.1'
- implementation 'com.google.android.material:material:1.9.0'
+ implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.legacy:legacy-support-core-utils:1.0.0'
- implementation 'androidx.recyclerview:recyclerview:1.3.1'
+ implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation 'androidx.cardview:cardview:1.0.0'
- implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
+ implementation 'com.github.amulyakhare:TextDrawable:558677ea31'
implementation 'androidx.security:security-crypto-ktx:1.1.0-alpha06'
- def work_version = "2.8.1"
+ def work_version = "2.9.1"
implementation "androidx.work:work-runtime:$work_version"
implementation "androidx.work:work-runtime-ktx:$work_version"
androidTestImplementation "androidx.work:work-testing:$work_version"
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 4429813..2dc611e 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -24,11 +24,6 @@
tools:node="remove">
-
-