Skip to content

Instantly share code, notes, and snippets.

@yanex
Created March 19, 2015 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanex/573f2ff27f2ee5604834 to your computer and use it in GitHub Desktop.
Save yanex/573f2ff27f2ee5604834 to your computer and use it in GitHub Desktop.
Android Kotlin Extensions Configuration (forum)
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: 'https://gist.githubusercontent.com/stefanhoth/37f86c8e41d648cbd2c8/raw/49ca13d028885cae89f7da949f11069365aefeec/idea-gradle-sources.gradle'
android {
compileSdkVersion 22
buildToolsVersion "22.0.0"
defaultConfig {
applicationId "com.yoavst.whatismyip"
minSdkVersion 10
targetSdkVersion 22
versionCode 2
versionName "1.1"
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
debug.java.srcDirs += 'src/debug/kotlin'
release.java.srcDirs += 'src/release/kotlin'
}
lintOptions {
abortOnError false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0@aar'
compile 'com.android.support:cardview-v7:22.0.0'
compile "org.jetbrains.kotlin:kotlin-android-sdk-annotations:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile 'com.github.yoavst:androidKotlin:v1.0.3'
compile 'com.github.kevinsawicki:http-request:5.6'
compile 'com.github.xiprox.errorview:library:1.0.0'
}
// Please try to move buildscript dependencies to the app/build.gradle file
buildscript {
ext.kotlin_version = '0.11.91'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment