Skip to content

Commit ca7d9e9

Browse files
committed
Rewrite patch script
1 parent 47f62b2 commit ca7d9e9

File tree

5 files changed

+201
-372
lines changed

5 files changed

+201
-372
lines changed

.prettierignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
android/
22
ios/
3-
4-
# TODO: remove it
5-
JPushConfiguration.js

JPushConfiguration.js

Lines changed: 0 additions & 368 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
]
6060
},
6161
"rnpm": {
62+
"android": {
63+
"packageInstance": "new JPushPackage(!BuildConfig.DEBUG, !BuildConfig.DEBUG)"
64+
},
6265
"ios": {
6366
"sharedLibraries": [
6467
"libz",
@@ -75,10 +78,11 @@
7578
]
7679
},
7780
"commands": {
78-
"prelink": "node node_modules/jpush-react-native/JPushConfiguration"
81+
"postlink": "node node_modules/jpush-react-native/scripts/patch"
7982
}
8083
},
8184
"dependencies": {
85+
"glob": "*",
8286
"inquirer": "*"
8387
}
8488
}

0 commit comments

Comments
 (0)