mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-04 07:18:11 +08:00
Add: 增加firebase 的相关配置
This commit is contained in:
@ -58,4 +58,18 @@ dependencies {
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
||||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
||||
//firebase
|
||||
implementation 'com.google.firebase:firebase-core:16.0.8'
|
||||
//Crashlytics SDK
|
||||
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
|
||||
// 性能监控
|
||||
///implementation 'com.google.firebase:firebase-perf:16.2.3'
|
||||
// 登陆
|
||||
////implementation 'com.google.firebase:firebase-auth:16.0.3'
|
||||
}
|
||||
//firebase
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
//Crashlytics SDK
|
||||
apply plugin: 'io.fabric'
|
||||
// 性能监控
|
||||
///apply plugin: 'com.google.firebase.firebase-perf'
|
42
android/app/google-services.json
Normal file
42
android/app/google-services.json
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "958876143057",
|
||||
"firebase_url": "https://flutter-go-421b4.firebaseio.com",
|
||||
"project_id": "flutter-go-421b4",
|
||||
"storage_bucket": "flutter-go-421b4.appspot.com"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:958876143057:android:00e8533fa0274183",
|
||||
"android_client_info": {
|
||||
"package_name": "com.ali.fluttergo"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "958876143057-maa2o9gk35r67d3dbn1gjilpg4ukac71.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyAfYEa2NfytIA-Rdc_K4F-iufgXQ6Lz5ZI"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 1,
|
||||
"other_platform_oauth_client": []
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
@ -2,10 +2,20 @@ buildscript {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
//Crashlytics SDK
|
||||
maven {
|
||||
url 'https://maven.fabric.io/public'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.2.0'
|
||||
//firebase
|
||||
classpath 'com.google.gms:google-services:4.2.0'
|
||||
//Crashlytics SDK
|
||||
classpath 'io.fabric.tools:gradle:1.26.1'
|
||||
// 性能监控
|
||||
///classpath 'com.google.firebase:firebase-plugins:1.1.5'
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,6 +23,10 @@ allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
//Crashlytics SDK
|
||||
maven {
|
||||
url 'https://maven.google.com/'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
|
||||
|
Reference in New Issue
Block a user