File tree Expand file tree Collapse file tree
kotlin/com/njlabs/showjava Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ android {
102102 buildConfigField " Boolean" , " IS_CI" , " ${ isCi} "
103103 buildConfigField " Boolean" , " EXTENDED_VALIDATION" , " false"
104104
105- manifestPlaceholders = [admobAppId : props. getProperty(" admobAppId" )]
105+ manifestPlaceholders = [admobAppId : props. getProperty(" admobAppId" ), crashlyticsApiKey : props . getProperty( " crashlyticsApiKey " ) ]
106106 }
107107
108108 compileOptions {
@@ -178,7 +178,7 @@ dependencies {
178178 // Firebase-related dependencies
179179 implementation " com.google.firebase:firebase-core:16.0.6"
180180 implementation " com.google.firebase:firebase-ads:17.1.2"
181- implementation " com.crashlytics.sdk.android:crashlytics:2.9.7 "
181+ implementation " com.crashlytics.sdk.android:crashlytics:2.9.8 "
182182
183183 // AndroidX support libraries
184184 implementation " androidx.appcompat:appcompat:$androidxVersion "
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ backendUrl=https://postb.in/iiolsQAd
88purchaseVerifierPath=check/buy
99privacyPolicyUrl=https://example.com/privacy-policy/
1010minifyEnabled=true
11- shrinkResources=true
11+ shrinkResources=true
12+ crashlyticsApiKey=xyz
Original file line number Diff line number Diff line change 4545 tools : ignore =" GoogleAppIndexingWarning"
4646 tools : replace =" android:label,android:supportsRtl" >
4747
48+ <meta-data
49+ android : name =" com.crashlytics.ApiKey"
50+ android : value =" ${crashlyticsApiKey}" />
51+
4852 <meta-data
4953 android : name =" com.google.android.gms.ads.APPLICATION_ID"
5054 android : value =" ${admobAppId}" />
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ import io.reactivex.Observable
3636import io.reactivex.disposables.CompositeDisposable
3737import io.reactivex.schedulers.Schedulers
3838import timber.log.Timber
39+ import com.crashlytics.android.Crashlytics
40+ import io.fabric.sdk.android.Fabric
41+
42+
3943
4044
4145class MainApplication : MultiDexApplication () {
@@ -69,6 +73,7 @@ class MainApplication : MultiDexApplication() {
6973 )
7074
7175 Ads (this ).init ()
76+ Fabric .with (this , Crashlytics ())
7277
7378 ViewPump .init (
7479 ViewPump .builder()
You can’t perform that action at this time.
0 commit comments