1 | require 'json'
|
2 |
|
3 | package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
4 |
|
5 | Pod::Spec.new do |s|
|
6 | s.name = "RNDeviceInfo"
|
7 | s.version = package['version']
|
8 | s.summary = package['description']
|
9 | s.license = package['license']
|
10 |
|
11 | s.authors = package['author']
|
12 | s.homepage = package['repository']['url']
|
13 | s.platform = :ios, "9.0"
|
14 | s.ios.deployment_target = '9.0'
|
15 | s.tvos.deployment_target = '10.0'
|
16 |
|
17 | s.source = { :git => "https://github.com/react-native-device-info/react-native-device-info.git", :tag => "v#{s.version}" }
|
18 | s.source_files = "ios/**/*.{h,m}"
|
19 |
|
20 | s.dependency 'React-Core'
|
21 | end
|