-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
84 lines (74 loc) · 2.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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//noinspection GradleCompatible
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
group = "com.github.lightningkite"
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
warning('InvalidPackage', 'NewApi')
}
}
repositories {
mavenCentral()
maven {
url "https://jitpack.io"
}
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
dependencies {
ext.supportVersion = '26.1.0'
ext.ankoVersion = '0.10.0'
compile fileTree(include: ['*.jar'], dir: 'libs')
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.anko:anko-sdk15:$ankoVersion"
compile "com.android.support:appcompat-v7:$supportVersion"
compile "org.jetbrains.anko:anko-appcompat-v7:$ankoVersion"
compile "com.android.support:cardview-v7:$supportVersion"
compile "org.jetbrains.anko:anko-cardview-v7:$ankoVersion"
compile "com.android.support:gridlayout-v7:$supportVersion"
compile "org.jetbrains.anko:anko-gridlayout-v7:$ankoVersion"
compile "com.android.support:recyclerview-v7:$supportVersion"
compile "org.jetbrains.anko:anko-recyclerview-v7:$ankoVersion"
compile "com.android.support:design:$supportVersion"
compile "org.jetbrains.anko:anko-design:$ankoVersion"
compile project(path: ':kotlin-core')
}
// build a jar with source files
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
artifacts {
archives sourcesJar
}
buildscript {
ext.kotlin_version = '1.2.21'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}