Skip to content

Commit 13fa51d

Browse files
committed
update to forked yttrium, bundle .aar without .so
1 parent 84e2e48 commit 13fa51d

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
- name: Build native dependencies
4040
run: |
4141
./scripts/build_native_deps.sh
42+
- name: Build Kotlin dependencies
43+
run: |
44+
pushd scripts/yttrium
45+
./generate_kotlin_locally.sh
46+
popd
4247
4348
- name: Get version tag
4449
id: get_version

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ run_tests_all.sh
5858
*.env.secret*
5959

6060
scripts/yttrium
61-
libuniffi_yttrium.so
61+
libuniffi_yttrium.so
62+
*.aar

packages/reown_yttrium/android/build.gradle

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ android {
5656
}
5757
}
5858

59-
packaging {
60-
jniLibs.pickFirsts.add("lib/arm64-v8a/libuniffi_yttrium.so")
61-
jniLibs.pickFirsts.add("lib/armeabi-v7a/libuniffi_yttrium.so")
62-
jniLibs.pickFirsts.add("lib/x86_64/libuniffi_yttrium.so")
63-
jniLibs.pickFirsts.add("lib/**/libjnidispatch.so")
64-
}
65-
6659
testOptions {
6760
unitTests.all {
6861
useJUnitPlatform()
@@ -81,7 +74,7 @@ def yttriumVersion = project.hasProperty("yttriumCiVersion") ? project.getProper
8174

8275
dependencies {
8376
implementation("net.java.dev.jna:jna:5.17.0@aar")
84-
implementation("com.github.reown-com:yttrium:$yttriumVersion")
77+
implementation(files("../../../android-release.aar"))
8578

8679
testImplementation("org.jetbrains.kotlin:kotlin-test")
8780
testImplementation("org.mockito:mockito-core:5.0.0")

scripts/build_native_deps.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,13 @@ set -x -e
55

66
if [ ! -e yttrium/.git ]; then
77
rm -rf yttrium
8-
git clone https://github.com/reown-com/yttrium
8+
git clone https://github.com/cake-tech/yttrium
99
fi
1010
cd yttrium
11-
# git checkout ed8e8f5af2029406263be5993e484c3a69c1db7a
1211
git reset --hard
13-
git checkout 9f81ab8e0fb879a994392d603b7908b2104d1735
12+
git checkout 7a8b5bd01876662158db334381db8592c66952e6
1413
git reset --hard
1514

16-
sed -i.bak "s/-i ''/-i.bak/g" build-kotlin.sh
17-
sed -i.bak "s/--bin uniffi-bindgen generate/-p kotlin-ffi --bin uniffi-bindgen generate/g" build-kotlin.sh
18-
sed -i.bak "s/stat -f%z/echo stat -f%z/g" build-kotlin.sh
19-
sed -i.bak "s/ -t arm64-v8a/ -t arm64-v8a -t x86_64/g" build-kotlin.sh
20-
2115
cargo install cargo-ndk
2216
ENABLE_STRIP=false PROFILE=release bash -x ./build-kotlin.sh
2317

0 commit comments

Comments
 (0)