ios build and clean up macos
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
#import "GeneratedPluginRegistrant.h"
|
||||
//#import "GeneratedPluginRegistrant.h"
|
||||
#import "bridge_generated.h"
|
@@ -7,11 +7,11 @@ Pod::Spec.new do |s|
|
||||
s.version = '0.0.1'
|
||||
s.summary = 'Veilid Network'
|
||||
s.description = <<-DESC
|
||||
Veilid Network
|
||||
Veilid Network Plugin
|
||||
DESC
|
||||
s.homepage = 'http://example.com'
|
||||
s.license = { :file => '../LICENSE' }
|
||||
s.author = { 'Your Company' => 'email@example.com' }
|
||||
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' }
|
||||
s.source = { :path => '.' }
|
||||
s.source_files = 'Classes/**/*'
|
||||
s.dependency 'Flutter'
|
||||
@@ -20,4 +20,21 @@ Veilid Network
|
||||
# Flutter.framework does not contain a i386 slice.
|
||||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
|
||||
s.swift_version = '5.0'
|
||||
|
||||
require 'json'
|
||||
require 'pathname'
|
||||
cargo_target_dir = File.join(File.dirname(JSON.parse(`cargo locate-project`)['root']), 'target')
|
||||
|
||||
s.xcconfig = {
|
||||
'OTHER_LDFLAGS' => '-lveilid_flutter',
|
||||
"LIBRARY_SEARCH_PATHS" => File.join(cargo_target_dir, 'ios_lib')
|
||||
}
|
||||
|
||||
s.script_phase = {
|
||||
:name => 'Cargo Build',
|
||||
:script => File.join(File.dirname(__dir__), 'rust', 'ios_build.sh'),
|
||||
:execution_position => :before_compile,
|
||||
:output_files => [ File.join(cargo_target_dir, 'ios_lib', 'libveilid_flutter.a') ]
|
||||
}
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user