-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.gradle
56 lines (49 loc) · 1.85 KB
/
module.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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
compileSdkVersion rootProject.ext.compile_sdk_version
buildToolsVersion rootProject.ext.build_tools_version
defaultConfig {
minSdkVersion rootProject.ext.min_sdk_version
targetSdkVersion rootProject.ext.target_sdk_version
versionCode rootProject.ext.project_version_code
versionName rootProject.ext.project_version_name
consumerProguardFiles "proguard-rules.pro"
}
buildTypes {
debug {
minifyEnabled rootProject.ext.minify_enabled
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled rootProject.ext.minify_enabled
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11
}
libraryVariants.all { variant ->
def rootProjectName = rootProject.name
def fullProjectName = project.name
def parentProject = project.parent
while (project.rootProject != parentProject) {
fullProjectName = "${parentProject.name}-${fullProjectName}"
parentProject = parentProject.parent
}
def versionName = project.version
def buildType = variant.buildType.name
variant.outputs.all { output ->
def fileName = "${rootProjectName}-${fullProjectName}-${versionName}-${buildType}.aar"
output.outputFileName = fileName
}
}
}
dependencies {
implementation rootProject.ext.dependencies.kotlin_stdlib
implementation rootProject.ext.dependencies.kotlin_stdlib_jdk7
}