Skip to content

Commit

Permalink
feat(demo): Firebase Crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
protyposis committed Feb 19, 2024
1 parent 68cb15a commit f17e9b8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
.cxx

signingconfig.properties
*.keystore
*.keystore
google-services.json
10 changes: 10 additions & 0 deletions MediaPlayerDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,18 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':MediaPlayer')
implementation project(':MediaPlayer-DASH')
implementation platform('com.google.firebase:firebase-bom:32.7.2')
implementation 'com.google.firebase:firebase-crashlytics'
}

ext.isLibrary = false
apply from: "../gitversioning.gradle"
apply from: "signingconfig.gradle"

def firebaseConfigFile = file("google-services.json");
if (!firebaseConfigFile.exists()) {
project.logger.error("Firebase config file for Crashlytics not found at ${firebaseConfigFile.absolutePath}. Please download the file from the Firebase Console and put it there.")
}

apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.2'
classpath 'com.google.gms:google-services:4.4.1'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.nonTransitiveRClass=false
android.useAndroidX=true

0 comments on commit f17e9b8

Please sign in to comment.