Skip to content

Commit

Permalink
adjust java code example for updating your Application (facebook#4387)
Browse files Browse the repository at this point in the history
remove try catch since this has now been fixed inside SoLoader
  • Loading branch information
DerBasler authored Dec 12, 2024
1 parent a992c1e commit 0878be6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/_integration-with-existing-apps-kotlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,7 @@ import android.app.Application;
@Override
public void onCreate() {
super.onCreate();
+ try {
+ SoLoader.init(this, OpenSourceMergedSoMapping.INSTANCE);
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+ SoLoader.init(this, OpenSourceMergedSoMapping.INSTANCE);
+ if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
+ DefaultNewArchitectureEntryPoint.load();
+ }
Expand Down

0 comments on commit 0878be6

Please sign in to comment.