Skip to content

Commit

Permalink
🔧 Make pod shell respect configured profile (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 authored Nov 27, 2024
1 parent 6937632 commit 45ddfe0
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
> Versions prefix will sync with `crate::ordinals`.
> See https://crates.io/crates/ordinals/versions.
## 0.0.8+4

- Make pod shell respect configured profile on Darwin.
- Make shell scripts executable.

## 0.0.8+3

- Support `flutter_rust_bridge` 2.5.
Expand Down
Empty file modified cargokit/build_pod.sh
100644 → 100755
Empty file.
Empty file modified cargokit/run_build_tool.sh
100644 → 100755
Empty file.
8 changes: 6 additions & 2 deletions ios/ord_dart.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,17 @@ Pod::Spec.new do |s|

s.script_phase = {
:name => 'Build Rust library',
# First argument is relative path to the `rust` folder, second is name of rust library
:script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../rust ord_dart',
:execution_position => :before_compile,
:input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'],
# Let XCode know that the static library referenced in -force_load below is
# created by this build step.
:output_files => ["${BUILT_PRODUCTS_DIR}/libord_dart.a"],
:shell_path => '/bin/bash',
:script => <<-SCRIPT
[ -f "$HOME/.profile" ] && source "$HOME/.profile"
[ -f "$HOME/.bash_profile" ] && source "$HOME/.bash_profile"
"$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../rust ord_dart
SCRIPT
}
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
Expand Down
8 changes: 6 additions & 2 deletions macos/ord_dart.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ Pod::Spec.new do |s|

s.script_phase = {
:name => 'Build Rust library',
# First argument is relative path to the `rust` folder, second is name of rust library
:script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../rust ord_dart',
:execution_position => :before_compile,
:input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'],
# Let XCode know that the static library referenced in -force_load below is
# created by this build step.
:output_files => ["${BUILT_PRODUCTS_DIR}/libord_dart.a"],
:shell_path => '/bin/bash',
:script => <<-SCRIPT
[ -f "$HOME/.profile" ] && source "$HOME/.profile"
[ -f "$HOME/.bash_profile" ] && source "$HOME/.bash_profile"
"$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../rust ord_dart
SCRIPT
}
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ord_dart
version: 0.0.8+3
version: 0.0.8+4

description: "The Flutter plugin that supports Ordinals protocol (Runes protocol only)."
repository: https://github.com/AstroxNetwork/ord_dart
Expand All @@ -13,7 +13,7 @@ dependencies:
flutter:
sdk: flutter

flutter_rust_bridge: '>=2.5.0 <2.6.0'
flutter_rust_bridge: '>=2.5.0 <2.5.1'
freezed_annotation: ^2.2.0
meta: ^1.12.0

Expand Down

0 comments on commit 45ddfe0

Please sign in to comment.