Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[resolver]
incompatible-rust-versions = "fallback"
15 changes: 12 additions & 3 deletions .github/workflows/publish-android.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Android Publish

env:
NDK_RELEASE: r28b
NDK_VERSION: 28.1.13356709

on:
release:
types: [published]
Expand Down Expand Up @@ -53,11 +57,16 @@ jobs:
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: r28c
ndk-version: ${{ env.NDK_RELEASE }}
add-to-path: true

- name: Export Android NDK root
run: echo "ANDROID_NDK_ROOT=${{ steps.setup-ndk.outputs.ndk-path }}" >> "$GITHUB_ENV"
- name: Verify and export Android NDK environment
env:
INSTALLED_NDK_VERSION: ${{ steps.setup-ndk.outputs.ndk-full-version }}
run: |
test "$INSTALLED_NDK_VERSION" = "$NDK_VERSION"
echo "ANDROID_NDK_HOME=${{ steps.setup-ndk.outputs.ndk-path }}" >> "$GITHUB_ENV"
echo "ANDROID_NDK_ROOT=${{ steps.setup-ndk.outputs.ndk-path }}" >> "$GITHUB_ENV"

- name: Generate Android bindings
run: scripts/uniffi_bindgen_generate_kotlin_android.sh
Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/publish-jvm.yml

This file was deleted.

9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
/target/
/bindings/uniffi-bindgen/target/
/bindings/kotlin/ldk-node-android/native-debug-symbols.zip

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# Built by publish-android.yml / uniffi_bindgen_generate_kotlin_android.sh
/bindings/kotlin/ldk-node-android/lib/src/main/jniLibs/
Comment thread
ovitrif marked this conversation as resolved.
# Generated Kotlin JVM bindings and native libraries
/bindings/kotlin/ldk-node-jvm/lib/src/main/kotlin/org/lightningdevkit/ldknode/ldk_node*.kt
/bindings/kotlin/ldk-node-jvm/lib/src/main/resources/

# These are backup files generated by rustfmt
**/*.rs.bk
Expand Down
Loading