Skip to content

Commit c07bf55

Browse files
committed
build: Update build APK naming
1 parent 1075262 commit c07bf55

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import com.android.build.api.variant.impl.VariantOutputImpl
12
import java.io.FileInputStream
23
import java.util.Properties
34

@@ -112,6 +113,17 @@ android {
112113
excludes += "/META-INF/{AL2.0,LGPL2.1}"
113114
}
114115
}
116+
117+
androidComponents {
118+
onVariants { variant ->
119+
variant.outputs.forEach { output ->
120+
if (output is VariantOutputImpl) {
121+
output.outputFileName =
122+
"githubviewer-${variant.name}-${output.versionName.get()}.apk"
123+
}
124+
}
125+
}
126+
}
115127
}
116128

117129
// Spotless configuration --------------------------------------------------------------------------

0 commit comments

Comments
 (0)