Skip to content

Commit 1a7c85a

Browse files
committed
automate android publishing
1 parent c343957 commit 1a7c85a

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ yarn-error.*
3737
/android
3838
*.ipa
3939
/.vscode
40+
41+
# credentials
42+
google-service-account.json

eas.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
}
1919
},
2020
"submit": {
21-
"production": {}
21+
"production": {
22+
"android": {
23+
"serviceAccountKeyPath": "./google-service-account.json",
24+
"track": "production"
25+
}
26+
}
2227
}
2328
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"deploy": "gh-pages -d dist",
1212
"lint": "expo lint",
1313
"android": "expo run:android",
14-
"ios": "expo run:ios"
14+
"ios": "expo run:ios",
15+
"build:android": "bunx eas-cli build --platform android --profile production",
16+
"submit:android": "bunx eas-cli submit --platform android --profile production",
17+
"publish:android": "bun run build:android && bun run submit:android"
1518
},
1619
"dependencies": {
1720
"@expo/vector-icons": "^14.0.4",

0 commit comments

Comments
 (0)