Procházet zdrojové kódy

Move files to new location. Add to array in permissions.ios.js

Peter Lau před 6 roky
rodič
revize
390a8bde8d

permissions/RNPMotion.h → ios/Permissions/RNPMotion.h Zobrazit soubor


permissions/RNPMotion.m → ios/Permissions/RNPMotion.m Zobrazit soubor


+ 6
- 24
ios/ReactNativePermissions.xcodeproj/project.pbxproj Zobrazit soubor

@@ -7,7 +7,6 @@
7 7
 	objects = {
8 8
 
9 9
 /* Begin PBXBuildFile section */
10
-		483383101FAB6115005D5777 /* RNPMotion.m in Sources */ = {isa = PBXBuildFile; fileRef = 4833830E1FAB6114005D5777 /* RNPMotion.m */; };
11 10
 		669581F71FE4416B008596CD /* RCTConvert+RNPStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 669581F41FE4416B008596CD /* RCTConvert+RNPStatus.m */; };
12 11
 		669581F81FE4416B008596CD /* ReactNativePermissions.m in Sources */ = {isa = PBXBuildFile; fileRef = 669581F51FE4416B008596CD /* ReactNativePermissions.m */; };
13 12
 		6695820D1FE441A8008596CD /* RNPSpeechRecognition.m in Sources */ = {isa = PBXBuildFile; fileRef = 669581FD1FE441A7008596CD /* RNPSpeechRecognition.m */; };
@@ -19,6 +18,7 @@
19 18
 		669582131FE441A8008596CD /* RNPAudioVideo.m in Sources */ = {isa = PBXBuildFile; fileRef = 669582071FE441A7008596CD /* RNPAudioVideo.m */; };
20 19
 		669582141FE441A8008596CD /* RNPContacts.m in Sources */ = {isa = PBXBuildFile; fileRef = 669582081FE441A8008596CD /* RNPContacts.m */; };
21 20
 		669582151FE441A8008596CD /* RNPEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 6695820A1FE441A8008596CD /* RNPEvent.m */; };
21
+		D0AD62322000657000D89898 /* RNPMotion.m in Sources */ = {isa = PBXBuildFile; fileRef = D0AD62312000657000D89898 /* RNPMotion.m */; };
22 22
 /* End PBXBuildFile section */
23 23
 
24 24
 /* Begin PBXCopyFilesBuildPhase section */
@@ -34,8 +34,6 @@
34 34
 /* End PBXCopyFilesBuildPhase section */
35 35
 
36 36
 /* Begin PBXFileReference section */
37
-		4833830E1FAB6114005D5777 /* RNPMotion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNPMotion.m; path = permissions/RNPMotion.m; sourceTree = SOURCE_ROOT; };
38
-		4833830F1FAB6115005D5777 /* RNPMotion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNPMotion.h; path = permissions/RNPMotion.h; sourceTree = SOURCE_ROOT; };
39 37
 		669581F31FE4416B008596CD /* ReactNativePermissions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReactNativePermissions.h; sourceTree = "<group>"; };
40 38
 		669581F41FE4416B008596CD /* RCTConvert+RNPStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "RCTConvert+RNPStatus.m"; sourceTree = "<group>"; };
41 39
 		669581F51FE4416B008596CD /* ReactNativePermissions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReactNativePermissions.m; sourceTree = "<group>"; };
@@ -59,6 +57,8 @@
59 57
 		6695820B1FE441A8008596CD /* RNPSpeechRecognition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNPSpeechRecognition.h; sourceTree = "<group>"; };
60 58
 		6695820C1FE441A8008596CD /* RNPNotification.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNPNotification.h; sourceTree = "<group>"; };
61 59
 		9D23B34F1C767B80008B4819 /* libReactNativePermissions.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReactNativePermissions.a; sourceTree = BUILT_PRODUCTS_DIR; };
60
+		D0AD62302000656F00D89898 /* RNPMotion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNPMotion.h; sourceTree = "<group>"; };
61
+		D0AD62312000657000D89898 /* RNPMotion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNPMotion.m; sourceTree = "<group>"; };
62 62
 /* End PBXFileReference section */
63 63
 
