Browse Source

Debug fixes

Tres Trantham 8 years ago
parent
commit
2306085fa5

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

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

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

@@ -1,6 +1,6 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <Scheme
3
-   LastUpgradeVersion = "0620"
3
+   LastUpgradeVersion = "0820"
4 4
    version = "1.3">
5 5
    <BuildAction
6 6
       parallelizeBuildables = "YES"
@@ -37,10 +37,10 @@
37 37
       </BuildActionEntries>
38 38
    </BuildAction>
39 39
    <TestAction
40
+      buildConfiguration = "Debug"
40 41
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
41 42
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42
-      shouldUseLaunchSchemeArgsEnv = "YES"
43
-      buildConfiguration = "Debug">
43
+      shouldUseLaunchSchemeArgsEnv = "YES">
44 44
       <Testables>
45 45
          <TestableReference
46 46
             skipped = "NO">
@@ -62,15 +62,18 @@
62 62
             ReferencedContainer = "container:Example.xcodeproj">
63 63
          </BuildableReference>
64 64
       </MacroExpansion>
65
+      <AdditionalOptions>
66
+      </AdditionalOptions>
65 67
    </TestAction>
66 68
    <LaunchAction
69
+      buildConfiguration = "Debug"
67 70
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
68 71
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
69 72
       launchStyle = "0"
70 73
       useCustomWorkingDirectory = "NO"
71
-      buildConfiguration = "Debug"
72 74
       ignoresPersistentStateOnLaunch = "NO"
73 75
       debugDocumentVersioning = "YES"
76
+      debugServiceExtension = "internal"
74 77
       allowLocationSimulation = "YES">
75 78
       <BuildableProductRunnable
76 79
          runnableDebuggingMode = "0">
@@ -86,10 +89,10 @@
86 89
       </AdditionalOptions>
87 90
    </LaunchAction>
88 91
    <ProfileAction
92
+      buildConfiguration = "Release"
89 93
       shouldUseLaunchSchemeArgsEnv = "YES"
90 94
       savedToolIdentifier = ""
91 95
       useCustomWorkingDirectory = "NO"
92
-      buildConfiguration = "Release"
93 96
       debugDocumentVersioning = "YES">
94 97
       <BuildableProductRunnable
95 98
          runnableDebuggingMode = "0">

+ 2
- 2
ReactNativePermissions.js View File

@@ -15,8 +15,8 @@ const RNPTypes = {
15 15
 		'reminder',
16 16
 		'bluetooth',
17 17
 		'notification',
18
-		'backgroundRefresh', 
19
-		'speechRecognition', 
18
+		'backgroundRefresh',
19
+		'speechRecognition',
20 20
 	],
21 21
 	android: [
22 22
 		'location',

+ 8
- 7
ReactNativePermissions.xcodeproj/project.pbxproj View File

@@ -7,7 +7,7 @@
7 7
 	objects = {
8 8
 
9 9
 /* Begin PBXBuildFile section */
10
-		2894D7D21E25876700401A74 /* RNPSpeechRecognition.m in Sources */ = {isa = PBXBuildFile; fileRef = 2894D7D11E25876700401A74 /* RNPSpeechRecognition.m */; };
10
+		281CD5911E26B0C8003A72B2 /* RNPSpeechRecognition.m in Sources */ = {isa = PBXBuildFile; fileRef = 281CD5901E26B0C7003A72B2 /* RNPSpeechRecognition.m */; };
11 11
 		9D46283E1D34719100346A5B /* RNPAudioVideo.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D46282F1D34719100346A5B /* RNPAudioVideo.m */; };
12 12
 		9D46283F1D34719100346A5B /* RNPBackgroundRefresh.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D4628311D34719100346A5B /* RNPBackgroundRefresh.m */; };
13 13
 		9D4628401D34719100346A5B /* RNPBluetooth.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D4628331D34719100346A5B /* RNPBluetooth.m */; };
@@ -33,8 +33,9 @@
33 33
 /* End PBXCopyFilesBuildPhase section */
34 34
 
35 35
 /* Begin PBXFileReference section */
