forked from robotmedia/RMStore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RMStore.podspec
46 lines (40 loc) · 1.79 KB
/
RMStore.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
Pod::Spec.new do |s|
s.name = 'RMStore'
s.version = '0.7.1'
s.license = 'Apache 2.0'
s.summary = 'A lightweight iOS library for In-App Purchases that adds blocks and notifications to StoreKit, plus verification, persistence and downloads.'
s.homepage = 'https://github.com/robotmedia/RMStore'
s.author = 'Hermes Pique'
s.social_media_url = 'https://twitter.com/hpique'
s.source = { :git => 'https://github.com/robotmedia/RMStore.git', :tag => "v#{s.version}" }
s.platform = :ios, '7.0'
s.frameworks = 'StoreKit'
s.requires_arc = true
s.default_subspec = 'Core'
s.subspec 'Core' do |core|
core.source_files = 'RMStore/*.{h,m}'
end
s.subspec 'KeychainPersistence' do |kp|
kp.dependency 'RMStore/Core'
kp.source_files = 'RMStore/Optional/RMStoreKeychainPersistence.{h,m}'
kp.frameworks = 'Security'
end
s.subspec 'NSUserDefaultsPersistence' do |nsudp|
nsudp.dependency 'RMStore/Core'
nsudp.source_files = 'RMStore/Optional/RMStoreUserDefaultsPersistence.{h,m}', 'RMStore/Optional/RMStoreTransaction.{h,m}'
end
s.subspec 'AppReceiptVerifier' do |arv|
arv.dependency 'RMStore/Core'
arv.platform = :ios, '7.0'
arv.source_files = 'RMStore/Optional/RMStoreAppReceiptVerifier.{h,m}', 'RMStore/Optional/RMAppReceipt.{h,m}'
arv.dependency 'OpenSSL-Universal', '~> 1.0'
# arv.dependency 'OpenSSL-iOS'
# arv.vendored_libraries = '${PODS_ROOT}/OpenSSL-iOS/libcrypto.a', '${PODS_ROOT}/OpenSSL-iOS/libssl.a'
# arv.libraries = 'ssl', 'crypto'
# arv.xcconfig = { 'HEADER_SEARCH_PATHS' => "${PODS_ROOT}/OpenSSL-iOS/openssl/**", 'LIBRARY_SEARCH_PATHS' => "${PODS_ROOT}/OpenSSL-iOS/" }
end
s.subspec 'TransactionReceiptVerifier' do |trv|
trv.dependency 'RMStore/Core'
trv.source_files = 'RMStore/Optional/RMStoreTransactionReceiptVerifier.{h,m}'
end
end