Skip to content

Commit 7850803

Browse files
committed
compdfkit_flutter 2.3.0
1 parent 36f515a commit 7850803

File tree

18 files changed

+44
-147
lines changed

18 files changed

+44
-147
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 2.3.0
2+
* Added the features support for ComPDFKit PDF SDK for iOS iOS V2.3.0.
3+
* Added the features support for ComPDFKit PDF SDK for Android Android V2.3.0.
4+
* Added the ability to create text input fields and insert images by clicking on a page area in content editing mode.
5+
* Fixed a crash issue when editing or deleting text in certain documents.
6+
* Fixed the border display issue after completing a free text annotation.
7+
* Fixed an issue where the LaBan Key input method could not delete the last character while editing text.
8+
* Fixed text garbling issues in content editing mode.
9+
* Fixed an issue where form field content was not displayed in some documents.
10+
* Fixed the issue that the zoomed-in page area did not follow the zooming when jumping to draw a rectangular area.
11+
* Fixed the issue of Chinese garbled characters in the form name.
12+
* Fixed the issue where the prompt did not appear for scanned PDF documents on iOS.
13+
114
## 2.2.3
215
* Fixed the issue where `R.color.tools_pdf_view_ctrl_background_color` resource could not be found during Android build.
316

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ cd example
197197
dependencies:
198198
flutter:
199199
sdk: flutter
200-
+ compdfkit_flutter: ^2.2.3
200+
+ compdfkit_flutter: ^2.3.0
201201
```
202202

203203
4. Open your project's Podfile in a text editor:
@@ -220,8 +220,8 @@ open ios/Podfile
220220
use_modular_headers!`
221221

222222
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
223-
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.2.2.podspec'
224-
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.2.2.podspec'
223+
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.3.0.podspec'
224+
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.3.0.podspec'
225225

226226
end
227227
```
@@ -557,8 +557,8 @@ target 'PDFView_RN' do
557557
# Pods for testing
558558
end
559559

560-
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.2.2'
561-
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.2.2'
560+
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.3.0'
561+
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.3.0'
562562

563563
# Enables Flipper.
564564
#

android/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ rootProject.allprojects {
1818
repositories {
1919
google()
2020
mavenCentral()
21-
mavenLocal()
2221
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
2322

2423
}
@@ -40,12 +39,9 @@ android {
4039

4140
dependencies {
4241
compileOnly fileTree(include: ['*.jar','*.aar'], dir: 'libs')
43-
implementation 'com.google.android.material:material:1.8.0'
44-
implementation 'androidx.appcompat:appcompat:1.6.1'
45-
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
4642

4743
// dependencies compdfkit pdf sdk
48-
api 'com.compdf:compdfkit-tools:2.2.2'
44+
api 'com.compdf:compdfkit-tools:2.3.0'
4945

5046
testImplementation 'junit:junit:4.13.2'
5147
testImplementation 'org.mockito:mockito-core:5.0.0'

android/src/main/java/com/compdfkit/flutter/compdfkit_flutter/plugin/CPDFViewCtrlPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull MethodChannel.Result
143143
case SET_READ_BACKGROUND_COLOR:
144144
String colorHex = call.argument("color");
145145
readerView.setReadBackgroundColor(Color.parseColor(colorHex));
146-
if (colorHex.equals("#FFFFFFFF")){
146+
if ("#FFFFFFFF".equals(colorHex)){
147147
pdfView.setBackgroundColor(ContextCompat.getColor(context, com.compdfkit.tools.R.color.tools_pdf_view_ctrl_background_color));
148148
} else {
149149
pdfView.setBackgroundColor(

example/android/app/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,3 @@ flutter {
7676
source '../..'
7777
}
7878

79-
dependencies {
80-
81-
api fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
82-
implementation 'com.google.android.material:material:1.12.0'
83-
implementation 'androidx.appcompat:appcompat:1.7.0'
84-
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
85-
86-
}

example/android/app/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@
2323
-keep class com.compdfkit.core.** {*;}
2424
-keep class com.compdfkit.tools.** {*;}
2525
-keep interface com.compdfkit.tools.**{*;}
26+
-keep class org.xmlpull.v1.** { *; }

example/android/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ allprojects {
22
repositories {
33
google()
44
mavenCentral()
5-
mavenLocal()
65
}
76
}
87
apply from: "config.gradle"

example/android/gradle.properties

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
org.gradle.jvmargs=-Xmx4G
2-
android.useAndroidX=true
3-
android.enableJetifier=true
41
Keystore.properties=./key.properties
5-
org.gradle.configureondemand=false
6-
android.nonTransitiveRClass=false
7-
android.nonFinalResIds=false
8-
2+
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
3+
android.useAndroidX=true
4+
android.enableJetifier=true

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip

example/android/settings.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ pluginManagement {
1414
google()
1515
mavenCentral()
1616
gradlePluginPortal()
17-
mavenLocal()
1817
}
1918
}
2019

2120
plugins {
2221
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
23-
id "com.android.application" version "8.5.0" apply false
24-
id "org.jetbrains.kotlin.android" version "1.8.10" apply false
22+
id "com.android.application" version '8.7.0' apply false
23+
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
2524
}
2625

2726
include ":app"

0 commit comments

Comments
 (0)