This file contains 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: 'io.gitlab.arturbosch.detekt' | |
apply plugin: 'org.jmailen.kotlinter' | |
apply plugin: 'checkstyle' | |
checkstyle { | |
toolVersion = "8.28" | |
} | |
task checkstyle(type: Checkstyle) { | |
source("src") |
This file contains 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: 'io.gitlab.arturbosch.detekt' | |
apply plugin: 'org.jmailen.kotlinter' | |
apply plugin: 'checkstyle' | |
checkstyle { | |
toolVersion = "8.28" | |
} | |
task checkstyle(type: Checkstyle) { | |
source("src") |
This file contains 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
org.gradle.caching=true |
This file contains 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
fun <T : View> View.bindView(@IdRes res: Int): MutableBindViewDelegate<T> { | |
return MutableBindViewDelegate(lazy(LazyThreadSafetyMode.NONE) { findViewById<T>(res)!! }) | |
} | |
class MutableBindViewDelegate<T>(private val lazy: Lazy<T>) { | |
private var value: T? = null | |
operator fun getValue(thisRef: Any?, property: KProperty<*>): T { | |
return value ?: lazy.getValue(thisRef, property) |
This file contains 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
object Libs { | |
val kotlinGradle = "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" | |
val kotlinterGradle = "org.jmailen.gradle:kotlinter-gradle:$kotlinterVersion" | |
val kotlinAllOpen = "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion" | |
} | |
object Version { | |
val minSdkVersion = 23 |
This file contains 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
interface AuthPortal { | |
fun getLoginScreen(): Screen<*> | |
fun getAuthenticateBiometricScreen(): Screen<*> | |
fun getConfirmBiometricScreen( | |
accessToken: String, | |
authenticationCallback: AuthenticationCallback | |
): Screen<*> |
This file contains 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
interface AuthPortal { | |
fun getLoginScreen(): Screen<*> | |
fun getAuthenticateBiometricScreen(): Screen<*> | |
fun getConfirmBiometricScreen( | |
accessToken: String, | |
authenticationCallback: AuthenticationCallback | |
): Screen<*> |
OlderNewer