Basic gradle set up integration.
This commit is contained in:
@@ -2,6 +2,13 @@ plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.kotlin.android)
|
||||
alias(libs.plugins.kotlin.compose)
|
||||
id("com.chaquo.python") // Apply it here
|
||||
}
|
||||
|
||||
chaquopy {
|
||||
defaultConfig {
|
||||
version = "3.11" // Python 3.11 is very stable for Android right now
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -16,6 +23,10 @@ android {
|
||||
versionName = "1.0"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
ndk {
|
||||
abiFilters += listOf("arm64-v8a", "x86_64")
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@@ -56,4 +67,11 @@ dependencies {
|
||||
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
|
||||
debugImplementation(libs.androidx.compose.ui.tooling)
|
||||
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
||||
|
||||
// LangChain4j Core Orchestration
|
||||
implementation("dev.langchain4j:langchain4j:0.29.1")
|
||||
|
||||
// We use the OpenAI module because almost all local Android LLM runners
|
||||
// (like Llama.cpp) host a local server that mimics the OpenAI API format.
|
||||
implementation("dev.langchain4j:langchain4j-open-ai:0.29.1")
|
||||
}
|
||||
Reference in New Issue
Block a user