Skip to content

Commit

Permalink
Remove Relinker recursive loading workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Jan 3, 2024
1 parent ec5ded5 commit 766fa78
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,9 @@ public wvWare(@NonNull Context ctx) {
}

private synchronized void init(@NonNull Context ctx) {
ReLinker.recursively().loadLibrary(ctx, "wvware-android");
Tmpfile.init(ctx.getCacheDir());

ReLinkerInstance reLinker = ReLinker.recursively();
// https://github.com/KeepSafe/ReLinker/issues/77
// Manually load dependencies, because ReLinker.recursively() doesn't actually load recursively
reLinker.loadLibrary(ctx, "c++_shared");
reLinker.loadLibrary(ctx, "wvware-android");

LegacyCleanup.cleanup(ctx);

AssetExtractor ae = new AssetExtractor(ctx.getAssets()).setNoOverwrite();
Expand Down

0 comments on commit 766fa78

Please sign in to comment.