Browse Source

Move podspec file to the project root

Mathieu Acthernoene 5 years ago
parent
commit
d96f543548

+ 106
- 0
RNPermissions.podspec View File

@@ -0,0 +1,106 @@
1
+require 'json'
2
+package = JSON.parse(File.read('./package.json'))
3
+
4
+Pod::Spec.new do |s|
5
+  s.name                   = "RNPermissions"
6
+
7
+  s.version                = package["version"]
8
+  s.license                = package["license"]
9
+  s.description            = package["description"]
10
+  s.summary                = package["description"]
11
+  s.authors                = package["author"]
12
+  s.homepage               = package["homepage"]
13
+
14
+  s.default_subspec        = "Core"
15
+  s.requires_arc           = true
16
+  s.pod_target_xcconfig    = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++14" }
17
+  s.platforms              = { :ios => "9.0", :tvos => "9.2" }
18
+
19
+  s.source                 = { :git => "#{s.homepage}.git", :tag => s.version }
20
+  s.source_files           = "ios/*.{h,m}"
21
+
22
+  s.subspec "Core" do |ss|
23
+    s.dependency             "React/Core"
24
+    ss.source_files        = "ios/*.{h,m}"
25
+  end
26
+
27
+  s.subspec "BluetoothPeripheral" do |ss|
28
+    ss.dependency            "RNPermissions/Core"
29
+    ss.source_files        = "ios/PermissionHandlers/BluetoothPeripheral/*.{h,m}"
30
+  end
31
+
32
+  s.subspec "Calendars" do |ss|
33
+    ss.dependency            "RNPermissions/Core"
34
+    ss.source_files        = "ios/PermissionHandlers/Calendars/*.{h,m}"
35
+  end
36
+
37
+  s.subspec "Camera" do |ss|
38
+    ss.dependency            "RNPermissions/Core"
39
+    ss.source_files        = "ios/PermissionHandlers/Camera/*.{h,m}"
40
+  end
41
+
42
+  s.subspec "Contacts" do |ss|
43
+    ss.dependency            "RNPermissions/Core"
44
+    ss.source_files        = "ios/PermissionHandlers/Contacts/*.{h,m}"
45
+  end
46
+
47
+  s.subspec "FaceID" do |ss|
48
+    ss.dependency            "RNPermissions/Core"
49
+    ss.source_files        = "ios/PermissionHandlers/FaceID/*.{h,m}"
50
+  end
51
+
52
+  s.subspec "LocationAlways" do |ss|
53
+    ss.dependency            "RNPermissions/Core"
54
+    ss.source_files        = "ios/PermissionHandlers/LocationAlways/*.{h,m}"
55
+  end
56
+
57
+  s.subspec "LocationWhenInUse" do |ss|
58
+    ss.dependency            "RNPermissions/Core"
59
+    ss.source_files        = "ios/PermissionHandlers/LocationWhenInUse/*.{h,m}"
60
+  end
61
+
62
+  s.subspec "MediaLibrary" do |ss|
63
+    ss.dependency            "RNPermissions/Core"
64
+    ss.source_files        = "ios/PermissionHandlers/MediaLibrary/*.{h,m}"
65
+  end
66
+
67
+  s.subspec "Microphone" do |ss|
68
+    ss.dependency            "RNPermissions/Core"
69
+    ss.source_files        = "ios/PermissionHandlers/Microphone/*.{h,m}"
70
+  end
71
+
72
+  s.subspec "Motion" do |ss|
73
+    ss.dependency            "RNPermissions/Core"
74
+    ss.source_files        = "ios/PermissionHandlers/Motion/*.{h,m}"
75
+  end
76
+
77
+  s.subspec "Notifications" do |ss|
78
+    ss.dependency            "RNPermissions/Core"
79
+    ss.source_files        = "ios/PermissionHandlers/Notifications/*.{h,m}"
80
+  end
81
+
82
+  s.subspec "PhotoLibrary" do |ss|
83
+    ss.dependency            "RNPermissions/Core"
84
+    ss.source_files        = "ios/PermissionHandlers/PhotoLibrary/*.{h,m}"
85
+  end
86
+
87
+  s.subspec "Reminders" do |ss|
88
+    ss.dependency            "RNPermissions/Core"
89
+    ss.source_files        = "ios/PermissionHandlers/Reminders/*.{h,m}"
90
+  end
91
+
92
+  s.subspec "Siri" do |ss|
93
+    ss.dependency            "RNPermissions/Core"
94
+    ss.source_files        = "ios/PermissionHandlers/Siri/*.{h,m}"
95
+  end
96
+
97
+  s.subspec "SpeechRecognition" do |ss|
98
+    ss.dependency            "RNPermissions/Core"
99
+    ss.source_files        = "ios/PermissionHandlers/SpeechRecognition/*.{h,m}"
100
+  end
101
+
102
+  s.subspec "StoreKit" do |ss|
103
+    ss.dependency            "RNPermissions/Core"
104
+    ss.source_files        = "ios/PermissionHandlers/StoreKit/*.{h,m}"
105
+  end
106
+end

