-
Notifications
You must be signed in to change notification settings - Fork 17
/
ably_flutter.podspec
32 lines (29 loc) · 1.19 KB
/
ably_flutter.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint ably_flutter.podspec` to validate before publishing.
#
require 'yaml'
pubspec = YAML.load_file(File.join('..', 'pubspec.yaml'))
flutter_package_plugin_version = pubspec['version'].gsub('+', '-')
Pod::Spec.new do |s|
s.name = 'ably_flutter'
s.version = flutter_package_plugin_version
s.summary = 'Ably Cocoa platform support for our Flutter plugin.'
s.homepage = 'https://www.ably.com/'
s.license = 'Apache 2.0'
s.author = { 'Ably' => 'support@ably.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'Ably', '1.2.6'
s.platform = :ios
s.ios.deployment_target = '10.0'
# 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',
'GCC_PREPROCESSOR_DEFINITIONS' => "FLUTTER_PACKAGE_PLUGIN_VERSION=\\@\\\"#{flutter_package_plugin_version}\\\""
}
s.swift_version = '5.0'
end