Created
March 26, 2015 18:34
-
-
Save cavega/3bec368eed77b6bae1b6 to your computer and use it in GitHub Desktop.
Kotlin Sample: Android Studio 1.2 Prev. 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
android { | |
compileSdkVersion 22 | |
buildToolsVersion "22.0.0" | |
defaultConfig { | |
applicationId "com.cavega.kotlinmusings" | |
minSdkVersion 16 | |
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.0.0' | |
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" | |
} | |
buildscript { | |
ext.kotlin_version = '0.11.91' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
} | |
} | |
repositories { | |
mavenCentral() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment