forked from melod1n/fast-messenger
return of debug token for auth; ability to disable haptic and set logging level; etc
This commit is contained in:
@@ -4,6 +4,8 @@ import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
|
||||
val sdkPackage: String = getLocalProperty("sdkPackage", "\"\"")
|
||||
val sdkFingerprint: String = getLocalProperty("sdkFingerprint", "\"\"")
|
||||
|
||||
val debugToken: String = getLocalProperty("debugToken", "\"\"")
|
||||
|
||||
fun getLocalProperty(key: String, defValue: String): String {
|
||||
return gradleLocalProperties(rootDir, providers).getProperty(key, defValue)
|
||||
}
|
||||
@@ -32,6 +34,14 @@ androidComponents {
|
||||
comment = "sdkFingerprint for VK"
|
||||
)
|
||||
)
|
||||
put(
|
||||
"debugToken",
|
||||
BuildConfigField(
|
||||
type = "String",
|
||||
value = debugToken,
|
||||
comment = "debug token for authorization"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ fun SignInAlert(
|
||||
onConfirmClick: (token: String) -> Unit
|
||||
) {
|
||||
var tokenText by rememberSaveable {
|
||||
mutableStateOf("")
|
||||
mutableStateOf(BuildConfig.debugToken)
|
||||
}
|
||||
|
||||
val maxWidthModifier = Modifier.fillMaxWidth()
|
||||
|
||||
Reference in New Issue
Block a user