diff --git a/activity/LatihanBarVolume/kotlin/app/build.gradle.kts b/activity/LatihanBarVolume/kotlin/app/build.gradle.kts index 17fa9d1..e9cab77 100644 --- a/activity/LatihanBarVolume/kotlin/app/build.gradle.kts +++ b/activity/LatihanBarVolume/kotlin/app/build.gradle.kts @@ -1,16 +1,16 @@ plugins { - id("com.android.application") - id("org.jetbrains.kotlin.android") + alias(libs.plugins.androidApplication) + alias(libs.plugins.jetbrainsKotlinAndroid) } android { namespace = "com.dicoding.barvolume" - compileSdk = 33 + compileSdk = 34 defaultConfig { applicationId = "com.dicoding.barvolume" minSdk = 21 - targetSdk = 33 + targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -37,11 +37,12 @@ android { dependencies { - implementation("androidx.core:core-ktx:1.10.1") - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.9.0") - implementation("androidx.constraintlayout:constraintlayout:2.1.4") - testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.material) + implementation(libs.androidx.activity) + implementation(libs.androidx.constraintlayout) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) } \ No newline at end of file diff --git a/activity/LatihanBarVolume/kotlin/build.gradle.kts b/activity/LatihanBarVolume/kotlin/build.gradle.kts index 6cb6871..a0985ef 100644 --- a/activity/LatihanBarVolume/kotlin/build.gradle.kts +++ b/activity/LatihanBarVolume/kotlin/build.gradle.kts @@ -1,6 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.1.0" apply false - id("com.android.library") version "8.1.0" apply false - id("org.jetbrains.kotlin.android") version "1.8.20" apply false + alias(libs.plugins.androidApplication) apply false + alias(libs.plugins.jetbrainsKotlinAndroid) apply false } \ No newline at end of file diff --git a/activity/LatihanBarVolume/kotlin/gradle/libs.versions.toml b/activity/LatihanBarVolume/kotlin/gradle/libs.versions.toml new file mode 100644 index 0000000..bfab508 --- /dev/null +++ b/activity/LatihanBarVolume/kotlin/gradle/libs.versions.toml @@ -0,0 +1,25 @@ +[versions] +agp = "8.3.0" +kotlin = "1.9.0" +coreKtx = "1.12.0" +junit = "4.13.2" +junitVersion = "1.1.5" +espressoCore = "3.5.1" +appcompat = "1.6.1" +material = "1.11.0" +activity = "1.8.0" +constraintlayout = "2.1.4" + +[libraries] +androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } +junit = { group = "junit", name = "junit", version.ref = "junit" } +androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } +androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } +material = { group = "com.google.android.material", name = "material", version.ref = "material" } +androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } +androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } + +[plugins] +androidApplication = { id = "com.android.application", version.ref = "agp" } +jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } diff --git a/activity/LatihanBarVolume/kotlin/gradle/wrapper/gradle-wrapper.properties b/activity/LatihanBarVolume/kotlin/gradle/wrapper/gradle-wrapper.properties index 9eb2174..6ac0d0c 100644 --- a/activity/LatihanBarVolume/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/activity/LatihanBarVolume/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon Jun 12 15:08:11 WIB 2023 +#Tue Mar 19 18:32:54 WIB 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/activity/LatihanBarVolume/kotlin/local.properties b/activity/LatihanBarVolume/kotlin/local.properties index 331ab8e..d4973bf 100644 --- a/activity/LatihanBarVolume/kotlin/local.properties +++ b/activity/LatihanBarVolume/kotlin/local.properties @@ -1,10 +1,8 @@ -## This file is automatically generated by Android Studio. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file should *NOT* be checked into Version Control Systems, +## This file must *NOT* be checked into Version Control Systems, # as it contains information specific to your local configuration. # # Location of the SDK. This is only used by Gradle. # For customization when using a Version Control System, please read the # header note. -sdk.dir=/Users/gilangramadhan/Library/Android/sdk \ No newline at end of file +#Tue Mar 19 18:30:49 WIB 2024 +sdk.dir=C\:\\Users\\Dicoding\\AppData\\Local\\Android\\Sdk diff --git a/intent/LatihanDebugging/kotlin/app/build.gradle.kts b/intent/LatihanDebugging/kotlin/app/build.gradle.kts index 90580d9..863fcec 100644 --- a/intent/LatihanDebugging/kotlin/app/build.gradle.kts +++ b/intent/LatihanDebugging/kotlin/app/build.gradle.kts @@ -1,16 +1,16 @@ plugins { - id("com.android.application") - id("org.jetbrains.kotlin.android") + alias(libs.plugins.androidApplication) + alias(libs.plugins.jetbrainsKotlinAndroid) } android { namespace = "com.dicoding.mytestingapp" - compileSdk = 33 + compileSdk = 34 defaultConfig { applicationId = "com.dicoding.mytestingapp" minSdk = 21 - targetSdk = 33 + targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -34,11 +34,12 @@ android { dependencies { - implementation("androidx.core:core-ktx:1.10.1") - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.9.0") - implementation("androidx.constraintlayout:constraintlayout:2.1.4") - testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.material) + implementation(libs.androidx.activity) + implementation(libs.androidx.constraintlayout) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) } \ No newline at end of file diff --git a/intent/LatihanDebugging/kotlin/build.gradle.kts b/intent/LatihanDebugging/kotlin/build.gradle.kts index 6cb6871..a0985ef 100644 --- a/intent/LatihanDebugging/kotlin/build.gradle.kts +++ b/intent/LatihanDebugging/kotlin/build.gradle.kts @@ -1,6 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.1.0" apply false - id("com.android.library") version "8.1.0" apply false - id("org.jetbrains.kotlin.android") version "1.8.20" apply false + alias(libs.plugins.androidApplication) apply false + alias(libs.plugins.jetbrainsKotlinAndroid) apply false } \ No newline at end of file diff --git a/intent/LatihanDebugging/kotlin/gradle/libs.versions.toml b/intent/LatihanDebugging/kotlin/gradle/libs.versions.toml new file mode 100644 index 0000000..ba93917 --- /dev/null +++ b/intent/LatihanDebugging/kotlin/gradle/libs.versions.toml @@ -0,0 +1,25 @@ +[versions] +agp = "8.3.0" +kotlin = "1.9.0" +coreKtx = "1.12.0" +junit = "4.13.2" +junitVersion = "1.1.5" +espressoCore = "3.5.1" +appcompat = "1.6.1" +material = "1.11.0" +activity = "1.8.0" +constraintlayout = "2.1.4" + +[libraries] +androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } +junit = { group = "junit", name = "junit", version.ref = "junit" } +androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } +androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } +material = { group = "com.google.android.material", name = "material", version.ref = "material" } +androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } +androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } + +[plugins] +androidApplication = { id = "com.android.application", version.ref = "agp" } +jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } \ No newline at end of file diff --git a/intent/LatihanDebugging/kotlin/gradle/wrapper/gradle-wrapper.properties b/intent/LatihanDebugging/kotlin/gradle/wrapper/gradle-wrapper.properties index 0f67f55..f0dd21d 100644 --- a/intent/LatihanDebugging/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/intent/LatihanDebugging/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Jun 21 13:49:31 WIB 2023 +#Tue Mar 19 18:39:38 WIB 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/intent/LatihanIntent/kotlin/app/build.gradle.kts b/intent/LatihanIntent/kotlin/app/build.gradle.kts index 091a0e7..e2f778b 100644 --- a/intent/LatihanIntent/kotlin/app/build.gradle.kts +++ b/intent/LatihanIntent/kotlin/app/build.gradle.kts @@ -1,18 +1,18 @@ plugins { - id("com.android.application") - id("org.jetbrains.kotlin.android") + alias(libs.plugins.androidApplication) + alias(libs.plugins.jetbrainsKotlinAndroid) id("kotlin-parcelize") } android { namespace = "com.dicoding.myintentapp" - compileSdk = 33 + compileSdk = 34 defaultConfig { applicationId = "com.dicoding.myintentapp" minSdk = 21 - targetSdk = 33 + targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -36,11 +36,12 @@ android { dependencies { - implementation("androidx.core:core-ktx:1.10.1") - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.9.0") - implementation("androidx.constraintlayout:constraintlayout:2.1.4") - testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.material) + implementation(libs.androidx.activity) + implementation(libs.androidx.constraintlayout) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) } \ No newline at end of file diff --git a/intent/LatihanIntent/kotlin/app/src/main/java/com/dicoding/myintentapp/MoveForResultActivity.kt b/intent/LatihanIntent/kotlin/app/src/main/java/com/dicoding/myintentapp/MoveForResultActivity.kt index 4a9b406..b4a41af 100644 --- a/intent/LatihanIntent/kotlin/app/src/main/java/com/dicoding/myintentapp/MoveForResultActivity.kt +++ b/intent/LatihanIntent/kotlin/app/src/main/java/com/dicoding/myintentapp/MoveForResultActivity.kt @@ -1,12 +1,11 @@ package com.dicoding.myintentapp import android.content.Intent -import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.Button import android.widget.RadioGroup -import com.dicoding.picodiploma.myintentapp.R +import androidx.appcompat.app.AppCompatActivity class MoveForResultActivity : AppCompatActivity(), View.OnClickListener { private lateinit var btnChoose: Button diff --git a/intent/LatihanIntent/kotlin/build.gradle.kts b/intent/LatihanIntent/kotlin/build.gradle.kts index 6cb6871..a0985ef 100644 --- a/intent/LatihanIntent/kotlin/build.gradle.kts +++ b/intent/LatihanIntent/kotlin/build.gradle.kts @@ -1,6 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.1.0" apply false - id("com.android.library") version "8.1.0" apply false - id("org.jetbrains.kotlin.android") version "1.8.20" apply false + alias(libs.plugins.androidApplication) apply false + alias(libs.plugins.jetbrainsKotlinAndroid) apply false } \ No newline at end of file diff --git a/intent/LatihanIntent/kotlin/gradle/libs.versions.toml b/intent/LatihanIntent/kotlin/gradle/libs.versions.toml new file mode 100644 index 0000000..fcbb7bc --- /dev/null +++ b/intent/LatihanIntent/kotlin/gradle/libs.versions.toml @@ -0,0 +1,26 @@ +[versions] +agp = "8.3.0" +kotlin = "1.9.0" +coreKtx = "1.12.0" +junit = "4.13.2" +junitVersion = "1.1.5" +espressoCore = "3.5.1" +appcompat = "1.6.1" +material = "1.11.0" +activity = "1.8.0" +constraintlayout = "2.1.4" + +[libraries] +androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } +junit = { group = "junit", name = "junit", version.ref = "junit" } +androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } +androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } +material = { group = "com.google.android.material", name = "material", version.ref = "material" } +androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } +androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } + +[plugins] +androidApplication = { id = "com.android.application", version.ref = "agp" } +jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } + diff --git a/intent/LatihanIntent/kotlin/gradle/wrapper/gradle-wrapper.properties b/intent/LatihanIntent/kotlin/gradle/wrapper/gradle-wrapper.properties index 4e5e6bb..464b98d 100644 --- a/intent/LatihanIntent/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/intent/LatihanIntent/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Thu Jun 15 13:20:09 WIB 2023 +#Tue Mar 19 18:43:51 WIB 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/recyclerview/LatihanLibrary/kotlin/app/build.gradle.kts b/recyclerview/LatihanLibrary/kotlin/app/build.gradle.kts index ce9137f..d335de9 100644 --- a/recyclerview/LatihanLibrary/kotlin/app/build.gradle.kts +++ b/recyclerview/LatihanLibrary/kotlin/app/build.gradle.kts @@ -1,17 +1,17 @@ plugins { - id("com.android.application") - id("org.jetbrains.kotlin.android") + alias(libs.plugins.androidApplication) + alias(libs.plugins.jetbrainsKotlinAndroid) id("kotlin-parcelize") } android { namespace = "com.dicoding.myrecyclerview" - compileSdk = 33 + compileSdk = 34 defaultConfig { applicationId = "com.dicoding.myrecyclerview" minSdk = 21 - targetSdk = 33 + targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -35,14 +35,15 @@ android { dependencies { - implementation("androidx.core:core-ktx:1.10.1") - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.9.0") - implementation("androidx.constraintlayout:constraintlayout:2.1.4") - testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.material) + implementation(libs.androidx.activity) + implementation(libs.androidx.constraintlayout) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) - implementation("com.github.bumptech.glide:glide:4.15.0") + implementation(libs.glide) } \ No newline at end of file diff --git a/recyclerview/LatihanLibrary/kotlin/build.gradle.kts b/recyclerview/LatihanLibrary/kotlin/build.gradle.kts index 6cb6871..a0985ef 100644 --- a/recyclerview/LatihanLibrary/kotlin/build.gradle.kts +++ b/recyclerview/LatihanLibrary/kotlin/build.gradle.kts @@ -1,6 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.1.0" apply false - id("com.android.library") version "8.1.0" apply false - id("org.jetbrains.kotlin.android") version "1.8.20" apply false + alias(libs.plugins.androidApplication) apply false + alias(libs.plugins.jetbrainsKotlinAndroid) apply false } \ No newline at end of file diff --git a/recyclerview/LatihanLibrary/kotlin/gradle/libs.versions.toml b/recyclerview/LatihanLibrary/kotlin/gradle/libs.versions.toml new file mode 100644 index 0000000..5bcc45a --- /dev/null +++ b/recyclerview/LatihanLibrary/kotlin/gradle/libs.versions.toml @@ -0,0 +1,28 @@ +[versions] +agp = "8.3.0" +glide = "4.15.0" +kotlin = "1.9.0" +coreKtx = "1.12.0" +junit = "4.13.2" +junitVersion = "1.1.5" +espressoCore = "3.5.1" +appcompat = "1.6.1" +material = "1.11.0" +activity = "1.8.0" +constraintlayout = "2.1.4" + +[libraries] +androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } +glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" } +junit = { group = "junit", name = "junit", version.ref = "junit" } +androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } +androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } +material = { group = "com.google.android.material", name = "material", version.ref = "material" } +androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } +androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } + +[plugins] +androidApplication = { id = "com.android.application", version.ref = "agp" } +jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } + diff --git a/recyclerview/LatihanLibrary/kotlin/gradle/wrapper/gradle-wrapper.properties b/recyclerview/LatihanLibrary/kotlin/gradle/wrapper/gradle-wrapper.properties index 9e7c4d2..8bb8f93 100644 --- a/recyclerview/LatihanLibrary/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/recyclerview/LatihanLibrary/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Jun 28 14:41:22 WIB 2023 +#Tue Mar 19 18:55:58 WIB 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/recyclerview/LatihanRecyclerView/kotlin/app/build.gradle.kts b/recyclerview/LatihanRecyclerView/kotlin/app/build.gradle.kts index f35a9f4..64d28e5 100644 --- a/recyclerview/LatihanRecyclerView/kotlin/app/build.gradle.kts +++ b/recyclerview/LatihanRecyclerView/kotlin/app/build.gradle.kts @@ -1,17 +1,17 @@ plugins { - id("com.android.application") - id("org.jetbrains.kotlin.android") + alias(libs.plugins.androidApplication) + alias(libs.plugins.jetbrainsKotlinAndroid) id("kotlin-parcelize") } android { namespace = "com.dicoding.myrecyclerview" - compileSdk = 33 + compileSdk = 34 defaultConfig { applicationId = "com.dicoding.myrecyclerview" minSdk = 21 - targetSdk = 33 + targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -35,11 +35,12 @@ android { dependencies { - implementation("androidx.core:core-ktx:1.10.1") - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.9.0") - implementation("androidx.constraintlayout:constraintlayout:2.1.4") - testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.material) + implementation(libs.androidx.activity) + implementation(libs.androidx.constraintlayout) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) } \ No newline at end of file diff --git a/recyclerview/LatihanRecyclerView/kotlin/build.gradle.kts b/recyclerview/LatihanRecyclerView/kotlin/build.gradle.kts index 6cb6871..a0985ef 100644 --- a/recyclerview/LatihanRecyclerView/kotlin/build.gradle.kts +++ b/recyclerview/LatihanRecyclerView/kotlin/build.gradle.kts @@ -1,6 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.1.0" apply false - id("com.android.library") version "8.1.0" apply false - id("org.jetbrains.kotlin.android") version "1.8.20" apply false + alias(libs.plugins.androidApplication) apply false + alias(libs.plugins.jetbrainsKotlinAndroid) apply false } \ No newline at end of file diff --git a/recyclerview/LatihanRecyclerView/kotlin/gradle/libs.versions.toml b/recyclerview/LatihanRecyclerView/kotlin/gradle/libs.versions.toml new file mode 100644 index 0000000..fcbb7bc --- /dev/null +++ b/recyclerview/LatihanRecyclerView/kotlin/gradle/libs.versions.toml @@ -0,0 +1,26 @@ +[versions] +agp = "8.3.0" +kotlin = "1.9.0" +coreKtx = "1.12.0" +junit = "4.13.2" +junitVersion = "1.1.5" +espressoCore = "3.5.1" +appcompat = "1.6.1" +material = "1.11.0" +activity = "1.8.0" +constraintlayout = "2.1.4" + +[libraries] +androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } +junit = { group = "junit", name = "junit", version.ref = "junit" } +androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } +androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } +material = { group = "com.google.android.material", name = "material", version.ref = "material" } +androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } +androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } + +[plugins] +androidApplication = { id = "com.android.application", version.ref = "agp" } +jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } + diff --git a/recyclerview/LatihanRecyclerView/kotlin/gradle/wrapper/gradle-wrapper.properties b/recyclerview/LatihanRecyclerView/kotlin/gradle/wrapper/gradle-wrapper.properties index 9e7c4d2..51825b1 100644 --- a/recyclerview/LatihanRecyclerView/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/recyclerview/LatihanRecyclerView/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Jun 28 14:41:22 WIB 2023 +#Tue Mar 19 19:08:52 WIB 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/style-and-theme/LatihanStyleAndTheme/kotlin/app/build.gradle.kts b/style-and-theme/LatihanStyleAndTheme/kotlin/app/build.gradle.kts index 8d0c501..73b5604 100644 --- a/style-and-theme/LatihanStyleAndTheme/kotlin/app/build.gradle.kts +++ b/style-and-theme/LatihanStyleAndTheme/kotlin/app/build.gradle.kts @@ -1,16 +1,16 @@ plugins { - id("com.android.application") - id("org.jetbrains.kotlin.android") + alias(libs.plugins.androidApplication) + alias(libs.plugins.jetbrainsKotlinAndroid) } android { namespace = "com.dicoding.myviewandviewgroup" - compileSdk = 33 + compileSdk = 34 defaultConfig { applicationId = "com.dicoding.myviewandviewgroup" minSdk = 21 - targetSdk = 33 + targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -34,11 +34,12 @@ android { dependencies { - implementation("androidx.core:core-ktx:1.10.1") - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.9.0") - implementation("androidx.constraintlayout:constraintlayout:2.1.4") - testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.material) + implementation(libs.androidx.activity) + implementation(libs.androidx.constraintlayout) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) } \ No newline at end of file diff --git a/style-and-theme/LatihanStyleAndTheme/kotlin/build.gradle.kts b/style-and-theme/LatihanStyleAndTheme/kotlin/build.gradle.kts index 6cb6871..a0985ef 100644 --- a/style-and-theme/LatihanStyleAndTheme/kotlin/build.gradle.kts +++ b/style-and-theme/LatihanStyleAndTheme/kotlin/build.gradle.kts @@ -1,6 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.1.0" apply false - id("com.android.library") version "8.1.0" apply false - id("org.jetbrains.kotlin.android") version "1.8.20" apply false + alias(libs.plugins.androidApplication) apply false + alias(libs.plugins.jetbrainsKotlinAndroid) apply false } \ No newline at end of file diff --git a/style-and-theme/LatihanStyleAndTheme/kotlin/gradle/libs.versions.toml b/style-and-theme/LatihanStyleAndTheme/kotlin/gradle/libs.versions.toml new file mode 100644 index 0000000..fcbb7bc --- /dev/null +++ b/style-and-theme/LatihanStyleAndTheme/kotlin/gradle/libs.versions.toml @@ -0,0 +1,26 @@ +[versions] +agp = "8.3.0" +kotlin = "1.9.0" +coreKtx = "1.12.0" +junit = "4.13.2" +junitVersion = "1.1.5" +espressoCore = "3.5.1" +appcompat = "1.6.1" +material = "1.11.0" +activity = "1.8.0" +constraintlayout = "2.1.4" + +[libraries] +androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } +junit = { group = "junit", name = "junit", version.ref = "junit" } +androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } +androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } +material = { group = "com.google.android.material", name = "material", version.ref = "material" } +androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } +androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } + +[plugins] +androidApplication = { id = "com.android.application", version.ref = "agp" } +jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } + diff --git a/style-and-theme/LatihanStyleAndTheme/kotlin/gradle/wrapper/gradle-wrapper.properties b/style-and-theme/LatihanStyleAndTheme/kotlin/gradle/wrapper/gradle-wrapper.properties index d43da45..681074f 100644 --- a/style-and-theme/LatihanStyleAndTheme/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/style-and-theme/LatihanStyleAndTheme/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Jun 21 16:03:24 WIB 2023 +#Tue Mar 19 19:13:25 WIB 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/view-and-viewgroup/LatihanConstraintLayout/kotlin/app/build.gradle.kts b/view-and-viewgroup/LatihanConstraintLayout/kotlin/app/build.gradle.kts index b546ed6..6cdd45c 100644 --- a/view-and-viewgroup/LatihanConstraintLayout/kotlin/app/build.gradle.kts +++ b/view-and-viewgroup/LatihanConstraintLayout/kotlin/app/build.gradle.kts @@ -1,16 +1,16 @@ plugins { - id("com.android.application") - id("org.jetbrains.kotlin.android") + alias(libs.plugins.androidApplication) + alias(libs.plugins.jetbrainsKotlinAndroid) } android { namespace = "com.dicoding.myconstraintview" - compileSdk = 33 + compileSdk = 34 defaultConfig { applicationId = "com.dicoding.myconstraintview" minSdk = 21 - targetSdk = 33 + targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -34,11 +34,12 @@ android { dependencies { - implementation("androidx.core:core-ktx:1.10.1") - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.9.0") - implementation("androidx.constraintlayout:constraintlayout:2.1.4") - testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.material) + implementation(libs.androidx.activity) + implementation(libs.androidx.constraintlayout) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) } \ No newline at end of file diff --git a/view-and-viewgroup/LatihanConstraintLayout/kotlin/build.gradle.kts b/view-and-viewgroup/LatihanConstraintLayout/kotlin/build.gradle.kts index 6cb6871..a0985ef 100644 --- a/view-and-viewgroup/LatihanConstraintLayout/kotlin/build.gradle.kts +++ b/view-and-viewgroup/LatihanConstraintLayout/kotlin/build.gradle.kts @@ -1,6 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.1.0" apply false - id("com.android.library") version "8.1.0" apply false - id("org.jetbrains.kotlin.android") version "1.8.20" apply false + alias(libs.plugins.androidApplication) apply false + alias(libs.plugins.jetbrainsKotlinAndroid) apply false } \ No newline at end of file diff --git a/view-and-viewgroup/LatihanConstraintLayout/kotlin/gradle/libs.versions.toml b/view-and-viewgroup/LatihanConstraintLayout/kotlin/gradle/libs.versions.toml new file mode 100644 index 0000000..fcbb7bc --- /dev/null +++ b/view-and-viewgroup/LatihanConstraintLayout/kotlin/gradle/libs.versions.toml @@ -0,0 +1,26 @@ +[versions] +agp = "8.3.0" +kotlin = "1.9.0" +coreKtx = "1.12.0" +junit = "4.13.2" +junitVersion = "1.1.5" +espressoCore = "3.5.1" +appcompat = "1.6.1" +material = "1.11.0" +activity = "1.8.0" +constraintlayout = "2.1.4" + +[libraries] +androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } +junit = { group = "junit", name = "junit", version.ref = "junit" } +androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } +androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } +material = { group = "com.google.android.material", name = "material", version.ref = "material" } +androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } +androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } + +[plugins] +androidApplication = { id = "com.android.application", version.ref = "agp" } +jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } + diff --git a/view-and-viewgroup/LatihanConstraintLayout/kotlin/gradle/wrapper/gradle-wrapper.properties b/view-and-viewgroup/LatihanConstraintLayout/kotlin/gradle/wrapper/gradle-wrapper.properties index d1b62a8..539de0e 100644 --- a/view-and-viewgroup/LatihanConstraintLayout/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/view-and-viewgroup/LatihanConstraintLayout/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Fri Jun 23 13:56:29 WIB 2023 +#Tue Mar 19 19:16:47 WIB 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/app/build.gradle.kts b/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/app/build.gradle.kts index 8d0c501..73b5604 100644 --- a/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/app/build.gradle.kts +++ b/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/app/build.gradle.kts @@ -1,16 +1,16 @@ plugins { - id("com.android.application") - id("org.jetbrains.kotlin.android") + alias(libs.plugins.androidApplication) + alias(libs.plugins.jetbrainsKotlinAndroid) } android { namespace = "com.dicoding.myviewandviewgroup" - compileSdk = 33 + compileSdk = 34 defaultConfig { applicationId = "com.dicoding.myviewandviewgroup" minSdk = 21 - targetSdk = 33 + targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -34,11 +34,12 @@ android { dependencies { - implementation("androidx.core:core-ktx:1.10.1") - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.9.0") - implementation("androidx.constraintlayout:constraintlayout:2.1.4") - testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.material) + implementation(libs.androidx.activity) + implementation(libs.androidx.constraintlayout) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) } \ No newline at end of file diff --git a/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/build.gradle.kts b/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/build.gradle.kts index 6cb6871..a0985ef 100644 --- a/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/build.gradle.kts +++ b/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/build.gradle.kts @@ -1,6 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.1.0" apply false - id("com.android.library") version "8.1.0" apply false - id("org.jetbrains.kotlin.android") version "1.8.20" apply false + alias(libs.plugins.androidApplication) apply false + alias(libs.plugins.jetbrainsKotlinAndroid) apply false } \ No newline at end of file diff --git a/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/gradle/libs.versions.toml b/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/gradle/libs.versions.toml new file mode 100644 index 0000000..fcbb7bc --- /dev/null +++ b/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/gradle/libs.versions.toml @@ -0,0 +1,26 @@ +[versions] +agp = "8.3.0" +kotlin = "1.9.0" +coreKtx = "1.12.0" +junit = "4.13.2" +junitVersion = "1.1.5" +espressoCore = "3.5.1" +appcompat = "1.6.1" +material = "1.11.0" +activity = "1.8.0" +constraintlayout = "2.1.4" + +[libraries] +androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } +junit = { group = "junit", name = "junit", version.ref = "junit" } +androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } +androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } +material = { group = "com.google.android.material", name = "material", version.ref = "material" } +androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } +androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } + +[plugins] +androidApplication = { id = "com.android.application", version.ref = "agp" } +jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } + diff --git a/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/gradle/wrapper/gradle-wrapper.properties b/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/gradle/wrapper/gradle-wrapper.properties index d43da45..17fdc06 100644 --- a/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/view-and-viewgroup/LatihanViewAndViewGroup/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Jun 21 16:03:24 WIB 2023 +#Tue Mar 19 19:20:30 WIB 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists