Skip to content

Instantly share code, notes, and snippets.

@BambangHeriSetiawan
Last active August 14, 2019 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BambangHeriSetiawan/aaa802e4d8ca53eb7b3d7419ecc9321a to your computer and use it in GitHub Desktop.
Save BambangHeriSetiawan/aaa802e4d8ca53eb7b3d7419ecc9321a to your computer and use it in GitHub Desktop.
build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.simx.paggingsample"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1.0"
buildConfigField 'String', 'BASE_URL', '"API_KEY"'
buildConfigField 'String', 'API_KEY', '"8bd5fd5cf00be94f16916661aac61163"'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
androidExtensions {
experimental = true
}
dataBinding {
enabled = true
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.core:core-ktx:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.customview:customview:1.0.0"
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
api "io.reactivex.rxjava2:rxandroid:2.1.1"
api "io.reactivex.rxjava2:rxjava:2.2.10"
api "com.squareup.okhttp3:okhttp:4.0.0"
api "com.squareup.okhttp3:logging-interceptor:4.0.0"
api 'com.google.code.gson:gson:2.8.5'
api "com.squareup.retrofit2:retrofit:2.6.0"
api "com.squareup.retrofit2:adapter-rxjava2:2.6.0"
api "com.squareup.retrofit2:converter-gson:2.6.0"
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0-M2"
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0-M2"
api 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2'
implementation "androidx.paging:paging-runtime-ktx:2.1.0"
testImplementation "androidx.paging:paging-common-ktx:2.1.0"
implementation "androidx.paging:paging-rxjava2-ktx:2.1.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
implementation 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
@BambangHeriSetiawan
Copy link
Author

make public

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment