- Image reading moved to IO thread with runCatching to prevent main thread crash and OOM on large gallery images - 7-day calorie bar chart added to dashboard using Canvas - Version bumped to 1.2 (code 3) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
55 lines
1.4 KiB
Groovy
55 lines
1.4 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'org.jetbrains.kotlin.plugin.compose'
|
|
}
|
|
|
|
android {
|
|
namespace 'com.danvics.calorieai'
|
|
compileSdk 35
|
|
|
|
defaultConfig {
|
|
applicationId 'com.danvics.calorieai'
|
|
minSdk 26
|
|
targetSdk 35
|
|
versionCode 3
|
|
versionName '1.2'
|
|
}
|
|
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
|
|
applicationVariants.configureEach { variant ->
|
|
variant.outputs.configureEach {
|
|
outputFileName = "calorie-ai-${variant.versionName}.apk"
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
|
|
testOptions {
|
|
unitTests.returnDefaultValues = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation platform('androidx.compose:compose-bom:2025.05.01')
|
|
implementation 'androidx.activity:activity-compose:1.10.1'
|
|
implementation 'androidx.compose.material3:material3'
|
|
implementation 'androidx.compose.material:material-icons-extended'
|
|
implementation 'androidx.compose.ui:ui'
|
|
implementation 'androidx.compose.ui:ui-tooling-preview'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0'
|
|
debugImplementation 'androidx.compose.ui:ui-tooling'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
testImplementation 'org.json:json:20240303'
|
|
}
|