Skip to content

Commit

Permalink
change version code file
Browse files Browse the repository at this point in the history
  • Loading branch information
mshdabiola committed Jun 13, 2024
1 parent 5463b44 commit 4b347cd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
6 changes: 4 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ android {

defaultConfig {
applicationId = "com.mshdabiola.playnotepad"
versionCode = 1
versionName = "0.0.1" // X.Y.Z; X = Major, Y = minor, Z = Patch level
versionCode = libs.versions.versionCode.get().toIntOrNull()
versionName = System.getenv("VERSION_NAME") ?: libs.versions.versionName.get()
// versionCode = 1
// versionName = "0.0.1" // X.Y.Z; X = Major, Y = minor, Z = Patch level

// Custom test runner to set up Hilt dependency graph
testInstrumentationRunner = "com.mshdabiola.testing.TestRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class AndroidApplicationFirebaseConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
// apply("com.google.gms.google-services")
// apply("com.google.firebase.firebase-perf")
// apply("com.google.firebase.crashlytics")
apply("com.google.gms.google-services")
apply("com.google.firebase.firebase-perf")
apply("com.google.firebase.crashlytics")
}

// dependencies {
Expand Down
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
agp = "8.4.1"
androidTools = "31.3.2"

versionName = "0.0.1"
versionCode = "1"

accompanist = "0.34.0"

guava = "33.0.0-android"
Expand Down
4 changes: 4 additions & 0 deletions instuctions
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@

./gradlew :app:generateReleaseBaselineProfile

sed -i -e '/google-services/d' -e '/firebase/d' ../build.gradle.kts;
sed -i -e '/mlkit/,+14d' -e '/google-services/d' -e '/firebase/d' build.gradle.kts;
sed -i -e '/with(target) {/,/^ }/d' -e '/CrashlyticsExtension/d' build-logic/convention/src/main/kotlin/AndroidApplicationFirebaseConventionPlugin.kt

0 comments on commit 4b347cd

Please sign in to comment.