diff options
author | stefan-niedermann <info@niedermann.it> | 2020-02-27 09:32:45 +0300 |
---|---|---|
committer | stefan-niedermann <info@niedermann.it> | 2020-02-27 09:32:45 +0300 |
commit | edaa8d4849e9fd6377a4f3bab22969cb1ef8e73c (patch) | |
tree | 20464de1319c91a6ecb845a0d7a8667f82796655 | |
parent | 086c2be0af4f8fb820c36ba3189feba579672e2b (diff) |
Add build flavors
-rw-r--r-- | .github/workflows/android.yml | 4 | ||||
-rw-r--r-- | app/.gitignore | 4 | ||||
-rw-r--r-- | app/build.gradle | 10 |
3 files changed, 10 insertions, 8 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 2983da899..713b8892f 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -26,9 +26,9 @@ jobs: with: java-version: 1.8 - name: Build debug APK - run: bash ./gradlew assembleDebug --stacktrace + run: bash ./gradlew assembleDev --stacktrace - name: Upload APK uses: actions/upload-artifact@v1 with: name: app - path: app/build/outputs/apk/debug/app-debug.apk
\ No newline at end of file + path: app/build/outputs/apk/dev/release/app-dev-release-debug.apk
\ No newline at end of file diff --git a/app/.gitignore b/app/.gitignore index b4b987e5f..42afabfd2 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1,3 +1 @@ -/build -/fdroid -/play
\ No newline at end of file +/build
\ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 7d8429adc..0c8bee8b3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,13 +32,17 @@ android { targetCompatibility JavaVersion.VERSION_1_8 } - flavorDimensions "store" + flavorDimensions "version" productFlavors { fdroid { - dimension "store" + dimension "version" + } + dev { + dimension "version" + applicationIdSuffix ".dev" } play { - dimension "store" + dimension "version" applicationIdSuffix ".play" } } |