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
private const val MIN = -1private const val MAX = -1 | |
fun getMinAndMax(numberString: String): String = | |
numberString.split(' ') | |
.mapNotNull { stringItem -> stringItem.toIntOrNull() } | |
.distinct() | |
.let { numbersList -> "${numbersList.maxOrNull() ?: MAX} ${numbersList.minOrNull() ?: MIN}" } |
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
<?xml version="1.0" encoding="utf-8"?> | |
<full-backup-content> | |
<include domain="sharedpref" path="."/> | |
<exclude domain="sharedpref" path="device.xml"/> | |
</full-backup-content> |
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
<full-backup-content> | |
<include domain=["file" | "database" | "sharedpref" | |
| "external" | "root"] path="string" /> | |
<exclude domain=["file" | "database" | "sharedpref" | |
| "external" | "root"] path="string" /> | |
</full-backup-content> |
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 Logger { | |
private static boolean enableLog = BuildConfig.DEBUG; | |
public static boolean isEnableLog() { | |
return enableLog; | |
} | |
public static void setEnableLog(boolean enableLog) { | |
Logger.enableLog = enableLog; |
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
android { | |
... | |
defaultConfig {...} | |
buildTypes {...} | |
productFlavors { | |
admin { | |
.. | |
} | |
customer { | |
.. |
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
android { | |
... | |
defaultConfig {...} | |
buildTypes {...} | |
productFlavors { | |
admin { | |
.. | |
} | |
customer { | |
.. |
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
buildTypes | |
{ | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
debug { | |
applicationIdSuffix ".debug" | |
} |
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
org.gradle.daemon=true | |
org.gradle.parallel=true | |
org.gradle.configureondemand=true | |
android.enableBuildCache=true | |
org.gradle.jvmargs=-Xmx3072m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | |
org.gradle.caching= true | |
android.useAndroidX=true | |
android.enableJetifier=true | |
kapt.incremental.apt=true | |
kapt.use.worker.api=true |
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
implementation 'com.toastfix:toastcompatwrapper:{latest_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
ToastHandler.INSTANCE.showToast(this, "Hi,I am Toast", Toast.LENGTH_LONG) |
NewerOlder