forked from panpf/sketch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (36 loc) · 1.55 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
import com.novoda.gradle.release.PublishExtension
import java.util.*
plugins { id("com.android.library") }
android {
compileSdkVersion(property("COMPILE_SDK_VERSION").toString().toInt())
defaultConfig {
minSdkVersion(property("MIN_SDK_VERSION").toString().toInt())
targetSdkVersion(property("TARGET_SDK_VERSION").toString().toInt())
versionCode = property("VERSION_CODE").toString().toInt()
versionName = property("VERSION_NAME").toString()
consumerProguardFiles("proguard-rules.pro")
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
}
}
}
dependencies {
implementation("androidx.annotation:annotation:${property("ANDROIDX_ANNOTATION")}")
implementation("pl.droidsonroids:relinker:${property("RELINKER")}")
}
Properties().apply { project.file("local.properties").takeIf { it.exists() }?.inputStream()?.use { load(it) } }.takeIf { !it.isEmpty }?.let { localProperties ->
apply { plugin("com.novoda.bintray-release") }
configure<PublishExtension> {
groupId = "me.panpf"
artifactId = "sketch-gif"
publishVersion = property("VERSION_NAME").toString()
desc = "Android, Image, Load, GIF"
website = "https://github.com/panpf/sketch"
userOrg = localProperties.getProperty("bintray.userOrg")
bintrayUser = localProperties.getProperty("bintray.user")
bintrayKey = localProperties.getProperty("bintray.apikey")
}
}