Skip to content

Commit 36f515a

Browse files
committed
compdfkit_flutter 2.2.3
1 parent 60eb872 commit 36f515a

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.2.3
2+
* Fixed the issue where `R.color.tools_pdf_view_ctrl_background_color` resource could not be found during Android build.
3+
14
## 2.2.2
25
* Added the features support for ComPDFKit PDF SDK for iOS iOS V2.2.2.
36
* Added the features support for ComPDFKit PDF SDK for Android Android V2.2.2.

README.md

Lines changed: 2 additions & 2 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.2.2
154+
+ compdfkit_flutter: ^2.2.3
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.2.2
200+
+ compdfkit_flutter: ^2.2.3
201201
```
202202

203203
4. Open your project's Podfile in a text editor:

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
import androidx.annotation.NonNull;
5757

5858
import androidx.core.content.ContextCompat;
59-
import com.compdfkit.flutter.compdfkit_flutter.R;
6059
import com.compdfkit.tools.common.pdf.CPDFDocumentFragment;
6160
import com.compdfkit.tools.common.utils.viewutils.CViewUtils;
6261
import com.compdfkit.tools.common.views.pdfview.CPDFIReaderViewCallback;
@@ -145,7 +144,7 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull MethodChannel.Result
145144
String colorHex = call.argument("color");
146145
readerView.setReadBackgroundColor(Color.parseColor(colorHex));
147146
if (colorHex.equals("#FFFFFFFF")){
148-
pdfView.setBackgroundColor(ContextCompat.getColor(context, R.color.tools_pdf_view_ctrl_background_color));
147+
pdfView.setBackgroundColor(ContextCompat.getColor(context, com.compdfkit.tools.R.color.tools_pdf_view_ctrl_background_color));
149148
} else {
150149
pdfView.setBackgroundColor(
151150
CViewUtils.getColor(Color.parseColor(colorHex), 190));

example/lib/cpdf_reader_widget_controller_example.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ class _CPDFReaderWidgetControllerExampleState
118118
// only android platform
119119
// String? savePath = await ComPDFKit.createUri('aaa.pdf', childDirectoryName: 'compdfkit');
120120
bool saveResult = await controller.document.saveAs(savePath);
121-
if(saveResult){
122-
_controller?.document.open(savePath, '');
123-
}
124121
debugPrint('ComPDFKit:saveAs:Result:$saveResult');
125122
debugPrint('ComPDFKit:saveAs:Path:$savePath');
126123
break;

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.2.2
3+
version: 2.2.3
44
homepage: https://www.compdf.com
55
repository: https://github.com/ComPDFKit/compdfkit-pdf-sdk-flutter
66
issue_tracker: https://www.compdf.com/support

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: compdfkit_flutter
22
description: ComPDFKit for Flutter is a comprehensive SDK that allows you to quickly add PDF functionality to Android and iOS Flutter applications.
3-
version: 2.2.2
3+
version: 2.2.3
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)