Skip to content

Commit

Permalink
fix: Adds relinker for anr/ndk libarary loading on older devices (#603)
Browse files Browse the repository at this point in the history
* fix: Adds relinker for anr/ndk libarary loading on older devices

* changes from relinker to SoLoader which is already loaded

* Upgrades SoLoader manually
  • Loading branch information
mikaelbr authored Oct 27, 2020
1 parent 4d34694 commit 81d28fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ android {
}

dependencies {
implementation 'com.facebook.soloader:soloader:0.9.0+'

implementation fileTree(dir: "libs", include: ["*.jar"])
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules
Expand Down
2 changes: 2 additions & 0 deletions android/app/src/main/java/no/mittatb/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ private void tryInitializeBugsnag() {
if (!TextUtils.isEmpty(bugsnagKey)) {
config.setReleaseStage(bugsnagReleaseStage);
}
SoLoader.loadLibrary("bugsnag-plugin-android-anr");
SoLoader.loadLibrary("bugsnag-plugin-android-ndk");
Bugsnag.start(this, config);
}
} catch (Exception e) {
Expand Down

0 comments on commit 81d28fa

Please sign in to comment.