|
@@ -1,22 +1,19 @@
|
1
|
1
|
require 'json'
|
2
|
|
-
|
3
|
|
-package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
2
|
+package = JSON.parse(File.read('./package.json'))
|
4
|
3
|
|
5
|
4
|
Pod::Spec.new do |s|
|
6
|
|
- s.name = 'ReactNativePermissions'
|
7
|
|
- s.version = package['version']
|
8
|
|
- s.summary = package['description']
|
9
|
|
- s.description = package['description']
|
10
|
|
- s.homepage = package['homepage']
|
11
|
|
- s.license = package['license']
|
12
|
|
- s.author = package['author']
|
13
|
|
- s.source = { :git => 'https://github.com/yonahforst/react-native-permissions.git', :tag => s.version }
|
|
5
|
+ s.name = 'ReactNativePermissions'
|
|
6
|
+ s.dependency "React"
|
|
7
|
+
|
|
8
|
+ s.version = package["version"]
|
|
9
|
+ s.license = package["license"]
|
|
10
|
+ s.summary = package["description"]
|
|
11
|
+ s.authors = package["author"]
|
|
12
|
+ s.homepage = package["homepage"]
|
14
|
13
|
|
15
|
|
- s.platform = :ios, '9.0'
|
16
|
|
- s.ios.deployment_target = '8.0'
|
|
14
|
+ s.platform = :ios, "9.0"
|
|
15
|
+ s.requires_arc = true
|
17
|
16
|
|
18
|
|
- s.preserve_paths = 'LICENSE', 'package.json'
|
19
|
|
- s.source_files = '**/*.{h,m}'
|
20
|
|
- s.exclude_files = 'example/**/*'
|
21
|
|
- s.dependency 'React'
|
|
17
|
+ s.source = { :git => s.homepage, :tag => s.version }
|
|
18
|
+ s.source_files = "ios/**/*.{h,m}"
|
22
|
19
|
end
|