summaryrefslogtreecommitdiff
path: root/llama.cpp/examples/llama.android/app/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'llama.cpp/examples/llama.android/app/build.gradle.kts')
-rw-r--r--llama.cpp/examples/llama.android/app/build.gradle.kts58
1 files changed, 58 insertions, 0 deletions
diff --git a/llama.cpp/examples/llama.android/app/build.gradle.kts b/llama.cpp/examples/llama.android/app/build.gradle.kts
new file mode 100644
index 0000000..2edfe98
--- /dev/null
+++ b/llama.cpp/examples/llama.android/app/build.gradle.kts
@@ -0,0 +1,58 @@
+plugins {
+ alias(libs.plugins.android.application)
+ alias(libs.plugins.jetbrains.kotlin.android)
+}
+
+android {
+ namespace = "com.example.llama"
+ compileSdk = 36
+
+ defaultConfig {
+ applicationId = "com.example.llama.aichat"
+
+ minSdk = 33
+ targetSdk = 36
+
+ versionCode = 1
+ versionName = "1.0"
+
+ testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
+ vectorDrawables {
+ useSupportLibrary = true
+ }
+ }
+
+ buildTypes {
+ debug {
+ isMinifyEnabled = true
+ isShrinkResources = true
+ proguardFiles(
+ getDefaultProguardFile("proguard-android.txt"),
+ "proguard-rules.pro"
+ )
+ }
+ release {
+ isMinifyEnabled = true
+ isShrinkResources = true
+ proguardFiles(
+ getDefaultProguardFile("proguard-android-optimize.txt"),
+ "proguard-rules.pro"
+ )
+ }
+ }
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
+ }
+}
+
+dependencies {
+ implementation(libs.bundles.androidx)
+ implementation(libs.material)
+
+ implementation(project(":lib"))
+
+ testImplementation(libs.junit)
+ androidTestImplementation(libs.androidx.junit)
+ androidTestImplementation(libs.androidx.espresso.core)
+}