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:
parent
4e8b8643e6
commit
cf4a188e40
2 changed files with 6 additions and 7 deletions
|
@ -13,7 +13,6 @@ android {
|
||||||
|
|
||||||
resValue('string', 'app_version', defaultConfig.versionName)
|
resValue('string', 'app_version', defaultConfig.versionName)
|
||||||
setProperty("archivesBaseName","BRouterApp." + defaultConfig.versionName)
|
setProperty("archivesBaseName","BRouterApp." + defaultConfig.versionName)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(project.hasProperty("RELEASE_STORE_FILE")) {
|
if(project.hasProperty("RELEASE_STORE_FILE")) {
|
||||||
|
@ -65,20 +64,20 @@ android {
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
flavorDimensions "api"
|
flavorDimensions "api"
|
||||||
productFlavors {
|
productFlavors {
|
||||||
api10 {
|
api19 {
|
||||||
dimension "api"
|
dimension "api"
|
||||||
|
|
||||||
minSdkVersion 10
|
minSdkVersion 10
|
||||||
targetSdkVersion 19
|
targetSdkVersion 19
|
||||||
}
|
}
|
||||||
api19 {
|
api30 {
|
||||||
dimension "api"
|
dimension "api"
|
||||||
|
|
||||||
minSdkVersion 19
|
minSdkVersion 19
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +85,7 @@ android {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
api19Implementation 'androidx.appcompat:appcompat:1.3.1'
|
api30Implementation 'androidx.appcompat:appcompat:1.3.1'
|
||||||
|
|
||||||
implementation project(':brouter-mapaccess')
|
implementation project(':brouter-mapaccess')
|
||||||
implementation project(':brouter-core')
|
implementation project(':brouter-core')
|
||||||
|
|
|
@ -54,10 +54,10 @@ distributions {
|
||||||
include 'readmes/*'
|
include 'readmes/*'
|
||||||
include 'profiles2/*'
|
include 'profiles2/*'
|
||||||
}
|
}
|
||||||
from ('../brouter-routing-app/build/outputs/apk/api10/release') {
|
from ('../brouter-routing-app/build/outputs/apk/api19/release') {
|
||||||
include '*.apk'
|
include '*.apk'
|
||||||
}
|
}
|
||||||
from ('../brouter-routing-app/build/outputs/apk/api19/release') {
|
from ('../brouter-routing-app/build/outputs/apk/api30/release') {
|
||||||
include '*.apk'
|
include '*.apk'
|
||||||
}
|
}
|
||||||
from ('../brouter-server/build/libs') {
|
from ('../brouter-server/build/libs') {
|
||||||
|
|
Loading…
Reference in a new issue