Skip to content

Commit e008be3

Browse files
authored
Merge pull request #3 from ltrudu/main
Updated the naming of the apks to include version name to improve tracking of releases
2 parents 39ef3b7 + 43d27f1 commit e008be3

File tree

5 files changed

+53
-0
lines changed

5 files changed

+53
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ google-services.json
3131

3232
# Android Profiling
3333
*.hprof
34+
AISuite_Demos/AI_Barcode_Finder/app/release/
35+
AISuite_Demos/AIDataCaptureDemo/app/release/
36+
AISuite_QuickStart/.kotlin/sessions/
37+
AISuite_QuickStart/app/release/
38+
AISuite_Snippets/app/release/

AISuite_Demos/AIDataCaptureDemo/app/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,18 @@ android {
6868
useLegacyPackaging = true
6969
}
7070
}
71+
72+
applicationVariants.all {
73+
outputs.all {
74+
val output = this as com.android.build.gradle.internal.api.BaseVariantOutputImpl
75+
val versionName = defaultConfig.versionName
76+
val versionCode = defaultConfig.versionCode
77+
val buildType = buildType.name
78+
79+
// Format: AI_DataCapture_Demo-v1.8-release.apk or AI_DataCapture_Demo-v1.8-debug.apk
80+
output.outputFileName = "AI_DataCapture_Demo-v${versionName}-${buildType}.apk"
81+
}
82+
}
7183
}
7284

7385
dependencies {

AISuite_Demos/AI_Barcode_Finder/app/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ android {
8787
composeOptions {
8888
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
8989
}
90+
91+
applicationVariants.all {
92+
outputs.all {
93+
val output = this as com.android.build.gradle.internal.api.BaseVariantOutputImpl
94+
val versionName = defaultConfig.versionName
95+
val versionCode = defaultConfig.versionCode
96+
val buildType = buildType.name
97+
98+
// Format: AI_Barcode_Finder-v1.8-release.apk or AI_Barcode_Finder-v1.8-debug.apk
99+
output.outputFileName = "AI_Barcode_Finder-v${versionName}-${buildType}.apk"
100+
}
101+
}
90102
}
91103

92104
dependencies {

AISuite_QuickStart/app/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ android {
4040
kotlinOptions {
4141
jvmTarget = "1.8"
4242
}
43+
44+
applicationVariants.all {
45+
outputs.all {
46+
val output = this as com.android.build.gradle.internal.api.BaseVariantOutputImpl
47+
val versionName = defaultConfig.versionName
48+
val versionCode = defaultConfig.versionCode
49+
val buildType = buildType.name
50+
51+
// Format: AISuite_Quickstart-v1.8-release.apk or AISuite_Quickstart-v1.8-debug.apk
52+
output.outputFileName = "AISuite_Quickstart-v${versionName}-${buildType}.apk"
53+
}
54+
}
4355
}
4456

4557
dependencies {

AISuite_Snippets/app/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ android {
3838
kotlinOptions {
3939
jvmTarget = "1.8"
4040
}
41+
42+
applicationVariants.all {
43+
outputs.all {
44+
val output = this as com.android.build.gradle.internal.api.BaseVariantOutputImpl
45+
val versionName = defaultConfig.versionName
46+
val versionCode = defaultConfig.versionCode
47+
val buildType = buildType.name
48+
49+
// Format: AISuite_Snippets-v1.8-release.apk or AISuite_Snippets-v1.8-debug.apk
50+
output.outputFileName = "AISuite_Snippets-v${versionName}-${buildType}.apk"
51+
}
52+
}
4153
}
4254

4355
dependencies {

0 commit comments

Comments
 (0)