Merge pull request #7098 from XiangRongLin/6420_package_suffix
Allow passing in package suffix for release builds through CLI param
This commit is contained in:
commit
63083ac0c3
2 changed files with 19 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'
|
||||||
|
|
14
doc/gradle.md
Normal file
14
doc/gradle.md
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# Custom gradle parameters
|
||||||
|
|
||||||
|
You can use these parameters by specifying them inside the `gradle.properties` file as
|
||||||
|
`systemProp.<name>=<value>` or passing them through the CLI with `-D<name>=<value>`.
|
||||||
|
|
||||||
|
## packageSuffix
|
||||||
|
This allows you to specify a suffix, which will be added on release builds to the application id,
|
||||||
|
the `app_name` string and the apk file.
|
||||||
|
No validation is made, so make sure to pass in a valid value.
|
||||||
|
|
||||||
|
## skipFormatKtlint
|
||||||
|
This allows you to skip the `formatKtLint` task.
|
||||||
|
No value is needed.
|
||||||
|
It is used for CI in order to check for badly formatted files.
|
Loading…
Reference in a new issue