Skip to content

Commit 4f98779

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
pull in java deps automatically (#2596)
Summary: Pull Request resolved: #2596 Reviewed By: shoumikhin Differential Revision: D55255785 Pulled By: kirklandsign fbshipit-source-id: 4815683555cd2f22dd82a9fcd2baa3c6f2ff5656
1 parent dfeadab commit 4f98779

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
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")
5958
implementation("com.facebook.fbjni:fbjni:0.5.1")
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ dependencyResolutionManagement {
2525
rootProject.name = "ExecuTorch Demo"
2626

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

extension/android/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
plugins {
210
id 'java-library'
311
}
412

13+
group 'org.pytorch.executorch'
14+
515
repositories {
616
mavenCentral()
717
}

0 commit comments

Comments
 (0)