Skip to content

Commit

Permalink
chore: Removed Firebase
Browse files Browse the repository at this point in the history
This commit removes (temporarily) Firebase from the project.

- Deleted Firebase related dependencies and plugins.
- Removed Firebase Crashlytics setup code
.
- Commented out Firebase related code in `build.gradle.kts`.
- Updated `gradle.xml` to remove Firebase.
- Removed unused imports in `FirebaseSetup.kt`.

Signed-off-by: Gabriel Fontán <[email protected]>
  • Loading branch information
BobbyESP committed Jul 31, 2024
1 parent 88c0f46 commit 8f16bd9
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 63 deletions.
12 changes: 0 additions & 12 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ plugins {
alias(libs.plugins.compose.compiler)
}

if (isFullBuild) {
apply(plugin = libs.plugins.google.gms.get().pluginId)
apply(plugin = libs.plugins.firebase.crashlytics.get().pluginId)
apply<CrashlyticsBuildConfig>()
}

val commitSignature = providers.exec {
commandLine("git", "rev-parse", "--short", "HEAD")
}.standardOutput.asText.get().substringBefore("\n")
Expand Down Expand Up @@ -179,9 +173,9 @@ dependencies {
implementation(libs.landscapist.coil)

//-------------------FIREBASE-------------------//
"playstoreImplementation"(platform(libs.firebase.bom))
"playstoreImplementation"(libs.firebase.analytics)
"playstoreImplementation"(libs.firebase.crashlytics)
// "playstoreImplementation"(platform(libs.firebase.bom))
// "playstoreImplementation"(libs.firebase.analytics)
// "playstoreImplementation"(libs.firebase.crashlytics)

//-------------------Utilities-------------------//
implementation(libs.kotlinx.collections.immutable)
Expand Down
7 changes: 4 additions & 3 deletions app/src/playstore/kotlin/FirebaseSetup.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import com.bobbyesp.metadator.MainActivity
import com.google.firebase.crashlytics.ktx.crashlytics
import com.google.firebase.ktx.Firebase

//import com.google.firebase.Firebase
//import com.google.firebase.crashlytics.crashlytics

fun MainActivity.setupFirebase() {
Firebase.crashlytics.setCrashlyticsCollectionEnabled(true)
// Firebase.crashlytics.setCrashlyticsCollectionEnabled(true)
}
4 changes: 0 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,5 @@ buildscript {
}
dependencies {
classpath(libs.gradle)
if(isFullBuild) {
classpath(libs.google.services)
classpath(libs.firebase.crashlytics.gradle)
}
}
}
16 changes: 0 additions & 16 deletions buildSrc/build.gradle.kts

This file was deleted.

13 changes: 0 additions & 13 deletions buildSrc/src/main/kotlin/CrashlyticsBuildConfig.kt

This file was deleted.

9 changes: 3 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,8 @@ androidx-test-ext-junit = "1.2.1"
espresso-core = "3.6.1"

#Others
uiautomator = "2.3.0"
benchmark-macro-junit4 = "1.2.4"
androidx-baselineprofile = "1.2.4"
profileinstaller = "1.3.1"
materialVersion = "1.12.0"
media3DatasourceOkhttp = "1.4.0"
scrollbar = "2.2.0"

Expand All @@ -92,7 +89,7 @@ activity-compose = { group = "androidx.activity", name = "activity-compose", ver
androidx-legacy-support-v4 = { group = "androidx.legacy", name = "legacy-support-v4", version.ref = "legacySupportV4" }
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" }
compose-bom-canary = { group = "dev.chrisbanes.compose", name = "compose-bom", version.ref = "compose-bom-canary" }
firebase-crashlytics-gradle = { module = "com.google.firebase:firebase-crashlytics-gradle", version.ref = "firebaseCrashlyticsGradle" }
firebase-crashlytics-gradle = { group = "com.google.firebase", name = "firebase-crashlytics-gradle", version.ref = "firebaseCrashlyticsGradle" }
lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycle-runtime-ktx" }
lifecycle-compose-runtime = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "lifecycle-runtime-ktx" }
lifecycle-compose-viewModel = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-compose", version.ref = "lifecycle-runtime-ktx" }
Expand Down Expand Up @@ -185,8 +182,8 @@ google-services = { group = "com.google.gms", name = "google-services", version.
gms-playservices-auth = { group = "com.google.android.gms", name = "play-services-auth", version.ref = "gmsPlayServicesAuth" }
firebase-bom = { group = "com.google.firebase", name = "firebase-bom", version.ref = "firebaseBom" }
firebase-auth = { group = "com.google.firebase", name = "firebase-auth-ktx" }
firebase-analytics = { group = "com.google.firebase", name = "firebase-analytics-ktx" }
firebase-crashlytics = { group = "com.google.firebase", name = "firebase-crashlytics-ktx" }
firebase-analytics = { group = "com.google.firebase", name = "firebase-analytics" }
firebase-crashlytics = { group = "com.google.firebase", name = "firebase-crashlytics" }

#Others
qrcode-kotlin-android = { module = "io.github.g0dkar:qrcode-kotlin-android", version.ref = "qrcodeKotlinAndroid" }
Expand Down

0 comments on commit 8f16bd9

Please sign in to comment.