-
Notifications
You must be signed in to change notification settings - Fork 0
App Publish
andreiradchenko edited this page Apr 24, 2024
·
1 revision
Publish Expo React Native App on Google Play Store
- You should create app in your android developer console as describe in video above.
- Create .aab release file as describe in CLI page (eas build usage)
eas build -p android --local --profile production
- Upload .aab file to the developer console
You can create .apk file for testing on local phone or emulator. Adjust profile in eas.json
eas.json
{
"cli": {
"version": ">= 7.1.2",
"appVersionSource": "local"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"env": {
"FIREBASE_API_KEY": "AIzaSyAGFn8i7iCiS1i-csHsLtpI1wloSrSYO4M",
"FIREBASE_AUTH_DOMAIN": "scenery-53dd5.firebaseapp.com",
"FIREBASE_PROJECT_ID": "scenery-53dd5",
"FIREBASE_STORAGE_BUCKET": "scenery-53dd5.appspot.com",
"FIREBASE_MESSAGING_SENDER_ID": "79662982640",
"FIREBASE_APP_ID": "1:79662982640:web:98dfe37ad87fc22ecc6935"
}
},
"preview": {
"autoIncrement": true,
"developmentClient": false,
"distribution": "internal",
"android": {
"buildType": "apk",
"gradleCommand": ":app:assembleRelease"
},
"env": {
"FIREBASE_API_KEY": "AIzaSyAGFn8i7iCiS1i-csHsLtpI1wloSrSYO4M",
"FIREBASE_AUTH_DOMAIN": "scenery-53dd5.firebaseapp.com",
"FIREBASE_PROJECT_ID": "scenery-53dd5",
"FIREBASE_STORAGE_BUCKET": "scenery-53dd5.appspot.com",
"FIREBASE_MESSAGING_SENDER_ID": "79662982640",
"FIREBASE_APP_ID": "1:79662982640:web:98dfe37ad87fc22ecc6935"
}
},
"production": {
"autoIncrement": true,
"developmentClient": false,
"env": {
"FIREBASE_API_KEY": "AIzaSyAGFn8i7iCiS1i-csHsLtpI1wloSrSYO4M",
"FIREBASE_AUTH_DOMAIN": "scenery-53dd5.firebaseapp.com",
"FIREBASE_PROJECT_ID": "scenery-53dd5",
"FIREBASE_STORAGE_BUCKET": "scenery-53dd5.appspot.com",
"FIREBASE_MESSAGING_SENDER_ID": "79662982640",
"FIREBASE_APP_ID": "1:79662982640:web:98dfe37ad87fc22ecc6935"
}
}
},
"submit": {
"production": {}
}
}
Then run:
eas build -p android --local --profile preview
To instal .apk on emulator just drug file onto emulator screen.