CRUD Mysql Kotlin View amp Create 7
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=BMHkBPEAReM
Ini untuk build.gradle (Project) • ===== build.gradle (Project) ====== • // Top-level build file where you can add configuration options common to all sub-projects/modules. • buildscript { • ext.kotlin_version = 1.4.32 • repositories { • google() • jcenter() • } • dependencies { • classpath com.android.tools.build:gradle:4.1.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 • } • } • allprojects { • repositories { • google() • jcenter() • maven { url 'https://jitpack.io' } • } • } • task clean(type: Delete) { • delete rootProject.buildDir • } • =====End===================== • • Ini untuk build.gradle.App (Module) • ===== build.gradle.App (Module) ====== • apply plugin: 'com.android.application' • apply plugin: 'kotlin-android' • apply plugin: 'kotlin-android-extensions' • apply plugin: 'kotlin-kapt' • android { • compileSdkVersion 30 • buildToolsVersion 30.0.3 • defaultConfig { • applicationId com.budih.crudmysqlbudih • minSdkVersion 24 • targetSdkVersion 30 • versionCode 1 • versionName 1.0 • testInstrumentationRunner androidx.test.runner.AndroidJUnitRunner • } • buildTypes { • release { • minifyEnabled false • proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' • } • } • compileOptions { • sourceCompatibility JavaVersion.VERSION_1_8 • targetCompatibility JavaVersion.VERSION_1_8 • } • kotlinOptions { • jvmTarget = '1.8' • } • } • • dependencies { • implementation org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version • implementation 'androidx.core:core-ktx:1.5.0' • implementation 'androidx.appcompat:appcompat:1.3.0' • implementation 'com.google.android.material:material:1.3.0' • implementation 'androidx.constraintlayout:constraintlayout:2.0.4' • implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5' • implementation 'androidx.navigation:navigation-ui-ktx:2.3.5' • implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1' • implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1' • implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5' • implementation 'androidx.navigation:navigation-ui-ktx:2.3.5' • implementation 'androidx.vectordrawable:vectordrawable:1.1.0' • implementation 'androidx.navigation:navigation-fragment:2.3.5' • implementation 'androidx.navigation:navigation-ui:2.3.5' • testImplementation 'junit:junit:4.13.2' • androidTestImplementation 'androidx.test.ext:junit:1.1.2' • androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' • // room • kapt android.arch.persistence.room:compiler:1.1.1 • implementation 'android.arch.persistence.room:runtime:1.1.1' • implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' • implementation androidx.room:room-runtime:2.3.0 • annotationProcessor androidx.room:room-compiler:2.3.0 • //Restroift • implementation com.squareup.okhttp3:okhttp:4.9.0 • implementation 'com.squareup.retrofit2:retrofit:2.9.0' • implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0' • implementation 'com.squareup.retrofit2:converter-gson:2.9.0' • implementation 'com.google.code.gson:gson:2.8.6' • // sweet Alert • implementation 'com.github.thomper:sweet-alert-dialog:1.4.0' • } • ============ End=================================
#############################
