migrate to gradle's Kotlin DSL
This commit is contained in:
parent
37df88a306
commit
e43b642076
|
@ -1,41 +0,0 @@
|
|||
apply plugin: 'com.android.application'
|
||||
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
buildToolsVersion "28.0.3"
|
||||
defaultConfig {
|
||||
applicationId "cash.z.wallet.app"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":sdk")
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
|
||||
implementation 'android.arch.navigation:navigation-fragment:1.0.0-alpha06'
|
||||
implementation 'android.arch.navigation:navigation-ui:1.0.0-alpha06'
|
||||
implementation 'android.arch.navigation:navigation-fragment-ktx:1.0.0-alpha06'
|
||||
implementation 'android.arch.navigation:navigation-ui-ktx:1.0.0-alpha06'
|
||||
implementation 'androidx.core:core-ktx:1.0.0'
|
||||
implementation 'com.google.android.material:material:1.0.0-beta01'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
import org.jetbrains.kotlin.config.KotlinCompilerVersion
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android-extensions")
|
||||
id("kotlin-android")
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion(28)
|
||||
defaultConfig {
|
||||
minSdkVersion(21)
|
||||
targetSdkVersion(28)
|
||||
applicationId = "cash.z.wallet.app"
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":sdk"))
|
||||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.71")
|
||||
implementation("androidx.appcompat:appcompat:1.0.0-beta01")
|
||||
implementation("android.arch.navigation:navigation-fragment:1.0.0-alpha06")
|
||||
implementation("android.arch.navigation:navigation-ui:1.0.0-alpha06")
|
||||
implementation("android.arch.navigation:navigation-fragment-ktx:1.0.0-alpha06")
|
||||
implementation("android.arch.navigation:navigation-ui-ktx:1.0.0-alpha06")
|
||||
implementation("androidx.core:core-ktx:1.0.0")
|
||||
implementation("com.google.android.material:material:1.0.0-beta01")
|
||||
implementation("androidx.constraintlayout:constraintlayout:1.1.2")
|
||||
testImplementation("junit:junit:4.12")
|
||||
androidTestImplementation("androidx.test:runner:1.1.0-alpha4")
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.1.0-alpha4")
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.2.71'
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.3.0-alpha12'
|
||||
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()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
buildscript {
|
||||
// ext.kotlin_version = '1.2.71'
|
||||
// val kotlinVersion by extra { "1.2.71" }
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
|
||||
}
|
||||
dependencies {
|
||||
classpath("com.android.tools.build:gradle:3.3.0-alpha13")
|
||||
classpath(kotlin("gradle-plugin", version = "1.2.71"))
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register("clean", Delete::class) {
|
||||
delete(rootProject.buildDir)
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
include ':app', ':sdk'
|
|
@ -0,0 +1,5 @@
|
|||
//Explicitly set `rootProject.buildFileName`
|
||||
// avoids project import issues caused by Android Studio silently adding a `build.gradle` file
|
||||
rootProject.buildFileName = "build.gradle.kts"
|
||||
|
||||
include(":app", ":sdk")
|
|
@ -1,40 +0,0 @@
|
|||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
buildToolsVersion "28.0.3"
|
||||
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
|
||||
implementation 'com.android.support:appcompat-v7:28.0.0'
|
||||
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'
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
import org.jetbrains.kotlin.config.KotlinCompilerVersion
|
||||
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
id("kotlin-android-extensions")
|
||||
id("kotlin-android")
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion(28)
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion(16)
|
||||
targetSdkVersion(28)
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.71")
|
||||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
||||
implementation("com.android.support:appcompat-v7:28.0.0")
|
||||
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")
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
Loading…
Reference in New Issue