Skip to content

Commit

Permalink
🐛 Fix Darwin configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Jul 3, 2024
1 parent 05cdd3c commit ceca225
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 35 deletions.
34 changes: 16 additions & 18 deletions packages/agent_dart/ios/agent_dart.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,31 @@
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint agent_dart.podspec` to validate before publishing.
#
Pod::Spec.new do |spec|
spec.name = 'agent_dart'
spec.version = '0.0.1'
spec.license = { :file => '../LICENSE' }
spec.homepage = 'https://github.com/AstroxNetwork/agent_dart'
spec.authors = { 'AstroX Dev' => '[email protected]' }
spec.summary = 'iOS/macOS Flutter bindings for agent_dart'
Pod::Spec.new do |s|
s.name = 'agent_dart'
s.version = '1.0.0'
s.license = { :file => '../LICENSE' }
s.homepage = 'https://github.com/AstroxNetwork/agent_dart'
s.authors = { 'AstroX Dev' => '[email protected]' }
s.summary = 'iOS/macOS Flutter bindings for agent_dart'

# This will ensure the source files in Classes/ are included in the native
# builds of apps using this FFI plugin. Podspec does not support relative
# paths, so Classes contains a forwarder C file that relatively imports
# `../src/*` so that the C sources can be shared among all target platforms.
spec.source = { :path => '.' }
spec.source_files = 'Classes/**/*'
spec.public_header_files = 'Classes/**/*.h'
spec.vendored_frameworks = "Frameworks/#{framework_name}"
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'

spec.dependency 'Flutter'
spec.platform = :ios, '11.0'
s.dependency 'Flutter'
s.platform = :ios, '11.0'
# Flutter.framework does not contain a i386 slice.
spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
spec.swift_version = '5.0'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
s.swift_version = '5.0'

spec.ios.deployment_target = '11.0'
spec.osx.deployment_target = '10.11'
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.11'

spec.script_phase = {
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" ../../agent_dart_ffi/native/agent_dart agent_dart',
Expand Down
32 changes: 15 additions & 17 deletions packages/agent_dart/macos/agent_dart.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,29 @@
# Run `pod lib lint agent_dart.podspec` to validate before publishing.
#
Pod::Spec.new do |spec|
spec.name = 'agent_dart'
spec.version = '0.0.1'
spec.license = { :file => '../LICENSE' }
spec.homepage = 'https://github.com/AstroxNetwork/agent_dart'
spec.authors = { 'AstroX Dev' => '[email protected]' }
spec.summary = 'iOS/macOS Flutter bindings for agent_dart'
s.name = 'agent_dart'
s.version = '1.0.0'
s.license = { :file => '../LICENSE' }
s.homepage = 'https://github.com/AstroxNetwork/agent_dart'
s.authors = { 'AstroX Dev' => '[email protected]' }
s.summary = 'iOS/macOS Flutter bindings for agent_dart'

# This will ensure the source files in Classes/ are included in the native
# builds of apps using this FFI plugin. Podspec does not support relative
# paths, so Classes contains a forwarder C file that relatively imports
# `../src/*` so that the C sources can be shared among all target platforms.
spec.source = { :path => '.' }
spec.source_files = 'Classes/**/*'
spec.public_header_files = 'Classes/**/*.h'
spec.vendored_frameworks = "Frameworks/#{framework_name}"
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'

spec.dependency 'FlutterMacOS'
spec.platform = :osx, '10.11'
spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
spec.swift_version = '5.0'
s.dependency 'FlutterMacOS'
s.platform = :osx, '10.11'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
s.swift_version = '5.0'

spec.ios.deployment_target = '11.0'
spec.osx.deployment_target = '10.11'
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.11'

spec.script_phase = {
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" ../../agent_dart_ffi/native/agent_dart agent_dart',
Expand Down

0 comments on commit ceca225

Please sign in to comment.