- Firebase App Distribution & Android: A Guide
- Goodbye Fabric, Hello Firebase 👋
- Prerequisites
- Setting up
- Firebase 🔥
- Optional: CI login
- Setting up Tester groups
- Fastlane 🚀 (optional)
- Uploading your build
- Using Firebase CLI
- Using Fastlane (optional)
- Distributing to testers
- Gotchas
- Closing
- Android firebase app distribution
- Key capabilities
- Example implementation path
- Next steps
- Что такое Firebase App Distribution?
- Что такое распространение приложений?
- Чтотакое Firebase App Distribution?
- Преимущества FirebaseAppDistribution
- Характеристики Firebase App Distribution
- ЦенынаFirebase App Distribution
- Вывод
- ЧАСТО ЗАДАВАЕМЫЕ ВОПРОСЫ
- Что такое Firebase App Distribution?
- Каковы преимущества Firebase App Distribution?
- Каковы основные характеристики Firebase App Distribution?
Firebase App Distribution & Android: A Guide
Goodbye Fabric, Hello Firebase 👋
For those of you using Fabric Crashlytics for crash reporting, or Fabric Beta for distributing builds to testers, Fabric will be deprecated on March 31, 2020. That means there is just around 1 quarter before we need to migrate our apps to Firebase. 🙀
Thankfully, the migration to Firebase App Distribution is fairly painless and, if everything goes to plan, should take less than an hour to complete. 🎉
Prerequisites
To start, you will need to have write access to a Firebase Project.
Next, while optional, I would recommend setting up Fastlane which is incredibly useful for automating app tasks. Installing Fastlane is beyond the scope of this blog post, but there are many good articles out there on how to do this.
Finally, I would also recommend having a CI system from which to deploy builds — this will mean that builds are always built inside the same environment, and ensure that the number of human errors caused when creating a build are reduced. This step is also outside the scope of this blog post, but I would recommend either Bitrise or CircleCI as good options for mobile applications.
Setting up
Now that you’ve reviewed the prerequisites, let’s get on to the meat of migrating to Firebase App Distribution! There are a few necessary tasks, which are explained below.
Firebase 🔥
First thing first: You will need to set up the Firebase CLI. As mentioned in the official documentation, the easiest way to do this is to install it through NPM.
If you are using NPM for something else in your app (for example, ReactNative), then you can simply add «firebase-tools»:» » to your dependencies block and install the dependency through your favorite method.
Next, you will need to login to the Firebase CLI to give the tool access to your Firebase project. To do this, you can simply run the following command from the command line:
The tool will prompt you to login to the Google account that has access to the Firebase project you wish to access — just follow the steps on-screen and it should set up correctly.
To test the setup, you can call the following command, which will list all available Firebase projects if set up correctly:
Optional: CI login
If you are planning on uploading builds from a CI server, then you will need to generate a refresh token for the CI server to use. This can simply be done by calling the following command:
Like the firebase login command, this will ask you to login to a Google account that has access to the Firebase project you wish to use; once you have finished the login, it will print out a refresh token. You should use this refresh token whenever calling Firebase commands from CI, so I recommend storing this in your CI setup as an environment secret. Note that anyone can access the Firebase project with this token, so be sure to keep it secret.
If you name the variable that holds the token FIREBASE_TOKEN , then the tool should automatically pick it up. 💪
Setting up Tester groups
Finally, to finish your Firebase setup, you will want to create a group of testers to whom your app is distributed. This can be done from the Firebase console, on the App Distribution page.
From here, you can create a new group by clicking the Add Group button and following the steps. Make sure you keep this group name somewhere as we will require it later on in the upload process.
Fastlane 🚀 (optional)
If you are using Fastlane in your app distribution pipeline, you’re in luck! There is a Fastlane plugin designed to work with the Firebase CLI that will do much of the heavy lifting for you. By calling the following command, you can add the Firebase app distribution plugin to your Fastlane setup:
Next, you need to set up an environment variable for our app ID. The easiest way I found to do this was to create an .env file within your Fastlane directory. If you have multiple environments (e.g. for debug or release), you can specify that in the naming of your .env file:
Then, when driving a Fastlane lane, you can supply the —env release flag to use the release environment.
Uploading your build
We’re finally on the home stretch! Time to upload some builds. 💪
There are a couple of ways you can do this — by either directly calling the Firebase CLI or using Fastlane.
Using Firebase CLI
If you are using the Firebase CLI, the command you want to call is:
There is one required flag ( —app ), and several optional flags that you can supply to make the upload easier:
—app
This is the Firebase project app id — this can be found in the settings section of your Firebase project.
—group
This is the group that you created in the Firebase setup step — by specifying this group, your uploaded APK will be automatically distributed to these testers.
—release-notes
As implied by the flag name, this is for the release notes for the distributed APK. You can also use the —release-notes-file flag to pass a file which includes the release notes instead.
After building your APK, by just calling this function and passing the required flags, the APK will be uploaded and automatically released to anyone in your tester group! 🎉
Using Fastlane (optional)
Uploading via Fastlane is similar to using the Firebase CLI, however there is a task provided by the plugin which makes it a lot easier. By creating a lane similar to the following, you can perform the same tasks as the Firebase CLI:
You can then run this by calling the following command:
Distributing to testers
Finally, it’s time to distribute your APK to your testers! To do this, generate an invitation link and provide it to your testers. Once they have signed up with the invitation link, any new builds for that corresponding group will be automatically distributed to them. ✨
Gotchas
Phew! Finally, you’ve uploaded your build and distributed it to your testers! Next, let’s go through some of the gotchas that I noticed while doing the migration.
This was a question I got fairly early on from our testers. Firebase App Distribution, like Fabric Beta, will only add a tester to builds that were uploaded after they registered. This means that after you register testers, you should either redistribute a build or, alternatively, you can manually add testers to previously distributed builds from the Firebase console.
While I believe (hope!) this is due to Firebase App Distribution still being in beta, occasionally uploads will fail with either a 404 Entity Not Found or a 500 Internal Server Error response. While this is a little frustrating to deal with, reattempting the upload will usually work successfully.
“Logging in on QA devices is difficult?!”
When creating the invitation link, there is an option to restrict the link to only email addresses of a certain domain. This is good in theory — however, for QA devices that may not be logged in with company accounts (to ensure they don’t have access to anything they shouldn’t), it makes the login process difficult. For this scenario, it’s better to create a separate group and corresponding link just for QA devices and provide that link to your testers.
Closing
Firebase App Distribution is fairly easy to set up, once you have all the prerequisites in place. The fact that it is integrated with Firebase means you can use interesting things like Big Query with your Crashlytics logs that you get back from debug/production builds, meaning that it should be easier to nail down the causes of those tricky bugs. And while the upload service is a little unstable at the moment, I (again, hope!) that this is just due to the product still being in beta.
Thanks for reading — I hope this helps smooth your transition to Firebase. If you’re looking for new opportunities, come contribute to what we’re doing at Mercari!
Источник
Android firebase app distribution
Firebase App Distribution makes distributing your apps to trusted testers painless. By getting your apps onto testers’ devices quickly, you can get feedback early and often. And if you use Crashlytics in your apps, you’ll automatically get stability metrics for all your builds, so you know when you’re ready to ship.
Ready to get started?
Learn how to distribute your iOS apps:
Learn how to distribute your Android apps:
Key capabilities
Cross-platform | Manage both your iOS and Android pre-release distributions from the same place. |
Fast distributions | Get early releases into your testers’ hands quickly, with fast onboarding, no SDK to install, and instant app delivery. |
Fits into your workflow | Distribute builds using the Firebase console, the Firebase Command Line Interface (CLI) tool, or Gradle (Android). Automate distribution by integrating the CLI into CI jobs. |
Tester management | Manage your testing teams by organizing them into groups. Easily add new testers with email invitations that walk them through the onboarding process. See the status of each tester for specific versions of your app: view who has accepted a testing invitation and downloaded the app. |
Works with Android App Bundles | Distribute releases to testers for your Android App Bundle in Google Play. App Distribution integrates with Google Play’s internal app sharing service to streamline your app testing and launching processes. |
Works with Crashlytics | When combined with Crashlytics, get insights into the stability of your test distributions. |
Example implementation path
Upload your latest pre-release build | First, upload your latest APK, AAB, or IPA to App Distribution using the Firebase console, Gradle, or the CLI tools. |
Invite testers | Then, add the testers you want to try your app. Testers will receive an email that walks them through the onboarding process. |
Get feedback | Get feedback from your testers, monitor stability data, and iterate on your app. |
Release new beta builds | Whenever you have a new build ready for testing, just upload it to App Distribution. Your testers will be notified that a new build is available to try out. |
Next steps
Learn how to distribute your iOS apps:
Learn how to distribute your Android apps:
Visit the Android App Bundle codelab to learn how to distribute app bundle releases in detail:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Источник
Что такое Firebase App Distribution?
В этой статье мы расскажем о службе Firebase App Distribution (служба Распространения Приложений), ее преимуществах, основных функциях и модели ценообразования.
Прежде чем начать говорить о преимуществах одного из самых впечатляющих и недавно выпущенных сервисов Firebase, важно понять смысл создания сервиса Firebase App Distribution.
Что ж, без всякого сомнения, каждый разработчик создает приложения с целью дальнейшего распространения. Помимо того, что существует множество второстепенных проектов, расположенных во множестве файлах и папках, мы знаем, что приложения требуют хорошей работы и управления.
В то время как процесс распространения проходит через разные этапы, разработчики не просто создают приложения и напрямую публикуют его. Вместо этого приложения проходят через тестирование множеством других пользователей, прежде чем начать распространять его для своей целевой аудитории.
Самые первые пользователи могут быть вашими коллегами-разработчиками из QA, из вашей команды, или это могут быть бета-пользователи из команды ваших клиентов для первичного тестирования, и этот процесс называется предрелизным распространением приложений.
Однако в этой статье мы узнаем больше о распространении приложений и о том, как полезна в этом служба Firebase App Distribution. Хотя время основное внимание в этой статье будет уделено Firebase App Distribution.
Итак, давайте начнем:
Что такое распространение приложений?
Распространение приложений-это процесс выпуска приложения для широкого круга пользователей, способствующий вовлечению и использованию приложений. Чаще всего разработчики приложений и маркетологи ищут различные службы распространения приложений в качестве эффективного варианта рекламы своих приложений, они бывают платными или органическими.
Рекламодателям проще распространять свои приложения тысячам людей за один раз через платформу распространения приложений. Существует множество доступных каналов распространения приложений, которые вы можете использовать для этой цели.
Однако Firebase App Distribution- это уникальное решение, которое может помочь вам распространять ваши приложения за пределами вашей команды QA и разработчиков. Давайте подробнее рассмотрим сервис распространения приложений Firebase, приведенный ниже, чтобы получить лучшее представление о том, что происходит в этом сервисе.
Чтотакое Firebase App Distribution?
Firebase не так давно добавила много полезного в свой арсенал, чтобы предложить лучший сервис своим потребителям. Каждый инструмент Firebase нацелен на то, чтобы помочь разработчикам создавать лучшие приложения, развиваться и совершенствоваться.
• Firebase App Distribution- это новое дополнение к Firebase.
• С помощью Firebase App Distribution вы можете распространять свои приложения среди определенной группы людей.
• Firebase App Distribution прост в использовании и настройке.
Он может помочь вам протестировать приложение на разных платформах, а это значит, что он может позволить вам загружать как iOS, так и Android APK в один и тот же сервис и распространять ваши приложения среди соответствующих пользователей.
Что еще более удивительно, нет никаких ограничений на количество пользователей, которые могут протестировать приложение. Этот сервис легко реализовать, если вы уже используете аналитику от Firebase. Более того, это упрощает сравнение и управление несколькими бета-версиями вашего приложения.
Преимущества FirebaseAppDistribution
Вот самые наиболее заметные преимущества Firebase App Distribution, которые вы должны знать:
1. Ценные идеи на этапе предрелиза
Функция распространение приложений может предложить вам панель мониторинга для просмотра информации о ваших предрелизных версиях приложений. Тестеры могут предоставить вам своевременную обратную связь, в то время как сервис Crashlytics может позволить вам получить реальную информацию о состоянии пользователя.
2. Гибкое и быстрое обслуживание
Используя Firebase App Distribution начать работу с распространением очень просто. Вам не нужно устанавливать SDK, заполнять длинные формы или делать что-либо еще, чтобы начать работать с этим. Все дело в том, чтобы просто подключить ваше приложение к Firebase и отправить сборки вашего приложения через CLI или консоль.
3. Прост в использовании для тестировщиков
Вы можете отправлять уведомления по электронной почте тестировщикам приложений с помощью простого пользовательского интерфейса, чтобы упростить процесс регистрации. Этот инструмент также облегчает и эффективно позволяет всем тестировщикам получить доступ к вашим приложениям и их версиям, которые они тестируют, через диспетчер приложений.
Характеристики Firebase App Distribution
Давайте рассмотрим ключевые функции распространения приложений Firebase, приведенные ниже:
- Распространение приложений Firebase позволяет вам управлять тестированием на Android и iOS для распространения вашего приложения перед выпуском.
- Появляется возможность быстро передавать свои релизы тестировщикам. Он предлагает быструю адаптацию без каких-либо сложностей с установкой SDK. Более того, Firebase App Distribution также предлагает быструю доставку.
- Вы можете распространять сборку приложения различными способами, включая Firebase CLI, консоль или Gradle. С его помощью вы также можете автоматизировать распространение своих приложений.
- Он может позволить вам управлять и организовывать ваши команды тестирования в группы. Вы можете добавить новых тестировщиков с помощью простого приглашения по электронной почте через процесс регистрации. Вы даже можете отслеживать состояние каждого тестера.
- Вы можете объединить этот инструмент с сервисом Crashlytics, чтобы получить полезную информацию о стабильности вашего дистрибутива.
ЦенынаFirebase App Distribution
Firebase App Distribution-это бесплатный в использовании инструмент, который позволяет вам с легкостью получить целостное представление о программе бета-тестирования ваших приложений. Вы можете распространять свои приложения среди конкретных пользователей и получать полезную обратную связь, прежде чем работать над выпуском новой версии, не тратя ни копейки.
Вывод
Firebase App Distribution может дать вам целостное представление о программе бета-тестирования вашего приложения на Android и iOS.
Кроме того, он может предложить вам ценную обратную связь перед выпуском вашего нового релиза. Он может позволить вам отправлять предварительные версии приложений с CI-серверами и консолями. Что еще более замечательно, так это то, что установка приложений также более удобна для тестировщиков.
ЧАСТО ЗАДАВАЕМЫЕ ВОПРОСЫ
Что такое Firebase App Distribution?
Firebase App Distribution позволяет легко и быстро распространять ваше приложение среди назначенных тестировщиков.
Каковы преимущества Firebase App Distribution?
– Ценные идеи на этапе предрелиза
– Гибкий и быстрый сервис
– Удобно в использовании тестерами
Каковы основные характеристики Firebase App Distribution?
– Работает с iOS и Android
– Проведение тестов в группах
– Интеграция с другими сервисами Firebase
Источник