2022-01-16 10:19:01 -06:00
|
|
|
#
|
|
|
|
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
|
|
|
|
# Run `pod lib lint veilid.podspec` to validate before publishing.
|
|
|
|
#
|
|
|
|
Pod::Spec.new do |s|
|
|
|
|
s.name = 'veilid'
|
|
|
|
s.version = '0.0.1'
|
|
|
|
s.summary = 'Veilid Network'
|
|
|
|
s.description = <<-DESC
|
2022-01-30 16:47:46 -06:00
|
|
|
Veilid Network Plugin
|
2022-01-16 10:19:01 -06:00
|
|
|
DESC
|
2022-01-30 16:47:46 -06:00
|
|
|
s.homepage = 'http://veilid.com'
|
|
|
|
s.license = 'LGPL-2.0-or-later OR MPL-2.0 OR (MIT AND BSD-3-Clause)'
|
|
|
|
s.author = { 'John Smith' => 'jsmith@example.com' }
|
2022-01-16 10:19:01 -06:00
|
|
|
s.source = { :path => '.' }
|
|
|
|
s.source_files = 'Classes/**/*'
|
|
|
|
s.dependency 'FlutterMacOS'
|
|
|
|
|
2023-05-29 14:24:57 -05:00
|
|
|
s.platform = :osx, '10.14.6'
|
|
|
|
s.osx.deployment_target = '10.14.6'
|
2022-01-16 10:19:01 -06:00
|
|
|
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
|
|
|
|
s.swift_version = '5.0'
|
2022-01-29 20:25:21 -06:00
|
|
|
|
2022-01-30 20:28:27 -06:00
|
|
|
require 'json'
|
|
|
|
require 'pathname'
|
2023-01-03 08:13:18 -06:00
|
|
|
|
|
|
|
script_dir = File.realpath(File.expand_path(__dir__))
|
|
|
|
workspace_dir = File.dirname(JSON.parse(`(cd #{script_dir}; cargo locate-project --workspace)`)['root'])
|
2022-12-01 19:38:57 -06:00
|
|
|
cargo_target_dir = File.join(workspace_dir, 'target')
|
2022-01-30 20:28:27 -06:00
|
|
|
|
2022-01-30 16:47:46 -06:00
|
|
|
s.script_phase = {
|
|
|
|
:name => 'Cargo Build',
|
2022-12-01 19:38:57 -06:00
|
|
|
:script => File.join(workspace_dir, 'scripts', 'macos_build.sh') + ' veilid_flutter',
|
2022-06-10 16:07:10 -05:00
|
|
|
:execution_position => :before_compile
|
2022-12-01 19:38:57 -06:00
|
|
|
#:output_files => [ File.join(cargo_target_dir, 'lipo-darwin', 'libveilid_flutter.dylib') ]
|
2022-01-30 16:47:46 -06:00
|
|
|
}
|
|
|
|
|
2022-01-16 10:19:01 -06:00
|
|
|
end
|