-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9fb907
commit e0309b7
Showing
18 changed files
with
166 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 2 additions & 8 deletions
10
...crashlytics-firebase/src/main/java/com/simple/crashlytics/firebase/FirebaseCrashlytics.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
package com.simple.crashlytics.firebase | ||
|
||
import com.google.firebase.FirebaseApp | ||
import com.google.firebase.crashlytics.FirebaseCrashlytics | ||
import com.simple.crashlytics.Crashlytics | ||
|
||
class FirebaseCrashlytics(private val firebaseApp: FirebaseApp) : Crashlytics { | ||
|
||
private val firebaseCrashlytics by lazy { | ||
|
||
firebaseApp.get(FirebaseCrashlytics::class.java) as FirebaseCrashlytics | ||
} | ||
class FirebaseCrashlytics : Crashlytics { | ||
|
||
override suspend fun execute(eventName: String, throwable: Throwable, vararg params: Pair<String, String>) { | ||
|
||
val map = hashMapOf("eventName" to eventName, *params) | ||
|
||
firebaseCrashlytics.recordException(RuntimeException(map.toString(), throwable)) | ||
FirebaseCrashlytics.getInstance().recordException(RuntimeException(map.toString(), throwable)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
library/crashlytics-log/src/main/java/com/simple/crashlytics/log/LogCrashlytics.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package com.simple.crashlytics.log | ||
|
||
import com.simple.core.utils.extentions.toJson | ||
import com.simple.crashlytics.Crashlytics | ||
|
||
class LogCrashlytics() : Crashlytics { | ||
|
||
override suspend fun execute(eventName: String, throwable: Throwable, vararg params: Pair<String, String>) { | ||
|
||
android.util.Log.d("LogCrashlytics", "eventName:${eventName} params:$params", throwable) | ||
android.util.Log.d("LogCrashlytics", "eventName:${eventName} params:${params.toJson()}", throwable) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
library/translate-mlkit/src/main/java/com/simple/translate/mlkit/Constants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
package com.simple.translate.mlkit | ||
|
||
object Constants { | ||
|
||
const val TRANSLATE_MLKIT = "TRANSLATE_MLKIT" | ||
} | ||
val COUNTRY_LANGUAGE_MAP: Map<String, String> = hashMapOf( | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
library/translate-mlkit/src/test/java/com/simple/translate/mlkit/ExampleUnitTest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.