Skip to content

Commit ed71f76

Browse files
committed
build: update archive name definition
1 parent 7a4fac4 commit ed71f76

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ fun hasSigningVars(): Boolean {
2424
&& providers.environmentVariable("SIGNING_STORE_PASSWORD").orNull != null
2525
}
2626

27+
base {
28+
val versionCode = project.property("VERSION_CODE").toString().toInt()
29+
archivesName = "notes-$versionCode"
30+
}
31+
2732
android {
2833
compileSdk = project.libs.versions.app.build.compileSDKVersion.get().toInt()
2934

@@ -33,7 +38,6 @@ android {
3338
targetSdk = project.libs.versions.app.build.targetSDK.get().toInt()
3439
versionName = project.property("VERSION_NAME").toString()
3540
versionCode = project.property("VERSION_CODE").toString().toInt()
36-
setProperty("archivesBaseName", "notes-$versionCode")
3741
ksp {
3842
arg("room.schemaLocation", "$projectDir/schemas")
3943
}

0 commit comments

Comments
 (0)