forked from divkit/divkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiv-common.gradle
57 lines (46 loc) · 1.39 KB
/
div-common.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
51
52
53
54
55
56
57
apply plugin: "kotlin-android"
apply plugin: "kotlin-kapt"
apply plugin: "kotlin-allopen"
android {
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdkVersion rootProject.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionName divkitVersion.versionName
versionCode divkitVersion.versionCode
vectorDrawables.useSupportLibrary = true
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled false
consumerProguardFiles 'proguard-rules.pro'
}
}
}
task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
archiveClassifier = "sources"
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
}
def tanker(String action, String keySet) {
rootProject.exec {
commandLine rootProject.file('buildSrc/src/scripts/tanker/tanker.py').absolutePath
args '--action', action, '--res-path', project.file('src/main/res/'), '--keyset', keySet
}.assertNormalExitValue()
}
ext {
tanker = this.&tanker
}
allOpen {
annotation("com.yandex.div.core.annotations.Mockable")
}