Added Google Services

This commit is contained in:
PeratX 2018-03-25 00:23:02 +08:00
parent ef8588e548
commit 9177756969
6 changed files with 63 additions and 18 deletions

2
.gitignore vendored
View File

@ -41,5 +41,3 @@ captures/
# Keystore files
*.jks
app/google-services.json

View File

@ -50,15 +50,7 @@ dependencies {
implementation 'de.measite.minidns:minidns-core:0.2.4'
implementation 'com.google.code.gson:gson:2.8.2'
//Analytics
android.applicationVariants.all { v ->
if (v.buildType.name == "release") {
implementation 'com.google.firebase:firebase-core:12.0.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.1'
}
}
}
android.applicationVariants.all { v ->
if (v.buildType.name == "release"){
apply plugin: 'com.google.gms.google-services'
}
implementation 'com.google.firebase:firebase-core:12.0.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.1'
}
apply plugin: 'com.google.gms.google-services'

55
app/google-services.json Normal file
View File

@ -0,0 +1,55 @@
{
"project_info": {
"project_number": "720850593604",
"firebase_url": "https://daedalus-5a287.firebaseio.com",
"project_id": "daedalus-5a287",
"storage_bucket": "daedalus-5a287.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:720850593604:android:51675184b44f9aaf",
"android_client_info": {
"package_name": "org.itxtech.daedalus"
}
},
"oauth_client": [
{
"client_id": "720850593604-j2t0ev8gci03fomja2is6eo2d3rrq3t0.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "org.itxtech.daedalus",
"certificate_hash": "1beaad0246ccbfbe5176736d1d2c9ee6ce85fd5f"
}
},
{
"client_id": "720850593604-f07km08hrt0ocopsqrbq408j5qnl7nb5.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCA_AW1WmTg2f1Juwd5-D5VdVyv7B_4IPE"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "720850593604-f07km08hrt0ocopsqrbq408j5qnl7nb5.apps.googleusercontent.com",
"client_type": 3
}
]
},
"ads_service": {
"status": 2
}
}
}
],
"configuration_version": "1"
}

View File

@ -15,8 +15,8 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar_config"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:layout_height="?android:attr/actionBarSize"
android:background="@color/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay">
</android.support.v7.widget.Toolbar>

View File

@ -15,8 +15,8 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:layout_height="?android:attr/actionBarSize"
android:background="@color/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay"/>
</android.support.design.widget.AppBarLayout>

View File

@ -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.5.1-bin.zip
distributionUrl=https://services.gradle.org/distributions/gradle-4.6-bin.zip