Skip to content

Commit

Permalink
Android SDK & NDK added
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinZavior committed Sep 1, 2024
1 parent 2976571 commit 0ab7a6c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/precompile_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Set up Android SDK
if: (matrix.os == 'ubuntu-20.04')
uses: android-actions/setup-android@v2
- name: Install Specific NDK
if: (matrix.os == 'ubuntu-20.04')
run: sdkmanager --install "ndk;24.0.8215888"
- name: Precompile (with iOS)
if: (matrix.os == 'macOS-latest')
run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=LtbLightning/bdk-flutter
Expand Down
1 change: 0 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ apply plugin: 'kotlin-android'

android {
compileSdkVersion 31
namespace "io.bdk.f.bdk_flutter"

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest></manifest>
<manifest package="io.bdk.f.bdk_flutter"></manifest>
4 changes: 2 additions & 2 deletions example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral

SPEC CHECKSUMS:
bdk_flutter: f31096ce6d28094dbbb43d2a3fb130f7c54683df
bdk_flutter: d0437c6116753242241fed48270587542a636d40
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24

PODFILE CHECKSUM: 6acf97521436d16fc31cd5e1a02000905acdb3ae

COCOAPODS: 1.14.3
COCOAPODS: 1.15.2
6 changes: 4 additions & 2 deletions macos/bdk_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ Pod::Spec.new do |s|
}
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
# Flutter.framework does not contain a i386 slice.
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
'OTHER_LDFLAGS' => '-force_load ${BUILT_PRODUCTS_DIR}/libbdk_flutter.a',
'DEAD_CODE_STRIPPING' => 'YES',
'STRIP_INSTALLED_PRODUCT[config=Release][sdk=*][arch=*]' => "YES",
'STRIP_STYLE[config=Release][sdk=*][arch=*]' => "non-global",
'DEPLOYMENT_POSTPROCESSING[config=Release][sdk=*][arch=*]' => "YES",
}
end
3 changes: 1 addition & 2 deletions rust/cargokit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ cargo:
toolchain: stable
precompiled_binaries:
url_prefix: https://github.com/LtbLightning/bdk-flutter/releases/download/precompiled_
public_key: 0e43d5e8452d00db7f3000c18fb1ba796babfcb5dc6306bb0629eff24f8be85b

public_key: 0e43d5e8452d00db7f3000c18fb1ba796babfcb5dc6306bb0629eff24f8be85b

0 comments on commit 0ab7a6c

Please sign in to comment.