forked from Plant-for-the-Planet-org/treecounter-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean.sh
executable file
·49 lines (44 loc) · 992 Bytes
/
clean.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
echo 'removing npm, metro and react cache'
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/metro-*
watchman watch-del-all
npm cache verify
echo 'removing Xcode derived data'
rm -rf ~/Library/Developer/Xcode/DerivedData
echo 'removing iOS pods'
cd ios
pod deintegrate
pod cache clean --all
cd ..
rm -rf ios/Pods
rm -rf ios/Podfile.lock
rm -rf ios/build
echo 'removing node modules'
rm -rf node_modules
rm -rf package-lock.json
# DO THIS IF YOU REALLY NEED
# echo 'cocoapods install'
# gem install cocoapods
# DO THIS IF YOU REALLY NEED
# echo 'brew'
# brew update && brew upgrade
echo 'installing node modules'
# watch out 13.3.0 of node does not work, use 12.13.1 LTS!
npm i
echo 'installing pods'
cd ios
pod update
pod install
cd ..
echo 'cleaning Android build'
cd android
./gradlew cleanBuildCache
cd ..
# for Android the minSDK level of the Manifest of react-native-i18n has to be removed
echo 'now run: react-native run-android'
echo 'now run: react-native run-ios'