diff options
author | Allan Wang <me@allanwang.ca> | 2020-06-28 00:42:50 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-06-28 00:42:50 -0700 |
commit | 691994b7767fb2b4859f7e8c8ca67166259a034e (patch) | |
tree | 69817f5adccc4e6d8a0800240b992081ce211c24 /sample/src/main | |
parent | 813f3867839d015c123625eb0a4586e79e210200 (diff) | |
download | kau-691994b7767fb2b4859f7e8c8ca67166259a034e.tar.gz kau-691994b7767fb2b4859f7e8c8ca67166259a034e.tar.bz2 kau-691994b7767fb2b4859f7e8c8ca67166259a034e.zip |
Update gradle and add bugsnag to sample app
Diffstat (limited to 'sample/src/main')
-rw-r--r-- | sample/src/main/AndroidManifest.xml | 3 | ||||
-rw-r--r-- | sample/src/main/kotlin/ca/allanwang/kau/sample/SampleApp.kt | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index 5846c6b..b205c51 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -57,6 +57,9 @@ android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/kau_file_paths" /> </provider> + <meta-data + android:name="com.bugsnag.android.API_KEY" + android:value="0a09e498a253b98237500fb5f948e5c6"/> </application> </manifest>
\ No newline at end of file diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/SampleApp.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/SampleApp.kt index 282f9ff..bead882 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/SampleApp.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/SampleApp.kt @@ -16,10 +16,24 @@ package ca.allanwang.kau.sample import android.app.Application +import com.bugsnag.android.Bugsnag +import com.bugsnag.android.Configuration import dagger.hilt.android.HiltAndroidApp /** * Created by Allan Wang on 2017-06-08. */ @HiltAndroidApp -class SampleApp : Application() +class SampleApp : Application() { + override fun onCreate() { + super.onCreate() +// initBugsnag() + } + + private fun initBugsnag() { + if (BuildConfig.DEBUG) { + return + } + Bugsnag.start(this) + } +} |