Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
foobnix committed Jul 17, 2024
1 parent 0fb6b09 commit dfbbe3e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
/Builder/Gemfile.lock
/multiplatform
.vscode
/epub/build/
2 changes: 1 addition & 1 deletion Builder/link_to_mupdf_1.24.1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ "$1" == "fdroid" ]; then
MUPDF_FOLDER=$MUPDF_FOLDER-fdroid
fi

git clone --recursive git://git.ghostscript.com/mupdf.git --branch $VERSION_TAG $MUPDF_FOLDER
git clone --recursive https://github.com/ArtifexSoftware/mupdf.git --branch $VERSION_TAG --single-branch $MUPDF_FOLDER

MUPDF_ROOT=$BUILD_DIR/$MUPDF_FOLDER

Expand Down
9 changes: 8 additions & 1 deletion app/src/main/java/com/foobnix/pdf/info/AppsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public class AppsConfig {
public static final String FLAVOR = LibreraBuildConfig.FLAVOR;
public static final boolean IS_ENABLE_1_PAGE_SEARCH = true;
public final static ExecutorService executorService = Executors.newFixedThreadPool(2);
public static boolean IS_LOG = Build.MODEL.startsWith("Android SDK") || Build.DEVICE.contains("emulator");
public static boolean IS_LOG = Build.MODEL.startsWith("Android SDK")
|| Build.DEVICE.contains("emulator")
|| Build.MODEL.contains("sdk_gphone64_x86_64");
public static boolean IS_TEST_DEVICE = false;
public static String MUPDF_FZ_VERSION = "";
public static String MUPDF_1_11 = "1.11";
Expand Down Expand Up @@ -66,10 +68,15 @@ public static boolean checkIsProInstalled(final Context a) {
return true;
}


if (a == null) {
LOG.d("no-ads error context null");
return true;
}
if ("529B167EE030328EDF84D143B2C81389".equals(ADS.getByTestID(a))){
return true;
}

if (!isGooglePlayServicesAvailable(a)) {
//no ads for old android and eink
LOG.d("no-ads isGooglePlayServicesAvailable not available");
Expand Down

0 comments on commit dfbbe3e

Please sign in to comment.