Yes I think I have everything. Here: (cannot attach .gradle files, lol)
— project
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.0.3'
ext.gradle_version = '2.1.3'
repositories {
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
— app
apply plugin: ‘com.android.application’
apply plugin: ‘kotlin-android’
android {
compileSdkVersion 23
buildToolsVersion "24.0.1"
defaultConfig {
applicationId "letstwinkle.com.twinkle"
minSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0a1"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
dataBinding {
enabled = true
}
dexOptions {
incremental true
javaMaxHeapSize "3g"
}
}
dependencies {
kapt "com.android.databinding:compiler:$gradle_version"
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "com.android.support:support-v4:23.4.0"
compile "com.android.support:cardview-v7:23.4.0"
compile "com.android.support:support-annotations:23.4.0"
compile "com.android.support:percent:23.4.0"
compile "com.android.support:design:23.4.0"
compile "com.android.support:support-v13:23.4.0"
compile "com.nostra13.universalimageloader:universal-image-loader:1.9.5"
}
kapt {
generateStubs = true
}
repositories {
mavenCentral()
}