Browse Source

Debug fixes

Tres Trantham 8 years ago
parent
commit
2306085fa5

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

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

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

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

+ 2
- 2
ReactNativePermissions.js View File

15
 		'reminder',
15
 		'reminder',
16
 		'bluetooth',
16
 		'bluetooth',
17
 		'notification',
17
 		'notification',
18
-		'backgroundRefresh', 
19
-		'speechRecognition', 
18
+		'backgroundRefresh',
19
+		'speechRecognition',
20
 	],
20
 	],
21
 	android: [
21
 	android: [
22
 		'location',
22
 		'location',

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

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

+ 2
- 2
permissions/RNPSpeechRecognition.h View File

2
 //  RNPSpeechRecognition.h
2
 //  RNPSpeechRecognition.h
3
 //  ReactNativePermissions
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
 #import <Foundation/Foundation.h>
9
 #import <Foundation/Foundation.h>

+ 4
- 5
permissions/RNPSpeechRecognition.m View File

2
 //  RNPSpeechRecognition.m
2
 //  RNPSpeechRecognition.m
3
 //  ReactNativePermissions
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
 #import "RNPSpeechRecognition.h"
9
 #import "RNPSpeechRecognition.h"
10
-
11
-#import <AVFoundation/AVFoundation.h>
10
+#import <Speech/Speech.h>
12
 
11
 
13
 @implementation RNPSpeechRecognition
12
 @implementation RNPSpeechRecognition
14
 
13
 
15
-+ (NSString *)getStatus:(NSString *)type
14
++ (NSString *)getStatus
16
 {
15
 {
17
 
16
 
18
   int status = [SFSpeechRecognizer authorizationStatus];
17
   int status = [SFSpeechRecognizer authorizationStatus];