Skip to content

Commit de85c12

Browse files
committed
fix: corrected cordova plugin add recursion for init
1 parent fe73a46 commit de85c12

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ node_modules
99
.installed
1010
.gradle/
1111
.idea/
12+
tmp/
1213
cordova-ionic-phonegap-branch-deep-linking.iml
1314
local.properties
1415
out/

testbed/init.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ logger() {
7474
main() {
7575
logger "info" "BRANCH: clean \n"
7676
rm -rf ../.installed
77+
rm -rf ../tmp
7778
rm -rf ./node_modules
7879
rm -rf ./plugins
7980
rm -rf ./platforms
@@ -88,7 +89,7 @@ main() {
8889
fi
8990

9091
if [[ "$run_dep" == "true" ]]; then
91-
logger "info" "BRANCH: install node dependencies \n"
92+
logger "info" "BRANCH: uninstall node dependencies \n"
9293
npm uninstall mkpath node-version-compare plist xml2js
9394
fi
9495

@@ -109,9 +110,9 @@ main() {
109110
fi
110111

111112
logger "info" "BRANCH: add branch sdk plugin \n"
112-
cordova plugin add branch-cordova-sdk
113-
rm -rf ./plugins/branch-cordova-sdk/src
114-
cp -R ../src ./plugins/branch-cordova-sdk/src
113+
rsync -a ../ ../tmp --exclude testbed --exclude node_modules --exclude .git --exclude tests
114+
cordova plugin add ../tmp
115+
rm -rf ../tmp
115116

116117
if [[ "$run_ios" == "true" ]]; then
117118
logger "info" "BRANCH: run ios \n"

0 commit comments

Comments
 (0)