-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', | ||
|