Skip to content

Commit c94838f

Browse files
committed
v2.4.4
1 parent 1b695ea commit c94838f

File tree

7 files changed

+20
-23
lines changed

7 files changed

+20
-23
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Newest Release
22

3+
### 2.4.4 - 27 Jun. 2025
4+
5+
1. Fixed the “Super expression must either be null or a function” error caused by incorrect class inheritance when using the Hermes engine.
6+
7+
## Previous Release
8+
39
### 2.4.3 - 26 Jun. 2025
410

511
1. Added the features support for ComPDFKit PDF SDK for iOS V2.4.3.
@@ -12,8 +18,6 @@
1218

1319

1420

15-
## Previous Release
16-
1721
### 2.4.1 - 19 Jun. 2025
1822

1923
1. Added the features support for ComPDFKit PDF SDK for iOS V2.4.1.

example/android/config.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ ext {
33
COMPILESDK: 33,
44
MINSDK: 21,
55
TARGETSDK: 33,
6-
VERSIONCODE: 1014
6+
VERSIONCODE: 1015
77
]
88
sdk = [
9-
COMPDFKIT_SDK_VERSION : "2.4.1",
10-
COMPDFKIT_SDK_BUILD_TAG : "build_dev_2.4.1_4aef7ae8_202502281000"
9+
COMPDFKIT_SDK_VERSION : "2.4.4",
10+
COMPDFKIT_SDK_BUILD_TAG : "build_dev_2.4.4_4aef7ae8_202506271115"
1111
]
1212
}

example/ios/CompdfkitPdfExample.xcodeproj/project.pbxproj

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@
522522
"$(inherited)",
523523
"@executable_path/Frameworks",
524524
);
525-
MARKETING_VERSION = 2.4.1;
525+
MARKETING_VERSION = 2.4.4;
526526
ONLY_ACTIVE_ARCH = YES;
527527
OTHER_LDFLAGS = (
528528
"$(inherited)",
@@ -559,7 +559,7 @@
559559
"$(inherited)",
560560
"@executable_path/Frameworks",
561561
);
562-
MARKETING_VERSION = 2.4.1;
562+
MARKETING_VERSION = 2.4.4;
563563
ONLY_ACTIVE_ARCH = YES;
564564
OTHER_LDFLAGS = (
565565
"$(inherited)",
@@ -651,10 +651,7 @@
651651
"-DFOLLY_CFG_NO_COROUTINES=1",
652652
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
653653
);
654-
OTHER_LDFLAGS = (
655-
"$(inherited)",
656-
" ",
657-
);
654+
OTHER_LDFLAGS = "$(inherited) ";
658655
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
659656
SDKROOT = iphoneos;
660657
USE_HERMES = true;
@@ -727,10 +724,7 @@
727724
"-DFOLLY_CFG_NO_COROUTINES=1",
728725
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
729726
);
730-
OTHER_LDFLAGS = (
731-
"$(inherited)",
732-
" ",
733-
);
727+
OTHER_LDFLAGS = "$(inherited) ";
734728
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
735729
SDKROOT = iphoneos;
736730
USE_HERMES = true;

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@compdfkit_pdf_sdk/react_native-example",
3-
"version": "2.4.1",
4-
"versionCode": "17",
3+
"version": "2.4.4",
4+
"versionCode": "18",
55
"private": true,
66
"scripts": {
77
"android": "react-native run-android",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@compdfkit_pdf_sdk/react_native",
3-
"version": "2.4.3",
3+
"version": "2.4.4",
44
"description": "ComPDFKit for React Native is a comprehensive SDK that allows you to quickly add PDF functionality to Android, iOS, and React Native applications.",
55
"main": "./src/index.tsx",
66
"source": "src/index",

src/document/action/CPDFAction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
import { CPDFActionType } from "../../configuration/CPDFOptions";
1111
import { safeParseEnumValue } from "../../util/CPDFEnumUtils";
12-
import { CPDFGoToAction } from "./CPDFGoToAction";
13-
import { CPDFUriAction } from "./CPDFUriAction";
1412

1513

1614
export class CPDFAction {
@@ -25,8 +23,10 @@ export class CPDFAction {
2523
const actionType = safeParseEnumValue(json.actionType, Object.values(CPDFActionType), CPDFActionType.UNKNOWN);
2624
switch(actionType){
2725
case 'goTo':
26+
const { CPDFGoToAction } = require("./CPDFGoToAction");
2827
return CPDFGoToAction.fromJson(json);
2928
case 'uri':
29+
const { CPDFUriAction } = require("./CPDFUriAction");
3030
return CPDFUriAction.fromJson(json);
3131
default:
3232
return new CPDFAction(json);

src/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const ComPDFKit = NativeModules.ComPDFKit
217217
export { ComPDFKit };
218218
// === Options & Configs ===
219219
export * from './configuration/CPDFOptions';
220-
export { CPDFConfiguration, CPDFContextMenuItem } from './configuration/CPDFConfiguration';
220+
export type { CPDFConfiguration, CPDFContextMenuItem } from './configuration/CPDFConfiguration';
221221

222222
// === Core Views ===
223223
export { CPDFReaderView } from './view/CPDFReaderView';
@@ -254,8 +254,7 @@ export { CPDFTextWidget } from './annotation/form/CPDFTextWidget';
254254
export { CPDFWidgetItem } from './annotation/form/CPDFWidgetItem';
255255

256256
// === Utils ===
257-
export { CPDFRectF } from './util/CPDFRectF';
258-
257+
export type { CPDFRectF } from './util/CPDFRectF';
259258

260259
ComPDFKit.getDefaultConfig = getDefaultConfig
261260

0 commit comments

Comments
 (0)