mirror of
https://github.com/bleackstorm/satiea.git
synced 2026-12-03 07:41:56 +01:00
Add necessary permissions, services, and receivers to support scheduled meal notifications and boot completion handling. Also includes dependency updates and minor test fixes.
151 lines
5.3 KiB
Kotlin
151 lines
5.3 KiB
Kotlin
import com.google.gms.googleservices.GoogleServicesPlugin.MissingGoogleServicesStrategy
|
|
import java.time.Duration
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.compose)
|
|
alias(libs.plugins.google.devtools.ksp)
|
|
alias(libs.plugins.secrets)
|
|
alias(libs.plugins.google.services)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.example"
|
|
compileSdk { version = release(36) { minorApiLevel = 1 } }
|
|
|
|
defaultConfig {
|
|
applicationId = "com.aistudio.satiea.jkmzpq"
|
|
minSdk = 24
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
// Do not remove or modify these signingConfigs. They are necessary for building, installing,
|
|
// and updating Android apps in AI Studio.
|
|
signingConfigs {
|
|
create("release") {
|
|
val keystorePath = System.getenv("KEYSTORE_PATH") ?: "${rootDir}/my-upload-key.jks"
|
|
storeFile = file(keystorePath)
|
|
storePassword = System.getenv("STORE_PASSWORD")
|
|
keyAlias = "upload"
|
|
keyPassword = System.getenv("KEY_PASSWORD")
|
|
}
|
|
create("debugConfig") {
|
|
storeFile = file("${rootDir}/debug.keystore")
|
|
storePassword = "android"
|
|
keyAlias = "androiddebugkey"
|
|
keyPassword = "android"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isCrunchPngs = false
|
|
isMinifyEnabled = false
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
// Do not remove or modify this signingConfig assignment. It is necessary for Android apps in
|
|
// AI Studio.
|
|
signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
debug {
|
|
// Do not remove or modify this signingConfig assignment. It is necessary for Android apps in
|
|
// AI Studio.
|
|
signingConfig = signingConfigs.getByName("debugConfig")
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
testOptions { unitTests { isIncludeAndroidResources = true } }
|
|
dependenciesInfo {
|
|
includeInApk = false
|
|
includeInBundle = true
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
failFast = true
|
|
timeout.set(Duration.ofMinutes(2))
|
|
testLogging {
|
|
events("passed", "failed", "skipped")
|
|
}
|
|
}
|
|
|
|
// Configure the Secrets Gradle Plugin to use .env and .env.example files
|
|
// to match the convention used in Web projects.
|
|
secrets {
|
|
propertiesFileName = ".env"
|
|
defaultPropertiesFileName = ".env.example"
|
|
ignoreList.add("FIREBASE_APPCHECK_DEBUG_TOKEN")
|
|
}
|
|
|
|
googleServices { missingGoogleServicesStrategy = MissingGoogleServicesStrategy.WARN }
|
|
|
|
// Some unused dependencies are commented out below instead of being removed.
|
|
// This makes it easy to add them back in the future if needed.
|
|
dependencies {
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(platform(libs.firebase.bom))
|
|
// implementation(libs.accompanist.permissions)
|
|
implementation(libs.androidx.activity.compose)
|
|
// implementation(libs.androidx.camera.camera2)
|
|
// implementation(libs.androidx.camera.core)
|
|
// implementation(libs.androidx.camera.lifecycle)
|
|
// implementation(libs.androidx.camera.view)
|
|
implementation(libs.androidx.compose.material.icons.core)
|
|
implementation(libs.androidx.compose.material.icons.extended)
|
|
implementation(libs.androidx.compose.material3)
|
|
implementation(libs.androidx.compose.ui)
|
|
implementation(libs.androidx.compose.ui.graphics)
|
|
implementation(libs.androidx.compose.ui.tooling.preview)
|
|
implementation(libs.androidx.core.ktx)
|
|
// implementation(libs.androidx.datastore.preferences)
|
|
implementation(libs.androidx.lifecycle.runtime.compose)
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
|
// implementation(libs.androidx.navigation.compose)
|
|
implementation(libs.androidx.room.ktx)
|
|
implementation(libs.androidx.room.runtime)
|
|
implementation(libs.coil.compose)
|
|
implementation(libs.converter.moshi)
|
|
implementation(libs.firebase.ai)
|
|
implementation(libs.firebase.firestore)
|
|
implementation(libs.firebase.auth)
|
|
implementation(libs.androidx.credentials)
|
|
implementation(libs.androidx.credentials.play.services)
|
|
implementation(libs.googleid)
|
|
implementation(libs.play.services.auth)
|
|
implementation(libs.firebase.appcheck.recaptcha)
|
|
implementation(libs.firebase.appcheck.debug)
|
|
implementation(libs.kotlinx.coroutines.android)
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
implementation(libs.logging.interceptor)
|
|
implementation(libs.moshi.kotlin)
|
|
implementation(libs.okhttp)
|
|
// implementation(libs.play.services.location)
|
|
implementation(libs.retrofit)
|
|
testImplementation(libs.androidx.compose.ui.test.junit4)
|
|
testImplementation(libs.androidx.core)
|
|
testImplementation(libs.androidx.junit)
|
|
testImplementation(libs.junit)
|
|
testImplementation(libs.kotlinx.coroutines.test)
|
|
testImplementation(libs.robolectric)
|
|
androidTestImplementation(platform(libs.androidx.compose.bom))
|
|
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.runner)
|
|
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
|
debugImplementation(libs.androidx.compose.ui.tooling)
|
|
"ksp"(libs.androidx.room.compiler)
|
|
"ksp"(libs.moshi.kotlin.codegen)
|
|
}
|