Allow passing in package suffix for release builds through CLI param
This commit is contained in:
parent
6a1d81fcf3
commit
75c9e959de
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,11 @@ android {
|
||||||
// debug build. This seems to be a Gradle bug, therefore
|
// debug build. This seems to be a Gradle bug, therefore
|
||||||
// TODO: update Gradle version
|
// TODO: update Gradle version
|
||||||
release {
|
release {
|
||||||
|
if (System.properties.containsKey('packageSuffix')) {
|
||||||
|
applicationIdSuffix System.getProperty('packageSuffix')
|
||||||
|
resValue "string", "app_name", "NewPipe " + System.getProperty('packageSuffix')
|
||||||
|
archivesBaseName = 'NewPipe_' + System.getProperty('packageSuffix')
|
||||||
|
}
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
shrinkResources false // disabled to fix F-Droid's reproducible build
|
shrinkResources false // disabled to fix F-Droid's reproducible build
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
|
|
Loading…
Reference in a new issue