File tree Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 2
2
<widget id =" com.eneff.branch.cordovatestbed" version =" 1.0.0" xmlns =" http://www.w3.org/ns/widgets" xmlns : cdv =" http://cordova.apache.org/ns/1.0" >
3
3
<!-- Branch -->
4
4
5
- <!-- remove spec to switch from local to npm -->
6
- <plugin name =" branch-cordova-sdk" spec =" ../ " />
5
+ <!-- uncomment line below to switch from local to npm -->
6
+ <!-- < plugin name="branch-cordova-sdk" spec="^2.6.0 " /> -- >
7
7
<branch-config >
8
8
<branch-key value =" key_live_ndqptlgXNE4LHqIahH1WIpbiyFlb62J3" />
9
9
<uri-scheme value =" branchcordova" />
Original file line number Diff line number Diff line change @@ -52,12 +52,6 @@ options() {
52
52
53
53
main () {
54
54
# clean
55
- if [[ " $run_cor " == " true" ]]; then
56
- npm install -g cordova gulp-cli ios-deploy
57
- fi
58
- if [[ " $run_dep " == " true" ]]; then
59
- npm uninstall mkpath node-version-compare plist xml2js
60
- fi
61
55
rm -rf ../.installed
62
56
rm -rf ./node_modules
63
57
rm -rf ./plugins
@@ -67,6 +61,13 @@ main() {
67
61
rm -rf ./package.json
68
62
rm -rf ./package-lock.json
69
63
64
+ if [[ " $run_cor " == " true" ]]; then
65
+ npm install -g cordova gulp-cli ios-deploy
66
+ fi
67
+ if [[ " $run_dep " == " true" ]]; then
68
+ npm uninstall mkpath node-version-compare plist xml2js
69
+ fi
70
+
70
71
# validate
71
72
gulp prod
72
73
@@ -79,19 +80,10 @@ main() {
79
80
fi
80
81
if [[ " $run_and " == " true" ]]; then
81
82
cordova platform add android
82
- # TODO: remove for cordova 6.5.0
83
- cordova platform update
[email protected]
84
83
fi
85
84
86
- # TODO: remove this cordova error fix (https://stackoverflow.com/questions/42350505/error-cannot-read-property-replace-of-undefined-when-building-ios-cordova)
87
- # if [[ "$run_ios" == "true" ]]; then
88
- # cd ./platforms/ios/cordova/node_modules/
89
- # npm install ios-sim@latest
90
- # cd ../../../../
91
- # fi
92
-
93
85
# plugin
94
- # cordova plugin add ../
86
+ cordova plugin add ../
95
87
96
88
# run
97
89
if [[ " $run_ios " == " true" ]]; then
You can’t perform that action at this time.
0 commit comments