Skip to content

Commit c5cfb4a

Browse files
committed
v2.5.1
1 parent 81c49f3 commit c5cfb4a

13 files changed

Lines changed: 31 additions & 231 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
## 2.5.1
2+
1. Added the features support for ComPDFKit PDF SDK for iOS V2.5.1.
3+
2. Added the features support for ComPDFKit PDF SDK for Android V2.5.1.
4+
3. Adapted to Androidx Material version 1.13.0.
5+
4. Android: Fixed crash issue when searching text containing special characters.
6+
7+
18
## 2.5.0
2-
1. Upgraded iOS ComPDFKit PDF SDK to 2.5.0.
9+
1. Upgraded iOS ComPDFKit PDF SDK to 2.5.0-snapshot.
310
2. Upgraded Android ComPDFKit PDF SDK to 2.5.0.
411
3. Modify the SDK initialization interface to return the initialization result.
512
4. Added Spanish language support.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Alternatively you can update the `AndroidManifest.xml` file to use `FlutterFragm
151151
dependencies:
152152
flutter:
153153
sdk: flutter
154-
+ compdfkit_flutter: ^2.5.0
154+
+ compdfkit_flutter: ^2.5.1
155155
```
156156

157157
8. Add the PDF documents you want to display in the project
@@ -197,7 +197,7 @@ cd example
197197
dependencies:
198198
flutter:
199199
sdk: flutter
200-
+ compdfkit_flutter: ^2.5.0
200+
+ compdfkit_flutter: ^2.5.1
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', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.5.0'
224-
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.5.0'
223+
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.5.1'
224+
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.5.1'
225225
end
226226
```
227227

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ android {
4141
compileOnly fileTree(include: ['*.jar','*.aar'], dir: 'libs')
4242

4343
// dependencies compdfkit pdf sdk
44-
api 'com.compdf:compdfkit-tools:2.5.0'
44+
api 'com.compdf:compdfkit-tools:2.5.1'
4545

4646
testImplementation 'junit:junit:4.13.2'
4747
testImplementation 'org.mockito:mockito-core:5.0.0'

android/src/main/java/com/compdfkit/flutter/compdfkit_flutter/platformview/CPDFViewCtrlFlutter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import com.compdfkit.tools.common.pdf.CPDFDocumentFragment;
3030
import com.compdfkit.tools.common.pdf.config.CPDFConfiguration;
3131

32-
import com.compdfkit.tools.docseditor.pdfpageedit.CPDFPageEditDialogFragment;
33-
import com.compdfkit.tools.docseditor.pdfpageedit.CPDFPageEditDialogFragment.OnBackLisener;
3432
import java.util.Map;
3533

3634
import io.flutter.plugin.common.BinaryMessenger;

example/android/config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ ext {
33
COMPILESDK: 35,
44
MINSDK: 21,
55
TARGETSDK: 35,
6-
VERSIONCODE: 22
6+
VERSIONCODE: 23
77
]
88
}

example/android/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ pluginManagement {
1414
google()
1515
mavenCentral()
1616
gradlePluginPortal()
17+
maven { url 'https://central.sonatype.com/repository/maven-snapshots/' }
18+
1719
}
1820
}
1921

example/ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ flutter_ios_podfile_setup
3030
target 'Runner' do
3131
use_frameworks!
3232
use_modular_headers!
33-
pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.5.0'
34-
pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.5.0'
33+
pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.5.1'
34+
pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.5.1'
3535

3636
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3737
target 'RunnerTests' do

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
C9A635512BC67553009F53FC /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
7272
C9A635532BC67581009F53FC /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
7373
C9A635552BC67595009F53FC /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
74+
C9D1A0CF2EA5D06B00B961F6 /* es-419 */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "es-419"; path = "es-419.lproj/Main.strings"; sourceTree = "<group>"; };
75+
C9D1A0D02EA5D06B00B961F6 /* es-419 */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "es-419"; path = "es-419.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
76+
C9D1A0D12EA5D06B00B961F6 /* es-419 */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "es-419"; path = "es-419.lproj/Localizable.strings"; sourceTree = "<group>"; };
7477
ECA391672E8A1C9000DD1A01 /* ic_logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ic_logo.png; sourceTree = "<group>"; };
7578
/* End PBXFileReference section */
7679

@@ -246,6 +249,7 @@
246249
en,
247250
Base,
248251
"zh-Hans",
252+
"es-419",
249253
);
250254
mainGroup = 97C146E51CF9000F007C117D;
251255
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
@@ -365,14 +369,10 @@
365369
inputFileListPaths = (
366370
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
367371
);
368-
inputPaths = (
369-
);
370372
name = "[CP] Embed Pods Frameworks";
371373
outputFileListPaths = (
372374
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
373375
);
374-
outputPaths = (
375-
);
376376
runOnlyForDeploymentPostprocessing = 0;
377377
shellPath = /bin/sh;
378378
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
@@ -414,6 +414,7 @@
414414
children = (
415415
97C146FB1CF9000F007C117D /* Base */,
416416
C9A635502BC67553009F53FC /* zh-Hans */,
417+
C9D1A0CF2EA5D06B00B961F6 /* es-419 */,
417418
);
418419
name = Main.storyboard;
419420
sourceTree = "<group>";
@@ -423,6 +424,7 @@
423424
children = (
424425
97C147001CF9000F007C117D /* Base */,
425426
C9A635512BC67553009F53FC /* zh-Hans */,
427+
C9D1A0D02EA5D06B00B961F6 /* es-419 */,
426428
);
427429
name = LaunchScreen.storyboard;
428430
sourceTree = "<group>";
@@ -432,6 +434,7 @@
432434
children = (
433435
C9A635532BC67581009F53FC /* en */,
434436
C9A635552BC67595009F53FC /* zh-Hans */,
437+
C9D1A0D12EA5D06B00B961F6 /* es-419 */,
435438
);
436439
name = Localizable.strings;
437440
sourceTree = "<group>";

example/lib/widgets/cpdf_app_bar.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77
* This notice may not be removed from this file.
88
*
99
*/
10+
1011
import 'package:flutter/material.dart';
1112
import 'package:flutter_svg/svg.dart';
1213

1314
import '../page/settings_page.dart';
1415

16+
1517
class CAppBar extends StatelessWidget implements PreferredSizeWidget {
1618
const CAppBar({super.key});
1719

20+
1821
@override
1922
Widget build(BuildContext context) {
2023
return AppBar(

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: compdfkit_flutter_example
22
description: Demonstrates how to use the compdfkit_flutter plugin.
3-
version: 2.5.0
3+
version: 2.5.1
44
homepage: https://www.compdf.com
55
repository: https://github.com/ComPDFKit/compdfkit-pdf-sdk-flutter
66
issue_tracker: https://www.compdf.com/support

0 commit comments

Comments
 (0)