Browse Source

Debug fixes

Tres Trantham 9 years ago
parent
commit
2306085fa5

+ 1 - 1
Example/ios/Example.xcodeproj/project.pbxproj

@@ -372,7 +372,7 @@
 		83CBB9F71A601CBA00E9B192 /* Project object */ = {
 			isa = PBXProject;
 			attributes = {
-				LastUpgradeCheck = 610;
+				LastUpgradeCheck = 0820;
 				ORGANIZATIONNAME = Facebook;
 				TargetAttributes = {
 					00E356ED1AD99517003FC87E = {

+ 8 - 5
Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   LastUpgradeVersion = "0620"
+   LastUpgradeVersion = "0820"
    version = "1.3">
    <BuildAction
       parallelizeBuildables = "YES"
@@ -37,10 +37,10 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
+      buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
+      shouldUseLaunchSchemeArgsEnv = "YES">
       <Testables>
          <TestableReference
             skipped = "NO">
@@ -62,15 +62,18 @@
             ReferencedContainer = "container:Example.xcodeproj">
          </BuildableReference>
       </MacroExpansion>
+      <AdditionalOptions>
+      </AdditionalOptions>
    </TestAction>
    <LaunchAction
+      buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug"
       ignoresPersistentStateOnLaunch = "NO"
       debugDocumentVersioning = "YES"
+      debugServiceExtension = "internal"
       allowLocationSimulation = "YES">
       <BuildableProductRunnable
          runnableDebuggingMode = "0">
@@ -86,10 +89,10 @@
       </AdditionalOptions>
    </LaunchAction>
    <ProfileAction
+      buildConfiguration = "Release"
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release"
       debugDocumentVersioning = "YES">
       <BuildableProductRunnable
          runnableDebuggingMode = "0">

+ 2 - 2
ReactNativePermissions.js

@@ -15,8 +15,8 @@ const RNPTypes = {
 		'reminder',
 		'bluetooth',
 		'notification',
-		'backgroundRefresh', 
-		'speechRecognition', 
+		'backgroundRefresh',
+		'speechRecognition',
 	],
 	android: [
 		'location',

+ 8 - 7
ReactNativePermissions.xcodeproj/project.pbxproj

@@ -7,7 +7,7 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
-		2894D7D21E25876700401A74 /* RNPSpeechRecognition.m in Sources */ = {isa = PBXBuildFile; fileRef = 2894D7D11E25876700401A74 /* RNPSpeechRecognition.m */; };
+		281CD5911E26B0C8003A72B2 /* RNPSpeechRecognition.m in Sources */ = {isa = PBXBuildFile; fileRef = 281CD5901E26B0C7003A72B2 /* RNPSpeechRecognition.m */; };
 		9D46283E1D34719100346A5B /* RNPAudioVideo.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D46282F1D34719100346A5B /* RNPAudioVideo.m */; };
 		9D46283F1D34719100346A5B /* RNPBackgroundRefresh.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D4628311D34719100346A5B /* RNPBackgroundRefresh.m */; };
 		9D4628401D34719100346A5B /* RNPBluetooth.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D4628331D34719100346A5B /* RNPBluetooth.m */; };
@@ -33,8 +33,9 @@
 /* End PBXCopyFilesBuildPhase section */
 
 /* Begin PBXFileReference section */
-		2894D7D01E25876700401A74 /* RNPSpeechRecognition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNPSpeechRecognition.h; path = permissions/RNPSpeechRecognition.h; sourceTree = SOURCE_ROOT; };
-		2894D7D11E25876700401A74 /* RNPSpeechRecognition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNPSpeechRecognition.m; path = permissions/RNPSpeechRecognition.m; sourceTree = SOURCE_ROOT; };
+		281CD5901E26B0C7003A72B2 /* RNPSpeechRecognition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNPSpeechRecognition.m; path = permissions/RNPSpeechRecognition.m; sourceTree = SOURCE_ROOT; };
+		281CD5921E26B266003A72B2 /* RNPSpeechRecognition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNPSpeechRecognition.h; path = permissions/RNPSpeechRecognition.h; sourceTree = SOURCE_ROOT; };
+		9D23B34F1C767B80008B4819 /* libReactNativePermissions.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReactNativePermissions.a; sourceTree = BUILT_PRODUCTS_DIR; };
 		9D46282E1D34719100346A5B /* RNPAudioVideo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNPAudioVideo.h; path = permissions/RNPAudioVideo.h; sourceTree = SOURCE_ROOT; };
 		9D46282F1D34719100346A5B /* RNPAudioVideo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNPAudioVideo.m; path = permissions/RNPAudioVideo.m; sourceTree = SOURCE_ROOT; };
 		9D4628301D34719100346A5B /* RNPBackgroundRefresh.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNPBackgroundRefresh.h; path = permissions/RNPBackgroundRefresh.h; sourceTree = SOURCE_ROOT; };
@@ -99,8 +100,6 @@
 		9D4628091D33C1EC00346A5B /* permissions */ = {
 			isa = PBXGroup;
 			children = (
-				2894D7D01E25876700401A74 /* RNPSpeechRecognition.h */,
-				2894D7D11E25876700401A74 /* RNPSpeechRecognition.m */,
 				9D46282E1D34719100346A5B /* RNPAudioVideo.h */,
 				9D46282F1D34719100346A5B /* RNPAudioVideo.m */,
 				9D4628301D34719100346A5B /* RNPBackgroundRefresh.h */,
@@ -117,6 +116,8 @@
 				9D46283B1D34719100346A5B /* RNPNotification.m */,
 				9D46283C1D34719100346A5B /* RNPPhoto.h */,
 				9D46283D1D34719100346A5B /* RNPPhoto.m */,
+				281CD5921E26B266003A72B2 /* RNPSpeechRecognition.h */,
+				281CD5901E26B0C7003A72B2 /* RNPSpeechRecognition.m */,
 			);
 			name = permissions;
 			sourceTree = "<group>";
@@ -147,7 +148,7 @@
 		9D23B3471C767B80008B4819 /* Project object */ = {
 			isa = PBXProject;
 			attributes = {
-				LastUpgradeCheck = 0710;
+				LastUpgradeCheck = 0820;
 				ORGANIZATIONNAME = "Yonah Forst";
 				TargetAttributes = {
 					9D23B34E1C767B80008B4819 = {
@@ -179,7 +180,7 @@
 			files = (
 				9D46283F1D34719100346A5B /* RNPBackgroundRefresh.m in Sources */,
 				9D4628451D34719100346A5B /* RNPPhoto.m in Sources */,
-				2894D7D21E25876700401A74 /* RNPSpeechRecognition.m in Sources */,
+				281CD5911E26B0C8003A72B2 /* RNPSpeechRecognition.m in Sources */,
 				9D4628431D34719100346A5B /* RNPLocation.m in Sources */,
 				9D46283E1D34719100346A5B /* RNPAudioVideo.m in Sources */,
 				9D4628401D34719100346A5B /* RNPBluetooth.m in Sources */,

+ 2 - 2
permissions/RNPSpeechRecognition.h

@@ -2,8 +2,8 @@
 //  RNPSpeechRecognition.h
 //  ReactNativePermissions
 //
-//  Created by Tres Trantham on 01/10/17.
-//  Copyright © 2017 Tres Trantham. All rights reserved.
+//  Created by Tres Trantham on 1/11/17.
+//  Copyright © 2017 Yonah Forst. All rights reserved.
 //
 
 #import <Foundation/Foundation.h>

+ 4 - 5
permissions/RNPSpeechRecognition.m

@@ -2,17 +2,16 @@
 //  RNPSpeechRecognition.m
 //  ReactNativePermissions
 //
-//  Created by Tres Trantham on 01/10/17.
-//  Copyright © 2017 Tres Trantham. All rights reserved.
+//  Created by Tres Trantham on 1/11/17.
+//  Copyright © 2017 Yonah Forst. All rights reserved.
 //
 
 #import "RNPSpeechRecognition.h"
-
-#import <AVFoundation/AVFoundation.h>
+#import <Speech/Speech.h>
 
 @implementation RNPSpeechRecognition
 
-+ (NSString *)getStatus:(NSString *)type
++ (NSString *)getStatus
 {
 
   int status = [SFSpeechRecognizer authorizationStatus];