Browse Source

PDFTool(Android) - v2.1.1 release

liuxiaolong 7 months ago
parent
commit
a402a57774

+ 2 - 2
ComPDFKit_Tools/build.gradle

@@ -54,8 +54,8 @@ dependencies {
     api project(path:':ComPDFKit_Repo:compdfkit')
     api project(path:':ComPDFKit_Repo:compdfkit-ui')
     // or use
-//    api ('com.compdf:compdfkit:2.1.0')
-//    api ('com.compdf:compdfkit-ui:2.1.0')
+//    api ('com.compdf:compdfkit:2.1.1')
+//    api ('com.compdf:compdfkit-ui:2.1.1')
     api 'com.github.bumptech.glide:glide:4.15.1'
     annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
     api 'androidx.documentfile:documentfile:1.0.1'

+ 2 - 0
PDFViewer/build.gradle

@@ -55,4 +55,6 @@ dependencies {
     implementation 'com.google.android.material:material:1.8.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
     api project(path: ':ComPDFKit_Tools')
+    // or
+//    implementation ('com.compdf:compdfkit-ui:2.1.1')
 }

+ 11 - 4
PDFViewer/src/main/java/com/compdfkit/pdfviewer/home/HomeActivity.java

@@ -1,6 +1,6 @@
 /**
  * Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
- *
+ * <p>
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
@@ -42,20 +42,27 @@ public class HomeActivity extends AppCompatActivity {
             return false;
         });
 
-        if (getSupportFragmentManager().findFragmentByTag("homeFunFragment") == null){
+        if (getSupportFragmentManager().findFragmentByTag("homeFunFragment") == null) {
             getSupportFragmentManager()
                     .beginTransaction()
                     .replace(R.id.fragment_content, new HomeFunFragment(), "homeFunFragment")
                     .commit();
         }
+//        String savePath = new File(getFilesDir(), "fonts/").getAbsolutePath();
+        // Copy the font from assets to the internal storage directory
+//        CFileUtils.copyFileFromAssets(this, "Arial.ttf", savePath, "Arial.ttf", false);
+//        String path = savePath + File.separator + "Arial.ttf";
+        // Set the font to use
+//        CPDFSdk.setDefaultFontPath(this, path);
+        // Enable the default font
 //        CPDFSdk.useDefaultFont(true);
     }
 
     @Override
     public void onBackPressed() {
-        if (getSupportFragmentManager().getBackStackEntryCount() <=0){
+        if (getSupportFragmentManager().getBackStackEntryCount() <= 0) {
             super.onBackPressed();
-        }else {
+        } else {
             getSupportFragmentManager().popBackStack();
         }
     }

+ 1 - 1
compdfkit-tools-mavencentral.gradle

@@ -1,7 +1,7 @@
 apply plugin: 'maven-publish'
 apply plugin: 'signing'
 
-def PUBLISH_VERSION = '2.1.0-SNAPSHOT'
+def PUBLISH_VERSION = '2.1.1'
 def PUBLISH_GROUP_ID = 'com.compdf'
 def PUBLISH_ARTIFACT_ID = 'compdfkit-tools'
 

+ 1 - 1
config.gradle

@@ -7,6 +7,6 @@ ext {
     ]
     sdk = [
             COMPDFKIT_SDK_VERSION : "2.1.1",
-            COMPDFKIT_SDK_BUILD_TAG : "build_beta_2.1.1_f95eee300_202404241139"
+            COMPDFKIT_SDK_BUILD_TAG : "build_dev_2.1.1_8485c6e5b_202408091626"
     ]
 }