This file contains hidden or 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
| distributionBase=GRADLE_USER_HOME | |
| distributionPath=wrapper/dists | |
| zipStoreBase=GRADLE_USER_HOME | |
| zipStorePath=wrapper/dists | |
| distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-all.zip |
This file contains hidden or 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
| plugins { | |
| `kotlin-dsl` | |
| } | |
| repositories { | |
| jcenter() | |
| } |
This file contains hidden or 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
| /** | |
| * Created by @ilhamsuaib on 2019-08-03. | |
| * github.com/ilhamsuaib | |
| */ | |
| object Versions { | |
| const val GRADLE_BUILD = "3.4.2" | |
| const val KOTLIN = "1.3.41" | |
| const val ANDROIDX = "1.0.2" | |
| } |
This file contains hidden or 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
| import org.gradle.kotlin.dsl.* | |
| plugins { | |
| id("com.android.application") | |
| kotlin("android") | |
| kotlin("android.extensions") | |
| } | |
| android { | |
| compileSdkVersion(Config.SDK_VERSION) |
This file contains hidden or 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
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| buildscript { | |
| repositories { | |
| google() | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath (BuildPlugins.GRADLE_PLUGIN) |
This file contains hidden or 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
| include (":app") |
This file contains hidden or 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
| class HttpInterceptor(private val context: Context) : Interceptor { | |
| lateinit var sp: PreferencesManager | |
| companion object { | |
| const val TAG = "HttpInterceptor" | |
| } | |
| override fun intercept(chain: Interceptor.Chain?): Response { | |
| sp = PreferencesManager(context) |
This file contains hidden or 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
| import android.graphics.Bitmap | |
| import com.google.zxing.BarcodeFormat | |
| import com.google.zxing.MultiFormatWriter | |
| import com.google.zxing.common.BitMatrix | |
| /** | |
| * Created by ilham on 9/19/17. | |
| */ |
This file contains hidden or 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
| apply plugin: 'com.android.application' | |
| apply plugin: 'kotlin-android' | |
| apply plugin: 'kotlin-android-extensions' | |
| apply plugin: 'kotlin-kapt' | |
| apply plugin: 'io.fabric' | |
| android { | |
| compileSdkVersion 27 | |
| defaultConfig { |
This file contains hidden or 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
| public class CustomTextWatcher implements TextWatcher{ | |
| private EditText edt; | |
| private String current = ""; | |
| public CustomTextWatcher(EditText edt) { | |
| this.edt = edt; | |
| } | |
| @Override |