Skip to content

Commit 8140a43

Browse files
committed
Fix gradle
1 parent 7214901 commit 8140a43

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ plugins {
1111
id("org.jetbrains.kotlin.android")
1212
}
1313

14-
def qnnVersion = System.properties['qnnVersion']
14+
val qnnVersion: String? = project.findProperty("qnnVersion") as? String
15+
1516

1617
android {
1718
namespace = "com.example.executorchllamademo"
@@ -63,8 +64,8 @@ dependencies {
6364
implementation("com.google.android.material:material:1.12.0")
6465
implementation("androidx.activity:activity:1.9.0")
6566
implementation("org.json:json:20250107")
66-
if (qnnVersion) {
67-
implementation "com.qualcomm.qti:qnn-runtime:$qnnVersion"
67+
if (!qnnVersion.isNullOrEmpty()) {
68+
implementation("com.qualcomm.qti:qnn-runtime:$qnnVersion")
6869
}
6970
testImplementation("junit:junit:4.13.2")
7071
androidTestImplementation("androidx.test.ext:junit:1.1.5")

0 commit comments

Comments
 (0)