+ 1
- 5
example/App.js View File

@@ -1,8 +1,4 @@
1
-/**
2
- * @format
3
- * @flow
4
- * @lint-ignore-every XPLATJSCOPYRIGHT1
5
- */
1
+// @flow
6 2
 
7 3
 import * as React from "react";
8 4
 import { Appbar, List, TouchableRipple, Snackbar } from "react-native-paper";

+ 0
- 1
example/android/app/src/main/AndroidManifest.xml View File

@@ -28,7 +28,6 @@
28 28
     <uses-permission android:name="android.permission.RECEIVE_MMS" />
29 29
     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
30 30
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
31
-
32 31
     <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
33 32
 
34 33
     <application

+ 1
- 5
example/index.js View File

@@ -1,8 +1,4 @@
1
-/**
2
- * @format
3
- * @flow
4
- * @lint-ignore-every XPLATJSCOPYRIGHT1
5
- */
1
+// @flow
6 2
 
7 3
 import * as React from "react";
8 4
 import { Provider as PaperProvider } from "react-native-paper";

+ 1
- 8
example/ios/Podfile View File

@@ -1,9 +1,6 @@
1 1
 platform :ios, '9.0'
2 2
 
3 3
 target 'RNPermissionsExample' do
4
-  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
5
-  # use_frameworks!
6
-
7 4
   pod 'React', :path => '../node_modules/react-native', :subspecs => [
8 5
     'Core',
9 6
     'CxxBridge', # Include this for RN >= 0.47
@@ -34,8 +31,7 @@ target 'RNPermissionsExample' do
34 31
   # RN dependencies
35 32
   pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
36 33
 
37
-  pod 'RNPermissions', :path => '../node_modules/react-native-permissions/ios', :subspecs => [
38
-    'Core',
34
+  pod 'RNPermissions', :path => '../node_modules/react-native-permissions', :subspecs => [
39 35
     # Comment unwanted permissions
40 36
     'BluetoothPeripheral',
41 37
     'Calendars',
@@ -54,10 +50,7 @@ target 'RNPermissionsExample' do
54 50
     'SpeechRecognition',
55 51
     'StoreKit',
56 52
   ]
57
-
58 53
 end
59 54
 
60 55
 target 'RNPermissionsExample-tvOS' do
61
-  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
62
-  # use_frameworks!
63 56
 end

+ 22
- 23
example/ios/Podfile.lock View File

@@ -127,22 +127,21 @@ DEPENDENCIES:
127 127
   - React/RCTText (from `../node_modules/react-native`)
128 128
   - React/RCTVibration (from `../node_modules/react-native`)
129 129
   - React/RCTWebSocket (from `../node_modules/react-native`)
130
-  - RNPermissions/BluetoothPeripheral (from `../node_modules/react-native-permissions/ios`)
131
-  - RNPermissions/Calendars (from `../node_modules/react-native-permissions/ios`)
132
-  - RNPermissions/Camera (from `../node_modules/react-native-permissions/ios`)
133
-  - RNPermissions/Contacts (from `../node_modules/react-native-permissions/ios`)
134
-  - RNPermissions/Core (from `../node_modules/react-native-permissions/ios`)
135
-  - RNPermissions/FaceID (from `../node_modules/react-native-permissions/ios`)
136
-  - RNPermissions/LocationAlways (from `../node_modules/react-native-permissions/ios`)
137
-  - RNPermissions/LocationWhenInUse (from `../node_modules/react-native-permissions/ios`)
138
-  - RNPermissions/MediaLibrary (from `../node_modules/react-native-permissions/ios`)
139
-  - RNPermissions/Microphone (from `../node_modules/react-native-permissions/ios`)
140
-  - RNPermissions/Motion (from `../node_modules/react-native-permissions/ios`)
141
-  - RNPermissions/Notifications (from `../node_modules/react-native-permissions/ios`)
142
-  - RNPermissions/PhotoLibrary (from `../node_modules/react-native-permissions/ios`)
143
-  - RNPermissions/Reminders (from `../node_modules/react-native-permissions/ios`)
144
-  - RNPermissions/SpeechRecognition (from `../node_modules/react-native-permissions/ios`)
145
-  - RNPermissions/StoreKit (from `../node_modules/react-native-permissions/ios`)
130
+  - RNPermissions/BluetoothPeripheral (from `../node_modules/react-native-permissions`)
131
+  - RNPermissions/Calendars (from `../node_modules/react-native-permissions`)
132
+  - RNPermissions/Camera (from `../node_modules/react-native-permissions`)
133
+  - RNPermissions/Contacts (from `../node_modules/react-native-permissions`)
134
+  - RNPermissions/FaceID (from `../node_modules/react-native-permissions`)
135
+  - RNPermissions/LocationAlways (from `../node_modules/react-native-permissions`)
136
+  - RNPermissions/LocationWhenInUse (from `../node_modules/react-native-permissions`)
137
+  - RNPermissions/MediaLibrary (from `../node_modules/react-native-permissions`)
138
+  - RNPermissions/Microphone (from `../node_modules/react-native-permissions`)
139
+  - RNPermissions/Motion (from `../node_modules/react-native-permissions`)
140
+  - RNPermissions/Notifications (from `../node_modules/react-native-permissions`)
141
+  - RNPermissions/PhotoLibrary (from `../node_modules/react-native-permissions`)
142
+  - RNPermissions/Reminders (from `../node_modules/react-native-permissions`)
143
+  - RNPermissions/SpeechRecognition (from `../node_modules/react-native-permissions`)
144
+  - RNPermissions/StoreKit (from `../node_modules/react-native-permissions`)
146 145
   - RNVectorIcons (from `../node_modules/react-native-vector-icons`)
147 146
   - yoga (from `../node_modules/react-native/ReactCommon/yoga`)
148 147
 
@@ -160,7 +159,7 @@ EXTERNAL SOURCES:
160 159
   React:
161 160
     :path: "../node_modules/react-native"
162 161
   RNPermissions:
163
-    :path: "../node_modules/react-native-permissions/ios"
162
+    :path: "../node_modules/react-native-permissions"
164 163
   RNVectorIcons:
165 164
     :path: "../node_modules/react-native-vector-icons"
166 165
   yoga:
@@ -171,11 +170,11 @@ SPEC CHECKSUMS:
171 170
   DoubleConversion: bb338842f62ab1d708ceb63ec3d999f0f3d98ecd
172 171
   Folly: de497beb10f102453a1afa9edbf8cf8a251890de
173 172
   glog: aefd1eb5dda2ab95ba0938556f34b98e2da3a60d
174
-  React: 9b873b38b92ed8012d7cdf3b965477095ed364c4
175
-  RNPermissions: 321a373f579ab57a6d04bbd2bdb43665217b34ba
176
-  RNVectorIcons: 8c52e1e8da1153613fdef44748e865c25556cb9c
177
-  yoga: 0885622311729a02c2bc02dca97167787a51488b
173
+  React: d099597d6ba7001f0219dbc48532b63cfd8d0eca
174
+  RNPermissions: 064e4eb34c8c3da493ab48bda0af53cdd019b6a7
175
+  RNVectorIcons: b6b131d2fdc2e240f7aba41296df869141443793
176
+  yoga: 220e7595ec3cfe80c5ce02a0d0881be66b405e81
178 177
 
179
-PODFILE CHECKSUM: fb8a88496928dd4e0badc53e7c84da316fa8a61e
178
+PODFILE CHECKSUM: 75fce33e62eb57e94e378207b3565afd773f6e07
180 179
 
181
-COCOAPODS: 1.5.3
180
+COCOAPODS: 1.6.0

+ 58
- 59
example/ios/RNPermissionsExample.xcodeproj/project.pbxproj View File

@@ -15,16 +15,17 @@
15 15
 		2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
16 16
 		2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
17 17
 		2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; };
18
-		344B09050D8F9DD98200F820 /* libPods-RNPermissionsExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EE508594924E415A0050663 /* libPods-RNPermissionsExample.a */; };
18
+		9C0E968CA5A4475A72D098CC /* libPods-RNPermissionsExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 61386F2312C2EA9721BCFEA4 /* libPods-RNPermissionsExample.a */; };
19 19
 		C365FCDF23384B71BADA5827 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B0FEF2381CCE4DAC89A441F0 /* MaterialIcons.ttf */; };
