Skip to content

Commit d2f1040

Browse files
committed
ComPDFKit V2.0.0
1 parent d757d3b commit d2f1040

File tree

7 files changed

+55
-33
lines changed

7 files changed

+55
-33
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ target 'PDFView_RN' do
131131
# Pods for testing
132132
end
133133

134-
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/1.13.0.podspec'
135-
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/1.13.0.podspec'
134+
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.0.0.podspec'
135+
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.0.0.podspec'
136136

137137
# Enables Flipper.
138138
#
@@ -220,9 +220,9 @@ open android/app/build.gradle
220220
```diff
221221
dependencies {
222222
...
223-
+ implementation 'com.compdf:compdfkit:1.13.0'
224-
+ implementation 'com.compdf:compdfkit-ui:1.13.0'
225-
+ implementation 'com.compdf:compdfkit-tools:1.13.0'
223+
+ implementation 'com.compdf:compdfkit:2.0.0'
224+
+ implementation 'com.compdf:compdfkit-ui:2.0.0'
225+
+ implementation 'com.compdf:compdfkit-tools:2.0.0'
226226
}
227227
```
228228

@@ -245,6 +245,8 @@ dependencies {
245245
<!-- Required to read and write documents from device storage -->
246246
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
247247
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
248+
249+
<!-- Optional settings -->
248250
+ <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
249251

250252
<application
@@ -316,8 +318,8 @@ target 'PDFView_RN' do
316318
# Pods for testing
317319
end
318320

319-
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/1.13.0.podspec'
320-
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/1.13.0.podspec'
321+
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.0.0.podspec'
322+
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.0.0.podspec'
321323

322324
# Enables Flipper.
323325
#
@@ -617,8 +619,8 @@ target 'PDFView_RN' do
617619
# Pods for testing
618620
end
619621

620-
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '1.13.0'
621-
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '1.13.0'
622+
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.0.0'
623+
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.0.0'
622624

623625
# Enables Flipper.
624626
#

example/README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ target 'PDFView_RN' do
131131
# Pods for testing
132132
end
133133

134-
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/1.13.0.podspec'
135-
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/1.13.0.podspec'
134+
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.0.0.podspec'
135+
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.0.0.podspec'
136136

137137
# Enables Flipper.
138138
#
@@ -220,9 +220,9 @@ open android/app/build.gradle
220220
```diff
221221
dependencies {
222222
...
223-
+ implementation 'com.compdf:compdfkit:1.13.0'
224-
+ implementation 'com.compdf:compdfkit-ui:1.13.0'
225-
+ implementation 'com.compdf:compdfkit-tools:1.13.0'
223+
+ implementation 'com.compdf:compdfkit:2.0.0'
224+
+ implementation 'com.compdf:compdfkit-ui:2.0.0'
225+
+ implementation 'com.compdf:compdfkit-tools:2.0.0'
226226
}
227227
```
228228

@@ -245,6 +245,8 @@ dependencies {
245245
<!-- Required to read and write documents from device storage -->
246246
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
247247
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
248+
249+
<!-- Optional settings -->
248250
+ <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
249251

250252
<application
@@ -316,8 +318,8 @@ target 'PDFView_RN' do
316318
# Pods for testing
317319
end
318320

319-
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/1.13.0.podspec'
320-
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/1.13.0.podspec'
321+
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.0.0.podspec'
322+
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.0.0.podspec'
321323

322324
# Enables Flipper.
323325
#
@@ -424,7 +426,7 @@ export default class App extends Component<Props> {
424426

425427
### Run Project
426428

427-
1. Create an `assets` directory in the project's root directory and copy the **[configuration.json](./example/assets/configuration.json)** file from the demo to this directory.
429+
1. Create an `assets` directory in the project's root directory and copy the **[configuration.json](./assets/configuration.json)** file from the demo to this directory.
428430

429431
<img src="./Image/2-3-1.png" alt="2-3-1" style="zoom:33%;" />
430432

@@ -565,7 +567,7 @@ npx react-native run-ios
565567

566568
## Example APP
567569

568-
To see [ComPDFKit for React-Native](https://www.compdf.com/contact-sales) in action, check out our [React-Native example app](./example)
570+
To see [ComPDFKit for React-Native](https://www.compdf.com/contact-sales) in action, check out our [React-Native example app](./)
569571

570572
Showing a PDF document inside your React-Native app is as simple as this:
571573

@@ -617,8 +619,8 @@ target 'PDFView_RN' do
617619
# Pods for testing
618620
end
619621

620-
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '1.13.0'
621-
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '1.13.0'
622+
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.0.0'
623+
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.0.0'
622624

623625
# Enables Flipper.
624626
#

example/android/app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ android {
7878
applicationId "com.compdfkit.pdfviewer"
7979
minSdkVersion rootProject.ext.minSdkVersion
8080
targetSdkVersion rootProject.ext.targetSdkVersion
81-
versionCode 4
82-
versionName "1.13.0"
81+
versionCode 5
82+
versionName "2.0.0"
8383
}
8484
signingConfigs {
8585
debug {
@@ -111,9 +111,9 @@ dependencies {
111111
implementation "com.facebook.react:react-native:+" // From node_modules
112112
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
113113

114-
api 'com.compdf:compdfkit:1.13.0'
115-
api 'com.compdf:compdfkit-ui:1.13.0'
116-
api 'com.compdf:compdfkit-tools:1.13.0'
114+
api 'com.compdf:compdfkit:2.0.0'
115+
api 'com.compdf:compdfkit-ui:2.0.0'
116+
api 'com.compdf:compdfkit-tools:2.0.0'
117117

118118
api 'com.github.bumptech.glide:glide:4.15.1'
119119
annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'

example/android/app/src/main/assets/PDF32000_2008.pdf

100755100644
File mode changed.

example/ios/ComPDFKit_RN.xcodeproj/project.pbxproj

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
7699B88040F8A987B510C191 /* libPods-ComPDFKit_RN-ComPDFKit_RNTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ComPDFKit_RN-ComPDFKit_RNTests.a */; };
1616
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
1717
C93DCBED2AD6A52600DD0409 /* developer_guide_ios.pdf in Resources */ = {isa = PBXBuildFile; fileRef = C93DCBEA2AD6A52400DD0409 /* developer_guide_ios.pdf */; };
18+
C9A635682BC8DFB5009F53FC /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = C9A635662BC8DFB5009F53FC /* Localizable.strings */; };
1819
C9E0B3F22B186DA600E8855B /* OpenPDFModuleBridge.m in Sources */ = {isa = PBXBuildFile; fileRef = C9E0B3EF2B186DA600E8855B /* OpenPDFModuleBridge.m */; };
1920
C9E0B3F42B186DED00E8855B /* OpenPDFModule.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9E0B3F32B186DED00E8855B /* OpenPDFModule.swift */; };
2021
/* End PBXBuildFile section */
@@ -47,6 +48,8 @@
4748
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ComPDFKit_RN/LaunchScreen.storyboard; sourceTree = "<group>"; };
4849
89C6BE57DB24E9ADA2F236DE /* Pods-ComPDFKit_RN-ComPDFKit_RNTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ComPDFKit_RN-ComPDFKit_RNTests.release.xcconfig"; path = "Target Support Files/Pods-ComPDFKit_RN-ComPDFKit_RNTests/Pods-ComPDFKit_RN-ComPDFKit_RNTests.release.xcconfig"; sourceTree = "<group>"; };
4950
C93DCBEA2AD6A52400DD0409 /* developer_guide_ios.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = developer_guide_ios.pdf; sourceTree = "<group>"; };
51+
C9A635672BC8DFB5009F53FC /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
52+
C9A635692BC8DFC6009F53FC /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
5053
C9E0B3ED2B186DA600E8855B /* ComPDFKit_RN-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "ComPDFKit_RN-Bridging-Header.h"; path = "ComPDFKit_RN/ComPDFKit_RN-Bridging-Header.h"; sourceTree = "<group>"; };
5154
C9E0B3EF2B186DA600E8855B /* OpenPDFModuleBridge.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OpenPDFModuleBridge.m; path = ComPDFKit_RN/OpenPDFModuleBridge.m; sourceTree = "<group>"; };
5255
C9E0B3F02B186DA600E8855B /* OpenPDFModuleBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OpenPDFModuleBridge.h; path = ComPDFKit_RN/OpenPDFModuleBridge.h; sourceTree = "<group>"; };
@@ -104,6 +107,7 @@
104107
13B07FB61A68108700A75B9A /* Info.plist */,
105108
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
106109
13B07FB71A68108700A75B9A /* main.m */,
110+
C9A635662BC8DFB5009F53FC /* Localizable.strings */,
107111
);
108112
name = ComPDFKit_RN;
109113
sourceTree = "<group>";
@@ -231,6 +235,7 @@
231235
knownRegions = (
232236
en,
233237
Base,
238+
"zh-Hans",
234239
);
235240
mainGroup = 83CBB9F61A601CBA00E9B192;
236241
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
@@ -256,6 +261,7 @@
256261
buildActionMask = 2147483647;
257262
files = (
258263
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
264+
C9A635682BC8DFB5009F53FC /* Localizable.strings in Resources */,
259265
C93DCBED2AD6A52600DD0409 /* developer_guide_ios.pdf in Resources */,
260266
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
261267
);
@@ -443,6 +449,18 @@
443449
};
444450
/* End PBXTargetDependency section */
445451

452+
/* Begin PBXVariantGroup section */
453+
C9A635662BC8DFB5009F53FC /* Localizable.strings */ = {
454+
isa = PBXVariantGroup;
455+
children = (
456+
C9A635672BC8DFB5009F53FC /* en */,
457+
C9A635692BC8DFC6009F53FC /* zh-Hans */,
458+
);
459+
name = Localizable.strings;
460+
sourceTree = "<group>";
461+
};
462+
/* End PBXVariantGroup section */
463+
446464
/* Begin XCBuildConfiguration section */
447465
00E356F61AD99517003FC87E /* Debug */ = {
448466
isa = XCBuildConfiguration;
@@ -503,15 +521,15 @@
503521
buildSettings = {
504522
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
505523
CLANG_ENABLE_MODULES = YES;
506-
CURRENT_PROJECT_VERSION = 1.12.0;
524+
CURRENT_PROJECT_VERSION = 2.0.0;
507525
DEVELOPMENT_TEAM = 4GGQPGRTSV;
508526
ENABLE_BITCODE = NO;
509527
INFOPLIST_FILE = ComPDFKit_RN/Info.plist;
510528
LD_RUNPATH_SEARCH_PATHS = (
511529
"$(inherited)",
512530
"@executable_path/Frameworks",
513531
);
514-
MARKETING_VERSION = 1.12.0;
532+
MARKETING_VERSION = 2.0.0;
515533
OTHER_LDFLAGS = (
516534
"$(inherited)",
517535
"-ObjC",
@@ -536,20 +554,20 @@
536554
buildSettings = {
537555
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
538556
CLANG_ENABLE_MODULES = YES;
539-
CURRENT_PROJECT_VERSION = 1.12.0;
557+
CURRENT_PROJECT_VERSION = 2.0.0;
540558
DEVELOPMENT_TEAM = 4GGQPGRTSV;
541559
INFOPLIST_FILE = ComPDFKit_RN/Info.plist;
542560
LD_RUNPATH_SEARCH_PATHS = (
543561
"$(inherited)",
544562
"@executable_path/Frameworks",
545563
);
546-
MARKETING_VERSION = 1.12.0;
564+
MARKETING_VERSION = 2.0.0;
547565
OTHER_LDFLAGS = (
548566
"$(inherited)",
549567
"-ObjC",
550568
"-lc++",
551569
);
552-
PRODUCT_BUNDLE_IDENTIFIER = com.compdfkit.reactnative.example;
570+
PRODUCT_BUNDLE_IDENTIFIER = com.compdfkit.pdfviewer;
553571
PRODUCT_NAME = ComPDFKit_RN;
554572
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
555573
SUPPORTS_MACCATALYST = NO;

example/ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ target 'ComPDFKit_RN' do
3131
# Flags change depending on the env values.
3232
flags = get_default_flags()
3333

34-
pod "ComPDFKit", podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/1.13.0.podspec'
35-
pod "ComPDFKit_Tools", podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/1.13.0.podspec'
34+
pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.0.0.podspec'
35+
pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.0.0.podspec'
3636

3737
use_react_native!(
3838
:path => config[:reactNativePath],

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ComPDFKit_RN",
3-
"version": "1.13.0",
3+
"version": "2.0.0",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",

0 commit comments

Comments
 (0)