Skip to content

Commit d3a594b

Browse files
Merge pull request #26 from PSPDFKit/davidschreiber/cordova-7.0-update
Update plugin for Cordova 7.0
2 parents aaf9f35 + c1b2953 commit d3a594b

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Set the minimum SDK version of your Android application to 19. To do so, add the
111111
<!-- more Android platform settings -->
112112
</platform>
113113

114-
Configure your PSPDFKit license key inside the `platforms/android/AndroidManifest` (demo license key also works):
114+
Configure your PSPDFKit license key inside the `platforms/android/app/src/main/AndroidManifest.xml` (demo license key also works):
115115

116116
<manifest>
117117
<application>
@@ -124,6 +124,5 @@ You are now ready to build your app!
124124
$ cordova build
125125

126126
## Contributing
127-
127+
128128
Please ensure [you signed our CLA](https://pspdfkit.com/guides/web/current/miscellaneous/contributing/) so we can accept your contributions.
129-

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pspdfkit-cordova-android",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"description": "Integration of the PSPDFKit for Android library.",
55
"cordova": {
66
"id": "pspdfkit-cordova-android",
@@ -19,12 +19,11 @@
1919
"ecosystem:cordova",
2020
"cordova-android"
2121
],
22-
"engines": [
23-
{
24-
"name": "cordova-android",
25-
"version": ">=6.3.0"
26-
}
27-
],
22+
"engines": {
23+
"cordovaDependencies": {
24+
"4.2.1": { "cordova-android": ">=7.0.0" }
25+
}
26+
},
2827
"author": "PSPDFKit",
2928
"license": "MIT",
3029
"bugs": {

plugin.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
~ UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
1212
~ This notice may not be removed from this file.
1313
-->
14-
<plugin id="pspdfkit-cordova-android" version="4.2.0" xmlns="http://apache.org/cordova/ns/plugins/1.0"
14+
<plugin id="pspdfkit-cordova-android" version="4.2.1" xmlns="http://apache.org/cordova/ns/plugins/1.0"
1515
xmlns:android="http://schemas.android.com/apk/res/android">
1616
<name>PSPDFKit-Android</name>
1717
<description>Integration of the PSPDFKit for Android library.</description>
@@ -22,14 +22,10 @@
2222
<info><![CDATA[
2323
You're almost set up for using PSPDFKit-Android for Apache Cordova! Two more steps:
2424
25-
1) Place your PSPDFKit library aar file into the `platforms/android/libs/` directory of your project.
25+
1) Place your PSPDFKit library aar file into the `platforms/android/app/libs/` directory of your project.
2626
2) Add your PSPDFKit license key to the <meta-data name="pspdfkit_license_key"> tag of your AndroidManifest.xml.
2727
]]></info>
2828

29-
<engines>
30-
<engine name="cordova-android" version=">=6.3.0"/>
31-
</engines>
32-
3329
<js-module name="PSPDFKit" src="www/PSPDFKit.js">
3430
<clobbers target="PSPDFKit"/>
3531
</js-module>
@@ -54,7 +50,7 @@ You're almost set up for using PSPDFKit-Android for Apache Cordova! Two more ste
5450
</feature>
5551
</config-file>
5652

57-
<config-file parent="/*/application" target="AndroidManifest.xml" after="activity">
53+
<config-file parent="/*/application" target="app/src/main/AndroidManifest.xml" after="activity">
5854
<activity android:name="com.pspdfkit.ui.PdfActivity"
5955
android:theme="@style/PSPDFKit.Theme"
6056
android:windowSoftInputMode="adjustNothing"/>

0 commit comments

Comments
 (0)