You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,10 +305,9 @@ For a more detailed description of toolbar customizations, refer to our Customiz
305
305
- Android SDK
306
306
- Android Build Tools 23.0.1 (React Native)
307
307
- Android Build Tools 28.0.3 (PSPDFKit module)
308
-
- Android Gradle plugin >= 3.2.1
309
-
- PSPDFKit >= 5.0.1
310
-
- react-native for example app >= 0.59.2
311
-
- react-native for Catalog app >= 0.57.8
308
+
- Android Gradle plugin >= 3.4.1
309
+
- PSPDFKit >= 5.4.2
310
+
- react-native >= 0.60.4
312
311
313
312
#### Getting Started
314
313
@@ -319,15 +318,12 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
319
318
3. Step into your newly created app folder: `cd YourApp`.
320
319
4. Add `react-native-pspdfkit` module from GitHub: `yarn add github:PSPDFKit/react-native`.
321
320
5. Install all the dependencies for the project: `yarn install`. (Because of a [bug](https://github.com/yarnpkg/yarn/issues/2165) you may need to clean `yarn`'s cache with `yarn cache clean` before.)
322
-
6. Link module `react-native-pspdfkit`: `react-native link react-native-pspdfkit`.
323
-
7. <aid="step-7"></a>Add PSPDFKit repository to `YourApp/android/build.gradle` so PSPDFKit library can be downloaded:
321
+
6. <aid="step-7"></a>Add PSPDFKit repository to `YourApp/android/build.gradle` so PSPDFKit library can be downloaded:
324
322
325
323
```diff
326
324
allprojects {
327
325
repositories {
328
326
mavenLocal()
329
-
google()
330
-
jcenter()
331
327
+ maven {
332
328
+ url 'https://customers.pspdfkit.com/maven/'
333
329
+ credentials {
@@ -339,11 +335,18 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
339
335
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
8. PSPDFKit targets modern platforms, so you'll have to set the `minSdkVersion` to 19. In `YourApp/android/build.gradle`:
349
+
7. PSPDFKit targets modern platforms, so you'll have to set the `minSdkVersion` to 19. In `YourApp/android/build.gradle`:
347
350
348
351
```diff
349
352
...
@@ -358,7 +361,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
358
361
...
359
362
```
360
363
361
-
9. We will also need to enable MultiDex support. In `YourApp/android/app/build.gradle`:
364
+
8. We will also need to enable MultiDex support. In `YourApp/android/app/build.gradle`:
362
365
363
366
```diff
364
367
...
@@ -373,7 +376,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
373
376
...
374
377
```
375
378
376
-
10. <aid="step-10"></a>Enter your PSPDFKit license key into `YourApp/android/app/src/main/AndroidManifest.xml` file:
379
+
9. <aid="step-10"></a>Enter your PSPDFKit license key into `YourApp/android/app/src/main/AndroidManifest.xml` file:
377
380
378
381
```diff
379
382
<application>
@@ -386,7 +389,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
386
389
</application>
387
390
```
388
391
389
-
11. Set primary color. In `YourApp/android/app/src/main/res/values/styles.xml` replace
392
+
10. Set primary color. In `YourApp/android/app/src/main/res/values/styles.xml` replace
390
393
391
394
```xml
392
395
<!-- Customize your theme here. -->
@@ -398,16 +401,15 @@ with
398
401
<itemname="colorPrimary">#3C97C9</item>
399
402
```
400
403
401
-
12. <aid="step-12"></a>Replace the default component from `YourApp/App.js` with a simple touch area to present a PDF document from the local device filesystem:
404
+
11. <aid="step-12"></a>Replace the default component from `YourApp/App.js` with a simple touch area to present a PDF document from the local device filesystem:
0 commit comments