64 64
 /* Begin PBXFrameworksBuildPhase section */
@@ -85,6 +85,8 @@
85 85
 				669582081FE441A8008596CD /* RNPContacts.m */,
86 86
 				669582061FE441A7008596CD /* RNPEvent.h */,
87 87
 				6695820A1FE441A8008596CD /* RNPEvent.m */,
88
+				D0AD62302000656F00D89898 /* RNPMotion.h */,
89
+				D0AD62312000657000D89898 /* RNPMotion.m */,
88 90
 				669582021FE441A7008596CD /* RNPLocation.h */,
89 91
 				669581FE1FE441A7008596CD /* RNPLocation.m */,
90 92
 				6695820C1FE441A8008596CD /* RNPNotification.h */,
@@ -112,26 +114,6 @@
112 114
 		9D23B3501C767B80008B4819 /* Products */ = {
113 115
 			isa = PBXGroup;
114 116
 			children = (
115
-				4833830F1FAB6115005D5777 /* RNPMotion.h */,
116
-				4833830E1FAB6114005D5777 /* RNPMotion.m */,
117
-				9D46282E1D34719100346A5B /* RNPAudioVideo.h */,
118
-				9D46282F1D34719100346A5B /* RNPAudioVideo.m */,
119
-				9D4628301D34719100346A5B /* RNPBackgroundRefresh.h */,
120
-				9D4628311D34719100346A5B /* RNPBackgroundRefresh.m */,
121
-				9D4628321D34719100346A5B /* RNPBluetooth.h */,
122
-				9D4628331D34719100346A5B /* RNPBluetooth.m */,
123
-				9D4628341D34719100346A5B /* RNPContacts.h */,
124
-				9D4628351D34719100346A5B /* RNPContacts.m */,
125
-				9D4628361D34719100346A5B /* RNPEvent.h */,
126
-				9D4628371D34719100346A5B /* RNPEvent.m */,
127
-				9D4628381D34719100346A5B /* RNPLocation.h */,
128
-				9D4628391D34719100346A5B /* RNPLocation.m */,
129
-				9D46283A1D34719100346A5B /* RNPNotification.h */,
130
-				9D46283B1D34719100346A5B /* RNPNotification.m */,
131
-				9D46283C1D34719100346A5B /* RNPPhoto.h */,
132
-				9D46283D1D34719100346A5B /* RNPPhoto.m */,
133
-				281CD5921E26B266003A72B2 /* RNPSpeechRecognition.h */,
134
-				281CD5901E26B0C7003A72B2 /* RNPSpeechRecognition.m */,
135 117
 				9D23B34F1C767B80008B4819 /* libReactNativePermissions.a */,
136 118
 			);
137 119
 			name = Products;
@@ -193,7 +175,6 @@
193 175
 			isa = PBXSourcesBuildPhase;
194 176
 			buildActionMask = 2147483647;
195 177
 			files = (
196
-				483383101FAB6115005D5777 /* RNPMotion.m in Sources */,
197 178
 				669582111FE441A8008596CD /* RNPNotification.m in Sources */,
198 179
 				669582151FE441A8008596CD /* RNPEvent.m in Sources */,
199 180
 				669582101FE441A8008596CD /* RNPBackgroundRefresh.m in Sources */,
@@ -203,6 +184,7 @@
203 184
 				669582141FE441A8008596CD /* RNPContacts.m in Sources */,
204 185
 				6695820D1FE441A8008596CD /* RNPSpeechRecognition.m in Sources */,
205 186
 				669582131FE441A8008596CD /* RNPAudioVideo.m in Sources */,
187
+				D0AD62322000657000D89898 /* RNPMotion.m in Sources */,
206 188
 				669581F81FE4416B008596CD /* ReactNativePermissions.m in Sources */,
207 189
 				669582121FE441A8008596CD /* RNPPhoto.m in Sources */,
208 190
 			);

+ 1
- 0
lib/permissions.ios.js Zobrazit soubor

@@ -20,6 +20,7 @@ const permissionTypes = [
20 20
   'notification',
21 21
   'backgroundRefresh',
22 22
   'speechRecognition',
23
+  'motion'
23 24
 ]
24 25
 
25 26
 const DEFAULTS = {