Yonah Forst vor 8 Jahren
Commit
bf1fd05ca3

+ 21
- 0
LICENSE Datei anzeigen

@@ -0,0 +1,21 @@
1
+The MIT License (MIT)
2
+
3
+Copyright (c) 2015 Yonah Forst
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in all
13
+copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+SOFTWARE.

+ 106
- 0
README.md Datei anzeigen

@@ -0,0 +1,106 @@
1
+# Discovery
2
+Discover nearby devices using BLE.
3
+
4
+React native implementation of https://github.com/omergul123/Discovery
5
+
6
+(Android uses https://github.com/joshblour/discovery-android)
7
+
8
+##What
9
+Discovery is a very simple but useful library for discovering nearby devices with BLE(Bluetooth Low Energy) and for exchanging a value (kind of ID or username determined by you on the running app on peer device) regardless of whether the app on peer device works at foreground or background state.
10
+
11
+
12
+####Example
13
+```java
14
+const {DeviceEventEmitter} = require('react-native');
15
+const Discovery = require('react-native-discovery');
16
+
17
+Discovery.initialize(
18
+  "3E1180E5-222E-43E9-98B4-E6C0DD18E728",
19
+  "SpacemanSpiff"
20
+);
21
+Discovery.setShouldAdvertise(true);
22
+Discovery.setShouldDiscover(true);
23
+
24
+// Listen for discovery changes
25
+DeviceEventEmitter.addListener(
26
+  'discoveredUsers',
27
+  (data) => {
28
+    if (data.didChange || data.usersChanged) //slight callback discrepancy between the iOS and Android libraries
29
+      console.log(data.users)
30
+  }
31
+);
32
+
33
+```
34
+
35
+
36
+####API
37
+
38
+`initialize(uuidString, username)` - Initialize the Discovery object with a UUID specific to your app, and a username specific to your device.
39
+
40
+`setPaused(isPaused)` - bool. pauses advertising and detection
41
+
42
+`setShouldDiscover(shouldDiscover)` - bool. starts and stops discovery only
43
+
44
+`setShouldAdvertise(shouldAdvertise)` - bool. starts and stops advertising only
45
+
46
+`setUserTimeoutInterval(userTimeoutInterval)` - integer in seconds, default is 5. After not seeing a user for x seconds, we remove him from the users list in our callback.
47
+  
48
+  
49
+*The following two methods are specific to the Android version, since the Android docs advise against continuous scanning. Instead, we cycle scanning on and off. This also allows us to modify the scan behaviour when the app moves to the background.*
50
+
51
+`setScanForSeconds(scanForSeconds)` - integer in seconds, default is 5. This parameter specifies the duration of the ON part of the scan cycle.
52
+    
53
+`setWaitForSeconds(waitForSeconds)` - integer in seconds default is 5. This parameter specifies the duration of the OFF part of the scan cycle.
54
+
55
+
56
+##Setup
57
+
58
+````
59
+npm install --save react-native-discovery
60
+````
61
+
62
+###iOS
63
+* Run open node_modules/react-native-discovery
64
+* Drag ReactNativeDiscovery.xcodeproj into your Libraries group
65
+
66
+###Android
67
+#####Step 1 - Update Gradle Settings
68
+
69
+```
70
+// file: android/settings.gradle
71
+...
72
+
73
+include ':react-native-discovery'
74
+project(':react-native-discovery').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-discovery/android')
75
+```
76
+#####Step 2 - Update Gradle Build
77
+
78
+```
79
+// file: android/app/build.gradle
80
+...
81
+
82
+dependencies {
83
+    ...
84
+    compile project(':react-native-discovery')
85
+}
86
+```
87
+#####Step 3 - Register React Package
88
+```
89
+...
90
+import com.joshblour.reactnativediscovery.ReactNativeDiscoveryPackage; // <--- import
91
+
92
+public class MainActivity extends ReactActivity {
93
+
94
+    ...
95
+
96
+    @Override
97
+    protected List<ReactPackage> getPackages() {
98
+        return Arrays.<ReactPackage>asList(
99
+            new MainReactPackage(),
100
+            new ReactNativeDiscoveryPackage(this) // <------ add the package
101
+        );
102
+    }
103
+
104
+    ...
105
+}
106
+```

+ 14
- 0
ReactNativePermissions.h Datei anzeigen

@@ -0,0 +1,14 @@
1
+//
2
+//  ReactNativePermissions.h
3
+//  ReactNativePermissions
4
+//
5
+//  Created by Yonah Forst on 18/02/16.
6
+//  Copyright © 2016 Yonah Forst. All rights reserved.
7
+//
8
+#import "RCTBridgeModule.h"
9
+
10
+#import <Foundation/Foundation.h>
11
+
12
+@interface ReactNativePermissions : NSObject <RCTBridgeModule>
13
+
14
+@end

+ 6
- 0
ReactNativePermissions.ios.js Datei anzeigen

@@ -0,0 +1,6 @@
1
+'use strict';
2
+
3
+var React = require('react-native');
4
+var Heading = React.NativeModules.ReactNativePermissions;
5
+
6
+module.exports = Heading;

+ 65
- 0
ReactNativePermissions.m Datei anzeigen

@@ -0,0 +1,65 @@
1
+//
2
+//  ReactNativePermissions.m
3
+//  ReactNativePermissions
4
+//
5
+//  Created by Yonah Forst on 18/02/16.
6
+//  Copyright © 2016 Yonah Forst. All rights reserved.
7
+//
8
+
9
+#import "ReactNativePermissions.h"
10
+
11
+#import "RCTBridge.h"
12
+#import "RCTConvert.h"
13
+#import "RCTEventDispatcher.h"
14
+
15
+
16
+@interface ReactNativePermissions()
17
+@end
18
+
19
+@implementation ReactNativePermissions
20
+
21
+RCT_EXPORT_MODULE();
22
+@synthesize bridge = _bridge;
23
+
24
+#pragma mark Initialization
25
+
26
+- (instancetype)init
27
+{
28
+    if (self = [super init]) {
29
+    }
30
+    
31
+    return self;
32
+}
33
+
34
+RCT_REMAP_METHOD(start, start:(int)headingFilter resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
35
+    // Start heading updates.
36
+    if ([CLLocationManager headingAvailable]) {
37
+        if (!headingFilter)
38
+            headingFilter = 5;
39
+        
40
+        self.locManager.headingFilter = headingFilter;
41
+        [self.locManager startUpdatingHeading];
42
+        resolve(@YES);
43
+    } else {
44
+        resolve(@NO);
45
+    }
46
+}
47
+
48
+RCT_EXPORT_METHOD(stop) {
49
+    [self.locManager stopUpdatingHeading];
50
+}
51
+
52
+- (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading {
53
+    if (newHeading.headingAccuracy < 0)
54
+        return;
55
+    
56
+    // Use the true heading if it is valid.
57
+    CLLocationDirection heading = ((newHeading.trueHeading > 0) ?
58
+                                   newHeading.trueHeading : newHeading.magneticHeading);
59
+    
60
+    NSDictionary *headingEvent = @{@"heading": @(heading)};
61
+    
62
+    [self.bridge.eventDispatcher sendDeviceEventWithName:@"headingUpdated" body:headingEvent];
63
+}
64
+
65
+@end

+ 264
- 0
ReactNativePermissions.xcodeproj/project.pbxproj Datei anzeigen

@@ -0,0 +1,264 @@
1
+// !$*UTF8*$!
2
+{
3
+	archiveVersion = 1;
4
+	classes = {
5
+	};
6
+	objectVersion = 46;
7
+	objects = {
8
+
9
+/* Begin PBXBuildFile section */
10
+		9DE8D2821CA3188D009CE8CC /* ReactNativePermissions.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DE8D2811CA3188D009CE8CC /* ReactNativePermissions.m */; };
11
+/* End PBXBuildFile section */
12
+
13
+/* Begin PBXCopyFilesBuildPhase section */
14
+		9D23B34D1C767B80008B4819 /* CopyFiles */ = {
15
+			isa = PBXCopyFilesBuildPhase;
16
+			buildActionMask = 2147483647;
17
+			dstPath = "include/$(PRODUCT_NAME)";
18
+			dstSubfolderSpec = 16;
19
+			files = (
20
+			);
21
+			runOnlyForDeploymentPostprocessing = 0;
22
+		};
23
+/* End PBXCopyFilesBuildPhase section */
24
+
25
+/* Begin PBXFileReference section */
26
+		9D23B34F1C767B80008B4819 /* libReactNativePermissions.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReactNativePermissions.a; sourceTree = BUILT_PRODUCTS_DIR; };
27
+		9DE8D2801CA31888009CE8CC /* ReactNativePermissions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ReactNativePermissions.h; sourceTree = SOURCE_ROOT; };
28
+		9DE8D2811CA3188D009CE8CC /* ReactNativePermissions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReactNativePermissions.m; sourceTree = SOURCE_ROOT; };
29
+/* End PBXFileReference section */
30
+
31
+/* Begin PBXFrameworksBuildPhase section */
32
+		9D23B34C1C767B80008B4819 /* Frameworks */ = {
33
+			isa = PBXFrameworksBuildPhase;
34
+			buildActionMask = 2147483647;
35
+			files = (
36
+			);
37
+			runOnlyForDeploymentPostprocessing = 0;
38
+		};
39
+/* End PBXFrameworksBuildPhase section */
40
+
41
+/* Begin PBXGroup section */
42
+		9D23B3461C767B80008B4819 = {
43
+			isa = PBXGroup;
44
+			children = (
45
+				9D23B3511C767B80008B4819 /* ReactNativePermissions */,
46
+				9D23B3501C767B80008B4819 /* Products */,
47
+			);
48
+			sourceTree = "<group>";
49
+		};
50
+		9D23B3501C767B80008B4819 /* Products */ = {
51
+			isa = PBXGroup;
52
+			children = (
53
+				9D23B34F1C767B80008B4819 /* libReactNativePermissions.a */,
54
+			);
55
+			name = Products;
56
+			sourceTree = "<group>";
57
+		};
58
+		9D23B3511C767B80008B4819 /* ReactNativePermissions */ = {
59
+			isa = PBXGroup;
60
+			children = (
61
+				9DE8D2801CA31888009CE8CC /* ReactNativePermissions.h */,
62
+				9DE8D2811CA3188D009CE8CC /* ReactNativePermissions.m */,
63
+			);
64
+			path = ReactNativePermissions;
65
+			sourceTree = "<group>";
66
+		};
67
+/* End PBXGroup section */
68
+
69
+/* Begin PBXNativeTarget section */
70
+		9D23B34E1C767B80008B4819 /* ReactNativePermissions */ = {
71
+			isa = PBXNativeTarget;
72
+			buildConfigurationList = 9D23B3581C767B80008B4819 /* Build configuration list for PBXNativeTarget "ReactNativePermissions" */;
73
+			buildPhases = (
74
+				9D23B34B1C767B80008B4819 /* Sources */,
75
+				9D23B34C1C767B80008B4819 /* Frameworks */,
76
+				9D23B34D1C767B80008B4819 /* CopyFiles */,
77
+			);
78
+			buildRules = (
79
+			);
80
+			dependencies = (
81
+			);
82
+			name = ReactNativePermissions;
83
+			productName = ReactNativePermissions;
84
+			productReference = 9D23B34F1C767B80008B4819 /* libReactNativePermissions.a */;
85
+			productType = "com.apple.product-type.library.static";
86
+		};
87
+/* End PBXNativeTarget section */
88
+
89
+/* Begin PBXProject section */
90
+		9D23B3471C767B80008B4819 /* Project object */ = {
91
+			isa = PBXProject;
92
+			attributes = {
93
+				LastUpgradeCheck = 0710;
94
+				ORGANIZATIONNAME = "Yonah Forst";
95
+				TargetAttributes = {
96
+					9D23B34E1C767B80008B4819 = {
97
+						CreatedOnToolsVersion = 7.1;
98
+					};
99
+				};
100
+			};
101
+			buildConfigurationList = 9D23B34A1C767B80008B4819 /* Build configuration list for PBXProject "ReactNativePermissions" */;
102
+			compatibilityVersion = "Xcode 3.2";
103
+			developmentRegion = English;
104
+			hasScannedForEncodings = 0;
105
+			knownRegions = (
106
+				en,
107
+			);
108
+			mainGroup = 9D23B3461C767B80008B4819;
109
+			productRefGroup = 9D23B3501C767B80008B4819 /* Products */;
110
+			projectDirPath = "";
111
+			projectRoot = "";
112
+			targets = (
113
+				9D23B34E1C767B80008B4819 /* ReactNativePermissions */,
114
+			);
115
+		};
116
+/* End PBXProject section */
117
+
118
+/* Begin PBXSourcesBuildPhase section */
119
+		9D23B34B1C767B80008B4819 /* Sources */ = {
120
+			isa = PBXSourcesBuildPhase;
121
+			buildActionMask = 2147483647;
122
+			files = (
123
+				9DE8D2821CA3188D009CE8CC /* ReactNativePermissions.m in Sources */,
124
+			);
125
+			runOnlyForDeploymentPostprocessing = 0;
126
+		};
127
+/* End PBXSourcesBuildPhase section */
128
+
129
+/* Begin XCBuildConfiguration section */
130
+		9D23B3561C767B80008B4819 /* Debug */ = {
131
+			isa = XCBuildConfiguration;
132
+			buildSettings = {
133
+				ALWAYS_SEARCH_USER_PATHS = NO;
134
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
135
+				CLANG_CXX_LIBRARY = "libc++";
136
+				CLANG_ENABLE_MODULES = YES;
137
+				CLANG_ENABLE_OBJC_ARC = YES;
138
+				CLANG_WARN_BOOL_CONVERSION = YES;
139
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
140
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
141
+				CLANG_WARN_EMPTY_BODY = YES;
142
+				CLANG_WARN_ENUM_CONVERSION = YES;
143
+				CLANG_WARN_INT_CONVERSION = YES;
144
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
145
+				CLANG_WARN_UNREACHABLE_CODE = YES;
146
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
147
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
148
+				COPY_PHASE_STRIP = NO;
149
+				DEBUG_INFORMATION_FORMAT = dwarf;
150
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
151
+				ENABLE_TESTABILITY = YES;
152
+				GCC_C_LANGUAGE_STANDARD = gnu99;
153
+				GCC_DYNAMIC_NO_PIC = NO;
154
+				GCC_NO_COMMON_BLOCKS = YES;
155
+				GCC_OPTIMIZATION_LEVEL = 0;
156
+				GCC_PREPROCESSOR_DEFINITIONS = (
157
+					"DEBUG=1",
158
+					"$(inherited)",
159
+				);
160
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
161
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
162
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
163
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
164
+				GCC_WARN_UNUSED_FUNCTION = YES;
165
+				GCC_WARN_UNUSED_VARIABLE = YES;
166
+				IPHONEOS_DEPLOYMENT_TARGET = 9.1;
167
+				MTL_ENABLE_DEBUG_INFO = YES;
168
+				ONLY_ACTIVE_ARCH = YES;
169
+				SDKROOT = iphoneos;
170
+			};
171
+			name = Debug;
172
+		};
173
+		9D23B3571C767B80008B4819 /* Release */ = {
174
+			isa = XCBuildConfiguration;
175
+			buildSettings = {
176
+				ALWAYS_SEARCH_USER_PATHS = NO;
177
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
178
+				CLANG_CXX_LIBRARY = "libc++";
179
+				CLANG_ENABLE_MODULES = YES;
180
+				CLANG_ENABLE_OBJC_ARC = YES;
181
+				CLANG_WARN_BOOL_CONVERSION = YES;
182
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
183
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
184
+				CLANG_WARN_EMPTY_BODY = YES;
185
+				CLANG_WARN_ENUM_CONVERSION = YES;
186
+				CLANG_WARN_INT_CONVERSION = YES;
187
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
188
+				CLANG_WARN_UNREACHABLE_CODE = YES;
189
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
190
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
191
+				COPY_PHASE_STRIP = NO;
192
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
193
+				ENABLE_NS_ASSERTIONS = NO;
194
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
195
+				GCC_C_LANGUAGE_STANDARD = gnu99;
196
+				GCC_NO_COMMON_BLOCKS = YES;
197
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
198
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
199
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
200
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
201
+				GCC_WARN_UNUSED_FUNCTION = YES;
202
+				GCC_WARN_UNUSED_VARIABLE = YES;
203
+				IPHONEOS_DEPLOYMENT_TARGET = 9.1;
204
+				MTL_ENABLE_DEBUG_INFO = NO;
205
+				SDKROOT = iphoneos;
206
+				VALIDATE_PRODUCT = YES;
207
+			};
208
+			name = Release;
209
+		};
210
+		9D23B3591C767B80008B4819 /* Debug */ = {
211
+			isa = XCBuildConfiguration;
212
+			buildSettings = {
213
+				HEADER_SEARCH_PATHS = (
214
+					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
215
+					"$(SRCROOT)/../../React/**",
216
+					"$(SRCROOT)/node_modules/react-native/React/**",
217
+					"$(SRCROOT)/../react-native/React/**",
218
+				);
219
+				OTHER_LDFLAGS = "-ObjC";
220
+				PRODUCT_NAME = "$(TARGET_NAME)";
221
+				SKIP_INSTALL = YES;
222
+			};
223
+			name = Debug;
224
+		};
225
+		9D23B35A1C767B80008B4819 /* Release */ = {
226
+			isa = XCBuildConfiguration;
227
+			buildSettings = {
228
+				HEADER_SEARCH_PATHS = (
229
+					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
230
+					"$(SRCROOT)/../../React/**",
231
+					"$(SRCROOT)/node_modules/react-native/React/**",
232
+					"$(SRCROOT)/../react-native/React/**",
233
+				);
234
+				OTHER_LDFLAGS = "-ObjC";
235
+				PRODUCT_NAME = "$(TARGET_NAME)";
236
+				SKIP_INSTALL = YES;
237
+			};
238
+			name = Release;
239
+		};
240
+/* End XCBuildConfiguration section */
241
+
242
+/* Begin XCConfigurationList section */
243
+		9D23B34A1C767B80008B4819 /* Build configuration list for PBXProject "ReactNativePermissions" */ = {
244
+			isa = XCConfigurationList;
245
+			buildConfigurations = (
246
+				9D23B3561C767B80008B4819 /* Debug */,
247
+				9D23B3571C767B80008B4819 /* Release */,
248
+			);
249
+			defaultConfigurationIsVisible = 0;
250
+			defaultConfigurationName = Release;
251
+		};
252
+		9D23B3581C767B80008B4819 /* Build configuration list for PBXNativeTarget "ReactNativePermissions" */ = {
253
+			isa = XCConfigurationList;
254
+			buildConfigurations = (
255
+				9D23B3591C767B80008B4819 /* Debug */,
256
+				9D23B35A1C767B80008B4819 /* Release */,
257
+			);
258
+			defaultConfigurationIsVisible = 0;
259
+			defaultConfigurationName = Release;
260
+		};
261
+/* End XCConfigurationList section */
262
+	};
263
+	rootObject = 9D23B3471C767B80008B4819 /* Project object */;
264
+}

+ 7
- 0
ReactNativePermissions.xcodeproj/project.xcworkspace/contents.xcworkspacedata Datei anzeigen

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Workspace
3
+   version = "1.0">
4
+   <FileRef
5
+      location = "self:ReactNativeHeading.xcodeproj">
6
+   </FileRef>
7
+</Workspace>

+ 80
- 0
ReactNativePermissions.xcodeproj/xcuserdata/Yonah.xcuserdatad/xcschemes/ReactNativeHeading.xcscheme Datei anzeigen

@@ -0,0 +1,80 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Scheme
3
+   LastUpgradeVersion = "0710"
4
+   version = "1.3">
5
+   <BuildAction
6
+      parallelizeBuildables = "YES"
7
+      buildImplicitDependencies = "YES">
8
+      <BuildActionEntries>
9
+         <BuildActionEntry
10
+            buildForTesting = "YES"
11
+            buildForRunning = "YES"
12
+            buildForProfiling = "YES"
13
+            buildForArchiving = "YES"
14
+            buildForAnalyzing = "YES">
15
+            <BuildableReference
16
+               BuildableIdentifier = "primary"
17
+               BlueprintIdentifier = "9D23B34E1C767B80008B4819"
18
+               BuildableName = "libReactNativeHeading.a"
19
+               BlueprintName = "ReactNativeHeading"
20
+               ReferencedContainer = "container:ReactNativeHeading.xcodeproj">
21
+            </BuildableReference>
22
+         </BuildActionEntry>
23
+      </BuildActionEntries>
24
+   </BuildAction>
25
+   <TestAction
26
+      buildConfiguration = "Debug"
27
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
+      shouldUseLaunchSchemeArgsEnv = "YES">
30
+      <Testables>
31
+      </Testables>
32
+      <AdditionalOptions>
33
+      </AdditionalOptions>
34
+   </TestAction>
35
+   <LaunchAction
36
+      buildConfiguration = "Debug"
37
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
38
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
39
+      launchStyle = "0"
40
+      useCustomWorkingDirectory = "NO"
41
+      ignoresPersistentStateOnLaunch = "NO"
42
+      debugDocumentVersioning = "YES"
43
+      debugServiceExtension = "internal"
44
+      allowLocationSimulation = "YES">
45
+      <MacroExpansion>
46
+         <BuildableReference
47
+            BuildableIdentifier = "primary"
48
+            BlueprintIdentifier = "9D23B34E1C767B80008B4819"
49
+            BuildableName = "libReactNativeHeading.a"
50
+            BlueprintName = "ReactNativeHeading"
51
+            ReferencedContainer = "container:ReactNativeHeading.xcodeproj">
52
+         </BuildableReference>
53
+      </MacroExpansion>
54
+      <AdditionalOptions>
55
+      </AdditionalOptions>
56
+   </LaunchAction>
57
+   <ProfileAction
58
+      buildConfiguration = "Release"
59
+      shouldUseLaunchSchemeArgsEnv = "YES"
60
+      savedToolIdentifier = ""
61
+      useCustomWorkingDirectory = "NO"
62
+      debugDocumentVersioning = "YES">
63
+      <MacroExpansion>
64
+         <BuildableReference
65
+            BuildableIdentifier = "primary"
66
+            BlueprintIdentifier = "9D23B34E1C767B80008B4819"
67
+            BuildableName = "libReactNativeHeading.a"
68
+            BlueprintName = "ReactNativeHeading"
69
+            ReferencedContainer = "container:ReactNativeHeading.xcodeproj">
70
+         </BuildableReference>
71
+      </MacroExpansion>
72
+   </ProfileAction>
73
+   <AnalyzeAction
74
+      buildConfiguration = "Debug">
75
+   </AnalyzeAction>
76
+   <ArchiveAction
77
+      buildConfiguration = "Release"
78
+      revealArchiveInOrganizer = "YES">
79
+   </ArchiveAction>
80
+</Scheme>

+ 22
- 0
ReactNativePermissions.xcodeproj/xcuserdata/Yonah.xcuserdatad/xcschemes/xcschememanagement.plist Datei anzeigen

@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>SchemeUserState</key>
6
+	<dict>
7
+		<key>ReactNativeHeading.xcscheme</key>
8
+		<dict>
9
+			<key>orderHint</key>
10
+			<integer>0</integer>
11
+		</dict>
12
+	</dict>
13
+	<key>SuppressBuildableAutocreation</key>
14
+	<dict>
15
+		<key>9D23B34E1C767B80008B4819</key>
16
+		<dict>
17
+			<key>primary</key>
18
+			<true/>
19
+		</dict>
20
+	</dict>
21
+</dict>
22
+</plist>

+ 12
- 0
package.json Datei anzeigen

@@ -0,0 +1,12 @@
1
+{
2
+  "name": "react-native-permissions",
3
+  "version": "0.0.1",
4
+  "repository": {
5
+    "type": "git",
6
+    "url": "https://github.com/joshblour/react-native-permissions.git"
7
+  },
8
+  "license": "MIT",
9
+  "keywords": ["react-native", "react-component"],
10
+  "main": "ReactNativePermissions",
11
+  "author": "Yonah Forst <yonaforst@hotmail.com>"
12
+}