Rename flavours to specify targetSdkVersion

The targetSdkVersion specifies which behaviour the app expects from the
android platform. For past releases of BRouter the targetSdkVersion was
specified in the filename, therefore this restores the old bevahior.
This commit is contained in:
Manuel Fuhr 2021-10-21 15:56:39 +02:00
parent 4e8b8643e6
commit cf4a188e40
2 changed files with 6 additions and 7 deletions

View file

@ -13,7 +13,6 @@ android {
resValue('string', 'app_version', defaultConfig.versionName)
setProperty("archivesBaseName","BRouterApp." + defaultConfig.versionName)
}
if(project.hasProperty("RELEASE_STORE_FILE")) {
@ -65,20 +64,20 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}
flavorDimensions "api"
productFlavors {
api10 {
api19 {
dimension "api"
minSdkVersion 10
targetSdkVersion 19
}
api19 {
api30 {
dimension "api"
minSdkVersion 19
targetSdkVersion 30
}
}
@ -86,7 +85,7 @@ android {
dependencies {
api19Implementation 'androidx.appcompat:appcompat:1.3.1'
api30Implementation 'androidx.appcompat:appcompat:1.3.1'
implementation project(':brouter-mapaccess')
implementation project(':brouter-core')

View file

@ -54,10 +54,10 @@ distributions {
include 'readmes/*'
include 'profiles2/*'
}
from ('../brouter-routing-app/build/outputs/apk/api10/release') {
from ('../brouter-routing-app/build/outputs/apk/api19/release') {
include '*.apk'
}
from ('../brouter-routing-app/build/outputs/apk/api19/release') {
from ('../brouter-routing-app/build/outputs/apk/api30/release') {
include '*.apk'
}
from ('../brouter-server/build/libs') {