Strip all AGP version data from APKs (#10355)
This commit is contained in:
parent
321cfbee03
commit
9113f87e1e
@ -80,11 +80,6 @@ android {
|
|||||||
resources.excludes.add("kotlin-tooling-metadata.json")
|
resources.excludes.add("kotlin-tooling-metadata.json")
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://stackoverflow.com/a/77745844
|
|
||||||
tasks.withType(com.android.build.gradle.tasks.PackageAndroidArtifact).configureEach {
|
|
||||||
doFirst { appMetadata.asFile.getOrNull()?.write('') }
|
|
||||||
}
|
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@ -126,6 +121,15 @@ tasks.register("writeManifestFile") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
tasks.withType(com.android.build.gradle.tasks.PackageAndroidArtifact).configureEach {
|
||||||
|
// need to be in afterEvaluate to overwrite default value
|
||||||
|
createdBy = ""
|
||||||
|
// https://stackoverflow.com/a/77745844
|
||||||
|
doFirst { appMetadata.asFile.getOrNull()?.write('') }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
preBuild.dependsOn(writeManifestFile, lintKotlin)
|
preBuild.dependsOn(writeManifestFile, lintKotlin)
|
||||||
if (System.getenv("CI") != "true") {
|
if (System.getenv("CI") != "true") {
|
||||||
lintKotlin.dependsOn(formatKotlin)
|
lintKotlin.dependsOn(formatKotlin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user