浏览代码

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

Peter Lau 8 年之前
父节点
当前提交
390a8bde8d

+ 0 - 0
permissions/RNPMotion.h → ios/Permissions/RNPMotion.h


+ 0 - 0
permissions/RNPMotion.m → ios/Permissions/RNPMotion.m


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

@@ -7,7 +7,6 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
-		483383101FAB6115005D5777 /* RNPMotion.m in Sources */ = {isa = PBXBuildFile; fileRef = 4833830E1FAB6114005D5777 /* RNPMotion.m */; };
 		669581F71FE4416B008596CD /* RCTConvert+RNPStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 669581F41FE4416B008596CD /* RCTConvert+RNPStatus.m */; };
 		669581F81FE4416B008596CD /* ReactNativePermissions.m in Sources */ = {isa = PBXBuildFile; fileRef = 669581F51FE4416B008596CD /* ReactNativePermissions.m */; };
 		6695820D1FE441A8008596CD /* RNPSpeechRecognition.m in Sources */ = {isa = PBXBuildFile; fileRef = 669581FD1FE441A7008596CD /* RNPSpeechRecognition.m */; };
@@ -19,6 +18,7 @@
 		669582131FE441A8008596CD /* RNPAudioVideo.m in Sources */ = {isa = PBXBuildFile; fileRef = 669582071FE441A7008596CD /* RNPAudioVideo.m */; };
 		669582141FE441A8008596CD /* RNPContacts.m in Sources */ = {isa = PBXBuildFile; fileRef = 669582081FE441A8008596CD /* RNPContacts.m */; };
 		669582151FE441A8008596CD /* RNPEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 6695820A1FE441A8008596CD /* RNPEvent.m */; };
+		D0AD62322000657000D89898 /* RNPMotion.m in Sources */ = {isa = PBXBuildFile; fileRef = D0AD62312000657000D89898 /* RNPMotion.m */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXCopyFilesBuildPhase section */
@@ -34,8 +34,6 @@
 /* End PBXCopyFilesBuildPhase section */
 
 /* Begin PBXFileReference section */
-		4833830E1FAB6114005D5777 /* RNPMotion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNPMotion.m; path = permissions/RNPMotion.m; sourceTree = SOURCE_ROOT; };
-		4833830F1FAB6115005D5777 /* RNPMotion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNPMotion.h; path = permissions/RNPMotion.h; sourceTree = SOURCE_ROOT; };
 		669581F31FE4416B008596CD /* ReactNativePermissions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReactNativePermissions.h; sourceTree = "<group>"; };
 		669581F41FE4416B008596CD /* RCTConvert+RNPStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "RCTConvert+RNPStatus.m"; sourceTree = "<group>"; };
 		669581F51FE4416B008596CD /* ReactNativePermissions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReactNativePermissions.m; sourceTree = "<group>"; };
@@ -59,6 +57,8 @@
 		6695820B1FE441A8008596CD /* RNPSpeechRecognition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNPSpeechRecognition.h; sourceTree = "<group>"; };
 		6695820C1FE441A8008596CD /* RNPNotification.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNPNotification.h; sourceTree = "<group>"; };
 		9D23B34F1C767B80008B4819 /* libReactNativePermissions.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReactNativePermissions.a; sourceTree = BUILT_PRODUCTS_DIR; };
+		D0AD62302000656F00D89898 /* RNPMotion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNPMotion.h; sourceTree = "<group>"; };
+		D0AD62312000657000D89898 /* RNPMotion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNPMotion.m; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -85,6 +85,8 @@
 				669582081FE441A8008596CD /* RNPContacts.m */,
 				669582061FE441A7008596CD /* RNPEvent.h */,
 				6695820A1FE441A8008596CD /* RNPEvent.m */,
+				D0AD62302000656F00D89898 /* RNPMotion.h */,
+				D0AD62312000657000D89898 /* RNPMotion.m */,
 				669582021FE441A7008596CD /* RNPLocation.h */,
 				669581FE1FE441A7008596CD /* RNPLocation.m */,
 				6695820C1FE441A8008596CD /* RNPNotification.h */,
@@ -112,26 +114,6 @@
 		9D23B3501C767B80008B4819 /* Products */ = {
 			isa = PBXGroup;
 			children = (
-				4833830F1FAB6115005D5777 /* RNPMotion.h */,
-				4833830E1FAB6114005D5777 /* RNPMotion.m */,
-				9D46282E1D34719100346A5B /* RNPAudioVideo.h */,
-				9D46282F1D34719100346A5B /* RNPAudioVideo.m */,
-				9D4628301D34719100346A5B /* RNPBackgroundRefresh.h */,
-				9D4628311D34719100346A5B /* RNPBackgroundRefresh.m */,
-				9D4628321D34719100346A5B /* RNPBluetooth.h */,
-				9D4628331D34719100346A5B /* RNPBluetooth.m */,
-				9D4628341D34719100346A5B /* RNPContacts.h */,
-				9D4628351D34719100346A5B /* RNPContacts.m */,
-				9D4628361D34719100346A5B /* RNPEvent.h */,
-				9D4628371D34719100346A5B /* RNPEvent.m */,
-				9D4628381D34719100346A5B /* RNPLocation.h */,
-				9D4628391D34719100346A5B /* RNPLocation.m */,
-				9D46283A1D34719100346A5B /* RNPNotification.h */,
-				9D46283B1D34719100346A5B /* RNPNotification.m */,
-				9D46283C1D34719100346A5B /* RNPPhoto.h */,
-				9D46283D1D34719100346A5B /* RNPPhoto.m */,
-				281CD5921E26B266003A72B2 /* RNPSpeechRecognition.h */,
-				281CD5901E26B0C7003A72B2 /* RNPSpeechRecognition.m */,
 				9D23B34F1C767B80008B4819 /* libReactNativePermissions.a */,
 			);
 			name = Products;
@@ -193,7 +175,6 @@
 			isa = PBXSourcesBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				483383101FAB6115005D5777 /* RNPMotion.m in Sources */,
 				669582111FE441A8008596CD /* RNPNotification.m in Sources */,
 				669582151FE441A8008596CD /* RNPEvent.m in Sources */,
 				669582101FE441A8008596CD /* RNPBackgroundRefresh.m in Sources */,
@@ -203,6 +184,7 @@
 				669582141FE441A8008596CD /* RNPContacts.m in Sources */,
 				6695820D1FE441A8008596CD /* RNPSpeechRecognition.m in Sources */,
 				669582131FE441A8008596CD /* RNPAudioVideo.m in Sources */,
+				D0AD62322000657000D89898 /* RNPMotion.m in Sources */,
 				669581F81FE4416B008596CD /* ReactNativePermissions.m in Sources */,
 				669582121FE441A8008596CD /* RNPPhoto.m in Sources */,
 			);

+ 1 - 0
lib/permissions.ios.js

@@ -20,6 +20,7 @@ const permissionTypes = [
   'notification',
   'backgroundRefresh',
   'speechRecognition',
+  'motion'
 ]
 
 const DEFAULTS = {