Firebase App Distribution - tsutsumikeiichi/test-i-wiki GitHub Wiki
็พๅจใฏ fastlane ็ต็ฑใง Firebase App Distribution ใๅฉ็จใใฆใใใ
้
ๅธ็จใญใผใซใไปไธใใใตใผใในใขใซใฆใณใใไฝๆใ้ต็บ่กใ่กใฃใใใใฎ้ตใไฝฟใฃใฆ่ช่จผใ่กใฃใฆใใใ
https://firebase.google.com/docs/app-distribution/ios/distribute-fastlane#service-acc-fastlane
https://console.cloud.google.com/iam-admin/serviceaccounts?authuser=0&project=otonari-dev-3b0ef
้ ๅธใซๆไฝ้ๅฟ ่ฆใชใญใผใซ
- firebaseappdistro.releases.list
- firebaseappdistro.releases.update
ใฎใฟๆใคใซในใฟใ ใญใผใซใไฝใฃใฆใใใไปไธใใใใ[email protected]
ใขใซใฆใณใใงใชใใจไฝๆใ่จญๅฎใใงใใชใใฃใใฎใงๆณจๆใ
Firebase CLI ใคใณในใใผใซ
Firebase App Distribution | Firebase
https://firebase.google.com/docs/app-distribution?hl=ja
Firebase CLI ใชใใกใฌใณใน | Firebase
https://firebase.google.com/docs/cli?hl=ja
Firebase CLI ใไฝฟ็จใใฆใในใฟใผใซ iOS ใขใใชใ้
ๅธใใ | Firebase
https://firebase.google.com/docs/app-distribution/ios/distribute-cli?hl=ja
fastlane ใไฝฟ็จใใฆ iOS ใขใใชใใในใฟใผใซ้
ๅธใใ | Firebase
https://firebase.google.com/docs/app-distribution/ios/distribute-fastlane?hl=ja
CI ใทในใใ ใง CLI ใไฝฟ็จใใ | Firebase
https://firebase.google.com/docs/cli?hl=ja#cli-ci-systems
App Distribution ใในใฟใผใ็ฎก็ใใ | Firebase
https://firebase.google.com/docs/app-distribution/manage-testers?hl=ja
- Firebase CLI ใใคใณในใใผใซใใ
$ firebase -V
7.13.0
$ firebase login
$ firebase projects:list
โ Preparing the list of your Firebase projects
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ
โ Project Display Name โ Project ID โ Resource Location ID โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโค
โ otonari โ otonari-production โ us-central โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโค
โ otonari-dev โ otonari-dev-3b0ef โ us-central โ
โโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโ
- Fastfile ใฎใฌใผใณใซ
firebase_app_distribution
ใใญใใฏใ่ฟฝๅ
platform :ios do
desc "My awesome app"
lane :distribute do
build_ios_app(...) # build_ios_app is a built-in fastlane action.
firebase_app_distribution(
app: "1:123456789:ios:abcd1234",
testers: "[email protected], [email protected]",
release_notes: "Lots of amazing new features to test out!",
firebase_cli_path: "/absolute/path/to/firebase/cli/binary"
)
end
end
Firebase CLI ใขใใใใผใ
$ bundle exec fastlane update_plugins
CircleCI ใง Firebase CLI ใไฝฟใ
https://circleci.com/docs/2.0/deploying-ios/#deploying-to-firebase
็ฐๅขๅคๆฐ FIREBASE_TOKEN
ใ่จญๅฎใใใ
App Distribution could not generate credentials from the refresh token specified.
ใจใฉใผใ็บ็ใใๅ ดๅ
ใใผใฏใณใฎๆดๆฐใ่กใ
$ bundle exec fastlane run firebase_app_distribution_login
[โ] ๐
+-------------------------------------------+---------+-----------------------------------------------------------+
| Used plugins |
+-------------------------------------------+---------+-----------------------------------------------------------+
| Plugin | Version | Action |
+-------------------------------------------+---------+-----------------------------------------------------------+
| fastlane-plugin-firebase_app_distribution | 0.2.5 | firebase_app_distribution_login firebase_app_distribution |
+-------------------------------------------+---------+-----------------------------------------------------------+
[10:35:48]: ---------------------------------------------
[10:35:48]: --- Step: firebase_app_distribution_login ---
[10:35:48]: ---------------------------------------------
[10:35:48]: Open the following address in your browser and sign in with your Google account:
[10:35:48]: *******************
[10:35:48]: Enter the resulting code here: *******************
[10:37:12]:
[10:37:12]: Set the refresh token as the FIREBASE_TOKEN environment variable
[10:37:12]: Refresh Token: *******************
[10:37:12]: Result: true