-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use ffi and pods dependencies for iOS
- Loading branch information
Showing
7 changed files
with
20 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,25 +1,36 @@ | ||
# | ||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. | ||
# Run `pod lib lint tflite_flutter_plugin.podspec' to validate before publishing. | ||
# Run `pod lib lint tflite_flutter.podspec` to validate before publishing. | ||
# | ||
Pod::Spec.new do |s| | ||
s.name = 'tflite_flutter' | ||
s.version = '0.1.0' | ||
s.version = '0.0.1' | ||
s.summary = 'TensorFlow Lite plugin for Flutter apps.' | ||
s.description = <<-DESC | ||
TensorFlow Lite plugin for Flutter apps. | ||
DESC | ||
s.homepage = 'http://example.com' | ||
s.license = { :file => '../LICENSE' } | ||
s.author = { 'Your Company' => 'email@example.com' } | ||
|
||
# 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. | ||
s.source = { :path => '.' } | ||
s.source_files = 'Classes/**/*' | ||
# s.source_files = 'Classes/**/*' | ||
|
||
s.dependency 'Flutter' | ||
s.platform = :ios, '8.0' | ||
|
||
s.ios.deployment_target = '9.0' | ||
s.dependency 'TensorFlowLiteSwift' | ||
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported. | ||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' } | ||
tflite_version = '2.12.0' | ||
s.dependency 'TensorFlowLiteC', tflite_version | ||
s.dependency 'TensorFlowLiteC/Metal', tflite_version | ||
s.dependency 'TensorFlowLiteC/CoreML', tflite_version | ||
|
||
s.platform = :ios, '11.0' | ||
s.static_framework = true | ||
|
||
# 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' | ||
end |
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