2026-06-15 18:43:43 -05:00
|
|
|
plugins {
|
|
|
|
|
id("com.android.application")
|
|
|
|
|
id("org.jetbrains.kotlin.android")
|
|
|
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
|
|
|
id("com.google.gms.google-services")
|
|
|
|
|
id("com.google.firebase.crashlytics")
|
|
|
|
|
id("com.google.dagger.hilt.android")
|
|
|
|
|
id("com.google.devtools.ksp")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
2026-06-16 20:03:58 -05:00
|
|
|
namespace = "app.closer"
|
2026-06-15 18:43:43 -05:00
|
|
|
compileSdk = 35
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
2026-06-16 20:03:58 -05:00
|
|
|
applicationId = "app.closer"
|
2026-06-15 18:43:43 -05:00
|
|
|
minSdk = 26
|
|
|
|
|
targetSdk = 35
|
|
|
|
|
versionCode = 1
|
|
|
|
|
versionName = "0.1.0"
|
2026-06-17 01:22:24 -05:00
|
|
|
|
|
|
|
|
// RevenueCat API key is supplied via local.properties (RC_API_KEY) and never committed.
|
2026-06-17 02:00:39 -05:00
|
|
|
// TODO: Replace the PLACEHOLDER_RC_API_KEY fallback with a real key in local.properties before release.
|
|
|
|
|
// The app will not process purchases correctly while the placeholder is active.
|
2026-06-17 01:22:24 -05:00
|
|
|
buildConfigField(
|
|
|
|
|
"String",
|
|
|
|
|
"RC_API_KEY",
|
|
|
|
|
"\"${properties["RC_API_KEY"]?.toString() ?: "PLACEHOLDER_RC_API_KEY"}\""
|
|
|
|
|
)
|
2026-06-15 18:43:43 -05:00
|
|
|
}
|
|
|
|
|
|
2026-06-16 01:57:48 -05:00
|
|
|
buildFeatures {
|
|
|
|
|
buildConfig = true
|
2026-06-16 20:16:47 -05:00
|
|
|
compose = true
|
2026-06-16 01:57:48 -05:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 18:43:43 -05:00
|
|
|
buildTypes {
|
|
|
|
|
release {
|
2026-06-16 20:16:47 -05:00
|
|
|
isMinifyEnabled = true
|
|
|
|
|
isShrinkResources = true
|
2026-06-15 18:43:43 -05:00
|
|
|
proguardFiles(
|
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
|
"proguard-rules.pro"
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
jvmTarget = "17"
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-16 22:59:38 -05:00
|
|
|
}
|
2026-06-16 20:16:47 -05:00
|
|
|
|
2026-06-16 22:59:38 -05:00
|
|
|
ksp {
|
|
|
|
|
arg("room.schemaLocation", "$projectDir/schemas")
|
2026-06-15 18:43:43 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
val composeBom = platform("androidx.compose:compose-bom:2025.01.01")
|
|
|
|
|
implementation(composeBom)
|
|
|
|
|
|
|
|
|
|
implementation("androidx.core:core-ktx:1.15.0")
|
|
|
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
|
|
|
|
implementation("androidx.activity:activity-compose:1.9.3")
|
|
|
|
|
|
|
|
|
|
// Compose
|
|
|
|
|
implementation("androidx.compose.ui:ui")
|
|
|
|
|
implementation("androidx.compose.ui:ui-graphics")
|
|
|
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
|
|
|
implementation("androidx.compose.material3:material3")
|
2026-06-16 00:01:34 -05:00
|
|
|
implementation("androidx.compose.material:material-icons-extended")
|
2026-06-15 18:43:43 -05:00
|
|
|
|
|
|
|
|
// Navigation
|
|
|
|
|
implementation("androidx.navigation:navigation-compose:2.8.5")
|
|
|
|
|
|
|
|
|
|
// ViewModel
|
|
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7")
|
|
|
|
|
|
|
|
|
|
// Firebase
|
|
|
|
|
implementation(platform("com.google.firebase:firebase-bom:33.8.0"))
|
|
|
|
|
implementation("com.google.firebase:firebase-auth-ktx")
|
|
|
|
|
implementation("com.google.firebase:firebase-firestore-ktx")
|
|
|
|
|
implementation("com.google.firebase:firebase-messaging-ktx")
|
|
|
|
|
implementation("com.google.firebase:firebase-config-ktx")
|
|
|
|
|
implementation("com.google.firebase:firebase-analytics-ktx")
|
|
|
|
|
implementation("com.google.firebase:firebase-crashlytics-ktx")
|
2026-06-16 01:13:20 -05:00
|
|
|
implementation("com.google.firebase:firebase-appcheck-ktx")
|
|
|
|
|
implementation("com.google.firebase:firebase-appcheck-playintegrity")
|
|
|
|
|
debugImplementation("com.google.firebase:firebase-appcheck-debug")
|
2026-06-15 18:43:43 -05:00
|
|
|
|
|
|
|
|
// Hilt
|
|
|
|
|
implementation("com.google.dagger:hilt-android:2.53.1")
|
|
|
|
|
ksp("com.google.dagger:hilt-android-compiler:2.53.1")
|
|
|
|
|
implementation("androidx.hilt:hilt-navigation-compose:1.2.0")
|
|
|
|
|
|
|
|
|
|
// Room
|
|
|
|
|
implementation("androidx.room:room-runtime:2.6.1")
|
|
|
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
|
|
|
ksp("androidx.room:room-compiler:2.6.1")
|
|
|
|
|
|
|
|
|
|
// DataStore
|
|
|
|
|
implementation("androidx.datastore:datastore-preferences:1.1.2")
|
|
|
|
|
|
2026-06-16 20:16:47 -05:00
|
|
|
// Encrypted storage
|
2026-06-16 22:05:37 -05:00
|
|
|
implementation("androidx.security:security-crypto:1.0.0")
|
2026-06-16 20:16:47 -05:00
|
|
|
|
2026-06-17 19:37:19 -05:00
|
|
|
// Play Integrity API — runtime device integrity check
|
|
|
|
|
implementation("com.google.android.play:integrity:1.4.0")
|
|
|
|
|
|
|
|
|
|
// Firebase Functions — callable for server-side integrity token verification
|
|
|
|
|
implementation("com.google.firebase:firebase-functions-ktx")
|
|
|
|
|
|
2026-06-16 22:42:53 -05:00
|
|
|
// RevenueCat native Android SDK (group: com.revenuecat.purchases, artifact: purchases)
|
|
|
|
|
implementation("com.revenuecat.purchases:purchases:8.20.0")
|
2026-06-15 18:43:43 -05:00
|
|
|
|
|
|
|
|
// Coroutines
|
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
|
|
|
|
|
|
|
|
|
// Debug
|
|
|
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
|
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
2026-06-17 21:08:13 -05:00
|
|
|
|
|
|
|
|
// Unit tests — JVM only (no device/emulator required)
|
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
|
|
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
|
|
|
|
|
testImplementation("io.mockk:mockk:1.13.14")
|
2026-06-15 18:43:43 -05:00
|
|
|
}
|