Skip to content

Commit 9fc004f

Browse files
committed
[ExecuTorch LLAMA Android] pull in java deps automatically
1 parent ba920e4 commit 9fc004f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

examples/demo-apps/android/LlamaDemo/app/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ dependencies {
5555
implementation("androidx.appcompat:appcompat:1.6.1")
5656
implementation("androidx.camera:camera-core:1.3.0-rc02")
5757
implementation("androidx.constraintlayout:constraintlayout:2.2.0-alpha12")
58-
implementation("com.facebook.soloader:soloader:0.10.5")
59-
implementation("com.facebook.fbjni:fbjni:0.5.1")
58+
implementation("com.facebook.fbjni:fbjni:0.2.2")
59+
implementation("org.pytorch.executorch:executorch") {
60+
exclude("com.facebook.fbjni", "fbjni-java-only")
61+
}
6062
testImplementation("junit:junit:4.13.2")
6163
androidTestImplementation("androidx.test.ext:junit:1.1.5")
6264
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")

examples/demo-apps/android/LlamaDemo/settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ dependencyResolutionManagement {
2525
rootProject.name = "ExecuTorch Demo"
2626

2727
include(":app")
28+
includeBuild("../../../../extension/android")

extension/android/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ plugins {
22
id 'java-library'
33
}
44

5+
group 'org.pytorch.executorch'
6+
57
repositories {
68
mavenCentral()
79
}

0 commit comments

Comments
 (0)