-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme
47 lines (39 loc) · 2.22 KB
/
readme
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
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"
export ANDROID_HOME="/Users/YOUR_USERNAME/Library/Android/sdk"
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
******************************************************
* Running the following without npm install command: *
******************************************************
1. go to the project root, run `gradle wrapper`
2. cd android, run `gradle wrapper`
3. run `./gradlew clean`
4. cd ..
5. run `react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res`
6. npm run android or npm run ios
7. you can also run it with android studio
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
************************************************
* With npm install command in the first place: *
************************************************
1. npm install, if it shows error then run `rm -rf package-lock.json node_modules/` then run npm install again
2. go to the project root, run `gradle wrapper`
3. run `cd android`
4. run `gradle wrapper`
5. run `./gradlew clean`
6. run `cd ..`
7. run `react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res`
8. cd android && ./gradlew clean
9. you can also run it with android studio
************************************************
* RELEASE COMMAND: *
************************************************
1. npm install, if it shows error then run `rm -rf package-lock.json node_modules/` then run npm install again
2. go to the project root, run `gradle wrapper`
3. run `cd android`
4. run `gradle wrapper`
5. run `./gradlew clean`
6. run `cd ..`
7. run `react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res`
8. rm -rf android/app/src/main/res/drawable-* && rm -rf android/app/src/main/res/raw/*
9. cd android && ./gradlew clean
10. ./gradlew assembleRelease or ./gradlew bundleRelease