Skip to content

Commit

Permalink
Reproducible builds: exclude dependenciesInfo.
Browse files Browse the repository at this point in the history
Part of #418.
  • Loading branch information
dennisguse committed Dec 1, 2024
1 parent a015b87 commit 3e0d970
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ android {
}

nightly {
signingConfig signingConfigs.nightly
applicationIdSuffix ".nightly"
signingConfig signingConfigs.nightly
}

release {
Expand All @@ -114,14 +114,20 @@ android {
applicationVariants.configureEach { variant ->
variant.resValue "string", "applicationId", variant.applicationId

if (variant.buildType.name == 'nightly') {
variant.outputs.configureEach {
variant.outputs.configureEach {
if (variant.buildType.name == 'nightly') {
setVersionCodeOverride(getVersionCode())
setVersionNameOverride(getVersionName())
outputFileName = "${applicationId}_${variant.versionCode}.apk"
}
}
}

dependenciesInfo {
//Disabled for reproducible builds
includeInApk = false
includeInBundle = false
}
}

dependencies {
Expand Down

0 comments on commit 3e0d970

Please sign in to comment.