Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ================APP GREADLE============================
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- android {
- compileSdkVersion 22
- buildToolsVersion "22.0.1"
- defaultConfig {
- applicationId "asmx85.de.kotlintest"
- 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.2.1'
- compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- }
- buildscript {
- ext.kotlin_version = '0.12.1218'
- repositories {
- mavenCentral()
- }
- dependencies {
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
- }
- }
- repositories {
- mavenCentral()
- }
- ================MAIN GREADLE============================
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:1.2.3'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
- allprojects {
- repositories {
- jcenter()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement