Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit 167aa24

Browse files
authored
Merge branch 'master' into update/flash_bar_version
2 parents 5e8eecd + 1117cca commit 167aa24

File tree

3 files changed

+80
-2
lines changed

3 files changed

+80
-2
lines changed

app/build.gradle

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apply plugin: 'com.android.application'
22

3+
apply plugin: 'io.fabric'
4+
35
apply plugin: 'kotlin-android'
46

57
apply plugin: 'kotlin-android-extensions'
@@ -10,7 +12,7 @@ apply plugin: 'kotlin-kapt'
1012
android {
1113
compileSdkVersion rootProject.ext.androidCompileSdkVersion
1214
defaultConfig {
13-
applicationId "com.hossainkhan.android.demo"
15+
applicationId "com.hossainkhan.android.constraintlayout"
1416
minSdkVersion rootProject.ext.androidMinSdkVersion
1517
targetSdkVersion rootProject.ext.androidTargetSdkVersion
1618
versionCode 1
@@ -67,6 +69,14 @@ dependencies {
6769

6870
implementation "com.jakewharton.timber:timber:$rootProject.timberLibraryVersion"
6971

72+
// Crashlytics
73+
// https://firebase.google.com/docs/crashlytics/get-started
74+
implementation "com.crashlytics.sdk.android:crashlytics:$rootProject.crashlyticsVersion"
75+
76+
// Firebase Core
77+
// https://firebase.google.com/docs/android/setup
78+
implementation "com.google.firebase:firebase-core:$rootProject.firebaseVersion"
79+
7080
// Dagger
7181
// https://google.github.io/dagger/
7282
implementation "com.google.dagger:dagger:$rootProject.daggerVersion"
@@ -93,3 +103,7 @@ dependencies {
93103
})
94104
androidTestImplementation 'com.android.support.test:runner:1.0.2'
95105
}
106+
107+
// ADD THIS AT THE BOTTOM
108+
// https://firebase.google.com/docs/android/setup
109+
apply plugin: 'com.google.gms.google-services'

app/google-services.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"_____DEVELOPER_NOTE_____": "YOU MUST GENERATE YOUR OWN FIREBASE CONFIG AND DROP IT HERE.",
3+
"________________________": "____________________________________________________________",
4+
"project_info": {
5+
"project_number": "123",
6+
"firebase_url": "https://GENERATE-YOUR-CONFIG.firebaseio.com",
7+
"project_id": "GENERATE-YOUR-CONFIG",
8+
"storage_bucket": "GENERATE-YOUR-CONFIG.appspot.com"
9+
},
10+
"client": [
11+
{
12+
"client_info": {
13+
"mobilesdk_app_id": "1:123:android:123",
14+
"android_client_info": {
15+
"package_name": "com.hossainkhan.android.constraintlayout"
16+
}
17+
},
18+
"oauth_client": [
19+
{
20+
"client_id": "GENERATE-YOUR-CONFIG.apps.googleusercontent.com",
21+
"client_type": 3
22+
}
23+
],
24+
"api_key": [
25+
{
26+
"current_key": "GENERATE-YOUR-CONFIG"
27+
}
28+
],
29+
"services": {
30+
"analytics_service": {
31+
"status": 1
32+
},
33+
"appinvite_service": {
34+
"status": 1,
35+
"other_platform_oauth_client": []
36+
},
37+
"ads_service": {
38+
"status": 2
39+
}
40+
}
41+
}
42+
],
43+
"configuration_version": "1"
44+
}

build.gradle

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,30 @@ buildscript {
2626
*/
2727
ext.androidGradleToolsVersion = '3.1.2'
2828

29+
/*
30+
* Fabric/Firebase gradle tools version.
31+
* https://firebase.google.com/docs/crashlytics/
32+
*/
33+
ext.fabricGradleToolsVersion = '1.25.1'
34+
35+
/*
36+
* Google play services plugin
37+
* https://firebase.google.com/docs/android/setup
38+
*/
39+
ext.googlePlayServicesToolsVersion = '3.3.1'
40+
2941
repositories {
3042
google()
3143
jcenter()
44+
maven {
45+
url 'https://maven.fabric.io/public'
46+
}
3247
}
3348
dependencies {
3449
classpath "com.android.tools.build:gradle:$androidGradleToolsVersion"
3550
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
51+
classpath "io.fabric.tools:gradle:$fabricGradleToolsVersion"
52+
classpath "com.google.gms:google-services:$googlePlayServicesToolsVersion"
3653

3754
// NOTE: Do not place your application dependencies here; they belong
3855
// in the individual module build.gradle files
@@ -72,6 +89,10 @@ ext {
7289
constraintLayoutVersion = '1.1.0'
7390
// https://developer.android.com/topic/libraries/architecture/adding-components
7491
archComponentVersion = '1.1.1'
92+
// https://firebase.google.com/docs/android/setup
93+
firebaseVersion = '15.0.2'
94+
// https://firebase.google.com/docs/crashlytics/get-started
95+
crashlyticsVersion = '2.9.2'
7596

7697
// Unit test dependencies
7798
// --------------------------------------------------
@@ -88,7 +109,6 @@ ext {
88109
flashBarVersion = '1.0.2' // https://github.com/aritraroy/Flashbar/releases
89110
}
90111

91-
92112
//
93113
// Utility methods used in the build
94114
//

0 commit comments

Comments
 (0)