2020-01-20 23:53:22 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
2022-10-04 03:12:39 +00:00
|
|
|
ext {
|
2023-01-19 14:24:42 +00:00
|
|
|
useCrashlytics = false
|
2023-02-08 12:39:47 +00:00
|
|
|
kotlin_version = '1.7.20'
|
2023-02-07 21:07:33 +00:00
|
|
|
hilt_version = '2.44.2'
|
|
|
|
protobuf_version = '3.21.12'
|
2022-10-04 03:12:39 +00:00
|
|
|
}
|
2020-04-05 19:56:57 +00:00
|
|
|
|
2020-01-20 23:53:22 +00:00
|
|
|
repositories {
|
|
|
|
google()
|
2020-01-23 02:32:21 +00:00
|
|
|
mavenCentral()
|
2020-01-20 23:53:22 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2023-03-03 00:26:50 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:7.4.2'
|
2020-01-20 23:53:22 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2020-04-20 00:25:20 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
|
|
|
|
|
2020-01-20 23:53:22 +00:00
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
2020-01-22 17:28:59 +00:00
|
|
|
|
2022-09-05 03:14:08 +00:00
|
|
|
// Firebase Crashlytics
|
2023-01-19 14:24:42 +00:00
|
|
|
if (project.findProperty("useCrashlytics") == true) {
|
|
|
|
println("useCrashlytics classpath $useCrashlytics")
|
2023-02-13 21:30:10 +00:00
|
|
|
classpath 'com.google.gms:google-services:4.3.15'
|
|
|
|
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
|
2023-01-19 14:24:42 +00:00
|
|
|
}
|
2020-01-23 02:32:21 +00:00
|
|
|
|
|
|
|
// protobuf plugin - docs here https://github.com/google/protobuf-gradle-plugin
|
2023-02-07 21:07:33 +00:00
|
|
|
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.19'
|
2020-07-20 19:08:46 +00:00
|
|
|
|
2021-03-19 09:42:26 +00:00
|
|
|
// for unit testing https://github.com/bjoernQ/unmock-plugin
|
2021-11-28 19:42:51 +00:00
|
|
|
classpath 'com.github.bjoernq:unmockplugin:0.7.9'
|
2022-02-08 21:50:21 +00:00
|
|
|
|
|
|
|
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
|
2020-01-20 23:53:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-06 02:11:53 +00:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
// jcenter()
|
|
|
|
maven { url 'https://jitpack.io' }
|
|
|
|
//maven { url "https://plugins.gradle.org/m2/" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-20 23:53:22 +00:00
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|