forked from apollographql/apollo-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Apollo.podspec
48 lines (42 loc) · 1.63 KB
/
Apollo.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Pod::Spec.new do |s|
s.name = 'Apollo'
s.version = `scripts/get-version.sh`
s.author = 'Meteor Development Group'
s.homepage = 'https://github.com/apollographql/apollo-ios'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = "A GraphQL client for iOS, written in Swift."
s.source = { :git => 'https://github.com/apollographql/apollo-ios.git', :tag => s.version }
s.requires_arc = true
s.swift_version = '5.6'
s.default_subspecs = 'Core'
s.ios.deployment_target = '12.0'
s.osx.deployment_target = '10.14'
s.tvos.deployment_target = '12.0'
s.watchos.deployment_target = '5.0'
cli_binary_name = 'apollo-ios-cli'
s.preserve_paths = [cli_binary_name]
s.prepare_command = <<-CMD
make clean build-cli-for-cocoapods
cp .build/release/#{cli_binary_name} #{cli_binary_name}
chmod +x #{cli_binary_name}
CMD
s.subspec 'Core' do |ss|
ss.source_files = 'Sources/Apollo/*.swift','Sources/ApolloAPI/**/*.swift'
end
# Apollo provides exactly one persistent cache out-of-the-box, as a reasonable default choice for
# those who require cache persistence. Third-party caches may use different storage mechanisms.
s.subspec 'SQLite' do |ss|
ss.source_files = 'Sources/ApolloSQLite/*.swift'
ss.dependency 'Apollo/Core'
ss.dependency 'SQLite.swift', '~>0.13.1'
end
# Websocket and subscription support based on Starscream
s.subspec 'WebSocket' do |ss|
ss.source_files = 'Sources/ApolloWebSocket/**/*.swift'
ss.dependency 'Apollo/Core'
end
s.subspec 'ApolloTestSupport' do |ss|
ss.source_files = 'Sources/ApolloTestSupport/*.swift'
ss.dependency 'Apollo/Core'
end
end