Skip to content

🔧 Make pod shell respect configured profile #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 27, 2024
Merged
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ that can be found in the LICENSE file. -->

# Changelog

## 1.0.0-dev.30

- Make pod shell respect configured profile on Darwin.
- Make `build_pod.sh` executable.

## 1.0.0-dev.29

- Implements certificate's time and canister ranges checks.
Expand Down
Empty file modified packages/agent_dart/cargokit/build_pod.sh
100644 → 100755
Empty file.
8 changes: 6 additions & 2 deletions packages/agent_dart/ios/agent_dart.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,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" ../native/agent_dart agent_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}/libagent_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" ../native/agent_dart agent_dart
SCRIPT
}
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
Expand Down
8 changes: 6 additions & 2 deletions packages/agent_dart/macos/agent_dart.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,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" ../native/agent_dart agent_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}/libagent_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" ../native/agent_dart agent_dart
SCRIPT
}
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
Expand Down
2 changes: 1 addition & 1 deletion packages/agent_dart/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: agent_dart
version: 1.0.0-dev.29
version: 1.0.0-dev.30

description: |
An agent library built for Internet Computer,
Expand Down
2 changes: 1 addition & 1 deletion packages/agent_dart_base/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: agent_dart_base
version: 1.0.0-dev.29
version: 1.0.0-dev.30

description: The Dart plugin that bridges Rust implementation for agent_dart.
repository: https://github.com/AstroxNetwork/agent_dart
Expand Down
4 changes: 2 additions & 2 deletions packages/agent_dart_ffi/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: agent_dart_ffi
version: 1.0.0-dev.29
version: 1.0.0-dev.30

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

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

dev_dependencies:
Expand Down