Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use () for function invocations and use = for property assignments
- Loading branch information
Showing
3 changed files
with
29 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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") | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
include ":app" | ||
rootProject.name="KotlinDSLSample" | ||
include(":app") | ||
rootProject.name = "KotlinDSLSample" |