Skip to content

Commit 9ead94b

Browse files
committed
feat:增加Android Crashlytics SDK
1 parent 0fa3b5c commit 9ead94b

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

android/app/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ dependencies {
8282
androidTestImplementation 'com.android.support.test:runner:1.0.2'
8383
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
8484
//firebase
85-
implementation 'com.google.firebase:firebase-core:16.0.7'
85+
implementation 'com.google.firebase:firebase-core:16.0.8'
86+
//Crashlytics SDK
87+
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
8688
}
8789
//firebase
88-
apply plugin: 'com.google.gms.google-services'
90+
apply plugin: 'com.google.gms.google-services'
91+
//Crashlytics SDK
92+
apply plugin: 'io.fabric'

android/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,29 @@ buildscript {
22
repositories {
33
google()
44
jcenter()
5+
//Crashlytics SDK
6+
maven {
7+
url 'https://maven.fabric.io/public'
8+
}
59
}
610

711
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.2.1'
12+
classpath 'com.android.tools.build:gradle:3.3.2'
913
//firebase
1014
classpath 'com.google.gms:google-services:4.2.0'
15+
//Crashlytics SDK
16+
classpath 'io.fabric.tools:gradle:1.26.1'
1117
}
1218
}
1319

1420
allprojects {
1521
repositories {
1622
google()
1723
jcenter()
24+
//Crashlytics SDK
25+
maven {
26+
url 'https://maven.google.com/'
27+
}
1828
}
1929
}
2030

0 commit comments

Comments
 (0)