bridgefy-react-native 1.1.6 → 1.1.7

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.
@@ -8,7 +8,7 @@ buildscript {
8
8
  }
9
9
 
10
10
  dependencies {
11
- classpath "com.android.tools.build:gradle:8.5.0"
11
+ classpath "com.android.tools.build:gradle:8.5.2"
12
12
  // noinspection DifferentKotlinGradleVersion
13
13
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14
14
  }
@@ -88,7 +88,7 @@ repositories {
88
88
  def kotlin_version = getExtOrDefault("kotlinVersion")
89
89
 
90
90
  dependencies {
91
- implementation (group: "me.bridgefy", name: "android-sdk", version: "1.2.0", ext: "aar") {
91
+ implementation (group: "me.bridgefy", name: "android-sdk", version: "1.2.2", ext: "aar") {
92
92
  transitive = true
93
93
  }
94
94
  // For < 0.71, this will be from the local maven repo
@@ -1,5 +1,5 @@
1
- BridgefyReactNative_kotlinVersion=1.9.23
1
+ BridgefyReactNative_kotlinVersion=2.0.20
2
2
  BridgefyReactNative_minSdkVersion=21
3
- BridgefyReactNative_targetSdkVersion=34
4
- BridgefyReactNative_compileSdkVersion=34
5
- BridgefyReactNative_ndkversion=21.4.7075529
3
+ BridgefyReactNative_targetSdkVersion=35
4
+ BridgefyReactNative_compileSdkVersion=35
5
+ BridgefyReactNative_ndkversion=28.0.12916984
@@ -4,6 +4,8 @@
4
4
  <uses-permission-sdk-23 android:name="android.permission.ACCESS_COARSE_LOCATION" android:maxSdkVersion="30" tools:node="replace" />
5
5
  <uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION" tools:node="replace" />
6
6
  <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" android:maxSdkVersion="30" />
7
+ <uses-permission android:name="android.permission.BLUETOOTH" />
8
+ <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
7
9
  <uses-permission android:name="android.permission.BLUETOOTH_SCAN" tools:node="replace" />
8
10
  <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
9
11
  <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
@@ -12,7 +12,7 @@ import com.facebook.react.bridge.WritableMap
12
12
  import com.facebook.react.modules.core.DeviceEventManagerModule
13
13
  import java.util.UUID
14
14
  import me.bridgefy.Bridgefy
15
- import me.bridgefy.logger.enum.LogType
15
+ import me.bridgefy.logger.enums.LogType
16
16
  import me.bridgefy.commons.TransmissionMode
17
17
  import me.bridgefy.commons.exception.BridgefyException
18
18
  import me.bridgefy.commons.listener.BridgefyDelegate
@@ -26,49 +26,89 @@ let BridgefyPropagationProfile = exports.BridgefyPropagationProfile = /*#__PURE_
26
26
  }({});
27
27
  /** The mode used to propagate a message through nearby devices. */
28
28
  let BridgefyTransmissionModeType = exports.BridgefyTransmissionModeType = /*#__PURE__*/function (BridgefyTransmissionModeType) {
29
+ /** Deliver a message to a specific recipient only if there's an active connection with it. */
29
30
  BridgefyTransmissionModeType["p2p"] = "p2p";
31
+ /** Deliver a message to a specific recipient using nearby devices to propagate it. */
30
32
  BridgefyTransmissionModeType["mesh"] = "mesh";
33
+ /** Propagate a message readable by every device that receives it. */
31
34
  BridgefyTransmissionModeType["broadcast"] = "broadcast";
32
35
  return BridgefyTransmissionModeType;
33
36
  }({});
34
37
  /** Describes errors in the Bridgefy error domain. */
35
38
  let BridgefyErrorType = exports.BridgefyErrorType = /*#__PURE__*/function (BridgefyErrorType) {
39
+ /** The Bridgefy SDK cannot run in the simulator */
36
40
  BridgefyErrorType["simulatorIsNotSupported"] = "simulatorIsNotSupported";
41
+ /** The Bridgefy SDK is already running */
37
42
  BridgefyErrorType["alreadyStarted"] = "alreadyStarted";
43
+ /** The provided API key is not valid */
38
44
  BridgefyErrorType["invalidAPIKey"] = "invalidAPIKey";
45
+ /** The license is expired */
39
46
  BridgefyErrorType["expiredLicense"] = "expiredLicense";
47
+ /** An error occurred while creating the session */
40
48
  BridgefyErrorType["sessionError"] = "sessionError";
49
+ /** (iOS) The Bridgefy SDK hasn't been started */
41
50
  BridgefyErrorType["notStarted"] = "notStarted";
51
+ /** (iOS) A Bridgefy SDK instance already exists */
42
52
  BridgefyErrorType["alreadyInstantiated"] = "alreadyInstantiated";
53
+ /** (iOS) The Bridgefy SDK is performing the start process */
43
54
  BridgefyErrorType["startInProgress"] = "startInProgress";
55
+ /** (iOS) The Bridgefy SDK service is not started */
44
56
  BridgefyErrorType["serviceNotStarted"] = "serviceNotStarted";
57
+ /** (iOS) Cannot get app's bundle id */
45
58
  BridgefyErrorType["missingBundleID"] = "missingBundleID";
59
+ /** (iOS) An internet connection is required to validate the license */
46
60
  BridgefyErrorType["internetConnectionRequired"] = "internetConnectionRequired";
61
+ /** (iOS) The device's time has been modified */
47
62
  BridgefyErrorType["inconsistentDeviceTime"] = "inconsistentDeviceTime";
63
+ /** (iOS) The user does not allow the use of BLE */
48
64
  BridgefyErrorType["BLEUsageNotGranted"] = "BLEUsageNotGranted";
65
+ /** (iOS) The use of BLE in this device is restricted */
49
66
  BridgefyErrorType["BLEUsageRestricted"] = "BLEUsageRestricted";
67
+ /** (iOS) The BLE antenna has been turned off */
50
68
  BridgefyErrorType["BLEPoweredOff"] = "BLEPoweredOff";
69
+ /** (iOS) The usage of BLE is not supported in the device */
51
70
  BridgefyErrorType["BLEUnsupported"] = "BLEUnsupported";
71
+ /** (iOS) BLE usage failed with an unknown error */
52
72
  BridgefyErrorType["BLEUnknownError"] = "BLEUnknownError";
73
+ /** (iOS) Inconsistent connection */
53
74
  BridgefyErrorType["inconsistentConnection"] = "inconsistentConnection";
75
+ /** (iOS) Connection is already secure */
54
76
  BridgefyErrorType["connectionIsAlreadySecure"] = "connectionIsAlreadySecure";
77
+ /** (iOS) Cannot create secure connection */
55
78
  BridgefyErrorType["cannotCreateSecureConnection"] = "cannotCreateSecureConnection";
79
+ /** (iOS) The length of the data exceed the maximum limit */
56
80
  BridgefyErrorType["dataLengthExceeded"] = "dataLengthExceeded";
81
+ /** (iOS) The data to send is empty */
57
82
  BridgefyErrorType["dataValueIsEmpty"] = "dataValueIsEmpty";
83
+ /** (iOS) The requested peer is not connected */
58
84
  BridgefyErrorType["peerIsNotConnected"] = "peerIsNotConnected";
85
+ /** (iOS) An internal error occurred */
59
86
  BridgefyErrorType["internalError"] = "internalError";
87
+ /** (iOS) An error occurred while validating the license */
60
88
  BridgefyErrorType["licenseError"] = "licenseError";
89
+ /** (iOS) An error occurred while storing data */
61
90
  BridgefyErrorType["storageError"] = "storageError";
91
+ /** (iOS) An error occurred while encoding the message */
62
92
  BridgefyErrorType["encodingError"] = "encodingError";
93
+ /** (iOS) An error occurred while encrypting the message */
63
94
  BridgefyErrorType["encryptionError"] = "encryptionError";
95
+ /** (Android) Missing application ID */
64
96
  BridgefyErrorType["missingApplicationId"] = "missingApplicationId";
97
+ /** (Android) Permission exception */
65
98
  BridgefyErrorType["permissionException"] = "permissionException";
99
+ /** (Android) Registration exception */
66
100
  BridgefyErrorType["registrationException"] = "registrationException";
101
+ /** (Android) Size limit exceeded */
67
102
  BridgefyErrorType["sizeLimitExceeded"] = "sizeLimitExceeded";
103
+ /** (Android) Device capabilities error */
68
104
  BridgefyErrorType["deviceCapabilities"] = "deviceCapabilities";
105
+ /** (Android) Generic exception */
69
106
  BridgefyErrorType["genericException"] = "genericException";
107
+ /** (Android) Inconsistent device time */
70
108
  BridgefyErrorType["inconsistentDeviceTimeException"] = "inconsistentDeviceTimeException";
109
+ /** (Android) Internet connection required */
71
110
  BridgefyErrorType["internetConnectionRequiredException"] = "internetConnectionRequiredException";
111
+ /** (Android) Unknown exception */
72
112
  BridgefyErrorType["unknownException"] = "unknownException";
73
113
  return BridgefyErrorType;
74
114
  }({});
@@ -77,19 +117,61 @@ let BridgefyErrorType = exports.BridgefyErrorType = /*#__PURE__*/function (Bridg
77
117
  * `NativeModules.BridgefyReactNative` component. See README for further instructions.
78
118
  */
79
119
  let BridgefyEvents = exports.BridgefyEvents = /*#__PURE__*/function (BridgefyEvents) {
120
+ /**
121
+ * This function is called when the BridgefySDK has been started.
122
+ */
80
123
  BridgefyEvents["bridgefyDidStart"] = "bridgefyDidStart";
124
+ /**
125
+ * This function is called when an error occurred while starting the BridgefySDK.
126
+ */
81
127
  BridgefyEvents["bridgefyDidFailToStart"] = "bridgefyDidFailToStart";
128
+ /**
129
+ * This function is called when the BridgefySDK has been stopped.
130
+ */
82
131
  BridgefyEvents["bridgefyDidStop"] = "bridgefyDidStop";
132
+ /**
133
+ * This function is called when an error occurred while stopping the BridgefySDK.
134
+ */
83
135
  BridgefyEvents["bridgefyDidFailToStop"] = "bridgefyDidFailToStop";
136
+ /**
137
+ * The current session was destroyed
138
+ */
84
139
  BridgefyEvents["bridgefyDidDestroySession"] = "bridgefyDidDestroySession";
140
+ /**
141
+ * An error occurred while destroying the current session
142
+ */
85
143
  BridgefyEvents["bridgefyDidFailToDestroySession"] = "bridgefyDidFailToDestroySession";
144
+ /**
145
+ * This function is called to notify a new connection.
146
+ */
86
147
  BridgefyEvents["bridgefyDidConnect"] = "bridgefyDidConnect";
148
+ /**
149
+ * This function is called to notify a disconnection.
150
+ */
87
151
  BridgefyEvents["bridgefyDidDisconnect"] = "bridgefyDidDisconnect";
152
+ /**
153
+ * This function is called to notify when an on-demand secure connection was established.
154
+ */
88
155
  BridgefyEvents["bridgefyDidEstablishSecureConnection"] = "bridgefyDidEstablishSecureConnection";
156
+ /**
157
+ * This function is called to notify when an on-demand secure connection could not be established.
158
+ */
89
159
  BridgefyEvents["bridgefyDidFailToEstablishSecureConnection"] = "bridgefyDidFailToEstablishSecureConnection";
160
+ /**
161
+ * This function is called when you confirm the sending of the message
162
+ */
90
163
  BridgefyEvents["bridgefyDidSendMessage"] = "bridgefyDidSendMessage";
164
+ /**
165
+ * This function is called when the message could not be sent
166
+ */
91
167
  BridgefyEvents["bridgefyDidFailSendingMessage"] = "bridgefyDidFailSendingMessage";
168
+ /**
169
+ * This function is called when a new message is received
170
+ */
92
171
  BridgefyEvents["bridgefyDidReceiveData"] = "bridgefyDidReceiveData";
172
+ /**
173
+ * (Android) Called when there is progress while transmitting data.
174
+ */
93
175
  BridgefyEvents["bridgefyDidSendDataProgress"] = "bridgefyDidSendDataProgress";
94
176
  return BridgefyEvents;
95
177
  }({});
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","BridgefyReactNative","NativeModules","Proxy","get","Error","BridgefyPropagationProfile","exports","BridgefyTransmissionModeType","BridgefyErrorType","BridgefyEvents","Bridgefy","initialize","apiKey","verboseLogging","start","params","userId","propagationProfile","standard","stop","destroySession","updateLicense","send","data","transmissionMode","result","messageId","establishSecureConnection","currentUserId","connectedPeers","licenseExpirationDate","Date","isInitialized","isStarted"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,MAAMC,aAAa,GACjB,gFAAgF,GAChFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,mBAAmB,GAAGC,0BAAa,CAACD,mBAAmB,GACzDC,0BAAa,CAACD,mBAAmB,GACjC,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CACF,CAAC;;AAEL;AAAA,IACYU,0BAA0B,GAAAC,OAAA,CAAAD,0BAAA,0BAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAAA,OAA1BA,0BAA0B;AAAA;AAQtC;AAAA,IACYE,4BAA4B,GAAAD,OAAA,CAAAC,4BAAA,0BAA5BA,4BAA4B;EAA5BA,4BAA4B;EAA5BA,4BAA4B;EAA5BA,4BAA4B;EAAA,OAA5BA,4B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;IACxC,MAAMJ,MAAM,GAAG,MAAMzB,mBAAmB,CAAC6B,cAAc,CAAC,CAAC;IACzD,OAAOJ,MAAM,CAACI,cAAc;EAC9B;;EAEA;AACF;AACA;AACA;EACE,MAAMC,qBAAqBA,CAAA,EAAkB;IAC3C,MAAML,MAAM,GAAG,MAAMzB,mBAAmB,CAAC8B,qBAAqB,CAAC,CAAC;IAChE,OAAO,IAAIC,IAAI,CAACN,MAAM,CAACK,qBAA+B,CAAC;EACzD;EAEA,MAAME,aAAaA,CAAA,EAAqB;IACtC,OAAO,MAAMhC,mBAAmB,CAACgC,aAAa,CAAC,CAAC;EAClD;EAEA,MAAMC,SAASA,CAAA,EAAqB;IAClC,OAAOjC,mBAAmB,CAACiC,SAAS,CAAC,CAAC;EACxC;AACF;AAAC3B,OAAA,CAAAI,QAAA,GAAAA,QAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","BridgefyReactNative","NativeModules","Proxy","get","Error","BridgefyPropagationProfile","exports","BridgefyTransmissionModeType","BridgefyErrorType","BridgefyEvents","Bridgefy","initialize","apiKey","verboseLogging","start","params","userId","propagationProfile","standard","stop","destroySession","updateLicense","send","data","transmissionMode","result","messageId","establishSecureConnection","currentUserId","connectedPeers","licenseExpirationDate","Date","isInitialized","isStarted"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,MAAMC,aAAa,GACjB,gFAAgF,GAChFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,mBAAmB,GAAGC,0BAAa,CAACD,mBAAmB,GACzDC,0BAAa,CAACD,mBAAmB,GACjC,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,C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AME,aAAaA,CAAA,EAAqB;IACtC,OAAO,MAAMhC,mBAAmB,CAACgC,aAAa,CAAC,CAAC;EAClD;EAEA,MAAMC,SAASA,CAAA,EAAqB;IAClC,OAAOjC,mBAAmB,CAACiC,SAAS,CAAC,CAAC;EACxC;AACF;AAAC3B,OAAA,CAAAI,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -21,49 +21,89 @@ export let BridgefyPropagationProfile = /*#__PURE__*/function (BridgefyPropagati
21
21
 
22
22
  /** The mode used to propagate a message through nearby devices. */
23
23
  export let BridgefyTransmissionModeType = /*#__PURE__*/function (BridgefyTransmissionModeType) {
24
+ /** Deliver a message to a specific recipient only if there's an active connection with it. */
24
25
  BridgefyTransmissionModeType["p2p"] = "p2p";
26
+ /** Deliver a message to a specific recipient using nearby devices to propagate it. */
25
27
  BridgefyTransmissionModeType["mesh"] = "mesh";
28
+ /** Propagate a message readable by every device that receives it. */
26
29
  BridgefyTransmissionModeType["broadcast"] = "broadcast";
27
30
  return BridgefyTransmissionModeType;
28
31
  }({});
29
32
  /** Describes errors in the Bridgefy error domain. */
30
33
  export let BridgefyErrorType = /*#__PURE__*/function (BridgefyErrorType) {
34
+ /** The Bridgefy SDK cannot run in the simulator */
31
35
  BridgefyErrorType["simulatorIsNotSupported"] = "simulatorIsNotSupported";
36
+ /** The Bridgefy SDK is already running */
32
37
  BridgefyErrorType["alreadyStarted"] = "alreadyStarted";
38
+ /** The provided API key is not valid */
33
39
  BridgefyErrorType["invalidAPIKey"] = "invalidAPIKey";
40
+ /** The license is expired */
34
41
  BridgefyErrorType["expiredLicense"] = "expiredLicense";
42
+ /** An error occurred while creating the session */
35
43
  BridgefyErrorType["sessionError"] = "sessionError";
44
+ /** (iOS) The Bridgefy SDK hasn't been started */
36
45
  BridgefyErrorType["notStarted"] = "notStarted";
46
+ /** (iOS) A Bridgefy SDK instance already exists */
37
47
  BridgefyErrorType["alreadyInstantiated"] = "alreadyInstantiated";
48
+ /** (iOS) The Bridgefy SDK is performing the start process */
38
49
  BridgefyErrorType["startInProgress"] = "startInProgress";
50
+ /** (iOS) The Bridgefy SDK service is not started */
39
51
  BridgefyErrorType["serviceNotStarted"] = "serviceNotStarted";
52
+ /** (iOS) Cannot get app's bundle id */
40
53
  BridgefyErrorType["missingBundleID"] = "missingBundleID";
54
+ /** (iOS) An internet connection is required to validate the license */
41
55
  BridgefyErrorType["internetConnectionRequired"] = "internetConnectionRequired";
56
+ /** (iOS) The device's time has been modified */
42
57
  BridgefyErrorType["inconsistentDeviceTime"] = "inconsistentDeviceTime";
58
+ /** (iOS) The user does not allow the use of BLE */
43
59
  BridgefyErrorType["BLEUsageNotGranted"] = "BLEUsageNotGranted";
60
+ /** (iOS) The use of BLE in this device is restricted */
44
61
  BridgefyErrorType["BLEUsageRestricted"] = "BLEUsageRestricted";
62
+ /** (iOS) The BLE antenna has been turned off */
45
63
  BridgefyErrorType["BLEPoweredOff"] = "BLEPoweredOff";
64
+ /** (iOS) The usage of BLE is not supported in the device */
46
65
  BridgefyErrorType["BLEUnsupported"] = "BLEUnsupported";
66
+ /** (iOS) BLE usage failed with an unknown error */
47
67
  BridgefyErrorType["BLEUnknownError"] = "BLEUnknownError";
68
+ /** (iOS) Inconsistent connection */
48
69
  BridgefyErrorType["inconsistentConnection"] = "inconsistentConnection";
70
+ /** (iOS) Connection is already secure */
49
71
  BridgefyErrorType["connectionIsAlreadySecure"] = "connectionIsAlreadySecure";
72
+ /** (iOS) Cannot create secure connection */
50
73
  BridgefyErrorType["cannotCreateSecureConnection"] = "cannotCreateSecureConnection";
74
+ /** (iOS) The length of the data exceed the maximum limit */
51
75
  BridgefyErrorType["dataLengthExceeded"] = "dataLengthExceeded";
76
+ /** (iOS) The data to send is empty */
52
77
  BridgefyErrorType["dataValueIsEmpty"] = "dataValueIsEmpty";
78
+ /** (iOS) The requested peer is not connected */
53
79
  BridgefyErrorType["peerIsNotConnected"] = "peerIsNotConnected";
80
+ /** (iOS) An internal error occurred */
54
81
  BridgefyErrorType["internalError"] = "internalError";
82
+ /** (iOS) An error occurred while validating the license */
55
83
  BridgefyErrorType["licenseError"] = "licenseError";
84
+ /** (iOS) An error occurred while storing data */
56
85
  BridgefyErrorType["storageError"] = "storageError";
86
+ /** (iOS) An error occurred while encoding the message */
57
87
  BridgefyErrorType["encodingError"] = "encodingError";
88
+ /** (iOS) An error occurred while encrypting the message */
58
89
  BridgefyErrorType["encryptionError"] = "encryptionError";
90
+ /** (Android) Missing application ID */
59
91
  BridgefyErrorType["missingApplicationId"] = "missingApplicationId";
92
+ /** (Android) Permission exception */
60
93
  BridgefyErrorType["permissionException"] = "permissionException";
94
+ /** (Android) Registration exception */
61
95
  BridgefyErrorType["registrationException"] = "registrationException";
96
+ /** (Android) Size limit exceeded */
62
97
  BridgefyErrorType["sizeLimitExceeded"] = "sizeLimitExceeded";
98
+ /** (Android) Device capabilities error */
63
99
  BridgefyErrorType["deviceCapabilities"] = "deviceCapabilities";
100
+ /** (Android) Generic exception */
64
101
  BridgefyErrorType["genericException"] = "genericException";
102
+ /** (Android) Inconsistent device time */
65
103
  BridgefyErrorType["inconsistentDeviceTimeException"] = "inconsistentDeviceTimeException";
104
+ /** (Android) Internet connection required */
66
105
  BridgefyErrorType["internetConnectionRequiredException"] = "internetConnectionRequiredException";
106
+ /** (Android) Unknown exception */
67
107
  BridgefyErrorType["unknownException"] = "unknownException";
68
108
  return BridgefyErrorType;
69
109
  }({});
@@ -73,19 +113,61 @@ export let BridgefyErrorType = /*#__PURE__*/function (BridgefyErrorType) {
73
113
  * `NativeModules.BridgefyReactNative` component. See README for further instructions.
74
114
  */
75
115
  export let BridgefyEvents = /*#__PURE__*/function (BridgefyEvents) {
116
+ /**
117
+ * This function is called when the BridgefySDK has been started.
118
+ */
76
119
  BridgefyEvents["bridgefyDidStart"] = "bridgefyDidStart";
120
+ /**
121
+ * This function is called when an error occurred while starting the BridgefySDK.
122
+ */
77
123
  BridgefyEvents["bridgefyDidFailToStart"] = "bridgefyDidFailToStart";
124
+ /**
125
+ * This function is called when the BridgefySDK has been stopped.
126
+ */
78
127
  BridgefyEvents["bridgefyDidStop"] = "bridgefyDidStop";
128
+ /**
129
+ * This function is called when an error occurred while stopping the BridgefySDK.
130
+ */
79
131
  BridgefyEvents["bridgefyDidFailToStop"] = "bridgefyDidFailToStop";
132
+ /**
133
+ * The current session was destroyed
134
+ */
80
135
  BridgefyEvents["bridgefyDidDestroySession"] = "bridgefyDidDestroySession";
136
+ /**
137
+ * An error occurred while destroying the current session
138
+ */
81
139
  BridgefyEvents["bridgefyDidFailToDestroySession"] = "bridgefyDidFailToDestroySession";
140
+ /**
141
+ * This function is called to notify a new connection.
142
+ */
82
143
  BridgefyEvents["bridgefyDidConnect"] = "bridgefyDidConnect";
144
+ /**
145
+ * This function is called to notify a disconnection.
146
+ */
83
147
  BridgefyEvents["bridgefyDidDisconnect"] = "bridgefyDidDisconnect";
148
+ /**
149
+ * This function is called to notify when an on-demand secure connection was established.
150
+ */
84
151
  BridgefyEvents["bridgefyDidEstablishSecureConnection"] = "bridgefyDidEstablishSecureConnection";
152
+ /**
153
+ * This function is called to notify when an on-demand secure connection could not be established.
154
+ */
85
155
  BridgefyEvents["bridgefyDidFailToEstablishSecureConnection"] = "bridgefyDidFailToEstablishSecureConnection";
156
+ /**
157
+ * This function is called when you confirm the sending of the message
158
+ */
86
159
  BridgefyEvents["bridgefyDidSendMessage"] = "bridgefyDidSendMessage";
160
+ /**
161
+ * This function is called when the message could not be sent
162
+ */
87
163
  BridgefyEvents["bridgefyDidFailSendingMessage"] = "bridgefyDidFailSendingMessage";
164
+ /**
165
+ * This function is called when a new message is received
166
+ */
88
167
  BridgefyEvents["bridgefyDidReceiveData"] = "bridgefyDidReceiveData";
168
+ /**
169
+ * (Android) Called when there is progress while transmitting data.
170
+ */
89
171
  BridgefyEvents["bridgefyDidSendDataProgress"] = "bridgefyDidSendDataProgress";
90
172
  return BridgefyEvents;
91
173
  }({});
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","BridgefyReactNative","Proxy","get","Error","BridgefyPropagationProfile","BridgefyTransmissionModeType","BridgefyErrorType","BridgefyEvents","Bridgefy","initialize","apiKey","verboseLogging","start","params","userId","propagationProfile","standard","stop","destroySession","updateLicense","send","data","transmissionMode","result","messageId","establishSecureConnection","currentUserId","connectedPeers","licenseExpirationDate","Date","isInitialized","isStarted"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAOtD,MAAMC,aAAa,GACjB,gFAAgF,GAChFD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,mBAAmB,GAAGN,aAAa,CAACM,mBAAmB,GACzDN,aAAa,CAACM,mBAAmB,GACjC,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAAC;;AAEL;AACA,WAAYQ,0BAA0B,0BAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAAA,OAA1BA,0BAA0B;AAAA;;AAQtC;AACA,WAAYC,4BAA4B,0BAA5BA,4BAA4B;EAA5BA,4BAA4B;EAA5BA,4BAA4B;EAA5BA,4BAA4B;EAAA,OAA5BA,4BAA4B;AAAA;AAcxC;AACA,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBA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A,MAAME,aAAaA,CAAA,EAAqB;IACtC,OAAO,MAAM9B,mBAAmB,CAAC8B,aAAa,CAAC,CAAC;EAClD;EAEA,MAAMC,SAASA,CAAA,EAAqB;IAClC,OAAO/B,mBAAmB,CAAC+B,SAAS,CAAC,CAAC;EACxC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","BridgefyReactNative","Proxy","get","Error","BridgefyPropagationProfile","BridgefyTransmissionModeType","BridgefyErrorType","BridgefyEvents","Bridgefy","initialize","apiKey","verboseLogging","start","params","userId","propagationProfile","standard","stop","destroySession","updateLicense","send","data","transmissionMode","result","messageId","establishSecureConnection","currentUserId","connectedPeers","licenseExpirationDate","Date","isInitialized","isStarted"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAOtD,MAAMC,aAAa,GACjB,gFAAgF,GAChFD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,mBAAmB,GAAGN,aAAa,CAACM,mBAAmB,GACzDN,aAAa,CAACM,mBAAmB,GACjC,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAAC;;AAEL;AACA,WAAYQ,0BAA0B,0BAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAAA,OAA1BA,0BAA0B;AAAA;;AAQtC;AACA,WAAYC,4BAA4B,0BAA5BA,4BAA4B;EACtC;EADUA,4BAA4B;EAGtC;EAHUA,4BAA4B;EAKtC;EALUA,4BAA4B;EAAA,OAA5BA,4BAA4B;AAAA;AAcxC;AACA,W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IACjB,MAAMC,MAAM,GAAG,MAAMvB,mBAAmB,CAACoB,IAAI,CAACC,IAAI,EAAEC,gBAAgB,CAAC;IACrE,OAAOC,MAAM,CAACC,SAAS;EACzB;;EAEA;AACF;AACA;AACA;EACE,MAAMC,yBAAyBA,CAACX,MAAc,EAAiB;IAC7D,OAAOd,mBAAmB,CAACyB,yBAAyB,CAACX,MAAM,CAAC;EAC9D;;EAEA;AACF;AACA;AACA;EACE,MAAMY,aAAaA,CAAA,EAAoB;IACrC,MAAMH,MAAM,GAAG,MAAMvB,mBAAmB,CAAC0B,aAAa,CAAC,CAAC;IACxD,OAAOH,MAAM,CAACT,MAAM;EACtB;;EAEA;AACF;AACA;AACA;EACE,MAAMa,cAAcA,CAAA,EAAsB;IACxC,MAAMJ,MAAM,GAAG,MAAMvB,mBAAmB,CAAC2B,cAAc,CAAC,CAAC;IACzD,OAAOJ,MAAM,CAACI,cAAc;EAC9B;;EAEA;AACF;AACA;AACA;EACE,MAAMC,qBAAqBA,CAAA,EAAkB;IAC3C,MAAML,MAAM,GAAG,MAAMvB,mBAAmB,CAAC4B,qBAAqB,CAAC,CAAC;IAChE,OAAO,IAAIC,IAAI,CAACN,MAAM,CAACK,qBAA+B,CAAC;EACzD;EAEA,MAAME,aAAaA,CAAA,EAAqB;IACtC,OAAO,MAAM9B,mBAAmB,CAAC8B,aAAa,CAAC,CAAC;EAClD;EAEA,MAAMC,SAASA,CAAA,EAAqB;IAClC,OAAO/B,mBAAmB,CAAC+B,SAAS,CAAC,CAAC;EACxC;AACF","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bridgefy-react-native",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Bridgefy React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -69,9 +69,10 @@
69
69
  "jest": "^28.1.1",
70
70
  "pod-install": "^0.1.0",
71
71
  "prettier": "^2.8.8",
72
- "react": "18.2.0",
73
- "react-native": "0.72.1",
72
+ "react": "18.3.1",
73
+ "react-native": "0.76.6",
74
74
  "react-native-builder-bob": "^0.21.0",
75
+ "metro-react-native-babel-preset": "^0.76.9",
75
76
  "release-it": "^15.0.0",
76
77
  "typescript": "^5.0.2"
77
78
  },
package/android/gradlew DELETED
@@ -1,234 +0,0 @@
1
- #!/bin/sh
2
-
3
- #
4
- # Copyright © 2015-2021 the original authors.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # https://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- ##############################################################################
20
- #
21
- # Gradle start up script for POSIX generated by Gradle.
22
- #
23
- # Important for running:
24
- #
25
- # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26
- # noncompliant, but you have some other compliant shell such as ksh or
27
- # bash, then to run this script, type that shell name before the whole
28
- # command line, like:
29
- #
30
- # ksh Gradle
31
- #
32
- # Busybox and similar reduced shells will NOT work, because this script
33
- # requires all of these POSIX shell features:
34
- # * functions;
35
- # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36
- # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37
- # * compound commands having a testable exit status, especially «case»;
38
- # * various built-in commands including «command», «set», and «ulimit».
39
- #
40
- # Important for patching:
41
- #
42
- # (2) This script targets any POSIX shell, so it avoids extensions provided
43
- # by Bash, Ksh, etc; in particular arrays are avoided.
44
- #
45
- # The "traditional" practice of packing multiple parameters into a
46
- # space-separated string is a well documented source of bugs and security
47
- # problems, so this is (mostly) avoided, by progressively accumulating
48
- # options in "$@", and eventually passing that to Java.
49
- #
50
- # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51
- # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52
- # see the in-line comments for details.
53
- #
54
- # There are tweaks for specific operating systems such as AIX, CygWin,
55
- # Darwin, MinGW, and NonStop.
56
- #
57
- # (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
- # within the Gradle project.
60
- #
61
- # You can find Gradle at https://github.com/gradle/gradle/.
62
- #
63
- ##############################################################################
64
-
65
- # Attempt to set APP_HOME
66
-
67
- # Resolve links: $0 may be a link
68
- app_path=$0
69
-
70
- # Need this for daisy-chained symlinks.
71
- while
72
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73
- [ -h "$app_path" ]
74
- do
75
- ls=$( ls -ld "$app_path" )
76
- link=${ls#*' -> '}
77
- case $link in #(
78
- /*) app_path=$link ;; #(
79
- *) app_path=$APP_HOME$link ;;
80
- esac
81
- done
82
-
83
- APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84
-
85
- APP_NAME="Gradle"
86
- APP_BASE_NAME=${0##*/}
87
-
88
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90
-
91
- # Use the maximum available, or set MAX_FD != -1 to use that value.
92
- MAX_FD=maximum
93
-
94
- warn () {
95
- echo "$*"
96
- } >&2
97
-
98
- die () {
99
- echo
100
- echo "$*"
101
- echo
102
- exit 1
103
- } >&2
104
-
105
- # OS specific support (must be 'true' or 'false').
106
- cygwin=false
107
- msys=false
108
- darwin=false
109
- nonstop=false
110
- case "$( uname )" in #(
111
- CYGWIN* ) cygwin=true ;; #(
112
- Darwin* ) darwin=true ;; #(
113
- MSYS* | MINGW* ) msys=true ;; #(
114
- NONSTOP* ) nonstop=true ;;
115
- esac
116
-
117
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118
-
119
-
120
- # Determine the Java command to use to start the JVM.
121
- if [ -n "$JAVA_HOME" ] ; then
122
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
123
- # IBM's JDK on AIX uses strange locations for the executables
124
- JAVACMD=$JAVA_HOME/jre/sh/java
125
- else
126
- JAVACMD=$JAVA_HOME/bin/java
127
- fi
128
- if [ ! -x "$JAVACMD" ] ; then
129
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
130
-
131
- Please set the JAVA_HOME variable in your environment to match the
132
- location of your Java installation."
133
- fi
134
- else
135
- JAVACMD=java
136
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137
-
138
- Please set the JAVA_HOME variable in your environment to match the
139
- location of your Java installation."
140
- fi
141
-
142
- # Increase the maximum file descriptors if we can.
143
- if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144
- case $MAX_FD in #(
145
- max*)
146
- MAX_FD=$( ulimit -H -n ) ||
147
- warn "Could not query maximum file descriptor limit"
148
- esac
149
- case $MAX_FD in #(
150
- '' | soft) :;; #(
151
- *)
152
- ulimit -n "$MAX_FD" ||
153
- warn "Could not set maximum file descriptor limit to $MAX_FD"
154
- esac
155
- fi
156
-
157
- # Collect all arguments for the java command, stacking in reverse order:
158
- # * args from the command line
159
- # * the main class name
160
- # * -classpath
161
- # * -D...appname settings
162
- # * --module-path (only if needed)
163
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
164
-
165
- # For Cygwin or MSYS, switch paths to Windows format before running java
166
- if "$cygwin" || "$msys" ; then
167
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
168
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
169
-
170
- JAVACMD=$( cygpath --unix "$JAVACMD" )
171
-
172
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
173
- for arg do
174
- if
175
- case $arg in #(
176
- -*) false ;; # don't mess with options #(
177
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
178
- [ -e "$t" ] ;; #(
179
- *) false ;;
180
- esac
181
- then
182
- arg=$( cygpath --path --ignore --mixed "$arg" )
183
- fi
184
- # Roll the args list around exactly as many times as the number of
185
- # args, so each arg winds up back in the position where it started, but
186
- # possibly modified.
187
- #
188
- # NB: a `for` loop captures its iteration list before it begins, so
189
- # changing the positional parameters here affects neither the number of
190
- # iterations, nor the values presented in `arg`.
191
- shift # remove old arg
192
- set -- "$@" "$arg" # push replacement arg
193
- done
194
- fi
195
-
196
- # Collect all arguments for the java command;
197
- # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198
- # shell script including quotes and variable substitutions, so put them in
199
- # double quotes to make sure that they get re-expanded; and
200
- # * put everything else in single quotes, so that it's not re-expanded.
201
-
202
- set -- \
203
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
204
- -classpath "$CLASSPATH" \
205
- org.gradle.wrapper.GradleWrapperMain \
206
- "$@"
207
-
208
- # Use "xargs" to parse quoted args.
209
- #
210
- # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
211
- #
212
- # In Bash we could simply go:
213
- #
214
- # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
215
- # set -- "${ARGS[@]}" "$@"
216
- #
217
- # but POSIX shell has neither arrays nor command substitution, so instead we
218
- # post-process each arg (as a line of input to sed) to backslash-escape any
219
- # character that might be a shell metacharacter, then use eval to reverse
220
- # that process (while maintaining the separation between arguments), and wrap
221
- # the whole thing up as a single "set" statement.
222
- #
223
- # This will of course break if any of these variables contains a newline or
224
- # an unmatched quote.
225
- #
226
-
227
- eval "set -- $(
228
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
229
- xargs -n1 |
230
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
231
- tr '\n' ' '
232
- )" '"$@"'
233
-
234
- exec "$JAVACMD" "$@"
@@ -1,89 +0,0 @@
1
- @rem
2
- @rem Copyright 2015 the original author or authors.
3
- @rem
4
- @rem Licensed under the Apache License, Version 2.0 (the "License");
5
- @rem you may not use this file except in compliance with the License.
6
- @rem You may obtain a copy of the License at
7
- @rem
8
- @rem https://www.apache.org/licenses/LICENSE-2.0
9
- @rem
10
- @rem Unless required by applicable law or agreed to in writing, software
11
- @rem distributed under the License is distributed on an "AS IS" BASIS,
12
- @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- @rem See the License for the specific language governing permissions and
14
- @rem limitations under the License.
15
- @rem
16
-
17
- @if "%DEBUG%" == "" @echo off
18
- @rem ##########################################################################
19
- @rem
20
- @rem Gradle startup script for Windows
21
- @rem
22
- @rem ##########################################################################
23
-
24
- @rem Set local scope for the variables with windows NT shell
25
- if "%OS%"=="Windows_NT" setlocal
26
-
27
- set DIRNAME=%~dp0
28
- if "%DIRNAME%" == "" set DIRNAME=.
29
- set APP_BASE_NAME=%~n0
30
- set APP_HOME=%DIRNAME%
31
-
32
- @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33
- for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34
-
35
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36
- set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37
-
38
- @rem Find java.exe
39
- if defined JAVA_HOME goto findJavaFromJavaHome
40
-
41
- set JAVA_EXE=java.exe
42
- %JAVA_EXE% -version >NUL 2>&1
43
- if "%ERRORLEVEL%" == "0" goto execute
44
-
45
- echo.
46
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47
- echo.
48
- echo Please set the JAVA_HOME variable in your environment to match the
49
- echo location of your Java installation.
50
-
51
- goto fail
52
-
53
- :findJavaFromJavaHome
54
- set JAVA_HOME=%JAVA_HOME:"=%
55
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56
-
57
- if exist "%JAVA_EXE%" goto execute
58
-
59
- echo.
60
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61
- echo.
62
- echo Please set the JAVA_HOME variable in your environment to match the
63
- echo location of your Java installation.
64
-
65
- goto fail
66
-
67
- :execute
68
- @rem Setup the command line
69
-
70
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71
-
72
-
73
- @rem Execute Gradle
74
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75
-
76
- :end
77
- @rem End local scope for the variables with windows NT shell
78
- if "%ERRORLEVEL%"=="0" goto mainEnd
79
-
80
- :fail
81
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82
- rem the _cmd.exe /c_ return code!
83
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84
- exit /b 1
85
-
86
- :mainEnd
87
- if "%OS%"=="Windows_NT" endlocal
88
-
89
- :omega
@@ -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
- #Tue Nov 21 20:31:24 CST 2023
8
- sdk.dir=/Users/bridgefy/Library/Android/sdk