Created
August 9, 2018 03:51
-
-
Save gitspilo/21216cd5df09e5e9e102f91fa2546296 to your computer and use it in GitHub Desktop.
generate apk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make a mobail config file in project | |
meteor add-platform android | |
export ANDROID_HOME="/home/piyush/Android/Sdk" | |
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools | |
meteor build ~/Home/AndroidAPP --server=192.168.0.111:3000 | |
keytool -list -keystore /Users/***/Documents/keystore/***.jks | |
keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore /Users/***/Documents/keystore/***.jks | openssl sha1 -binary | openssl base64 | |
//*********************React native start **************************** | |
react-native init AwesomeProject | |
cd AwesomeProject | |
react-native start | |
react-native run-android | |
//After any changes in android folder | |
cd android | |
./gradlew clean | |
//*********build unsigned apk in react native start ************** | |
1.react-native bundle --assets-dest ./android/app/src/main/res/ --entry-file ./index.android.js --bundle-output ./android/app/src/main/assets/index.android.bundle --platform android --dev false | |
2.then build apk in android studio. | |
//*********build unsigned apk in react native end***************** | |
//********************Resolve strict mode error ******************* | |
open node_modules\react-native\Libraries\Core\InitializeCore.js line 112 | |
change function handleError(e, isFatal) to var handleError = function(e, isFatal) | |
then do npm start -- --reset-cache | |
//***************************************************************** | |
//******************ENOSPEC resulution start*********************** | |
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
//****************************************************************** | |
export ROOT_URL=http://192.168.0.113:3000 | |
export MONGO_URL=mongodb://192.168.0.109:27017/dabbavalaa | |
export MONGO_URL=mongodb://192.168.0.105:27017/Big_suplier | |
export MONGO_URL=mongodb://localhost:27017/BigSupplier | |
//************************git commit commands start ******************* | |
1.git status | |
2.git add ./* | |
3.git commit -m 'Sign in Page,ExoticAdded popup' | |
4.git push origin dev | |
//*********************** clear cache commands ************************ | |
free -m | |
echo 2 >/proc/sys/vm/drop_caches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment