-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Updated Firebase dependencies and moved initialization
Updated Firebase BOM and Crashlytics Gradle plugin to the latest versions. Moved Firebase initialization to the Application class for better app lifecycle management. Removed redundant plugin application from the `playstore` product flavor. Anyways, Firebase still doesn't work at release build Signed-off-by: Gabriel Fontán <[email protected]>
- Loading branch information
Showing
6 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import com.bobbyesp.metadator.App | ||
import com.bobbyesp.metadator.MainActivity | ||
|
||
/** | ||
* Setup Firebase for the app. | ||
* Initialize Firebase services. | ||
* EMPTY Because this is part of the FOSS flavour of the app. | ||
*/ | ||
fun MainActivity.setupFirebase() {} | ||
fun App.initializeFirebase() {} | ||
|
||
/** | ||
* Setup Crashlytics collection to the app. | ||
* EMPTY Because this is part of the FOSS flavour of the app. | ||
*/ | ||
fun MainActivity.setCrashlyticsCollection() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
import com.bobbyesp.metadator.App | ||
import com.bobbyesp.metadator.MainActivity | ||
import com.google.firebase.Firebase | ||
import com.google.firebase.crashlytics.crashlytics | ||
import com.google.firebase.initialize | ||
|
||
fun MainActivity.setupFirebase() { | ||
fun App.initializeFirebase() { | ||
Firebase.initialize(this) | ||
} | ||
|
||
/** | ||
* Extension function for MainActivity to enable Crashlytics collection. | ||
* | ||
* This function sets the Crashlytics collection to be enabled, allowing Firebase Crashlytics | ||
* to collect crash reports for the application. | ||
*/ | ||
fun MainActivity.setCrashlyticsCollection() { | ||
Firebase.crashlytics.setCrashlyticsCollectionEnabled(true) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters