forked from hyochan/react-native-iap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRNIap.podspec
More file actions
23 lines (21 loc) · 899 Bytes
/
RNIap.podspec
File metadata and controls
23 lines (21 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = "RNIap"
s.version = package['version']
s.summary = package['description']
s.homepage = "https://github.com/dooboolab/react-native-iap"
s.license = "MIT"
s.author = package['author']
s.platforms = { :ios => "9.0", :tvos => "9.0" }
s.source = { :git => "https://github.com/dooboolab/react-native-iap.git", :tag => "#{s.version}" }
s.source_files = "ios/*.{h,m,swift}"
s.script_phase = {
:name => 'Copy Swift Header',
:script => 'ditto "${DERIVED_SOURCES_DIR}/${PRODUCT_MODULE_NAME}-Swift.h" "${PODS_ROOT}/Headers/Public/${PRODUCT_MODULE_NAME}/${PRODUCT_MODULE_NAME}-Swift.h"',
:execution_position => :after_compile
}
s.swift_version = "4.2"
s.requires_arc = true
s.dependency 'React-Core'
end