20
-		DD176EC822033C2C00D4A914 /* libPods-RNPermissionsExample-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DD176EC722033C2C00D4A914 /* libPods-RNPermissionsExample-tvOS.a */; };
20
+		E70847AA58F41ED81DF7DC77 /* libPods-RNPermissionsExample-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DF6F9CA5073A9D32EB370652 /* libPods-RNPermissionsExample-tvOS.a */; };
21 21
 		ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; };
22 22
 		ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; };
23 23
 /* End PBXBuildFile section */
24 24
 
25 25
 /* Begin PBXFileReference section */
26 26
 		008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
27
-		112A13EA7418A1DA3FFFE89E /* Pods-RNPermissionsExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNPermissionsExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-RNPermissionsExample/Pods-RNPermissionsExample.release.xcconfig"; sourceTree = "<group>"; };
27
+		0E7EBB2FDF7AAECF1C038287 /* Pods-RNPermissionsExample-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNPermissionsExample-tvOS.release.xcconfig"; path = "Target Support Files/Pods-RNPermissionsExample-tvOS/Pods-RNPermissionsExample-tvOS.release.xcconfig"; sourceTree = "<group>"; };
28
+		1378F599F6455B105F696280 /* Pods-RNPermissionsExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNPermissionsExample.debug.xcconfig"; path = "Target Support Files/Pods-RNPermissionsExample/Pods-RNPermissionsExample.debug.xcconfig"; sourceTree = "<group>"; };
28 29
 		13B07F961A680F5B00A75B9A /* RNPermissionsExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RNPermissionsExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
29 30
 		13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = RNPermissionsExample/AppDelegate.h; sourceTree = "<group>"; };
30 31
 		13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = RNPermissionsExample/AppDelegate.m; sourceTree = "<group>"; };
@@ -34,15 +35,13 @@
34 35
 		13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RNPermissionsExample/main.m; sourceTree = "<group>"; };
35 36
 		2D02E47B1E0B4A5D006451C7 /* RNPermissionsExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "RNPermissionsExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
36 37
 		2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
37
-		5EE508594924E415A0050663 /* libPods-RNPermissionsExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNPermissionsExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
38
-		675F5D41159578CF07B761C5 /* libPods-RNPermissionsExample-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNPermissionsExample-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
39
-		A3695C8635FFAF0C2C558D58 /* Pods-RNPermissionsExample-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNPermissionsExample-tvOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RNPermissionsExample-tvOS/Pods-RNPermissionsExample-tvOS.debug.xcconfig"; sourceTree = "<group>"; };
38
+		61386F2312C2EA9721BCFEA4 /* libPods-RNPermissionsExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNPermissionsExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
40 39
 		B0FEF2381CCE4DAC89A441F0 /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = "<group>"; };
41
-		B4C1975DC33A53090D5B8018 /* Pods-RNPermissionsExample-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNPermissionsExample-tvOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-RNPermissionsExample-tvOS/Pods-RNPermissionsExample-tvOS.release.xcconfig"; sourceTree = "<group>"; };
42
-		DD176EC722033C2C00D4A914 /* libPods-RNPermissionsExample-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = "libPods-RNPermissionsExample-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
40
+		D4E8F220F58DB908082D8E08 /* Pods-RNPermissionsExample-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNPermissionsExample-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-RNPermissionsExample-tvOS/Pods-RNPermissionsExample-tvOS.debug.xcconfig"; sourceTree = "<group>"; };
41
+		DF6F9CA5073A9D32EB370652 /* libPods-RNPermissionsExample-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNPermissionsExample-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
43 42
 		ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
44 43
 		ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
45
-		EFC2B4024563B97F765C7CAF /* Pods-RNPermissionsExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNPermissionsExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RNPermissionsExample/Pods-RNPermissionsExample.debug.xcconfig"; sourceTree = "<group>"; };
44
+		F96F055A36F2991DEF9E65C0 /* Pods-RNPermissionsExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNPermissionsExample.release.xcconfig"; path = "Target Support Files/Pods-RNPermissionsExample/Pods-RNPermissionsExample.release.xcconfig"; sourceTree = "<group>"; };
46 45
 /* End PBXFileReference section */
