-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle.kts
66 lines (56 loc) · 1.7 KB
/
build.gradle.kts
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
58
59
60
61
62
63
64
65
66
import com.ibotta.gradle.aop.AopWeaveExtension
plugins {
id("com.android.application")
kotlin("android")
id("kotlin-android-extensions")
id(Plugin.PLUGIN_ID) version Plugin.VERSION apply false
}
apply(plugin = Plugin.PLUGIN_ID)
android {
compileSdkVersion(Sdk.COMPILE_SDK_VERSION)
defaultConfig {
minSdkVersion(Sdk.MIN_SDK_VERSION)
targetSdkVersion(Sdk.TARGET_SDK_VERSION)
applicationId = MixedApp.APP_ID
versionCode = SampleAppCommon.APP_VERSION_CODE
versionName = SampleAppCommon.APP_VERSION_NAME
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
lint {
warningsAsErrors = false
abortOnError = true
}
sourceSets.getByName("main") {
java.srcDir("src/main/java")
java.srcDir("src/main/kotlin")
resources.srcDir("src/main/res")
}
sourceSets.getByName("test") {
java.srcDir("src/test/java")
java.srcDir("src/test/kotlin")
}
}
dependencies {
implementation(kotlin("stdlib-jdk7"))
implementation(Dependencies.ASPECT_J_RUNTIME)
implementation(SupportLibs.ANDROIDX_APPCOMPAT)
testImplementation(platform(Dependencies.JUNIT_BOM))
testImplementation(Dependencies.JUNIT_JUPITER)
testImplementation(Dependencies.MOCKITO)
testImplementation(Dependencies.MOCKK)
}
configure<AopWeaveExtension> {
filter = SampleAppCommon.FILTER
}