@blipit/react-native 0.6.0 → 0.6.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.
- package/BlipitReactNative.podspec +2 -2
- package/CHANGELOG.md +11 -0
- package/README.md +2 -2
- package/android/build.gradle +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/package.json +1 -1
|
@@ -16,8 +16,8 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.swift_version = "5.9"
|
|
17
17
|
s.dependency "React-Core"
|
|
18
18
|
if defined?(spm_dependency)
|
|
19
|
-
spm_dependency(s, url: "https://github.com/blipit-io/blipit-swift", requirement: { kind: "upToNextMinorVersion", minimumVersion: "0.
|
|
19
|
+
spm_dependency(s, url: "https://github.com/blipit-io/blipit-swift", requirement: { kind: "upToNextMinorVersion", minimumVersion: "0.7.2" }, products: ["BlipitSwift"])
|
|
20
20
|
else
|
|
21
|
-
s.dependency "BlipitSwift", "~> 0.
|
|
21
|
+
s.dependency "BlipitSwift", "~> 0.7.2"
|
|
22
22
|
end
|
|
23
23
|
end
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 0.6.2
|
|
2
|
+
|
|
3
|
+
- Native SDKs raised to blipit-android v0.7.4 and blipit-swift 0.7.2 (were 0.6.0). Nothing changes in the JavaScript API.
|
|
4
|
+
- From the native SDKs: the breadcrumbs of the previous launch ride on the first event of the next launch, and every native request to Blipit carries the SDK version.
|
|
5
|
+
- iOS: requests that end with a network error or an HTTP 5xx are reported on their own as `HTTPRequestFailed`, at most one event per endpoint per minute. The switch is in Blipit, on by default.
|
|
6
|
+
- Android: the report screen no longer uses the status and navigation bar APIs Android 15 deprecated, so Google Play stops warning about them.
|
|
7
|
+
|
|
8
|
+
## 0.6.1
|
|
9
|
+
|
|
10
|
+
- Every request to Blipit (events, sessions, bug reports and their uploads, report settings) sends `X-Blipit-Sdk: @blipit/react-native/<version>`, so the update card in Blipit always shows the version you run.
|
|
11
|
+
|
|
1
12
|
## 0.6.0
|
|
2
13
|
|
|
3
14
|
- Shake to report (`shakeToReport`, off by default): one shake opens the bug reporter on the current screen, never while one is already open.
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ npm install @blipit/react-native
|
|
|
11
11
|
npx pod-install
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
The package links a small native module, `BlipitNuggets`, that starts Blipit's own native SDKs for native crashes: `blipit-android` (JitPack, `com.github.blipit-io:blipit-android:v0.
|
|
14
|
+
The package links a small native module, `BlipitNuggets`, that starts Blipit's own native SDKs for native crashes: `blipit-android` (JitPack, `com.github.blipit-io:blipit-android:v0.7.4`) and `blipit-swift` (`https://github.com/blipit-io/blipit-swift`, 0.7.2 or newer). The module's Gradle file adds the JitPack repository on its own. If your `settings.gradle` uses `RepositoriesMode.FAIL_ON_PROJECT_REPOS`, add `maven { url "https://jitpack.io" }` there. On iOS, React Native 0.75 and newer pull `blipit-swift` through Swift Package Manager from the podspec; older versions use the `BlipitSwift` 0.5.0 pod.
|
|
15
15
|
|
|
16
16
|
Expo: run `npx expo prebuild` (or use a development build). Expo Go has no custom native code, so JavaScript errors are still reported there but native crashes are not.
|
|
17
17
|
|
|
@@ -186,7 +186,7 @@ What the SDK collects: error type, message and stack, breadcrumbs listed above,
|
|
|
186
186
|
|
|
187
187
|
### Google Play
|
|
188
188
|
|
|
189
|
-
- The module adds no permissions of its own. blipit-android
|
|
189
|
+
- The module adds no permissions of its own. blipit-android declares `DETECT_SCREEN_CAPTURE`, a normal install-time permission with no prompt, used only on Android 14 or later when `screenshotToReport` is on. Shake uses the accelerometer through `SensorManager` while the app is open, which needs no permission. `INTERNET` comes from React Native itself.
|
|
190
190
|
- Data safety: screenshot to report only learns that a screenshot was taken; it reads no screenshot, photo, gallery or storage data. A bug report sends only what the person chooses to send (their text, the screen they marked up, an optional email).
|
|
191
191
|
- Data safety form: Crash logs and Diagnostics, collected, not shared, encrypted in transit (HTTPS), purpose App functionality. Add User IDs and Email address if you call `setUser`.
|
|
192
192
|
- No advertising ID, no device identifiers beyond the model name; nothing that Play's Families policy forbids. For child-directed apps keep `setUser` to an internal id.
|
package/android/build.gradle
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -132,8 +132,9 @@ function lastFatal(queue) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
// src/nuggets.ts
|
|
135
|
-
var VERSION = "0.6.
|
|
135
|
+
var VERSION = "0.6.2";
|
|
136
136
|
var SDK_NAME = "@blipit/react-native";
|
|
137
|
+
var SDK_HEADER = `${SDK_NAME}/${VERSION}`;
|
|
137
138
|
var DEFAULT_ENDPOINT = "https://in.blipit.io";
|
|
138
139
|
var CATEGORIES = /* @__PURE__ */ new Set(["ui.click", "ui.input", "navigation", "http", "console", "query", "custom"]);
|
|
139
140
|
var CRUMB_LEVELS = /* @__PURE__ */ new Set(["error", "warning", "info", "debug"]);
|
|
@@ -320,7 +321,7 @@ var Nuggets = class {
|
|
|
320
321
|
}
|
|
321
322
|
}
|
|
322
323
|
post(path, body) {
|
|
323
|
-
return this.fetcher(this.url(path), { method: "POST", headers: { "Content-Type": "application/json", "X-Blipit-Key": this.key }, body: JSON.stringify(body) });
|
|
324
|
+
return this.fetcher(this.url(path), { method: "POST", headers: { "Content-Type": "application/json", "X-Blipit-Key": this.key, "X-Blipit-Sdk": SDK_HEADER }, body: JSON.stringify(body) });
|
|
324
325
|
}
|
|
325
326
|
async send(event) {
|
|
326
327
|
try {
|
|
@@ -1055,7 +1056,7 @@ var ReportClient = class {
|
|
|
1055
1056
|
this.fetcher = guardPlatform(fetcher);
|
|
1056
1057
|
}
|
|
1057
1058
|
async call(path, init2) {
|
|
1058
|
-
const res = await this.fetcher(`${this.endpoint}${path}`, { ...init2, headers: { "X-Blipit-Key": this.key, ...init2.headers } });
|
|
1059
|
+
const res = await this.fetcher(`${this.endpoint}${path}`, { ...init2, headers: { "X-Blipit-Key": this.key, "X-Blipit-Sdk": SDK_HEADER, ...init2.headers } });
|
|
1059
1060
|
const text2 = await res.text();
|
|
1060
1061
|
if (!res.ok) throw new Error(`Blipit returned ${res.status}`);
|
|
1061
1062
|
return text2;
|
|
@@ -1064,7 +1065,7 @@ var ReportClient = class {
|
|
|
1064
1065
|
return JSON.parse(await this.call("/api/v1/feedback/settings", { method: "GET", headers: userHeaders(user) }));
|
|
1065
1066
|
}
|
|
1066
1067
|
async event(body) {
|
|
1067
|
-
const res = await this.fetcher(`${this.endpoint}/api/v1/events`, { method: "POST", headers: { "X-Blipit-Key": this.key, "Content-Type": "application/json" }, body: JSON.stringify(body) });
|
|
1068
|
+
const res = await this.fetcher(`${this.endpoint}/api/v1/events`, { method: "POST", headers: { "X-Blipit-Key": this.key, "X-Blipit-Sdk": SDK_HEADER, "Content-Type": "application/json" }, body: JSON.stringify(body) });
|
|
1068
1069
|
return res.ok || res.status >= 400 && res.status < 500 && res.status !== 408 && res.status !== 429;
|
|
1069
1070
|
}
|
|
1070
1071
|
async send(body) {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { Component, ReactNode, ComponentType } from 'react';
|
|
3
3
|
|
|
4
|
-
declare const VERSION = "0.6.
|
|
4
|
+
declare const VERSION = "0.6.2";
|
|
5
5
|
declare const DEFAULT_ENDPOINT = "https://in.blipit.io";
|
|
6
6
|
type Level = "fatal" | "error" | "warning" | "info" | "debug";
|
|
7
7
|
type SeverityLevel = Level;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { Component, ReactNode, ComponentType } from 'react';
|
|
3
3
|
|
|
4
|
-
declare const VERSION = "0.6.
|
|
4
|
+
declare const VERSION = "0.6.2";
|
|
5
5
|
declare const DEFAULT_ENDPOINT = "https://in.blipit.io";
|
|
6
6
|
type Level = "fatal" | "error" | "warning" | "info" | "debug";
|
|
7
7
|
type SeverityLevel = Level;
|
package/dist/index.js
CHANGED
|
@@ -92,8 +92,9 @@ function lastFatal(queue) {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
// src/nuggets.ts
|
|
95
|
-
var VERSION = "0.6.
|
|
95
|
+
var VERSION = "0.6.2";
|
|
96
96
|
var SDK_NAME = "@blipit/react-native";
|
|
97
|
+
var SDK_HEADER = `${SDK_NAME}/${VERSION}`;
|
|
97
98
|
var DEFAULT_ENDPOINT = "https://in.blipit.io";
|
|
98
99
|
var CATEGORIES = /* @__PURE__ */ new Set(["ui.click", "ui.input", "navigation", "http", "console", "query", "custom"]);
|
|
99
100
|
var CRUMB_LEVELS = /* @__PURE__ */ new Set(["error", "warning", "info", "debug"]);
|
|
@@ -280,7 +281,7 @@ var Nuggets = class {
|
|
|
280
281
|
}
|
|
281
282
|
}
|
|
282
283
|
post(path, body) {
|
|
283
|
-
return this.fetcher(this.url(path), { method: "POST", headers: { "Content-Type": "application/json", "X-Blipit-Key": this.key }, body: JSON.stringify(body) });
|
|
284
|
+
return this.fetcher(this.url(path), { method: "POST", headers: { "Content-Type": "application/json", "X-Blipit-Key": this.key, "X-Blipit-Sdk": SDK_HEADER }, body: JSON.stringify(body) });
|
|
284
285
|
}
|
|
285
286
|
async send(event) {
|
|
286
287
|
try {
|
|
@@ -1015,7 +1016,7 @@ var ReportClient = class {
|
|
|
1015
1016
|
this.fetcher = guardPlatform(fetcher);
|
|
1016
1017
|
}
|
|
1017
1018
|
async call(path, init2) {
|
|
1018
|
-
const res = await this.fetcher(`${this.endpoint}${path}`, { ...init2, headers: { "X-Blipit-Key": this.key, ...init2.headers } });
|
|
1019
|
+
const res = await this.fetcher(`${this.endpoint}${path}`, { ...init2, headers: { "X-Blipit-Key": this.key, "X-Blipit-Sdk": SDK_HEADER, ...init2.headers } });
|
|
1019
1020
|
const text2 = await res.text();
|
|
1020
1021
|
if (!res.ok) throw new Error(`Blipit returned ${res.status}`);
|
|
1021
1022
|
return text2;
|
|
@@ -1024,7 +1025,7 @@ var ReportClient = class {
|
|
|
1024
1025
|
return JSON.parse(await this.call("/api/v1/feedback/settings", { method: "GET", headers: userHeaders(user) }));
|
|
1025
1026
|
}
|
|
1026
1027
|
async event(body) {
|
|
1027
|
-
const res = await this.fetcher(`${this.endpoint}/api/v1/events`, { method: "POST", headers: { "X-Blipit-Key": this.key, "Content-Type": "application/json" }, body: JSON.stringify(body) });
|
|
1028
|
+
const res = await this.fetcher(`${this.endpoint}/api/v1/events`, { method: "POST", headers: { "X-Blipit-Key": this.key, "X-Blipit-Sdk": SDK_HEADER, "Content-Type": "application/json" }, body: JSON.stringify(body) });
|
|
1028
1029
|
return res.ok || res.status >= 400 && res.status < 500 && res.status !== 408 && res.status !== 429;
|
|
1029
1030
|
}
|
|
1030
1031
|
async send(body) {
|