@rodrigo7/react-native-beacons-manager 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactNativeBeaconsManager.podspec +1 -1
- package/ios/RNiBeacon/RNiBeacon/RNiBeacon.m +14 -8
- package/ios/RNiBeacon/RNiBeacon.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/RNiBeacon/RNiBeacon.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/RNiBeacon/RNiBeacon.xcodeproj/project.xcworkspace/xcuserdata/nexudus.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNiBeacon/RNiBeacon.xcodeproj/xcuserdata/nexudus.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/package.json +1 -1
- package/android/.gradle/8.0.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.0.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.0.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.0.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.0.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.0.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/gradle.xml +0 -12
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/vcs.xml +0 -6
- package/android/local.properties +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = "ReactNativeBeaconsManager"
|
|
3
|
-
s.version = "1.0.
|
|
3
|
+
s.version = "1.0.4"
|
|
4
4
|
s.summary = "React-Native library for detecting beacons (iOS and Android)"
|
|
5
5
|
s.homepage = "https://github.com/rodrigo-nexudus/react-native-beacons-manager#readme"
|
|
6
6
|
s.license = { :type => "MIT" }
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
#import "RNiBeacon.h"
|
|
18
18
|
|
|
19
19
|
static NSString *const kEddystoneRegionID = @"EDDY_STONE_REGION_ID";
|
|
20
|
-
bool hasListeners = NO;
|
|
21
20
|
|
|
22
21
|
@interface RNiBeacon() <CLLocationManagerDelegate, ESSBeaconScannerDelegate>
|
|
23
22
|
|
|
@@ -28,16 +27,23 @@ bool hasListeners = NO;
|
|
|
28
27
|
@end
|
|
29
28
|
|
|
30
29
|
@implementation RNiBeacon
|
|
30
|
+
{
|
|
31
|
+
bool hasListeners;
|
|
32
|
+
}
|
|
31
33
|
|
|
32
34
|
// Will be called when this module's first listener is added.
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
+
-(void)startObserving {
|
|
36
|
+
hasListeners = YES;
|
|
37
|
+
// Set up any upstream listeners or background tasks as necessary
|
|
35
38
|
}
|
|
39
|
+
|
|
36
40
|
// Will be called when this module's last listener is removed, or on dealloc.
|
|
37
|
-
-
|
|
38
|
-
|
|
41
|
+
-(void)stopObserving {
|
|
42
|
+
hasListeners = NO;
|
|
43
|
+
// Remove upstream listeners, stop unnecessary background tasks
|
|
39
44
|
}
|
|
40
45
|
|
|
46
|
+
|
|
41
47
|
RCT_EXPORT_MODULE()
|
|
42
48
|
|
|
43
49
|
#pragma mark Initialization
|
|
@@ -358,8 +364,8 @@ RCT_EXPORT_METHOD(shouldDropEmptyRanges:(BOOL)drop)
|
|
|
358
364
|
@"beacons": beaconArray
|
|
359
365
|
};
|
|
360
366
|
|
|
361
|
-
if (self.bridge
|
|
362
|
-
|
|
367
|
+
if (self.bridge) {
|
|
368
|
+
[self.bridge.eventDispatcher sendDeviceEventWithName:@"beaconsDidRange" body:event];
|
|
363
369
|
}
|
|
364
370
|
}
|
|
365
371
|
|
|
@@ -393,7 +399,7 @@ RCT_EXPORT_METHOD(shouldDropEmptyRanges:(BOOL)drop)
|
|
|
393
399
|
|
|
394
400
|
+ (BOOL)requiresMainQueueSetup
|
|
395
401
|
{
|
|
396
|
-
return
|
|
402
|
+
return NO;
|
|
397
403
|
}
|
|
398
404
|
|
|
399
405
|
- (void)beaconScanner:(ESSBeaconScanner *)scanner didRangeBeacon:(NSArray *)beacons {
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
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>RNiBeacon.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
package/android/.idea/gradle.xml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="GradleSettings">
|
|
4
|
-
<option name="linkedExternalProjectsSettings">
|
|
5
|
-
<GradleProjectSettings>
|
|
6
|
-
<option name="testRunner" value="GRADLE" />
|
|
7
|
-
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
|
8
|
-
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
9
|
-
</GradleProjectSettings>
|
|
10
|
-
</option>
|
|
11
|
-
</component>
|
|
12
|
-
</project>
|
package/android/.idea/misc.xml
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
4
|
-
<component name="ProjectRootManager" version="2" project-jdk-name="Embedded JDK" project-jdk-type="JavaSDK">
|
|
5
|
-
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
6
|
-
</component>
|
|
7
|
-
<component name="ProjectType">
|
|
8
|
-
<option name="id" value="Android" />
|
|
9
|
-
</component>
|
|
10
|
-
</project>
|
package/android/.idea/vcs.xml
DELETED
package/android/local.properties
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
-
# as it contains information specific to your local configuration.
|
|
3
|
-
#
|
|
4
|
-
# Location of the SDK. This is only used by Gradle.
|
|
5
|
-
# For customization when using a Version Control System, please read the
|
|
6
|
-
# header note.
|
|
7
|
-
#Thu Aug 03 10:59:00 BST 2023
|
|
8
|
-
sdk.dir=/Users/nexudus/Library/Android/sdk
|