Skip to content

Commit

Permalink
use () for function invocations and use = for property assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
mengdd committed Jan 9, 2020
1 parent d3fc644 commit b36a508
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
43 changes: 22 additions & 21 deletions app/build.gradle
@@ -1,35 +1,36 @@
apply plugin: "com.android.application"
apply(plugin: "com.android.application")

apply plugin: "kotlin-android"
apply(plugin: "kotlin-android")

apply plugin: "kotlin-android-extensions"
apply(plugin: "kotlin-android-extensions")

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
compileSdkVersion = 29
buildToolsVersion = "29.0.2"
defaultConfig {
applicationId "com.ddmeng.kotlindslsample"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
applicationId = "com.ddmeng.kotlindslsample"
minSdkVersion(21)
targetSdkVersion(29)
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
minifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro")
}
}
}

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.appcompat:appcompat:1.1.0"
implementation "androidx.core:core-ktx:1.0.2"
implementation "androidx.constraintlayout:constraintlayout:1.1.3"
testImplementation "junit:junit:4.12"
androidTestImplementation "androidx.test.ext:junit:1.1.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.1.1"
implementation(fileTree(dir: "libs", include: ["*.jar"]))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version")
implementation("androidx.appcompat:appcompat:1.1.0")
implementation("androidx.core:core-ktx:1.0.2")
implementation("androidx.constraintlayout:constraintlayout:1.1.3")
testImplementation("junit:junit:4.12")
androidTestImplementation("androidx.test.ext:junit:1.1.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.1.1")
}
10 changes: 5 additions & 5 deletions build.gradle
Expand Up @@ -5,11 +5,11 @@ buildscript {
repositories {
google()
jcenter()

}
dependencies {
classpath "com.android.tools.build:gradle:3.5.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath("com.android.tools.build:gradle:3.5.3")
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
}
Expand All @@ -19,10 +19,10 @@ allprojects {
repositories {
google()
jcenter()

}
}

task clean(type: Delete) {
delete rootProject.buildDir
delete(rootProject.buildDir)
}
4 changes: 2 additions & 2 deletions settings.gradle
@@ -1,2 +1,2 @@
include ":app"
rootProject.name="KotlinDSLSample"
include(":app")
rootProject.name = "KotlinDSLSample"

0 comments on commit b36a508

Please sign in to comment.