-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (42 loc) · 1.54 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.2'
classpath 'com.google.gms:google-services:4.4.0'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.7.7"
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.51'
}
}
plugins {
id 'com.google.dagger.hilt.android' version '2.51' apply false
id "org.jetbrains.kotlin.android" version "2.0.0" apply false
}
def localProperties = new Properties()
localProperties.load(new FileInputStream(rootProject.file("local.properties")))
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url 'https://raw.github.com/saki4510t/libcommon/master/repository/' }
// maven {
// url = "https://maven.pkg.github.com/phenoapps/phenolib"
// credentials {
// username = getLocalProp("GITHUB_USERNAME")
// password = getLocalProp("GITHUB_TOKEN")
// }
// }
}
}
static def getLocalProp(key) {
def Properties props = new Properties()
props.load(new FileInputStream(new File('local.properties')))
return props[key]
}
task clean(type: Delete) { delete rootProject.buildDir }