Skip to content

Commit d25ce54

Browse files
phaitingHaiting Pu
andauthored
Convert the unit test from java to kotlin (#10702)
### Summary This change converts the unit test from java to kotlin. ### Test plan ./gradlew :executorch_android:testDebugUnitTest --------- Co-authored-by: Haiting Pu <[email protected]>
1 parent 380c4f1 commit d25ce54

File tree

6 files changed

+530
-535
lines changed

6 files changed

+530
-535
lines changed

extension/android/executorch_android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
plugins {
1010
id "com.android.library" version "8.9.0"
1111
id "com.vanniktech.maven.publish" version "0.31.0"
12+
alias(libs.plugins.jetbrains.kotlin.android)
1213
}
1314

1415
android {
@@ -34,6 +35,9 @@ android {
3435
resources.srcDirs += [ 'src/androidTest/resources' ]
3536
}
3637
}
38+
kotlinOptions {
39+
jvmTarget = "1.8"
40+
}
3741
}
3842

3943
task copyTestRes(type: Exec) {
@@ -43,6 +47,7 @@ task copyTestRes(type: Exec) {
4347
dependencies {
4448
implementation 'com.facebook.fbjni:fbjni:0.5.1'
4549
implementation 'com.facebook.soloader:nativeloader:0.10.5'
50+
implementation libs.core.ktx
4651
testImplementation 'junit:junit:4.12'
4752
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
4853
androidTestImplementation 'androidx.test:rules:1.2.0'

extension/android/executorch_android/src/test/java/org/pytorch/executorch/EValueTest.java

Lines changed: 0 additions & 230 deletions
This file was deleted.

0 commit comments

Comments
 (0)