Skip to content

Commit b68dfb1

Browse files
fix: restore custom build.gradle.kts logic and update version
1 parent 66b7400 commit b68dfb1

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

app/build.gradle.kts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ plugins {
1818

1919
val hasGoogleServicesConfig = file("google-services.json").exists()
2020

21-
if (hasGoogleServicesConfig) {
22-
apply(plugin = "com.google.gms.google-services")
23-
apply(plugin = "com.google.firebase.crashlytics")
24-
}
25-
2621
android {
2722
namespace = "iad1tya.echo.music"
2823
compileSdk = 36
@@ -113,16 +108,16 @@ android {
113108
keyPassword = "android"
114109
}
115110
create("release") {
116-
storeFile = file("keystore/release.keystore")
117-
storePassword = System.getenv("STORE_PASSWORD")
118-
keyAlias = System.getenv("KEY_ALIAS")
119-
keyPassword = System.getenv("KEY_PASSWORD")
111+
storeFile = System.getenv("STORE_PASSWORD")?.let { file("keystore/release.keystore") } ?: file("keystore/debug.keystore")
112+
storePassword = System.getenv("STORE_PASSWORD")?.trim() ?: "android"
113+
keyAlias = System.getenv("KEY_ALIAS")?.trim() ?: "androiddebugkey"
114+
keyPassword = System.getenv("KEY_PASSWORD")?.trim() ?: "android"
120115
}
121116
getByName("debug") {
122117
keyAlias = "androiddebugkey"
123118
keyPassword = "android"
124119
storePassword = "android"
125-
storeFile = file("${System.getProperty("user.home")}/.android/debug.keystore")
120+
storeFile = file("keystore/debug.keystore")
126121
}
127122
}
128123

@@ -234,8 +229,7 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
234229
}
235230

236231
dependencies {
237-
// Firebase - GMS flavor only (excluded from F-Droid / FOSS builds)
238-
"gmsImplementation"(platform("com.google.firebase:firebase-bom:33.1.0"))
232+
// Firebase removed
239233

240234
// Google Drive Sync - GMS flavor only
241235
"gmsImplementation"(libs.play.services.auth)

0 commit comments

Comments
 (0)