plugins { id("com.android.application") id("org.jetbrains.kotlin.android") id("com.google.devtools.ksp") } android { namespace = "com.siteflow.app" compileSdk = 34 defaultConfig { applicationId = "com.siteflow.app" minSdk = 26 targetSdk = 34 versionCode = 1 versionName = "1.0.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true } buildConfigField("String", "BASE_URL", "\"https://siteflow.webnovatech.co.in/api/v1/\"") } buildTypes { release { isMinifyEnabled = false proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) } debug { // Can be pointed to local server when testing on emulator/device buildConfigField("String", "BASE_URL", "\"https://siteflow.webnovatech.co.in/api/v1/\"") } } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = "17" } buildFeatures { compose = true buildConfig = true } composeOptions { kotlinCompilerExtensionVersion = "1.5.14" } packaging { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } } dependencies { // AndroidX Core & Lifecycle implementation("androidx.core:core-ktx:1.13.1") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.0") implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.0") implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.0") implementation("androidx.activity:activity-compose:1.9.0") // Jetpack Compose BOM & UI implementation(platform("androidx.compose:compose-bom:2024.05.00")) implementation("androidx.compose.ui:ui") implementation("androidx.compose.ui:ui-graphics") implementation("androidx.compose.ui:ui-tooling-preview") implementation("androidx.compose.material3:material3") implementation("androidx.compose.material:material-icons-extended") implementation("androidx.navigation:navigation-compose:2.7.7") // Room Database val roomVersion = "2.6.1" implementation("androidx.room:room-runtime:$roomVersion") implementation("androidx.room:room-ktx:$roomVersion") ksp("androidx.room:room-compiler:$roomVersion") // Networking: Retrofit & OkHttp val retrofitVersion = "2.11.0" implementation("com.squareup.retrofit2:retrofit:$retrofitVersion") implementation("com.squareup.retrofit2:converter-gson:$retrofitVersion") implementation("com.squareup.okhttp3:logging-interceptor:4.12.0") // Background Synchronization: WorkManager implementation("androidx.work:work-runtime-ktx:2.9.0") // Image loading for receipts implementation("io.coil-kt:coil-compose:2.6.0") // Coroutines implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1") // Secure Storage for Token implementation("androidx.security:security-crypto:1.1.0-alpha06") // Testing testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.ext:junit:1.1.5") androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") androidTestImplementation(platform("androidx.compose:compose-bom:2024.05.00")) androidTestImplementation("androidx.compose.ui:ui-test-junit4") debugImplementation("androidx.compose.ui:ui-tooling") debugImplementation("androidx.compose.ui:ui-test-manifest") }