Created
January 3, 2019 20:56
-
-
Save KevinSchildhorn/c1bb3fa844e5ecc7fb7c04b8fc635bbe to your computer and use it in GitHub Desktop.
Kotlin MP sample gradles
This file contains hidden or 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' | |
| apply plugin: 'kotlin-android-extensions' | |
| android { | |
| compileSdkVersion 28 | |
| defaultConfig { | |
| applicationId "com.example.kevinschildhorn.statelyimportsample" | |
| minSdkVersion 23 | |
| targetSdkVersion 28 | |
| versionCode 1 | |
| versionName "1.0" | |
| testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
| } | |
| buildTypes { | |
| release { | |
| minifyEnabled false | |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
| } | |
| } | |
| } | |
| dependencies { | |
| implementation fileTree(dir: 'libs', include: ['*.jar']) | |
| //implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" | |
| implementation 'com.android.support:appcompat-v7:28.0.0' | |
| implementation 'com.android.support.constraint:constraint-layout:1.1.3' | |
| testImplementation 'junit:junit:4.12' | |
| androidTestImplementation 'com.android.support.test:runner:1.0.2' | |
| androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | |
| implementation project(':SharedCode') | |
| } |
This file contains hidden or 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
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| buildscript { | |
| ext.kotlin_version = '1.3.11' | |
| repositories { | |
| google() | |
| jcenter() | |
| maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:3.2.1' | |
| 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 { | |
| google() | |
| jcenter() | |
| maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } | |
| } | |
| } | |
| task clean(type: Delete) { | |
| delete rootProject.buildDir | |
| } |
This file contains hidden or 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
| pluginManagement { | |
| resolutionStrategy { | |
| eachPlugin { | |
| if (requested.id.id == "kotlin-multiplatform") { | |
| useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:${requested.version}") | |
| } | |
| } | |
| } | |
| repositories { | |
| google() | |
| jcenter() | |
| maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' } | |
| maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } | |
| } | |
| } | |
| include ':app' | |
| include ':SharedCode' | |
| enableFeaturePreview('GRADLE_METADATA') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment