@rodrigo7/react-native-beacons-manager 1.0.1 → 1.0.2

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.
@@ -1,19 +1,18 @@
1
1
  buildscript {
2
2
  repositories {
3
3
  google()
4
- jcenter()
4
+ mavenCentral()
5
5
  }
6
6
 
7
7
  dependencies {
8
- classpath("com.android.tools.build:gradle")
8
+ classpath("com.android.tools.build:gradle:8.1.0")
9
9
  }
10
10
  }
11
11
 
12
12
  apply plugin: 'com.android.library'
13
13
 
14
-
15
14
  def DEFAULT_COMPILE_SDK_VERSION = 33
16
- def DEFAULT_BUILD_TOOLS_VERSION = "33.0.2"
15
+ def DEFAULT_BUILD_TOOLS_VERSION = "33.0.0"
17
16
  def DEFAULT_TARGET_SDK_VERSION = 33
18
17
 
19
18
  android {
@@ -21,10 +20,11 @@ android {
21
20
  buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
22
21
 
23
22
  defaultConfig {
23
+ namespace 'com.mackentoch.beaconsandroid'
24
24
  minSdkVersion 16
25
25
  targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
26
26
  versionCode 2
27
- versionName "1.0.1"
27
+ versionName "1.0.2"
28
28
  }
29
29
  }
30
30
 
@@ -1,4 +1,4 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mackentoch.beaconsandroid">
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
2
  <uses-permission android:name="android.permission.BLUETOOTH"/>
3
3
  <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
4
4
  <uses-permission android:name="android.permission.BLUETOOTH_SCAN"/>
@@ -384,6 +384,7 @@ public class BeaconsAndroidModule extends ReactContextBaseJavaModule {
384
384
  }
385
385
 
386
386
  private Region createRegion(String regionId, String beaconUuid) {
387
+ Log.d(LOG_TAG, "Creating following region - Region Id: " + regionId + ", Beacon UUID: " + beaconUuid);
387
388
  Identifier id1 = (beaconUuid == null) ? null : Identifier.parse(beaconUuid);
388
389
  return new Region(regionId, id1, null, null);
389
390
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigo7/react-native-beacons-manager",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "React-Native library for detecting beacons (iOS and Android)",
5
5
  "keywords": [
6
6
  "react-native",
package/tsconfig.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@tsconfig/react-native/tsconfig.json"
3
+ }
@@ -140,35 +140,32 @@ declare module '@rodrigo7/react-native-beacons-manager' {
140
140
  const beacons: Beacons;
141
141
  export default beacons;
142
142
 
143
- declare namespace Beacons {
144
- export interface BeaconRegion {
145
- identifier: string,
146
- uuid: string,
147
- minor?: number,
148
- major?: number
149
- }
150
-
151
- export type AuthorizationStatus =
152
- | 'authorizedAlways'
153
- | 'authorizedWhenInUse'
154
- | 'denied'
155
- | 'notDetermined'
156
- | 'restricted';
157
-
158
- export type Beacon = {
159
- distance: number;
160
- major: number;
161
- minor: number;
162
- proximity: 'immediate' | 'near' | 'far';
163
- rssi: number;
164
- uuid: string;
165
- }
166
-
167
- export type BeaconRangingResponse = {
168
- beacons: Beacon[];
169
- identifier: string;
170
- uuid: string;
171
- }
143
+ export interface BeaconRegion {
144
+ identifier: string,
145
+ uuid: string,
146
+ minor?: number,
147
+ major?: number
148
+ }
149
+
150
+ export type AuthorizationStatus =
151
+ | 'authorizedAlways'
152
+ | 'authorizedWhenInUse'
153
+ | 'denied'
154
+ | 'notDetermined'
155
+ | 'restricted';
156
+
157
+ export type Beacon = {
158
+ distance: number;
159
+ major: number;
160
+ minor: number;
161
+ proximity: 'immediate' | 'near' | 'far';
162
+ rssi: number;
163
+ uuid: string;
164
+ }
172
165
 
166
+ export type BeaconRangingResponse = {
167
+ beacons: Beacon[];
168
+ identifier: string;
169
+ uuid: string;
173
170
  }
174
171
  }
package/typings.json CHANGED
@@ -2,6 +2,6 @@
2
2
  "name": "@rodrigo7/react-native-beacons-manager",
3
3
  "dependencies": {},
4
4
  "globalDependencies": {
5
- "node": "registry:dt/node#7.0.0+20170322231424"
5
+ "node": "registry:dt/node"
6
6
  }
7
7
  }