|
| 1 | +plugins { |
| 2 | + id("com.android.application") |
| 3 | + id("org.jetbrains.kotlin.android") |
| 4 | +} |
| 5 | + |
| 6 | +android { |
| 7 | + namespace = "com.google.mediapipe.examples.llminference" |
| 8 | + compileSdk = 34 |
| 9 | + |
| 10 | + defaultConfig { |
| 11 | + applicationId = "com.google.mediapipe.examples.llminference" |
| 12 | + minSdk = 24 |
| 13 | + targetSdk = 34 |
| 14 | + versionCode = 1 |
| 15 | + versionName = "1.0" |
| 16 | + |
| 17 | + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
| 18 | + vectorDrawables { |
| 19 | + useSupportLibrary = true |
| 20 | + } |
| 21 | + } |
| 22 | + |
| 23 | + buildTypes { |
| 24 | + release { |
| 25 | + isMinifyEnabled = false |
| 26 | + proguardFiles( |
| 27 | + getDefaultProguardFile("proguard-android-optimize.txt"), |
| 28 | + "proguard-rules.pro" |
| 29 | + ) |
| 30 | + } |
| 31 | + } |
| 32 | + compileOptions { |
| 33 | + sourceCompatibility = JavaVersion.VERSION_1_8 |
| 34 | + targetCompatibility = JavaVersion.VERSION_1_8 |
| 35 | + } |
| 36 | + kotlinOptions { |
| 37 | + jvmTarget = "1.8" |
| 38 | + } |
| 39 | + buildFeatures { |
| 40 | + compose = true |
| 41 | + } |
| 42 | + composeOptions { |
| 43 | + kotlinCompilerExtensionVersion = "1.5.9" |
| 44 | + } |
| 45 | + packaging { |
| 46 | + resources { |
| 47 | + excludes += "/META-INF/{AL2.0,LGPL2.1}" |
| 48 | + } |
| 49 | + } |
| 50 | +} |
| 51 | + |
| 52 | +dependencies { |
| 53 | + |
| 54 | + implementation("androidx.core:core-ktx:1.12.0") |
| 55 | + implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0") |
| 56 | + implementation("androidx.activity:activity-compose:1.8.2") |
| 57 | + implementation("androidx.navigation:navigation-compose:2.7.7") |
| 58 | + implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0") |
| 59 | + implementation("androidx.lifecycle:lifecycle-runtime-compose:2.7.0") |
| 60 | + |
| 61 | + implementation(platform("androidx.compose:compose-bom:2024.02.00")) |
| 62 | + implementation("androidx.compose.ui:ui") |
| 63 | + implementation("androidx.compose.ui:ui-graphics") |
| 64 | + implementation("androidx.compose.ui:ui-tooling-preview") |
| 65 | + implementation("androidx.compose.material3:material3") |
| 66 | + |
| 67 | + implementation ("com.google.mediapipe:tasks-genai:0.10.11") |
| 68 | + |
| 69 | + testImplementation("junit:junit:4.13.2") |
| 70 | + androidTestImplementation("androidx.test.ext:junit:1.1.5") |
| 71 | + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") |
| 72 | + androidTestImplementation(platform("androidx.compose:compose-bom:2023.03.00")) |
| 73 | + androidTestImplementation("androidx.compose.ui:ui-test-junit4") |
| 74 | + debugImplementation("androidx.compose.ui:ui-tooling") |
| 75 | + debugImplementation("androidx.compose.ui:ui-test-manifest") |
| 76 | +} |
0 commit comments