Browse Source

ComPDFKit Demo(Android) - ComPDFKit SDK秘钥,布局预览不显示问题

liuxiaolong 1 year ago
parent
commit
de1866d7fa

+ 2 - 0
compdfkit-tools/build.gradle

@@ -45,6 +45,8 @@ dependencies {
     api project(path:':compdfkit_repo:compdfkit-ui')
     api 'com.github.bumptech.glide:glide:4.13.2'
     annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
+    api 'androidx.documentfile:documentfile:1.0.1'
+
     implementation 'androidx.appcompat:appcompat:1.6.1'
     implementation 'com.google.android.material:material:1.8.0'
 }

File diff suppressed because it is too large
+ 9 - 6
compdfkit-tools/src/main/AndroidManifest.xml


+ 13 - 0
compdfkit-tools/src/main/java/com/compdfkit/tools/utils/PDFAppGlideModule.java

@@ -0,0 +1,13 @@
+package com.compdfkit.tools.utils;
+
+import com.bumptech.glide.annotation.GlideModule;
+import com.bumptech.glide.module.AppGlideModule;
+
+
+@GlideModule
+public class PDFAppGlideModule extends AppGlideModule {
+    @Override
+    public boolean isManifestParsingEnabled() {
+        return false;
+    }
+}

+ 2 - 0
viewer-ctrl-demo/build.gradle

@@ -36,5 +36,7 @@ dependencies {
     implementation 'com.google.android.material:material:1.8.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
     implementation project(':compdfkit-tools')
+    api 'com.github.bumptech.glide:glide:4.13.2'
+    annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
 
 }