@allstak/react-native 0.1.3 → 0.3.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/AllStakRN.podspec +25 -0
- package/README.md +393 -64
- package/app.plugin.js +6 -0
- package/build-hooks/allstak-sourcemaps.gradle +132 -0
- package/build-hooks/eas-post-bundle.js +127 -0
- package/build-hooks/upload-sourcemaps.js +175 -0
- package/build-hooks/xcode-build-phase.sh +90 -0
- package/dist/build/sourcemaps.d.mts +94 -0
- package/dist/build/sourcemaps.d.ts +94 -0
- package/dist/build/sourcemaps.js +142 -0
- package/dist/build/sourcemaps.js.map +1 -0
- package/dist/build/sourcemaps.mjs +115 -0
- package/dist/build/sourcemaps.mjs.map +1 -0
- package/dist/chunk-BJTO5JO5.mjs +11 -0
- package/dist/chunk-BJTO5JO5.mjs.map +1 -0
- package/dist/expo-plugin.d.mts +56 -0
- package/dist/expo-plugin.d.ts +56 -0
- package/dist/expo-plugin.js +44 -0
- package/dist/expo-plugin.js.map +1 -0
- package/dist/expo-plugin.mjs +25 -0
- package/dist/expo-plugin.mjs.map +1 -0
- package/dist/index.d.mts +873 -1
- package/dist/index.d.ts +873 -1
- package/dist/index.js +2159 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2150 -2
- package/dist/index.mjs.map +1 -1
- package/native/android/build.gradle +41 -0
- package/native/android/src/main/AndroidManifest.xml +2 -0
- package/native/android/src/main/java/io/allstak/rn/AllStakRNModule.java +17 -0
- package/native/android/src/main/java/io/allstak/rn/AllStakRNPackage.java +36 -0
- package/native/ios/AllStakRN.podspec +21 -0
- package/native/ios/AllStakRNModule.m +16 -0
- package/package.json +24 -9
- package/react-native.config.js +28 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allstak/react-native",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "AllStak React Native SDK — ErrorUtils + Hermes rejection
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "AllStak React Native SDK — standalone error tracking, breadcrumbs, network capture, and ErrorUtils + Hermes rejection hooks. No browser or Node dependencies. Native Android/iOS crash modules in ./native.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -10,11 +10,20 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.mjs",
|
|
12
12
|
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./sourcemaps": {
|
|
15
|
+
"types": "./dist/build/sourcemaps.d.ts",
|
|
16
|
+
"import": "./dist/build/sourcemaps.mjs",
|
|
17
|
+
"require": "./dist/build/sourcemaps.js"
|
|
13
18
|
}
|
|
14
19
|
},
|
|
15
20
|
"files": [
|
|
16
21
|
"dist",
|
|
17
22
|
"native",
|
|
23
|
+
"build-hooks",
|
|
24
|
+
"react-native.config.js",
|
|
25
|
+
"app.plugin.js",
|
|
26
|
+
"AllStakRN.podspec",
|
|
18
27
|
"README.md",
|
|
19
28
|
"LICENSE"
|
|
20
29
|
],
|
|
@@ -32,29 +41,35 @@
|
|
|
32
41
|
"observability",
|
|
33
42
|
"react-native",
|
|
34
43
|
"mobile",
|
|
35
|
-
"error-tracking"
|
|
44
|
+
"error-tracking",
|
|
45
|
+
"apm"
|
|
36
46
|
],
|
|
37
47
|
"publishConfig": {
|
|
38
48
|
"access": "public",
|
|
39
49
|
"registry": "https://registry.npmjs.org/"
|
|
40
50
|
},
|
|
41
51
|
"scripts": {
|
|
42
|
-
"build": "tsup src/index.ts --format esm,cjs --dts --clean --sourcemap --platform
|
|
43
|
-
"typecheck": "tsc --noEmit"
|
|
52
|
+
"build": "tsup src/index.ts src/expo-plugin.ts --format esm,cjs --dts --clean --sourcemap --platform neutral --no-shims --external react --external react-native --external @react-navigation/native --external promise/setimmediate/rejection-tracking && tsup src/build/sourcemaps.ts --format esm,cjs --dts --sourcemap --platform node --out-dir dist/build && node scripts/post-build.mjs",
|
|
53
|
+
"typecheck": "tsc --noEmit",
|
|
54
|
+
"test": "node --test --test-concurrency=1 test/*.test.mjs"
|
|
44
55
|
},
|
|
45
56
|
"peerDependencies": {
|
|
57
|
+
"react": ">=16.8.0",
|
|
46
58
|
"react-native": ">=0.70"
|
|
47
59
|
},
|
|
48
60
|
"peerDependenciesMeta": {
|
|
61
|
+
"react": {
|
|
62
|
+
"optional": false
|
|
63
|
+
},
|
|
49
64
|
"react-native": {
|
|
50
65
|
"optional": true
|
|
51
66
|
}
|
|
52
67
|
},
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@allstak/core": "^0.1.3",
|
|
55
|
-
"@allstak/js": "^0.1.3"
|
|
56
|
-
},
|
|
57
68
|
"devDependencies": {
|
|
69
|
+
"@types/node": "^25.6.0",
|
|
70
|
+
"@types/react": "^18.3.28",
|
|
71
|
+
"react": "^18.3.1",
|
|
72
|
+
"react-test-renderer": "^18.3.1",
|
|
58
73
|
"tsup": "^8.0.0",
|
|
59
74
|
"typescript": "^5.3.0"
|
|
60
75
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native autolinking config.
|
|
3
|
+
*
|
|
4
|
+
* Tells the RN CLI (>= 0.60) where to find the native iOS / Android crash
|
|
5
|
+
* modules that ship under ./native. With this in place, consumers no
|
|
6
|
+
* longer have to hand-edit Podfile or settings.gradle — `npx pod-install`
|
|
7
|
+
* (iOS) and a Gradle sync (Android) wire AllStakRNModule and
|
|
8
|
+
* AllStakCrashHandler into the host app automatically.
|
|
9
|
+
*
|
|
10
|
+
* iOS: the podspec lives at `native/ios/AllStakRN.podspec` (added in the
|
|
11
|
+
* same change). Android: the project's build.gradle and AndroidManifest.xml
|
|
12
|
+
* under `native/android/` follow the standard RN module layout the CLI
|
|
13
|
+
* expects.
|
|
14
|
+
*/
|
|
15
|
+
module.exports = {
|
|
16
|
+
dependency: {
|
|
17
|
+
platforms: {
|
|
18
|
+
ios: {
|
|
19
|
+
podspecPath: require('node:path').resolve(__dirname, 'native/ios/AllStakRN.podspec'),
|
|
20
|
+
},
|
|
21
|
+
android: {
|
|
22
|
+
sourceDir: './native/android',
|
|
23
|
+
packageImportPath: 'import io.allstak.rn.AllStakRNPackage;',
|
|
24
|
+
packageInstance: 'new AllStakRNPackage()',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|