1 plugins {
2 id("com.android.application")
3 id("org.jetbrains.kotlin.android")
4 id("org.jetbrains.kotlin.plugin.compose")
5 }
6
7 android {
8 namespace = "com.ondeinference.example"
9 compileSdk = 35
10
11 defaultConfig {
12 applicationId = "com.ondeinference.example"
13 minSdk = 26 // Os.setenv needs API 26+
14 targetSdk = 35
15 versionCode = 1
16 versionName = "1.0"
17 }
18
19 buildTypes {
20 release {
21 isMinifyEnabled = true
22 proguardFiles(
23 getDefaultProguardFile("proguard-android-optimize.txt"),
24 "proguard-rules.pro",
25 )
26 }
27 }
28
29 compileOptions {
30 sourceCompatibility = JavaVersion.VERSION_17
31 targetCompatibility = JavaVersion.VERSION_17
32 }
33
34 kotlinOptions {
35 jvmTarget = "17"
36 }
37
38 buildFeatures {
39 compose = true
40 }
41
42 packaging {
43 resources {
44 excludes += "/META-INF/{AL2.0,LGPL2.1}"
45 }
46 }
47 }
48
49 dependencies {
50 // The local SDK — built straight from source, no publish step needed.
51 // To test against the published release instead, swap this for:
52 // implementation("com.ondeinference:onde-inference:0.1.3")
53 implementation(project(":lib"))
54
55 // Compose
56 implementation(platform("androidx.compose:compose-bom:2024.10.01"))
57 implementation("androidx.compose.ui:ui")
58 implementation("androidx.compose.ui:ui-graphics")
59 implementation("androidx.compose.ui:ui-tooling-preview")
60 implementation("androidx.compose.material3:material3")
61 implementation("androidx.compose.material:material-icons-core")
62
63 // AndroidX
64 implementation("androidx.core:core-ktx:1.15.0")
65 implementation("androidx.activity:activity-compose:1.9.3")
66 implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
67 implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.7")
68 implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7")
69
70 // Coroutines
71 implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1")
72
73 debugImplementation("androidx.compose.ui:ui-tooling")
74 debugImplementation("androidx.compose.ui:ui-test-manifest")
75 }