|
@@ -78,17 +78,21 @@ flutter create --org com.compdfkit.flutter example
|
|
|
cd example
|
|
|
```
|
|
|
|
|
|
-3. open `example/android/app/src/main/AndroidManifest.xml` , add `Storage Permission`:
|
|
|
+3. open `example/android/app/src/main/AndroidManifest.xml` , add `Internet Permission` and `Storage Permission`:
|
|
|
|
|
|
```diff
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
package="com.compdfkit.flutter.example">
|
|
|
+
|
|
|
++ <uses-permission android:name="android.permission.INTERNET"/>
|
|
|
|
|
|
<!-- Required to read and write documents from device storage -->
|
|
|
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
|
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
|
+ <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
<application
|
|
|
+ android:requestLegacyExternalStorage="true">
|
|
|
|
|
@@ -120,7 +124,7 @@ open android/app/build.gradle
|
|
|
dependencies:
|
|
|
flutter:
|
|
|
sdk: flutter
|
|
|
-+ compdfkit_flutter: ^1.13.0
|
|
|
++ compdfkit_flutter: ^1.13.0-dev.1
|
|
|
```
|
|
|
|
|
|
7. From the terminal app, run the following command to get all the packages:
|
|
@@ -162,7 +166,7 @@ class _MyAppState extends State<MyApp> {
|
|
|
void _init() async {
|
|
|
/// Please replace it with your ComPDFKit license
|
|
|
ComPDFKit.initialize('your compdfkit key');
|
|
|
-
|
|
|
+
|
|
|
/// If you are using an offline certified license, please use the following method to initialize the SDK
|
|
|
/// ComPDFKit.initalize('your compdfkit key', offline : true)
|
|
|
}
|
|
@@ -276,7 +280,7 @@ cd example
|
|
|
dependencies:
|
|
|
flutter:
|
|
|
sdk: flutter
|
|
|
-+ compdfkit_flutter: ^1.13.0
|
|
|
++ compdfkit_flutter: ^1.13.0-dve.1
|
|
|
```
|
|
|
|
|
|
4. From the terminal app, run the following command to get all the packages:
|
|
@@ -294,6 +298,7 @@ open ios/Podfile
|
|
|
6. Update the platform to iOS 11 and add the ComPDFKit Podspec:
|
|
|
|
|
|
```diff
|
|
|
+
|
|
|
- platform :ios, '9.0'
|
|
|
+ platform :ios, '11.0'
|
|
|
...
|
|
@@ -302,8 +307,7 @@ open ios/Podfile
|
|
|
use_modular_headers!`
|
|
|
|
|
|
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
|
|
|
-+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/1.13.0.podspec'
|
|
|
-+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/1.13.0.podspec'
|
|
|
++ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-ios.git', :tag => '1.13.0'
|
|
|
|
|
|
end
|
|
|
```
|
|
@@ -347,7 +351,7 @@ class _MyAppState extends State<MyApp> {
|
|
|
void _init() async {
|
|
|
/// Please replace it with your ComPDFKit license
|
|
|
ComPDFKit.initialize('your compdfkit key');
|
|
|
-
|
|
|
+
|
|
|
/// If you are using an offline certified license, please use the following method to initialize the SDK
|
|
|
/// ComPDFKit.initalize('your compdfkit key', offline : true)
|
|
|
}
|