Skip to content

Instantly share code, notes, and snippets.

@magnucki
Created July 22, 2015 07:14
Show Gist options
  • Select an option

  • Save magnucki/3031017abf7c31f0fbed to your computer and use it in GitHub Desktop.

Select an option

Save magnucki/3031017abf7c31f0fbed to your computer and use it in GitHub Desktop.
Standard Android + Kotlin + Anko
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:0.12.613'
classpath 'com.android.tools.build:gradle:1.2.3'
}
}
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "de.stalisto.stalisto"
minSdkVersion 19
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:design:22.2.1'
compile 'org.jetbrains.kotlin:kotlin-stdlib:0.12.613'
compile 'org.jetbrains.anko:anko:0.6.3-15'
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.android.support:palette-v7:22.2.1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment