apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' apply plugin: 'realm-android' android { compileSdkVersion 27 defaultConfig { applicationId "com.ntels.product.chatbot" minSdkVersion 19 targetSdkVersion 27 versionCode 1 versionName "1.0.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { debug { buildConfigField("String", "BASE_URL", "\"http://219.250.188.83:8080/\"") buildConfigField("String", "BASE_WEBSOCKET_URL", "\"ws://219.250.188.83:8080/\"") buildConfigField("boolean", "IS_DEBUG", "true") } release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' buildConfigField("String", "BASE_URL", "\"http://219.250.188.83:8080/\"") buildConfigField("String", "BASE_WEBSOCKET_URL", "\"ws://219.250.188.83:8080/\"") buildConfigField("boolean", "IS_DEBUG", "false") } } dataBinding { enabled = true } compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 } } androidExtensions { experimental = true } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support:cardview-v7:27.1.1' implementation 'com.android.support:design:27.1.1' implementation 'com.android.support:support-v4:27.1.1' implementation 'com.android.support.constraint:constraint-layout:2.0.0-alpha1' implementation 'com.google.android:flexbox:0.3.0' implementation 'com.google.firebase:firebase-messaging:17.1.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' // reactive implementation "io.reactivex.rxjava2:rxjava:$rxjava2_version" implementation "io.reactivex.rxjava2:rxandroid:$rxandroid_version" // dagger implementation "com.google.dagger:dagger:$dagger2_version" kapt "com.google.dagger:dagger-compiler:$dagger2_version" // dagger android implementation "com.google.dagger:dagger-android:$dagger2_version" implementation "com.google.dagger:dagger-android-support:$dagger2_version" kapt "com.google.dagger:dagger-android-processor:$dagger2_version" //Viewmodel implementation "android.arch.lifecycle:extensions:$lifecycle_version" kapt "android.arch.lifecycle:compiler:$lifecycle_version" // json parser implementation "com.google.code.gson:gson:$gson_version" // logger implementation "com.jakewharton.timber:timber:$timber_version" // network implementation "com.squareup.retrofit2:retrofit:$retrofit_version" implementation "com.squareup.retrofit2:converter-gson:$retrofit_version" implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version" implementation "com.squareup.okhttp3:okhttp:$okhttp_version" implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttp_version" implementation "com.squareup.okhttp3:logging-interceptor:$okhttp_version" // Permission check implementation "gun0912.ted:tedpermission-rx2:$tedpermission_version" // PIN & Fingerprint implementation ("com.github.omadahealth:lollipin:$fingerprint_version") { transitive = true exclude group: "com.android.support", module: "support-v13" } // Realm implementation "io.realm:android-adapters:$realm_adapter_version" // Image Loader implementation "com.github.bumptech.glide:glide:$glide_version" kapt "com.github.bumptech.glide:compiler:$glide_version" // implementation "com.github.bopbi.rxwsocket:RxWSocket:$rxwsocket_version" } apply plugin: 'com.google.gms.google-services'