mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 08:51:06 +03:00
Fix applicationIdSuffix / versionNameSuffix #455
This commit is contained in:
parent
27a5cce832
commit
d6f1de2649
3 changed files with 129 additions and 0 deletions
62
tests/source-files/com.kunzisoft.testcase/build.gradle
Normal file
62
tests/source-files/com.kunzisoft.testcase/build.gradle
Normal file
|
@ -0,0 +1,62 @@
|
|||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 27
|
||||
defaultConfig {
|
||||
applicationId "com.kunzisoft.fdroidtest.applicationidsuffix"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 27
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled = false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
dexOptions {
|
||||
}
|
||||
|
||||
flavorDimensions "tier"
|
||||
productFlavors {
|
||||
libre {
|
||||
applicationIdSuffix = ".libre"
|
||||
versionNameSuffix "-libre"
|
||||
buildConfigField "boolean", "FULL_VERSION", "true"
|
||||
buildConfigField "boolean", "CLOSED_STORE", "false"
|
||||
// ApplicationId : com.kunzisoft.fdroidtest.applicationidsuffix.libre
|
||||
// Version code : 1
|
||||
// Version name : 1.0-libre
|
||||
}
|
||||
pro {
|
||||
applicationIdSuffix = ".pro"
|
||||
versionCode 20180430
|
||||
versionName "20180430-pro"
|
||||
buildConfigField "boolean", "FULL_VERSION", "true"
|
||||
buildConfigField "boolean", "CLOSED_STORE", "true"
|
||||
// ApplicationId : com.kunzisoft.fdroidtest.applicationidsuffix.pro
|
||||
// Version code : 20180430
|
||||
// Version name : 20180430-pro
|
||||
}
|
||||
free {
|
||||
versionNameSuffix "-free"
|
||||
buildConfigField "boolean", "FULL_VERSION", "false"
|
||||
buildConfigField "boolean", "CLOSED_STORE", "true"
|
||||
// ApplicationId : com.kunzisoft.fdroidtest.applicationidsuffix
|
||||
// Version code : 1
|
||||
// Version name : 1.0-free
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation 'com.android.support:appcompat-v7:27.1.1'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
||||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue