Skip to content

Commit d2c6f28

Browse files
committed
wip: debug gradlew test
1 parent e6ff7b9 commit d2c6f28

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/android_ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ jobs:
3838
- name: Build AAR
3939
run: cargo pkg transact aar
4040

41+
- name: Verify test resources
42+
working-directory: packages/android/algokit_transact
43+
run: |
44+
echo "Checking for test resources..."
45+
ls -la src/test/resources/ || echo "No test resources directory found"
46+
if [ -f src/test/resources/libalgokit_transact_ffi.so ]; then
47+
echo "✓ Host library found for unit tests"
48+
file src/test/resources/libalgokit_transact_ffi.so
49+
else
50+
echo "✗ Host library NOT found - unit tests will fail"
51+
exit 1
52+
fi
53+
4154
- name: Test
4255
working-directory: packages/android/algokit_transact
4356
run: ./gradlew test

packages/android/algokit_transact/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ android {
3636
kotlinOptions {
3737
jvmTarget = "21"
3838
}
39+
testOptions {
40+
unitTests {
41+
isIncludeAndroidResources = true
42+
all {
43+
it.systemProperty("jna.library.path", "src/test/resources")
44+
}
45+
}
46+
}
3947
}
4048

4149
dependencies {

0 commit comments

Comments
 (0)