演示
特徵
部署
設定
備份
執照
Web應用程序的公共版本託管在public-app-store.web.app上。
最新的Android APK也可以在此處下載。
公共或私人訪問商店
網絡 | 安卓 |
---|---|
![]() | ![]() |
用戶角色(匿名或經過驗證的用戶)
帳戶限制(只有管理員才寫入訪問)
管理多個應用程序
網絡 | 安卓 |
---|---|
![]() | ![]() |
![]() | |
![]() |
新應用程序的通知
使用HTML支持的描述
經常動作的快捷方式
管理多個版本
網絡 | 安卓 |
---|---|
![]() | ![]() |
![]() |
新版本的通知
上傳APK或外部鏈接
帶有HTML支持的ChangElog
APK文件被緩存
要求
Android Studio
firebase帳戶
Firebase CLI
在app/build.gradle中,用自己獨特的ID替換applicationId
創建一個firebase項目https://console.firebase.google.com
選擇Add Firebase to your Android app
並填寫表格
下載配置文件google-services.json
並將其移至您的Android應用模塊根目錄
在firebase身份驗證頁面中,啟用登錄方法,然後創建第一個管理用戶
在Firebase項目設置中,選擇ADD APP
並將Add Firebase to your web app
使用Firebase Hosting和CLI時,默認啟用Web SDK自動配置
驗證每個模塊的配置
存儲 - 私有化。rules(圖像)
存儲 - 私有化。rules(apks)
database-private.rules.json(讀取訪問)
Android:Store.kt
網絡:index.js
firebase數據庫:使用您自己的域
├──admins │ └──{$uid} ├──store │ ├──applications │ │ └──{$application_id} │ │ ├──name │ │ ├──packageName │ │ ├──description │ │ ├──image │ │ ├──link_{#} │ │ │ ├──name │ │ │ └──uri │ │ └──silent │ └──versions │ └──{$application_id} │ └──{$version_id} │ ├──name │ ├──description │ ├──timestamp │ ├──apkRef │ ├──apkGeneration │ ├──apkUrl │ ├──silent │ ├──downloads │ └──installs └──analytics ├──downloads │ └──{$application_id} │ └──{$version_id} │ └──{$uid} └──installs └──{$application_id} └──{$version_id} └──{$uid}
火箱存儲:使用您自己的域
└──applications └──{$applicationUid} │──image └──versions └──{$versionUid}.apk
初始化firebase模塊
#移動到firebase root directorycd firebase#初始化firebase(login popup)firebase登錄#設置默認firebase projectfirebase使用-ADD
添加您的第一個管理用戶(在Firebase身份驗證頁面中找到的uid
)
存儲 - 私有化。rules(圖像)
存儲 - 私有化。rules(apks)
firebase數據庫,添加uid
firebase數據庫:update /admins -data'{“ <Admin-uid>”:“ <ADMIN-EMAIL>”}'#在Windows上,創建一個JSON文件(未支持的JSON INPUT)FIREBASE數據庫:UPDATE /AMPINS UPDATE 。 JSON
Firebase存儲,添加uid
在您的計算機上測試Web應用http:// localhost:5000
火基服務
部署所有Firebase模塊(數據庫,存儲,託管,功能)
firebase部署
從Android Studio同步,構建和安裝Android模塊
可以在Web和Android應用中調整很多設置
存儲圖標和標題
Firebase auth提供商
最大APK大小
管理員寫入訪問
商店可見度(私人或公共)
…
firebase數據庫(鏈接1,鏈接2)
//備份 firebase數據庫:get / -pretty> database.json // 恢復 firebase數據庫:set / database.json
火箱存儲(鏈接)
//備份 gsutil -m cp -r gs:// <bucket_name> .// Restore GSUTIL -M CP -R。 gs:// <bucket_name>
Copyright 2018 Simon Marquis Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.