From ceca225821728d44b3be08b657b4fd838899360b Mon Sep 17 00:00:00 2001 From: Alex Li Date: Wed, 3 Jul 2024 22:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Darwin=20configurations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/agent_dart/ios/agent_dart.podspec | 34 +++++++++----------- packages/agent_dart/macos/agent_dart.podspec | 32 +++++++++--------- 2 files changed, 31 insertions(+), 35 deletions(-) diff --git a/packages/agent_dart/ios/agent_dart.podspec b/packages/agent_dart/ios/agent_dart.podspec index c50db6ae..6ace087e 100644 --- a/packages/agent_dart/ios/agent_dart.podspec +++ b/packages/agent_dart/ios/agent_dart.podspec @@ -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' => 'dev@astrox.network' } - 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' => 'dev@astrox.network' } + 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', diff --git a/packages/agent_dart/macos/agent_dart.podspec b/packages/agent_dart/macos/agent_dart.podspec index 8e64e907..5ab3d9f9 100644 --- a/packages/agent_dart/macos/agent_dart.podspec +++ b/packages/agent_dart/macos/agent_dart.podspec @@ -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' => 'dev@astrox.network' } - 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' => 'dev@astrox.network' } + 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',