Skip to content

Commit

Permalink
Merge pull request #39 from SecUSo/development
Browse files Browse the repository at this point in the history
Update to version 1.3.4
  • Loading branch information
udenr authored Dec 4, 2024
2 parents 7758bf0 + 293c89d commit a482ec0
Show file tree
Hide file tree
Showing 173 changed files with 23 additions and 22 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/android-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ jobs:
submodules: "recursive"
- name: Check if androidTest folder is not empty
run: |
echo "NOT_EMPTY=$([ "$(ls -A BackupApp/src/androidTest)" ] && echo 'true' || echo 'false')"
echo "NOT_EMPTY=$([ "$(ls -A BackupApp/src/androidTest)" ] && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT
echo "NOT_EMPTY=$([ "$(ls -A app/src/androidTest)" ] && echo 'true' || echo 'false')"
echo "NOT_EMPTY=$([ "$(ls -A app/src/androidTest)" ] && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT
id: check-androidTest
- name: Get min and target sdk
if: steps.check-androidTest.outputs.NOT_EMPTY == 'true'
id: get-sdk-version
run: |
echo "MIN_SDK_VERSION=$(cat BackupApp/build.gradle | grep minSdkVersion | rev | cut -d' ' -f 1 | rev)" >> $GITHUB_OUTPUT
echo "TARGET_SDK_VERSION=$(cat BackupApp/build.gradle | grep targetSdkVersion | rev | cut -d' ' -f 1 | rev)" >> $GITHUB_OUTPUT
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 BackupApp/build.gradle | grep applicationId | rev | cut -d' ' -f 1 | rev | tr -d '"')" >> $GITHUB_OUTPUT
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
Expand Down Expand Up @@ -92,7 +92,8 @@ jobs:
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 :BackupApp:connectedCheck --stacktrace
chmod +x gradlew
./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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: lint-results-debug
path: BackupApp/build/reports/lint-results-debug.html
path: app/build/reports/lint-results-debug.html

- name: Build the app
run: bash ./gradlew build --stacktrace
Expand All @@ -64,4 +64,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: debug-apk
path: BackupApp/build/outputs/apk/debug/*.apk
path: app/build/outputs/apk/debug/*.apk
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ Thumbs.db
*.apk
/pfa.properties
/.idea/
/BackupApp/release
/app/release
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "BackupAPI"]
path = BackupAPI
path = libs/privacy-friendly-backup-api
url = https://github.com/SecUSo/privacy-friendly-backup-api.git
[submodule "openpgp-api"]
path = openpgp-api
path = libs/openpgp-api
url = https://github.com/open-keychain/openpgp-api
1 change: 0 additions & 1 deletion BackupAPI
Submodule BackupAPI deleted from 8687a8
File renamed without changes.
14 changes: 7 additions & 7 deletions BackupApp/build.gradle → app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ android {
applicationId "org.secuso.privacyfriendlybackup"
minSdkVersion 21
targetSdkVersion 34
versionCode 7
versionName "1.3.3"
versionCode 8
versionName "1.3.4"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand All @@ -41,7 +41,7 @@ android {
}

android.applicationVariants.configureEach { variant ->
variant.outputs.all {
variant.outputs.configureEach {
def appName = "pfa-backup"
outputFileName = appName + "-${variant.name}-v${variant.versionName}.apk"
}
Expand Down Expand Up @@ -99,7 +99,7 @@ dependencies {
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
Expand All @@ -123,10 +123,10 @@ dependencies {
implementation "androidx.room:room-ktx:$roomVersion"

// Lifecycle
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.6"
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.6'
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7"
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.7'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.lifecycle:lifecycle-common-java8:2.8.6'
implementation 'androidx.lifecycle:lifecycle-common-java8:2.8.7'

// Preferences
def preference_version = "1.2.1"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions libs/privacy-friendly-backup-api
6 changes: 3 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include ':BackupApp'
include ':app'
rootProject.name = "Backup"

include ':BackupAPI'
project(':BackupAPI').projectDir = new File('BackupAPI/BackupAPI')
project(':BackupAPI').projectDir = new File('libs/privacy-friendly-backup-api/BackupAPI')

include ':openpgp-api'
project(':openpgp-api').projectDir = new File('openpgp-api/openpgp-api')
project(':openpgp-api').projectDir = new File('libs/openpgp-api/openpgp-api')

0 comments on commit a482ec0

Please sign in to comment.