11![ moko-crash-reporting] ( https://user-images.githubusercontent.com/701307/98216339-818ef400-1f7b-11eb-9273-083389b0f3b9.png )
22[ ![ GitHub license] ( https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat )] ( http://www.apache.org/licenses/LICENSE-2.0 ) [ ![ Download]
3- ![ kotlin-version] ( https://img.shields.io/badge/kotlin-1.4.10 -orange )
3+ ![ kotlin-version] ( https://img.shields.io/badge/kotlin-1.4.21 -orange )
44
55# Mobile Kotlin crash report
66
@@ -29,6 +29,8 @@ This is a Kotlin MultiPlatform library that provides reporting fatal and non-fat
2929## Versions
3030- kotlin 1.4.10
3131 - 0.1.0
32+ - kotlin 1.4.21
33+ - 0.1.1
3234
3335## Installation
3436root build.gradle
@@ -43,9 +45,8 @@ allprojects {
4345project build.gradle
4446``` groovy
4547dependencies {
46- commonMainApi("dev.icerock.moko:crash-reporting-core:0.1.0")
47- commonMainApi("dev.icerock.moko:crash-reporting-crashlytics:0.1.0") // for CrashlyticsLogger
48- commonMainApi("dev.icerock.moko:crash-reporting-napier:0.1.0") // for CrashReportingAntilog
48+ commonMainImplementation("dev.icerock.moko:crash-reporting-crashlytics:0.1.1") // for CrashlyticsLogger
49+ commonMainImplementation("dev.icerock.moko:crash-reporting-napier:0.1.1") // for CrashReportingAntilog
4950 commonMainImplementation("com.github.aakira:napier:1.4.1") // for CrashReportingAntilog
5051}
5152```
@@ -56,34 +57,29 @@ With [mobile-multiplatform-gradle-plugin](https://github.com/icerockdev/mobile-m
5657cocoaPods {
5758 podsProject = file(" ios-app/Pods/Pods.xcodeproj" )
5859
59- pod(" GoogleUtilities" , onlyLink = false )
60- pod(" FirebaseCrashlytics" , onlyLink = true )
60+ pod(" MCRCDynamicProxy" , onlyLink = true )
6161}
6262```
6363project Podfile
6464``` ruby
65- pod ' Firebase' , ' 6.33.0'
66- pod ' FirebaseCrashlytics' , ' 4.6.1'
65+ pod ' MCRCDynamicProxy' , :git => ' https://github.com/icerockdev/moko-crash-reporting.git' , :tag => ' release/0.1.1'
66+ pod ' MCRCStaticReporter' , :git => ' https://github.com/icerockdev/moko-crash-reporting.git' , :tag => ' release/0.1.1'
67+ ```
6768
68- # Firebase libraries already linked in moko-crash-reporting. Remove duplicated linking.
69- post_install do |installer |
70- host_targets = installer.aggregate_targets.select { |aggregate_target |
71- aggregate_target.name.include? " Pods-"
72- }
69+ On iOS side add to ` AppDelegate ` :
70+ ``` swift
71+ import FirebaseCore
72+ import MCRCStaticReporter
73+
74+ ...
7375
74- host_targets.each do |host_target |
75- host_target.xcconfigs.each do |config_name , config_file |
76- config_file.frameworks.delete(" FirebaseCore" )
77- config_file.frameworks.delete(" FirebaseCrashlytics" )
78- config_file.frameworks.delete(" FirebaseInstallations" )
79- config_file.frameworks.delete(" GoogleDataTransport" )
80-
81- xcconfig_path = host_target.xcconfig_path(config_name)
82- config_file.save_as(xcconfig_path)
83- end
84- end
85- end
76+ func application (_ application : UIApplication, didFinishLaunchingWithOptions launchOptions : [UIApplication.LaunchOptionsKey: Any ]? = nil ) -> Bool {
77+ FirebaseApp.configure ()
78+ MokoFirebaseCrashlytics.setup ()
79+ ...
80+ }
8681```
82+
8783## Usage
8884
8985### CrashlyticsLogger
0 commit comments