forked from bithyve/bitcointribe-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·29 lines (23 loc) · 1.81 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# error resolvers @rn-nodeify
cp mods/source-map-support/source-map-support.js node_modules/source-map-support/source-map-support.js
cp mods/bunyan/bunyan.js node_modules/bunyan/lib/bunyan.js
# cp mods/react-native-mail/RNMailModule.java node_modules/react-native-mail/android/src/main/java/com/chirag/RNMail/RNMailModule.java
cp mods/react-native-safe-area-view/index.js node_modules/react-native-safe-area-view/index.js
# enabling node core modules
rn-nodeify --install buffer,events,process,stream,util,inherits,fs,path,assert,crypto --hack --yarn
echo "patch cocoapods"
cp ./rnPatchFiles/RNLocalize.podspec ./node_modules/react-native-localize/RNLocalize.podspec
cp ./rnPatchFiles/react-native-netinfo.podspec ./node_modules/@react-native-community/netinfo/react-native-netinfo.podspec
rm -rf ./node_modules/react-native-tcp/ios/CocoaAsyncSocket/
cp ./rnPatchFiles/TcpSockets.podspec ./node_modules/react-native-tcp/TcpSockets.podspec
# ios dependency installation
cd ios && pod deintegrate && rm -f Podfile.lock && pod install
# android SDK location configuration
cd ../android && touch local.properties && echo "sdk.dir = /Users/$(whoami)/Library/Android/sdk" >local.properties
# Deleting UIWebView related files from node_modules. Which causes IPA rejection.
# echo "Deleting UIWebView related files from node_modules"
# cd ../
# test -f node_modules/react-native/React/Views/RCTWebView.h && rm -f node_modules/react-native/React/Views/RCTWebView.h
# test -f node_modules/react-native/React/Views/RCTWebView.m && rm -f node_modules/react-native/React/Views/RCTWebView.m
# test -f node_modules/react-native/React/Views/RCTWebViewManager.h && rm -f node_modules/react-native/React/Views/RCTWebViewManager.h
# test -f node_modules/react-native/React/Views/RCTWebViewManager.m && rm -f node_modules/react-native/React/Views/RCTWebViewManager.m