adjust build and add a variant that doesn't allow user-added libraries

This commit is contained in:
Helium314 2024-02-01 22:10:54 +01:00
parent 53022afdab
commit 978d76ed7c
6 changed files with 39 additions and 52 deletions

View file

@ -57,7 +57,7 @@ public final class JniUtils {
if (app != null) // use the actual path if possible
filesDir = app.getFilesDir().getAbsolutePath();
final File userSuppliedLibrary = new File(filesDir + File.separator + JNI_LIB_IMPORT_FILE_NAME);
if (userSuppliedLibrary.exists()) {
if (!BuildConfig.BUILD_TYPE.equals("nouserlib") && userSuppliedLibrary.exists()) {
String wantedChecksum = expectedDefaultChecksum();
try {
if (app != null) {