-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
37 lines (33 loc) · 1.18 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
/** 버전 이름 여기에다가 쓰세요오오오오오오오오옹오! */
ext.version_name = '1.2.0'
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10'
classpath 'com.google.gms:google-services:4.3.10'
classpath "io.insert-koin:koin-gradle-plugin:3.1.5"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
// These should be applied to all modules in this project.
project.ext.set("versionCode", getRevisionCount())
project.ext.set("versionName", version_name)
}
task clean(type: Delete) {
delete rootProject.buildDir
}
/**
* We will use the git revision count as a version code.
* @return the git revision count, integer.
*/
static def getRevisionCount() {
return Integer.parseInt('git rev-list --count HEAD'.execute().text.trim())
}