Skip to content

Commit a17a4a6

Browse files
Remove workaround for KeepSafe/ReLinker#77
Assuming Lollipop isn't affected by it
1 parent dccc699 commit a17a4a6

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

  • pdf2htmlEX/src/main/java/com/viliussutkus89/android/pdf2htmlex

pdf2htmlEX/src/main/java/com/viliussutkus89/android/pdf2htmlex/pdf2htmlEX.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import androidx.annotation.Nullable;
2626

2727
import com.getkeepsafe.relinker.ReLinker;
28-
import com.getkeepsafe.relinker.ReLinkerInstance;
2928
import com.viliussutkus89.android.assetextractor.AssetExtractor;
3029
import com.viliussutkus89.android.tmpfile.Tmpfile;
3130

@@ -79,14 +78,7 @@ public CopyProtectionException(String errorMessage) {
7978
private boolean mOwnerPasswordEntered;
8079

8180
public pdf2htmlEX(@NonNull Context ctx) {
82-
ReLinkerInstance reLinker = ReLinker.recursively();
83-
84-
// https://github.com/KeepSafe/ReLinker/issues/77
85-
// Manually load dependencies, because ReLinker.recursively() doesn't actually load recursively
86-
reLinker.loadLibrary(ctx, "c++_shared");
87-
reLinker.loadLibrary(ctx, "envvar");
88-
reLinker.loadLibrary(ctx, "tmpfile");
89-
reLinker.loadLibrary(ctx, "pdf2htmlEX-android");
81+
ReLinker.recursively().loadLibrary(ctx, "pdf2htmlEX-android");
9082

9183
AssetExtractor ae = new AssetExtractor(ctx.getAssets()).setNoOverwrite();
9284

0 commit comments

Comments
 (0)