mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 05:07:45 +02:00
Add stub version to apk comment
This commit is contained in:
@ -151,7 +151,9 @@ private fun Project.setupAppCommon() {
|
||||
val variantCapped = name.replaceFirstChar { it.uppercase() }
|
||||
tasks.getByPath(":$projectName:package$variantCapped").doLast {
|
||||
val apk = outputs.files.asFileTree.filter { it.name.endsWith(".apk") }.singleFile
|
||||
val comment = "version=${Config.version}\nversionCode=${Config.versionCode}"
|
||||
val comment = "version=${Config.version}\n" +
|
||||
"versionCode=${Config.versionCode}\n" +
|
||||
"stubVersion=${Config.stubVersion}}\n"
|
||||
addComment(apk, signingConfig, android.defaultConfig.minSdk!!, comment)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user