forked from melod1n/fast-messenger
43539139e8
* new attachments in messages history - photo, video, audio, file, link * improve attachments in messages history and adjusted font size for logo's text in auth screen * audio duration, file preview and url preview are now visible in attachments in messages history screen * make MessageBubble width adapt to attachments container width * topbar back icon crossfade animation * implement rich text for message input * handle click and long click on attachments * added click and long click handlers for attachments in message bubbles * enabled opening photos, files, and links when clicked. * implemented basic long-click logging for photos. * handled back press to return to Conversations from other tabs. * corrected the logic for filtering and selecting video images. * updated string resources for attachments, including a new "Clip" string. * make MessageBubble mention text underline on out messages
76 lines
2.0 KiB
Kotlin
76 lines
2.0 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"
|
|
)
|
|
)
|
|
}
|
|
}
|
|
}
|
|
|
|
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)
|
|
}
|