Android 設定多 Firebase 專案

你曾是否想過在 Android 專案中建立多種環境? 當我建立第一個 Firebase 專案時,我就想如何區分 Debug 和 Release 環境.這篇文章要跟各位分享,如何設定不同 Variants 來串接多個 Firebase 專案.

開始吧!

步驟 1: 為你的 variants 取名

第一步就是先取名,這個名字後面會一直用到.我取了 `development, release` 來當作 Variants 的名字.

步驟 2: 為各個 variants 建立 keystores

--

--

--

Shares Android development and Kotlin programming.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hank Li

Hank Li

Shares Android development and Kotlin programming.

More from Medium

Building a Simple calculator App in android studio.

Android Stack Weekly — Issue #8

Exploring Android 13: Per-App Language Preferences