47 46
 
48 47
 /* Begin PBXFrameworksBuildPhase section */
@@ -51,7 +50,7 @@
51 50
 			buildActionMask = 2147483647;
52 51
 			files = (
53 52
 				ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */,
54
-				344B09050D8F9DD98200F820 /* libPods-RNPermissionsExample.a in Frameworks */,
53
+				9C0E968CA5A4475A72D098CC /* libPods-RNPermissionsExample.a in Frameworks */,
55 54
 			);
56 55
 			runOnlyForDeploymentPostprocessing = 0;
57 56
 		};
@@ -61,24 +60,13 @@
61 60
 			files = (
62 61
 				ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */,
63 62
 				2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */,
64
-				DD176EC822033C2C00D4A914 /* libPods-RNPermissionsExample-tvOS.a in Frameworks */,
63
+				E70847AA58F41ED81DF7DC77 /* libPods-RNPermissionsExample-tvOS.a in Frameworks */,
65 64
 			);
66 65
 			runOnlyForDeploymentPostprocessing = 0;
67 66
 		};
68 67
 /* End PBXFrameworksBuildPhase section */
69 68
 
70 69
 /* Begin PBXGroup section */
71
-		01938D2000C2EABCD5318130 /* Pods */ = {
72
-			isa = PBXGroup;
73
-			children = (
74
-				EFC2B4024563B97F765C7CAF /* Pods-RNPermissionsExample.debug.xcconfig */,
75
-				112A13EA7418A1DA3FFFE89E /* Pods-RNPermissionsExample.release.xcconfig */,
76
-				A3695C8635FFAF0C2C558D58 /* Pods-RNPermissionsExample-tvOS.debug.xcconfig */,
77
-				B4C1975DC33A53090D5B8018 /* Pods-RNPermissionsExample-tvOS.release.xcconfig */,
78
-			);
79
-			name = Pods;
80
-			sourceTree = "<group>";
81
-		};
82 70
 		13B07FAE1A68108700A75B9A /* RNPermissionsExample */ = {
83 71
 			isa = PBXGroup;
84 72
 			children = (
@@ -96,12 +84,11 @@
96 84
 		2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
97 85
 			isa = PBXGroup;
98 86
 			children = (
99
-				DD176EC722033C2C00D4A914 /* libPods-RNPermissionsExample-tvOS.a */,
100 87
 				ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
101 88
 				ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
102 89
 				2D16E6891FA4F8E400B85C8A /* libReact.a */,
103
-				5EE508594924E415A0050663 /* libPods-RNPermissionsExample.a */,
104
-				675F5D41159578CF07B761C5 /* libPods-RNPermissionsExample-tvOS.a */,
90
+				61386F2312C2EA9721BCFEA4 /* libPods-RNPermissionsExample.a */,
91
+				DF6F9CA5073A9D32EB370652 /* libPods-RNPermissionsExample-tvOS.a */,
105 92
 			);
106 93
 			name = Frameworks;
107 94
 			sourceTree = "<group>";
@@ -112,8 +99,8 @@
112 99
 				13B07FAE1A68108700A75B9A /* RNPermissionsExample */,
113 100
 				83CBBA001A601CBA00E9B192 /* Products */,
114 101
 				2D16E6871FA4F8E400B85C8A /* Frameworks */,
115
-				01938D2000C2EABCD5318130 /* Pods */,
116 102
 				F00001AB828C4AB78E644833 /* Resources */,
103
+				A95D533A68278397BDA8D48F /* Pods */,
117 104
 			);
118 105
 			indentWidth = 2;
119 106
 			sourceTree = "<group>";
@@ -129,6 +116,18 @@
129 116
 			name = Products;
130 117
 			sourceTree = "<group>";
131 118
 		};
