react-native-inapp-inspector 2.3.21 → 2.3.23

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.
@@ -1033,7 +1033,7 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
1033
1033
 
1034
1034
  @ReactMethod
1035
1035
  fun playVideo(videoUri: String, promise: Promise) {
1036
- val currentActivity = currentActivity
1036
+ val currentActivity = reactContext.currentActivity
1037
1037
  if (currentActivity == null) {
1038
1038
  promise.reject("PLAY_ERROR", "No active activity found to play video")
1039
1039
  return
@@ -1145,7 +1145,7 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
1145
1145
 
1146
1146
  @ReactMethod
1147
1147
  fun copyMediaToClipboard(filePath: String, promise: Promise) {
1148
- val activity = currentActivity ?: reactApplicationContext
1148
+ val activity = reactContext.currentActivity ?: reactContext
1149
1149
  try {
1150
1150
  val clipboard = activity.getSystemService(android.content.Context.CLIPBOARD_SERVICE) as? android.content.ClipboardManager
1151
1151
  if (clipboard == null) {
@@ -1163,15 +1163,15 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
1163
1163
  if (file.exists()) {
1164
1164
  val uri = try {
1165
1165
  androidx.core.content.FileProvider.getUriForFile(
1166
- reactApplicationContext,
1167
- "${reactApplicationContext.packageName}.provider",
1166
+ reactContext,
1167
+ "${reactContext.packageName}.provider",
1168
1168
  file
1169
1169
  )
1170
1170
  } catch (e: Exception) {
1171
1171
  android.net.Uri.fromFile(file)
1172
1172
  }
1173
1173
  val clip = android.content.ClipData.newUri(
1174
- reactApplicationContext.contentResolver,
1174
+ reactContext.contentResolver,
1175
1175
  "Media",
1176
1176
  uri
1177
1177
  )
@@ -1 +1 @@
1
- export declare const LIB_VERSION = "2.3.21";
1
+ export declare const LIB_VERSION = "2.3.23";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LIB_VERSION=void 0,exports.LIB_VERSION="2.3.21";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LIB_VERSION=void 0,exports.LIB_VERSION="2.3.23";
@@ -1 +1 @@
1
- export declare const LIB_VERSION = "2.3.21";
1
+ export declare const LIB_VERSION = "2.3.23";
@@ -1 +1 @@
1
- export const LIB_VERSION="2.3.21";
1
+ export const LIB_VERSION="2.3.23";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-inapp-inspector",
3
- "version": "2.3.21",
3
+ "version": "2.3.23",
4
4
  "description": "The zero-config, all-in-one in-app debugger for React Native & Expo. Inspect Network (fetch/axios), Console logs, Stack Traces, Redux State, Firebase Analytics, and JS Bundle size directly on device.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -116,6 +116,7 @@
116
116
  },
117
117
  "scripts": {
118
118
  "clean": "rm -rf dist",
119
+ "version": "node scripts/gen-version.js && git add src/constants/version.ts",
119
120
  "prebuild": "node scripts/gen-version.js && node scripts/gen-telemetry.js",
120
121
  "build": "tsc && tsc -p tsconfig.esm.json && node scripts/minify-dist.js",
121
122
  "clean-build": "npm run clean && npm run build",