@debugbundle/sdk-react-native 0.1.0 → 1.0.0
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/DebugBundleReactNative.podspec +2 -2
- package/README.md +14 -4
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/debugbundle/reactnative/DebugBundleReactNativeModule.java +1 -1
- package/app.plugin.js +1 -1
- package/dist/client.js +1 -1
- package/ios/DebugBundleReactNative.swift +1 -1
- package/package.json +14 -5
- package/src/client.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = "DebugBundleReactNative"
|
|
3
|
-
s.version = "
|
|
3
|
+
s.version = "1.0.0"
|
|
4
4
|
s.summary = "React Native wrapper for the DebugBundle mobile SDKs."
|
|
5
5
|
s.license = { :type => "AGPL-3.0-only" }
|
|
6
6
|
s.author = { "DebugBundle" => "support@debugbundle.com" }
|
|
@@ -11,5 +11,5 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.swift_version = "5.10"
|
|
12
12
|
|
|
13
13
|
s.dependency "React-Core"
|
|
14
|
-
s.dependency "DebugBundle", "~> 0.
|
|
14
|
+
s.dependency "DebugBundle", "~> 1.0.0"
|
|
15
15
|
end
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This package targets iOS and Android React Native apps. It is a mobile direct-in
|
|
|
6
6
|
|
|
7
7
|
## Status
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Published implementation:
|
|
10
10
|
|
|
11
11
|
- TypeScript facade and instance client.
|
|
12
12
|
- Safe degraded mode when the native module is unavailable, including Expo Go.
|
|
@@ -18,7 +18,17 @@ Release candidate implementation:
|
|
|
18
18
|
- Android and iOS native wrappers that delegate queueing, config/status, request capture, crash/error capture, flushing, and probe trigger activation to the native SDK foundations.
|
|
19
19
|
- Clean-install React Native app smoke coverage for Android and iOS, including New Architecture codegen/autolinking.
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
## Runtime Support
|
|
22
|
+
|
|
23
|
+
| Lane | Support |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| Minimum compatibility | React Native 0.76+, React 18.2+, iOS 15+, Android minSdk 23 |
|
|
26
|
+
| Recommended production | Current stable React Native 0.85.x with Hermes and the New Architecture enabled where your app supports it |
|
|
27
|
+
| Installed-base compatibility | React Native 0.76 through current stable, including legacy bridge apps |
|
|
28
|
+
| Rolling CI | TypeScript/package smoke, Android bridge compile on RN 0.76.9, 0.82.1, and 0.85.3, plus current-stable Android and iOS clean-app smokes |
|
|
29
|
+
| Expo | Expo development builds and prebuild; Expo Go is degraded because it cannot load custom native modules |
|
|
30
|
+
|
|
31
|
+
JSC compatibility is best-effort where the selected React Native lane still supports it. Hermes is the primary tested JavaScript engine.
|
|
22
32
|
|
|
23
33
|
## Install
|
|
24
34
|
|
|
@@ -27,7 +37,7 @@ npm install @debugbundle/sdk-react-native
|
|
|
27
37
|
cd ios && pod install
|
|
28
38
|
```
|
|
29
39
|
|
|
30
|
-
iOS autolinking resolves the `DebugBundleReactNative.podspec`, which depends on the native `DebugBundle` pod from the Swift SDK.
|
|
40
|
+
iOS autolinking resolves the `DebugBundleReactNative.podspec`, which depends on the native `DebugBundle` pod from the Swift SDK.
|
|
31
41
|
|
|
32
42
|
Android apps must enable core library desugaring because the native Android SDK
|
|
33
43
|
uses Java APIs that require desugaring on the SDK's minimum API level:
|
|
@@ -121,4 +131,4 @@ Expo development builds and prebuild are supported through the config plugin. Ex
|
|
|
121
131
|
|
|
122
132
|
## Release
|
|
123
133
|
|
|
124
|
-
The package publishes to npm from `v*` tags through GitHub Actions. Configure the repository secret `NPM_TOKEN`, make sure the tag matches `package.json` exactly, for example `
|
|
134
|
+
The package publishes to npm from `v*` tags through GitHub Actions. Configure the repository secret `NPM_TOKEN`, make sure the tag matches `package.json` exactly, for example `v1.0.0`, and push the tag after the native Swift `DebugBundle` pod version referenced by `DebugBundleReactNative.podspec` is available to CocoaPods consumers.
|
package/android/build.gradle
CHANGED
|
@@ -28,7 +28,7 @@ android {
|
|
|
28
28
|
dependencies {
|
|
29
29
|
compileOnly "com.facebook.react:react-android:${rootProject.findProperty("reactNativeVersion") ?: "0.85.3"}"
|
|
30
30
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:${hostKotlinVersion}"
|
|
31
|
-
implementation platform("com.debugbundle:debugbundle-android-bom:0.
|
|
31
|
+
implementation platform("com.debugbundle:debugbundle-android-bom:1.0.0")
|
|
32
32
|
implementation("com.debugbundle:debugbundle-android") {
|
|
33
33
|
exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib"
|
|
34
34
|
exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib-jdk7"
|
|
@@ -187,7 +187,7 @@ public final class DebugBundleReactNativeModule extends ReactContextBaseJavaModu
|
|
|
187
187
|
0,
|
|
188
188
|
false,
|
|
189
189
|
Collections.emptySet(),
|
|
190
|
-
stringOrDefault(config, "sdkVersion", "
|
|
190
|
+
stringOrDefault(config, "sdkVersion", "1.0.0"),
|
|
191
191
|
mask,
|
|
192
192
|
null);
|
|
193
193
|
}
|
package/app.plugin.js
CHANGED
package/dist/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getNativeModule, degradedNativeState, safeNativeCall } from "./native.js";
|
|
2
2
|
import { defaultRedactFields, DEFAULT_HEADER_ALLOWLIST, sanitizeHeaders, sanitizeValue } from "./redaction.js";
|
|
3
3
|
const SDK_NAME = "@debugbundle/sdk-react-native";
|
|
4
|
-
const DEFAULT_SDK_VERSION = "
|
|
4
|
+
const DEFAULT_SDK_VERSION = "1.0.0";
|
|
5
5
|
const LOG_LEVELS = {
|
|
6
6
|
debug: 10,
|
|
7
7
|
info: 20,
|
|
@@ -19,7 +19,7 @@ final class DebugBundleReactNative: NSObject {
|
|
|
19
19
|
releaseChannel: config["releaseChannel"] as? String ?? "production",
|
|
20
20
|
appVersion: config["appVersion"] as? String,
|
|
21
21
|
buildNumber: config["buildNumber"] as? String,
|
|
22
|
-
sdkVersion: config["sdkVersion"] as? String ?? "
|
|
22
|
+
sdkVersion: config["sdkVersion"] as? String ?? "1.0.0"
|
|
23
23
|
)
|
|
24
24
|
DebugBundle.initialize(sdkConfig, transport: DebugBundleHTTPTransport())
|
|
25
25
|
resolve(state())
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@debugbundle/sdk-react-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "React Native SDK for DebugBundle mobile event capture.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"homepage": "https://
|
|
7
|
+
"homepage": "https://debugbundle.com/docs/sdks/react-native",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"debugbundle",
|
|
10
|
+
"react-native",
|
|
11
|
+
"mobile",
|
|
12
|
+
"debugging",
|
|
13
|
+
"error-tracking",
|
|
14
|
+
"ai-agent"
|
|
15
|
+
],
|
|
8
16
|
"repository": {
|
|
9
17
|
"type": "git",
|
|
10
18
|
"url": "git+https://github.com/debugbundle/debugbundle-react-native.git"
|
|
@@ -75,13 +83,14 @@
|
|
|
75
83
|
"build": "tsc -p tsconfig.json",
|
|
76
84
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
77
85
|
"test": "vitest run",
|
|
78
|
-
"pack:check": "npm pack --dry-run"
|
|
86
|
+
"pack:check": "npm pack --dry-run",
|
|
87
|
+
"smoke:registry": "node scripts/smoke-registry.mjs"
|
|
79
88
|
},
|
|
80
89
|
"peerDependencies": {
|
|
81
90
|
"@expo/config-plugins": ">=9",
|
|
82
91
|
"@react-navigation/native": ">=6",
|
|
83
|
-
"react": ">=18",
|
|
84
|
-
"react-native": ">=0.
|
|
92
|
+
"react": ">=18.2 <20",
|
|
93
|
+
"react-native": ">=0.76 <1.0"
|
|
85
94
|
},
|
|
86
95
|
"peerDependenciesMeta": {
|
|
87
96
|
"@expo/config-plugins": {
|
package/src/client.ts
CHANGED
|
@@ -16,7 +16,7 @@ import type {
|
|
|
16
16
|
} from "./types.js";
|
|
17
17
|
|
|
18
18
|
const SDK_NAME = "@debugbundle/sdk-react-native" as const;
|
|
19
|
-
const DEFAULT_SDK_VERSION = "
|
|
19
|
+
const DEFAULT_SDK_VERSION = "1.0.0";
|
|
20
20
|
const LOG_LEVELS: Record<DebugBundleLogLevel, number> = {
|
|
21
21
|
debug: 10,
|
|
22
22
|
info: 20,
|