-
Notifications
You must be signed in to change notification settings - Fork 205
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
Showing
232 changed files
with
671 additions
and
511 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "sdk/src/main/jni/external/libunwindstack"] | ||
path = sdk/src/main/jni/external/libunwindstack | ||
[submodule "bugsnag-plugin-android-ndk/src/main/jni/external/libunwindstack-ndk"] | ||
path = bugsnag-plugin-android-ndk/src/main/jni/external/libunwindstack-ndk | ||
url = https://github.com/bugsnag/libunwindstack-ndk |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# bugsnag-android-core | ||
|
||
This module detects JVM exceptions and reports them to bugsnag. | ||
|
||
## High-level Overview | ||
|
||
An `UncaughtExceptionHandler` is installed which generates an error report whenever an uncaught | ||
`Throwable` propagates. This module is also responsible for the delivery of JSON payloads to the | ||
Error Reporting API, and also provides the main public API for bugsnag-android. |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apply plugin: "com.android.library" | ||
apply plugin: "kotlin-android" | ||
apply plugin: "io.gitlab.arturbosch.detekt" | ||
|
||
android { | ||
compileSdkVersion rootProject.ext.compileSdkVersion | ||
defaultConfig.minSdkVersion rootProject.ext.minSdkVersion | ||
} | ||
|
||
apply from: "../gradle/dependencies.gradle" | ||
apply from: "../gradle/release.gradle" | ||
apply from: "../gradle/detekt.gradle" | ||
apply from: "../gradle/checkstyle.gradle" |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pomName=Bugsnag Android Core | ||
artefactId=bugsnag-android-core |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 33 additions & 0 deletions
33
bugsnag-android-core/src/androidTest/java/com/bugsnag/android/BugsnagPluginInterfaceTest.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.bugsnag.android | ||
|
||
import org.junit.Test | ||
|
||
import org.junit.Assert.* | ||
import org.junit.runner.RunWith | ||
import org.mockito.Mock | ||
import org.mockito.junit.MockitoJUnitRunner | ||
|
||
@RunWith(MockitoJUnitRunner::class) | ||
class BugsnagPluginInterfaceTest { | ||
|
||
@Mock | ||
lateinit var client: Client | ||
|
||
@Test | ||
fun registerPlugin() { | ||
BugsnagPluginInterface.registerPlugin(FakePlugin::class.java) | ||
BugsnagPluginInterface.loadPlugins(client) | ||
assertTrue(FakePlugin.initialised) | ||
} | ||
} | ||
|
||
internal class FakePlugin: BugsnagPlugin { | ||
companion object { | ||
var initialised = false | ||
} | ||
|
||
override fun initialisePlugin(client: Client) { | ||
initialised = true | ||
} | ||
} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.