-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathRNTapjoy.podspec
41 lines (32 loc) · 1.1 KB
/
RNTapjoy.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
require "json"
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
version = package['version']
source = { :git => 'https://github.com/reime005/react-native-tapjoy.git' }
if version == '1000.0.0'
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
source[:commit] = `git rev-parse HEAD`.strip
else
source[:tag] = "v#{version}"
end
Pod::Spec.new do |s|
s.name = "RNTapjoy"
s.version = version
s.license = package["license"]
s.homepage = package["homepage"]
s.authors = package["author"]
s.summary = package["description"]
s.description = package["description"]
s.source = source
s.source_files = "ios/*.{m,h}"
s.public_header_files = "ios/*.h"
s.preserve_paths = 'README.md', 'package.json', '*.js', 'LICENSE', 'TODO*'
s.platform = :ios, "9.0"
s.dependency 'React'
s.dependency 'TapjoySDK', '12.4.2'
s.subspec "RCT" do |ss|
ss.source_files = "ios/RCT/**/*.{h,m}"
end
s.subspec "RN" do |ss|
ss.source_files = "ios/RN/**/*.{h,m}"
end
end