Skip to content

Commit 360e74c

Browse files
authored
🔧 Make pod shell respect configured profile (#86)
1 parent f0489ee commit 360e74c

File tree

7 files changed

+21
-8
lines changed

7 files changed

+21
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ that can be found in the LICENSE file. -->
44

55
# Changelog
66

7+
## 1.0.0-dev.30
8+
9+
- Make pod shell respect configured profile on Darwin.
10+
- Make `build_pod.sh` executable.
11+
712
## 1.0.0-dev.29
813

914
- Implements certificate's time and canister ranges checks.

packages/agent_dart/cargokit/build_pod.sh

100644100755
File mode changed.

packages/agent_dart/ios/agent_dart.podspec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,17 @@ Pod::Spec.new do |s|
2828

2929
s.script_phase = {
3030
:name => 'Build Rust library',
31-
# First argument is relative path to the `rust` folder, second is name of rust library
32-
:script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../native/agent_dart agent_dart',
3331
:execution_position => :before_compile,
3432
:input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'],
3533
# Let XCode know that the static library referenced in -force_load below is
3634
# created by this build step.
3735
:output_files => ["${BUILT_PRODUCTS_DIR}/libagent_dart.a"],
36+
:shell_path => '/bin/bash',
37+
:script => <<-SCRIPT
38+
[ -f "$HOME/.profile" ] && source "$HOME/.profile"
39+
[ -f "$HOME/.bash_profile" ] && source "$HOME/.bash_profile"
40+
"$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../native/agent_dart agent_dart
41+
SCRIPT
3842
}
3943
s.pod_target_xcconfig = {
4044
'DEFINES_MODULE' => 'YES',

packages/agent_dart/macos/agent_dart.podspec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ Pod::Spec.new do |s|
2727

2828
s.script_phase = {
2929
:name => 'Build Rust library',
30-
# First argument is relative path to the `rust` folder, second is name of rust library
31-
:script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../native/agent_dart agent_dart',
3230
:execution_position => :before_compile,
3331
:input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'],
3432
# Let XCode know that the static library referenced in -force_load below is
3533
# created by this build step.
3634
:output_files => ["${BUILT_PRODUCTS_DIR}/libagent_dart.a"],
35+
:shell_path => '/bin/bash',
36+
:script => <<-SCRIPT
37+
[ -f "$HOME/.profile" ] && source "$HOME/.profile"
38+
[ -f "$HOME/.bash_profile" ] && source "$HOME/.bash_profile"
39+
"$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../native/agent_dart agent_dart
40+
SCRIPT
3741
}
3842
s.pod_target_xcconfig = {
3943
'DEFINES_MODULE' => 'YES',

packages/agent_dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: agent_dart
2-
version: 1.0.0-dev.29
2+
version: 1.0.0-dev.30
33

44
description: |
55
An agent library built for Internet Computer,

packages/agent_dart_base/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: agent_dart_base
2-
version: 1.0.0-dev.29
2+
version: 1.0.0-dev.30
33

44
description: The Dart plugin that bridges Rust implementation for agent_dart.
55
repository: https://github.com/AstroxNetwork/agent_dart

packages/agent_dart_ffi/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: agent_dart_ffi
2-
version: 1.0.0-dev.29
2+
version: 1.0.0-dev.30
33

44
description: The FFI plugin that bridges Rust implementation for agent_dart.
55
repository: https://github.com/AstroxNetwork/agent_dart
@@ -9,7 +9,7 @@ environment:
99
sdk: '>=3.4.0 <4.0.0'
1010

1111
dependencies:
12-
flutter_rust_bridge: '>=2.5.0 <2.6.0'
12+
flutter_rust_bridge: '>=2.5.0 <2.5.1'
1313
freezed_annotation: ^2.2.0
1414

1515
dev_dependencies:

0 commit comments

Comments
 (0)