36
-		2894D7D01E25876700401A74 /* RNPSpeechRecognition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNPSpeechRecognition.h; path = permissions/RNPSpeechRecognition.h; sourceTree = SOURCE_ROOT; };
37
-		2894D7D11E25876700401A74 /* RNPSpeechRecognition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNPSpeechRecognition.m; path = permissions/RNPSpeechRecognition.m; sourceTree = SOURCE_ROOT; };
36
+		281CD5901E26B0C7003A72B2 /* RNPSpeechRecognition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNPSpeechRecognition.m; path = permissions/RNPSpeechRecognition.m; sourceTree = SOURCE_ROOT; };
37
+		281CD5921E26B266003A72B2 /* RNPSpeechRecognition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNPSpeechRecognition.h; path = permissions/RNPSpeechRecognition.h; sourceTree = SOURCE_ROOT; };
38
+		9D23B34F1C767B80008B4819 /* libReactNativePermissions.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReactNativePermissions.a; sourceTree = BUILT_PRODUCTS_DIR; };
38 39
 		9D46282E1D34719100346A5B /* RNPAudioVideo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNPAudioVideo.h; path = permissions/RNPAudioVideo.h; sourceTree = SOURCE_ROOT; };
39 40
 		9D46282F1D34719100346A5B /* RNPAudioVideo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNPAudioVideo.m; path = permissions/RNPAudioVideo.m; sourceTree = SOURCE_ROOT; };
40 41
 		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 @@
99 100
 		9D4628091D33C1EC00346A5B /* permissions */ = {
100 101
 			isa = PBXGroup;
101 102
 			children = (
102
-				2894D7D01E25876700401A74 /* RNPSpeechRecognition.h */,
103
-				2894D7D11E25876700401A74 /* RNPSpeechRecognition.m */,
104 103
 				9D46282E1D34719100346A5B /* RNPAudioVideo.h */,
105 104
 				9D46282F1D34719100346A5B /* RNPAudioVideo.m */,
106 105
 				9D4628301D34719100346A5B /* RNPBackgroundRefresh.h */,
@@ -117,6 +116,8 @@
117 116
 				9D46283B1D34719100346A5B /* RNPNotification.m */,
118 117
 				9D46283C1D34719100346A5B /* RNPPhoto.h */,
119 118
 				9D46283D1D34719100346A5B /* RNPPhoto.m */,
119
+				281CD5921E26B266003A72B2 /* RNPSpeechRecognition.h */,
120
+				281CD5901E26B0C7003A72B2 /* RNPSpeechRecognition.m */,
120 121
 			);
121 122
 			name = permissions;
122 123
 			sourceTree = "<group>";
@@ -147,7 +148,7 @@
147 148
 		9D23B3471C767B80008B4819 /* Project object */ = {
148 149
 			isa = PBXProject;
149 150
 			attributes = {
150
-				LastUpgradeCheck = 0710;
151
+				LastUpgradeCheck = 0820;
151 152
 				ORGANIZATIONNAME = "Yonah Forst";
152 153
 				TargetAttributes = {
153 154
 					9D23B34E1C767B80008B4819 = {
@@ -179,7 +180,7 @@
179 180
 			files = (
180 181
 				9D46283F1D34719100346A5B /* RNPBackgroundRefresh.m in Sources */,
181 182
 				9D4628451D34719100346A5B /* RNPPhoto.m in Sources */,
182
-				2894D7D21E25876700401A74 /* RNPSpeechRecognition.m in Sources */,
183
+				281CD5911E26B0C8003A72B2 /* RNPSpeechRecognition.m in Sources */,
183 184
 				9D4628431D34719100346A5B /* RNPLocation.m in Sources */,
184 185
 				9D46283E1D34719100346A5B /* RNPAudioVideo.m in Sources */,
185 186
 				9D4628401D34719100346A5B /* RNPBluetooth.m in Sources */,

+ 2
- 2
permissions/RNPSpeechRecognition.h View File

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

+ 4
- 5
permissions/RNPSpeechRecognition.m View File

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