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
+9-50Lines changed: 9 additions & 50 deletions
Original file line number
Diff line number
Diff line change
@@ -391,35 +391,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
391
391
3. Step into your newly created app folder: `cd YourApp`.
392
392
4. Add `react-native-pspdfkit` module from GitHub: `yarn add github:PSPDFKit/react-native`.
393
393
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.)
394
-
6. <aid="step-7"></a>Add PSPDFKit repository to `YourApp/android/build.gradle` so PSPDFKit library can be downloaded:
395
-
396
-
```diff
397
-
allprojects {
398
-
repositories {
399
-
mavenLocal()
400
-
+ maven {
401
-
+ url 'https://customers.pspdfkit.com/maven/'
402
-
+ credentials {
403
-
+ username 'pspdfkit'
404
-
+ password 'YOUR_MAVEN_KEY_GOES_HERE'
405
-
+ }
406
-
+ }
407
-
maven {
408
-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
7. PSPDFKit targets modern platforms, so you'll have to set the `minSdkVersion` to 19. In `YourApp/android/build.gradle`:
394
+
6. PSPDFKit targets modern platforms, so you'll have to set the `minSdkVersion` to 19. In `YourApp/android/build.gradle`:
423
395
424
396
```diff
425
397
...
@@ -434,7 +406,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
434
406
...
435
407
```
436
408
437
-
8. We will also need to enable MultiDex support. In `YourApp/android/app/build.gradle`:
409
+
7. We will also need to enable MultiDex support. In `YourApp/android/app/build.gradle`:
438
410
439
411
```diff
440
412
...
@@ -449,7 +421,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
449
421
...
450
422
```
451
423
452
-
9. <aid="step-10"></a>Enter your PSPDFKit license key into `YourApp/android/app/src/main/AndroidManifest.xml` file:
424
+
8. <aid="step-10"></a>Enter your PSPDFKit license key into `YourApp/android/app/src/main/AndroidManifest.xml` file:
453
425
454
426
```diff
455
427
<application>
@@ -462,7 +434,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
462
434
</application>
463
435
```
464
436
465
-
10. Set primary color. In `YourApp/android/app/src/main/res/values/styles.xml` replace
437
+
9. Set primary color. In `YourApp/android/app/src/main/res/values/styles.xml` replace
466
438
467
439
```xml
468
440
<!-- Customize your theme here. -->
@@ -474,7 +446,7 @@ with
474
446
<itemname="colorPrimary">#3C97C9</item>
475
447
```
476
448
477
-
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:
449
+
10. <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:
1. Clone the repository. `git clone https://github.com/PSPDFKit/react-native.git`.
563
535
2. Install dependencies: run `yarn install` from `samples/Catalog` directory. (Because of a [bug](https://github.com/yarnpkg/yarn/issues/2165) you may need to clean `yarn`'s cache with `yarn cache clean` before.)
564
-
3. Add your customer portal password to `samples/Catalog/android/build.gradle`:
565
-
566
-
```groovy
567
-
maven {
568
-
url 'https://customers.pspdfkit.com/maven/'
569
-
570
-
credentials {
571
-
username 'pspdfkit'
572
-
password 'YOUR_MAVEN_PASSWORD_GOES_HERE'
573
-
}
574
-
}
575
-
```
576
-
577
-
4. Update license key in `samples/Catalog/android/app/src/main/AndroidManifest.xml`:
536
+
3. Update license key in `samples/Catalog/android/app/src/main/AndroidManifest.xml`:
0 commit comments