bridgefy-react-native 1.1.0 → 1.1.1
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/README.md +12 -7
- package/android/build.gradle +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,11 +38,10 @@ below:
|
|
|
38
38
|
|
|
39
39
|
## Installation
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
npm i git+https://github.com/bridgefy/bridgefy-react-native.git
|
|
41
|
+
```bash
|
|
42
|
+
$ npm i bridgefy-react-native
|
|
43
|
+
# --- or ---
|
|
44
|
+
$ yarn install bridgefy-react-native
|
|
46
45
|
```
|
|
47
46
|
|
|
48
47
|
## Usage
|
|
@@ -60,7 +59,10 @@ const bridgefy = new Bridgefy();
|
|
|
60
59
|
export default function App() {
|
|
61
60
|
React.useEffect(() => {
|
|
62
61
|
bridgefy
|
|
63
|
-
.initialize(
|
|
62
|
+
.initialize(
|
|
63
|
+
'your-api-key-here', // UUID - The license key registered on the Bridgefy developer site.
|
|
64
|
+
false, // The logging priority for SDK operations.
|
|
65
|
+
)
|
|
64
66
|
.catch((error) => {
|
|
65
67
|
console.error(error);
|
|
66
68
|
});
|
|
@@ -70,7 +72,10 @@ export default function App() {
|
|
|
70
72
|
Once initialized, you can call `start` to begin using the SDK.
|
|
71
73
|
|
|
72
74
|
```typescript
|
|
73
|
-
bridgefy.start(
|
|
75
|
+
bridgefy.start(
|
|
76
|
+
userId?, // UUID? (optional) - The ID used to identify the user in the Bridgefy network.If null is passed, the SDK will assign an autogenerated ID.
|
|
77
|
+
propagationProfile, // PropagationProfile (optional, default: PropagationProfile.Standard) - A profile that defines a series of properties and rules for the propagation of messages.
|
|
78
|
+
);
|
|
74
79
|
```
|
|
75
80
|
|
|
76
81
|
### Sending data
|
package/android/build.gradle
CHANGED
|
@@ -85,7 +85,7 @@ repositories {
|
|
|
85
85
|
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
86
86
|
|
|
87
87
|
dependencies {
|
|
88
|
-
implementation (group: "me.bridgefy", name: "android-sdk", version: "1.1.
|
|
88
|
+
implementation (group: "me.bridgefy", name: "android-sdk", version: "1.1.1", ext: "aar") {
|
|
89
89
|
transitive = true
|
|
90
90
|
}
|
|
91
91
|
// For < 0.71, this will be from the local maven repo
|
|
@@ -93,7 +93,6 @@ dependencies {
|
|
|
93
93
|
//noinspection GradleDynamicVersion
|
|
94
94
|
implementation "com.facebook.react:react-native:+"
|
|
95
95
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
96
|
-
implementation "androidx.preference:preference-ktx:1.2.0"
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
if (isNewArchitectureEnabled()) {
|