Skip to content

Commit 6c038fb

Browse files
author
RadAzzouz
committed
Explictly add the PSPDFKit podspec link to the Podfile
1 parent 1c4c7de commit 6c038fb

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ adb push /path/to/your/document.pdf /sdcard/document.pdf
215215

216216
#### Getting Started
217217

218-
1. Run `flutter create --org com.example.myapp myapp`.
218+
1. Run `flutter create --org com.example.myapp myapp`
219219
2. Step into your newly created app folder: `cd myapp`
220220
3. Open `pubspec.yaml` and under `dependencies` add
221221

@@ -248,7 +248,23 @@ adb push /path/to/your/document.pdf /sdcard/document.pdf
248248
![Always Embed Swift Standard Libraries](screenshots/ios-always-embed-swift-standard-libraries.png)
249249

250250
9. Run `flutter packages get` to install the packages.
251-
10. Open `lib/main.dart` and replace the whole content with a simple example that will load a PDF document from local device filesystem:
251+
10. Open the `Podfile`: `open ios/Podfile` and edit it as follows:
252+
253+
```diff
254+
# Uncomment this line to define a global platform for your project
255+
- # platform :ios, '9.0'
256+
+ platform :ios, '12.0'
257+
...
258+
target 'Runner' do
259+
use_frameworks!
260+
use_modular_headers!
261+
262+
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
263+
+ pod 'PSPDFKit', podspec:'https://customers.pspdfkit.com/pspdfkit-ios/latest.podspec'
264+
end
265+
```
266+
267+
11. Open `lib/main.dart` and replace the whole content with a simple example that will load a PDF document from local device filesystem:
252268

253269
```dart
254270
import 'dart:io';
@@ -352,9 +368,9 @@ class _MyAppState extends State<MyApp> {
352368
}
353369
```
354370

355-
11. In `lib/main.dart` replace `YOUR_LICENSE_KEY_GOES_HERE` with your PSPDFKit license key.
356-
12. Run `flutter emulators --launch apple_ios_simulator` to launch the iOS Simulator.
357-
13. Run `flutter run`.
371+
12. In `lib/main.dart` replace `YOUR_LICENSE_KEY_GOES_HERE` with your PSPDFKit license key.
372+
13. Run `flutter emulators --launch apple_ios_simulator` to launch the iOS Simulator.
373+
14. Run `flutter run`.
358374

359375
# Example
360376

example/ios/Podfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
@@ -29,6 +29,7 @@ flutter_ios_podfile_setup
2929

3030
target 'Runner' do
3131
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
32+
pod 'PSPDFKit', podspec:'https://customers.pspdfkit.com/pspdfkit-ios/latest.podspec'
3233
end
3334

3435
post_install do |installer|

0 commit comments

Comments
 (0)