119
+		A95D533A68278397BDA8D48F /* Pods */ = {
120
+			isa = PBXGroup;
121
+			children = (
122
+				1378F599F6455B105F696280 /* Pods-RNPermissionsExample.debug.xcconfig */,
123
+				F96F055A36F2991DEF9E65C0 /* Pods-RNPermissionsExample.release.xcconfig */,
124
+				D4E8F220F58DB908082D8E08 /* Pods-RNPermissionsExample-tvOS.debug.xcconfig */,
125
+				0E7EBB2FDF7AAECF1C038287 /* Pods-RNPermissionsExample-tvOS.release.xcconfig */,
126
+			);
127
+			name = Pods;
128
+			path = Pods;
129
+			sourceTree = "<group>";
130
+		};
132 131
 		F00001AB828C4AB78E644833 /* Resources */ = {
133 132
 			isa = PBXGroup;
134 133
 			children = (
@@ -144,12 +143,12 @@
144 143
 			isa = PBXNativeTarget;
145 144
 			buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNPermissionsExample" */;
146 145
 			buildPhases = (
147
-				B42AA7D4FE9C586F3907791A /* [CP] Check Pods Manifest.lock */,
146
+				5F51F0458DC0318504BAA1BC /* [CP] Check Pods Manifest.lock */,
148 147
 				13B07F871A680F5B00A75B9A /* Sources */,
149 148
 				13B07F8C1A680F5B00A75B9A /* Frameworks */,
150 149
 				13B07F8E1A680F5B00A75B9A /* Resources */,
151 150
 				00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
152
-				4D2FBE14CA4911D84AA38FD7 /* [CP] Copy Pods Resources */,
151
+				32560C6C133B2E27B79B4503 /* [CP] Copy Pods Resources */,
153 152
 			);
154 153
 			buildRules = (
155 154
 			);
@@ -164,7 +163,7 @@
164 163
 			isa = PBXNativeTarget;
165 164
 			buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "RNPermissionsExample-tvOS" */;
166 165
 			buildPhases = (
167
-				08D3B8539F5064A757526BF1 /* [CP] Check Pods Manifest.lock */,
166
+				C5EF9DE7AEB391F931CDFB68 /* [CP] Check Pods Manifest.lock */,
168 167
 				2D02E4771E0B4A5D006451C7 /* Sources */,
169 168
 				2D02E4781E0B4A5D006451C7 /* Frameworks */,
170 169
 				2D02E4791E0B4A5D006451C7 /* Resources */,
@@ -263,28 +262,6 @@
263 262
 			shellPath = /bin/sh;
264 263
 			shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
265 264
 		};
266
-		08D3B8539F5064A757526BF1 /* [CP] Check Pods Manifest.lock */ = {
267
-			isa = PBXShellScriptBuildPhase;
268
-			buildActionMask = 2147483647;
269
-			files = (
270
-			);
271
-			inputFileListPaths = (
272
-			);
273
-			inputPaths = (
274
-				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
275
-				"${PODS_ROOT}/Manifest.lock",
276
-			);
277
-			name = "[CP] Check Pods Manifest.lock";
278
-			outputFileListPaths = (
279
-			);
280
-			outputPaths = (
281
-				"$(DERIVED_FILE_DIR)/Pods-RNPermissionsExample-tvOS-checkManifestLockResult.txt",
282
-			);
283
-			runOnlyForDeploymentPostprocessing = 0;
284
-			shellPath = /bin/sh;
285
-			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
286
-			showEnvVarsInLog = 0;
287
-		};
288 265
 		2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
289 266
 			isa = PBXShellScriptBuildPhase;
290 267
 			buildActionMask = 2147483647;
@@ -299,7 +276,7 @@
299 276
 			shellPath = /bin/sh;
300 277
 			shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
301 278
 		};
302
-		4D2FBE14CA4911D84AA38FD7 /* [CP] Copy Pods Resources */ = {
279
+		32560C6C133B2E27B79B4503 /* [CP] Copy Pods Resources */ = {
303 280
 			isa = PBXShellScriptBuildPhase;
304 281
 			buildActionMask = 2147483647;
305 282
 			files = (
@@ -307,7 +284,7 @@
307 284
 			inputFileListPaths = (
308 285
 			);
309 286
 			inputPaths = (
310
-				"${SRCROOT}/Pods/Target Support Files/Pods-RNPermissionsExample/Pods-RNPermissionsExample-resources.sh",
287
+				"${PODS_ROOT}/Target Support Files/Pods-RNPermissionsExample/Pods-RNPermissionsExample-resources.sh",
311 288
 				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf",
312 289
 				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Entypo.ttf",
313 290
 				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf",
@@ -346,10 +323,10 @@
346 323
 			);
347 324
 			runOnlyForDeploymentPostprocessing = 0;
348 325
 			shellPath = /bin/sh;
349
-			shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RNPermissionsExample/Pods-RNPermissionsExample-resources.sh\"\n";
326
+			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNPermissionsExample/Pods-RNPermissionsExample-resources.sh\"\n";
350 327
 			showEnvVarsInLog = 0;
351 328
 		};
352
-		B42AA7D4FE9C586F3907791A /* [CP] Check Pods Manifest.lock */ = {
329
+		5F51F0458DC0318504BAA1BC /* [CP] Check Pods Manifest.lock */ = {
353 330
 			isa = PBXShellScriptBuildPhase;
354 331
 			buildActionMask = 2147483647;
355 332
 			files = (
@@ -371,6 +348,28 @@
371 348
 			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
372 349
 			showEnvVarsInLog = 0;
373 350
 		};
351
+		C5EF9DE7AEB391F931CDFB68 /* [CP] Check Pods Manifest.lock */ = {
352
+			isa = PBXShellScriptBuildPhase;
353
+			buildActionMask = 2147483647;
354
+			files = (
355
+			);
356
+			inputFileListPaths = (
357
+			);
358
+			inputPaths = (
359
+				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
360
+				"${PODS_ROOT}/Manifest.lock",
361
+			);
362
+			name = "[CP] Check Pods Manifest.lock";
363
+			outputFileListPaths = (
364
+			);
365
+			outputPaths = (
366
+				"$(DERIVED_FILE_DIR)/Pods-RNPermissionsExample-tvOS-checkManifestLockResult.txt",
367
+			);
368
+			runOnlyForDeploymentPostprocessing = 0;
369
+			shellPath = /bin/sh;
370
+			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
371
+			showEnvVarsInLog = 0;
372
+		};
374 373
 /* End PBXShellScriptBuildPhase section */
375 374
 
376 375
 /* Begin PBXSourcesBuildPhase section */
@@ -409,7 +408,7 @@
409 408
 /* Begin XCBuildConfiguration section */
410 409
 		13B07F941A680F5B00A75B9A /* Debug */ = {
411 410
 			isa = XCBuildConfiguration;
412
-			baseConfigurationReference = EFC2B4024563B97F765C7CAF /* Pods-RNPermissionsExample.debug.xcconfig */;
411
+			baseConfigurationReference = 1378F599F6455B105F696280 /* Pods-RNPermissionsExample.debug.xcconfig */;
413 412
 			buildSettings = {
414 413
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
415 414
 				CODE_SIGN_ENTITLEMENTS = "";
@@ -437,7 +436,7 @@
437 436
 		};
438 437
 		13B07F951A680F5B00A75B9A /* Release */ = {
439 438
 			isa = XCBuildConfiguration;
440
-			baseConfigurationReference = 112A13EA7418A1DA3FFFE89E /* Pods-RNPermissionsExample.release.xcconfig */;
439
+			baseConfigurationReference = F96F055A36F2991DEF9E65C0 /* Pods-RNPermissionsExample.release.xcconfig */;
441 440
 			buildSettings = {
442 441
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
443 442
 				CODE_SIGN_ENTITLEMENTS = "";
@@ -464,7 +463,7 @@
464 463
 		};
465 464
 		2D02E4971E0B4A5E006451C7 /* Debug */ = {
466 465
 			isa = XCBuildConfiguration;
467
-			baseConfigurationReference = A3695C8635FFAF0C2C558D58 /* Pods-RNPermissionsExample-tvOS.debug.xcconfig */;
466
+			baseConfigurationReference = D4E8F220F58DB908082D8E08 /* Pods-RNPermissionsExample-tvOS.debug.xcconfig */;
468 467
 			buildSettings = {
469 468
 				ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
470 469
 				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
@@ -497,7 +496,7 @@
497 496
 		};
498 497
 		2D02E4981E0B4A5E006451C7 /* Release */ = {
499 498
 			isa = XCBuildConfiguration;
500
-			baseConfigurationReference = B4C1975DC33A53090D5B8018 /* Pods-RNPermissionsExample-tvOS.release.xcconfig */;
499
+			baseConfigurationReference = 0E7EBB2FDF7AAECF1C038287 /* Pods-RNPermissionsExample-tvOS.release.xcconfig */;
501 500
 			buildSettings = {
502 501
 				ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
503 502
 				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;

+ 0
- 106
ios/RNPermissions.podspec View File

@@ -1,106 +0,0 @@
1
-require 'json'
2
-package = JSON.parse(File.read('../package.json'))
3
-
4
-Pod::Spec.new do |s|
5
-  s.name                   = "RNPermissions"
6
-
7
-  s.version                = package["version"]
8
-  s.license                = package["license"]
9
-  s.description            = package["description"]
10
-  s.summary                = package["description"]
11
-  s.authors                = package["author"]
12
-  s.homepage               = package["homepage"]
13
-
14
-  s.default_subspec        = "Core"
15
-  s.requires_arc           = true
16
-  s.platforms              = { :ios => "9.0", :tvos => "9.2" }
17
-  s.pod_target_xcconfig    = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++14" }
18
-
19
-  s.source                 = { :git => "#{s.homepage}.git", :tag => s.version }
20
-  s.source_files           = "*.{h,m}"
21
-
22
-  s.subspec "Core" do |ss|
23
-    s.dependency              "React/Core"
24
-    ss.source_files         = "*.{h,m}"
25
-  end
26
-
27
-  s.subspec "BluetoothPeripheral" do |ss|
28
-    ss.dependency             "RNPermissions/Core"
29
-    ss.source_files         = "PermissionHandlers/BluetoothPeripheral/*.{h,m}"
30
-  end
31
-
32
-  s.subspec "Calendars" do |ss|
33
-    ss.dependency             "RNPermissions/Core"
34
-    ss.source_files         = "PermissionHandlers/Calendars/*.{h,m}"
35
-  end
36
-
37
-  s.subspec "Camera" do |ss|
38
-    ss.dependency             "RNPermissions/Core"
39
-    ss.source_files         = "PermissionHandlers/Camera/*.{h,m}"
40
-  end
41
-
42
-  s.subspec "Contacts" do |ss|
43
-    ss.dependency             "RNPermissions/Core"
44
-    ss.source_files         = "PermissionHandlers/Contacts/*.{h,m}"
45
-  end
46
-
47
-  s.subspec "FaceID" do |ss|
48
-    ss.dependency             "RNPermissions/Core"
49
-    ss.source_files         = "PermissionHandlers/FaceID/*.{h,m}"
50
-  end
51
-
52
-  s.subspec "LocationAlways" do |ss|
53
-    ss.dependency             "RNPermissions/Core"
54
-    ss.source_files         = "PermissionHandlers/LocationAlways/*.{h,m}"
55
-  end
56
-
57
-  s.subspec "LocationWhenInUse" do |ss|
58
-    ss.dependency             "RNPermissions/Core"
59
-    ss.source_files         = "PermissionHandlers/LocationWhenInUse/*.{h,m}"
60
-  end
61
-
62
-  s.subspec "MediaLibrary" do |ss|
63
-    ss.dependency             "RNPermissions/Core"
64
-    ss.source_files         = "PermissionHandlers/MediaLibrary/*.{h,m}"
65
-  end
66
-
67
-  s.subspec "Microphone" do |ss|
68
-    ss.dependency             "RNPermissions/Core"
69
-    ss.source_files         = "PermissionHandlers/Microphone/*.{h,m}"
70
-  end
71
-
72
-  s.subspec "Motion" do |ss|
73
-    ss.dependency             "RNPermissions/Core"
74
-    ss.source_files         = "PermissionHandlers/Motion/*.{h,m}"
75
-  end
76
-
77
-  s.subspec "Notifications" do |ss|
78
-    ss.dependency             "RNPermissions/Core"
79
-    ss.source_files         = "PermissionHandlers/Notifications/*.{h,m}"
80
-  end
81
-
82
-  s.subspec "PhotoLibrary" do |ss|
83
-    ss.dependency             "RNPermissions/Core"
84
-    ss.source_files         = "PermissionHandlers/PhotoLibrary/*.{h,m}"
85
-  end
86
-
87
-  s.subspec "Reminders" do |ss|
88
-    ss.dependency             "RNPermissions/Core"
89
-    ss.source_files         = "PermissionHandlers/Reminders/*.{h,m}"
90
-  end
91
-
92
-  s.subspec "Siri" do |ss|
93
-    ss.dependency             "RNPermissions/Core"
94
-    ss.source_files         = "PermissionHandlers/Siri/*.{h,m}"
95
-  end
96
-
97
-  s.subspec "SpeechRecognition" do |ss|
98
-    ss.dependency             "RNPermissions/Core"
99
-    ss.source_files         = "PermissionHandlers/SpeechRecognition/*.{h,m}"
100
-  end
101
-
102
-  s.subspec "StoreKit" do |ss|
103
-    ss.dependency             "RNPermissions/Core"
104
-    ss.source_files         = "PermissionHandlers/StoreKit/*.{h,m}"
105
-  end
106
-end