forked from melod1n/fast-messenger
82fb78e9ea
Release Notes * Bumped haze, agp, and guava dependencies * Implemented ordering functionality for friends list * Added scroll to top feature in friends and conversations screens * Improved messages handling * Fixed coloring issues * Cache improvements * Implemented logout functionality * Implemented new authorization flow (no auto-token re-request) * Added support for sticker pack preview attachments * Bump LongPoll to version 19 * Markdown support for messages bubbles * Adjust app name font size based on screen width --------- Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
83 lines
2.2 KiB
Kotlin
83 lines
2.2 KiB
Kotlin
import com.android.build.api.variant.BuildConfigField
|
|
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)
|
|
}
|
|
|
|
plugins {
|
|
alias(libs.plugins.fast.android.feature)
|
|
alias(libs.plugins.fast.android.library.compose)
|
|
}
|
|
|
|
androidComponents {
|
|
onVariants { variant ->
|
|
variant.buildConfigFields.apply {
|
|
put(
|
|
"sdkPackage",
|
|
BuildConfigField(
|
|
type = "String",
|
|
value = sdkPackage,
|
|
comment = "sdkPackage for VK"
|
|
)
|
|
)
|
|
put(
|
|
"sdkFingerprint",
|
|
BuildConfigField(
|
|
type = "String",
|
|
value = sdkFingerprint,
|
|
comment = "sdkFingerprint for VK"
|
|
)
|
|
)
|
|
put(
|
|
"debugToken",
|
|
BuildConfigField(
|
|
type = "String",
|
|
value = debugToken,
|
|
comment = "debug token for authorization"
|
|
)
|
|
)
|
|
}
|
|
}
|
|
}
|
|
|
|
// TODO: 29-Mar-25, Danil Nikolaev: remove when autofill changes will be in release
|
|
configurations.all {
|
|
resolutionStrategy {
|
|
force(libs.compose.ui)
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "dev.meloda.fast.auth"
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.core.domain)
|
|
implementation(projects.core.ui)
|
|
|
|
implementation(platform(libs.compose.bom))
|
|
implementation(libs.bundles.compose)
|
|
|
|
implementation(libs.coil.compose)
|
|
|
|
implementation(libs.koin.androidx.compose)
|
|
implementation(libs.koin.android)
|
|
|
|
implementation(libs.androidx.navigation.compose)
|
|
implementation(libs.kotlin.serialization)
|
|
|
|
implementation(libs.eithernet)
|
|
|
|
androidTestImplementation(libs.bundles.compose.ui.test)
|
|
}
|