react-native-inapp-inspector 2.3.19 → 2.3.21
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 +14 -14
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +67 -0
- package/dist/commonjs/analytics.js +1 -24
- package/dist/commonjs/bundle.js +1 -16
- package/dist/commonjs/capture.js +1 -35
- package/dist/commonjs/components/AnalyticsDetail.js +92 -623
- package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
- package/dist/commonjs/components/AnalyticsGraph.js +70 -370
- package/dist/commonjs/components/AnimatedEntrance.js +1 -11
- package/dist/commonjs/components/AppHeaderLogo.js +7 -134
- package/dist/commonjs/components/BrandCircleIcon.js +73 -118
- package/dist/commonjs/components/BrandSquareIcon.js +63 -108
- package/dist/commonjs/components/CodeSnippet.js +48 -623
- package/dist/commonjs/components/ConsoleLogCard.js +63 -537
- package/dist/commonjs/components/CopyButton.js +3 -89
- package/dist/commonjs/components/DiffViewer.js +19 -83
- package/dist/commonjs/components/DomainHeader.js +27 -127
- package/dist/commonjs/components/EmptyState.js +10 -87
- package/dist/commonjs/components/EndOfListFooter.js +7 -81
- package/dist/commonjs/components/ErrorBoundary.js +72 -566
- package/dist/commonjs/components/HeadersSection.js +31 -110
- package/dist/commonjs/components/HighlightText.js +17 -58
- package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/commonjs/components/Inspector/AboutModal.js +243 -0
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
- package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
- package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
- package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
- package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
- package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
- package/dist/commonjs/components/Inspector/DebuggingTab.js +74 -875
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
- package/dist/commonjs/components/Inspector/FabLauncher.js +42 -466
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
- package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +191 -1110
- package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
- package/dist/commonjs/components/Inspector/MainScreen.js +52 -335
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +97 -644
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +90 -605
- package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
- package/dist/commonjs/components/Inspector/NetworkDetail.js +89 -411
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
- package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +18 -434
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
- package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
- package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
- package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
- package/dist/commonjs/components/Inspector/SettingsPanel.js +427 -3807
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
- package/dist/commonjs/components/Inspector/TabBar.js +36 -334
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +37 -412
- package/dist/commonjs/components/JsonViewer.js +168 -381
- package/dist/commonjs/components/LogCard.js +57 -567
- package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
- package/dist/commonjs/components/MetaAccordion.js +69 -238
- package/dist/commonjs/components/MiniBarChart.js +3 -56
- package/dist/commonjs/components/MiniLineChart.js +3 -58
- package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
- package/dist/commonjs/components/NetworkIcons.js +521 -1022
- package/dist/commonjs/components/QRCodeView.js +5 -79
- package/dist/commonjs/components/SectionHeader.js +15 -37
- package/dist/commonjs/components/SegmentedTabs.js +7 -62
- package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Slider.js +15 -243
- package/dist/commonjs/components/SourcePageCard.js +30 -89
- package/dist/commonjs/components/Toast.js +5 -147
- package/dist/commonjs/components/TouchableScale.js +3 -24
- package/dist/commonjs/components/TreeNode.js +55 -130
- package/dist/commonjs/console.js +1 -16
- package/dist/commonjs/constants/index.js +1 -32
- package/dist/commonjs/constants/telemetryConfig.js +1 -6
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -4
- package/dist/commonjs/crash.js +1 -23
- package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
- package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
- package/dist/commonjs/customHooks/consoleLogger.js +6 -445
- package/dist/commonjs/customHooks/crashHandler.js +7 -656
- package/dist/commonjs/customHooks/logFilters.js +1 -23
- package/dist/commonjs/customHooks/networkLogger.js +2 -536
- package/dist/commonjs/customHooks/performanceTracker.js +63 -750
- package/dist/commonjs/customHooks/reduxLogger.js +2 -313
- package/dist/commonjs/customHooks/storageInspector.js +1 -435
- package/dist/commonjs/customHooks/useAccordion.js +1 -18
- package/dist/commonjs/decorators/index.js +1 -100
- package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
- package/dist/commonjs/helpers/index.d.ts +1 -0
- package/dist/commonjs/helpers/index.js +8 -921
- package/dist/commonjs/helpers/memoryManager.js +1 -99
- package/dist/commonjs/helpers/qrGenerator.js +1 -367
- package/dist/commonjs/helpers/remoteConfig.js +1 -165
- package/dist/commonjs/helpers/searchQueryParser.js +1 -62
- package/dist/commonjs/helpers/settingsStore.js +1 -144
- package/dist/commonjs/helpers/telemetry.js +1 -501
- package/dist/commonjs/helpers/toast.js +1 -20
- package/dist/commonjs/i18n/index.js +1 -90
- package/dist/commonjs/i18n/locales/en.json +1 -1140
- package/dist/commonjs/index.js +5 -2168
- package/dist/commonjs/metro.js +6 -468
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/native/NativeInspector.js +1 -415
- package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
- package/dist/commonjs/network.js +1 -13
- package/dist/commonjs/performance.js +1 -29
- package/dist/commonjs/redux.js +1 -20
- package/dist/commonjs/storage.js +1 -14
- package/dist/commonjs/styles/AppColors.js +1 -423
- package/dist/commonjs/styles/AppFonts.js +1 -17
- package/dist/commonjs/styles/common.js +1 -190
- package/dist/commonjs/styles/index.d.ts +6 -0
- package/dist/commonjs/styles/index.js +1 -1589
- package/dist/commonjs/types/enums.d.ts +0 -1
- package/dist/commonjs/types/enums.js +1 -152
- package/dist/commonjs/types/index.js +1 -18
- package/dist/commonjs/types/interfaces.d.ts +2 -2
- package/dist/commonjs/types/interfaces.js +1 -2
- package/dist/esm/analytics.js +1 -2
- package/dist/esm/bundle.js +1 -2
- package/dist/esm/capture.js +1 -32
- package/dist/esm/components/AnalyticsDetail.js +171 -664
- package/dist/esm/components/AnalyticsEventCard.js +77 -335
- package/dist/esm/components/AnalyticsGraph.js +95 -357
- package/dist/esm/components/AnimatedEntrance.js +1 -6
- package/dist/esm/components/AppHeaderLogo.js +7 -94
- package/dist/esm/components/BrandCircleIcon.js +114 -119
- package/dist/esm/components/BrandSquareIcon.js +73 -78
- package/dist/esm/components/CodeSnippet.js +58 -595
- package/dist/esm/components/ConsoleLogCard.js +91 -526
- package/dist/esm/components/CopyButton.js +3 -51
- package/dist/esm/components/DiffViewer.js +22 -48
- package/dist/esm/components/DomainHeader.js +43 -138
- package/dist/esm/components/EmptyState.js +17 -56
- package/dist/esm/components/EndOfListFooter.js +15 -83
- package/dist/esm/components/ErrorBoundary.js +125 -582
- package/dist/esm/components/HeadersSection.js +52 -93
- package/dist/esm/components/HighlightText.js +17 -53
- package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/esm/components/Inspector/AboutModal.js +243 -0
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
- package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
- package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
- package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
- package/dist/esm/components/Inspector/CrashDetail.js +236 -747
- package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
- package/dist/esm/components/Inspector/CrashTab.js +177 -711
- package/dist/esm/components/Inspector/DebuggingTab.js +164 -925
- package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
- package/dist/esm/components/Inspector/FabLauncher.js +68 -454
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
- package/dist/esm/components/Inspector/InspectorContext.js +1 -12
- package/dist/esm/components/Inspector/InspectorHeader.js +282 -1163
- package/dist/esm/components/Inspector/LogDetail.js +235 -1023
- package/dist/esm/components/Inspector/MainScreen.js +78 -323
- package/dist/esm/components/Inspector/MediaGalleryTab.js +143 -650
- package/dist/esm/components/Inspector/MediaPreviewModal.js +138 -613
- package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +138 -455
- package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
- package/dist/esm/components/Inspector/NetworkTab.js +125 -517
- package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
- package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
- package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
- package/dist/esm/components/Inspector/ReduxTab.js +144 -722
- package/dist/esm/components/Inspector/SettingsPanel.js +643 -3985
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Inspector/StorageTab.js +172 -866
- package/dist/esm/components/Inspector/TabBar.js +45 -305
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +80 -418
- package/dist/esm/components/JsonViewer.js +179 -354
- package/dist/esm/components/LogCard.js +93 -565
- package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
- package/dist/esm/components/MetaAccordion.js +136 -267
- package/dist/esm/components/MiniBarChart.js +3 -18
- package/dist/esm/components/MiniLineChart.js +3 -20
- package/dist/esm/components/NetworkIcons.d.ts +13 -0
- package/dist/esm/components/NetworkIcons.js +523 -838
- package/dist/esm/components/QRCodeView.js +8 -45
- package/dist/esm/components/SectionHeader.js +22 -39
- package/dist/esm/components/SegmentedTabs.js +8 -58
- package/dist/esm/components/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Slider.js +24 -213
- package/dist/esm/components/SourcePageCard.js +65 -86
- package/dist/esm/components/Toast.js +10 -117
- package/dist/esm/components/TouchableScale.js +3 -19
- package/dist/esm/components/TreeNode.js +58 -95
- package/dist/esm/console.js +1 -2
- package/dist/esm/constants/index.js +1 -28
- package/dist/esm/constants/telemetryConfig.js +1 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/crash.js +1 -2
- package/dist/esm/customHooks/analyticsLogger.js +1 -230
- package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
- package/dist/esm/customHooks/consoleLogger.js +6 -432
- package/dist/esm/customHooks/crashHandler.js +7 -630
- package/dist/esm/customHooks/logFilters.js +1 -20
- package/dist/esm/customHooks/networkLogger.js +2 -519
- package/dist/esm/customHooks/performanceTracker.js +63 -723
- package/dist/esm/customHooks/reduxLogger.js +2 -293
- package/dist/esm/customHooks/storageInspector.js +1 -418
- package/dist/esm/customHooks/useAccordion.js +1 -16
- package/dist/esm/decorators/index.js +1 -95
- package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +8 -861
- package/dist/esm/helpers/memoryManager.js +1 -91
- package/dist/esm/helpers/qrGenerator.js +1 -364
- package/dist/esm/helpers/remoteConfig.js +1 -160
- package/dist/esm/helpers/searchQueryParser.js +1 -59
- package/dist/esm/helpers/settingsStore.js +1 -134
- package/dist/esm/helpers/telemetry.js +1 -489
- package/dist/esm/helpers/toast.js +1 -15
- package/dist/esm/i18n/index.js +1 -78
- package/dist/esm/i18n/locales/en.json +1 -1140
- package/dist/esm/index.js +7 -1982
- package/dist/esm/metro.js +6 -459
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/native/NativeInspector.js +1 -382
- package/dist/esm/native/NativeNetworkInspector.js +1 -2
- package/dist/esm/network.js +1 -1
- package/dist/esm/performance.js +1 -2
- package/dist/esm/redux.js +1 -1
- package/dist/esm/storage.js +1 -1
- package/dist/esm/styles/AppColors.js +1 -417
- package/dist/esm/styles/AppFonts.js +1 -13
- package/dist/esm/styles/common.js +1 -186
- package/dist/esm/styles/index.d.ts +6 -0
- package/dist/esm/styles/index.js +1 -1551
- package/dist/esm/types/enums.d.ts +0 -1
- package/dist/esm/types/enums.js +1 -149
- package/dist/esm/types/index.js +1 -2
- package/dist/esm/types/interfaces.d.ts +2 -2
- package/dist/esm/types/interfaces.js +1 -1
- package/ios/NetworkInspectorModule.mm +60 -12
- package/package.json +5 -3
- package/src/native/NativeInspector.ts +18 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/commonjs/components/Inspector/FeedbackModal.js +0 -552
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/esm/components/Inspector/FeedbackModal.js +0 -515
- package/src/analytics.ts +0 -35
- package/src/bundle.ts +0 -25
- package/src/capture.ts +0 -109
- package/src/components/AnalyticsDetail.tsx +0 -870
- package/src/components/AnalyticsEventCard.tsx +0 -444
- package/src/components/AnalyticsGraph.tsx +0 -583
- package/src/components/AnimatedEntrance.tsx +0 -20
- package/src/components/AppHeaderLogo.tsx +0 -143
- package/src/components/BrandCircleIcon.tsx +0 -144
- package/src/components/BrandSquareIcon.tsx +0 -184
- package/src/components/CodeSnippet.tsx +0 -725
- package/src/components/ConsoleLogCard.tsx +0 -679
- package/src/components/CopyButton.tsx +0 -87
- package/src/components/DiffViewer.tsx +0 -82
- package/src/components/DomainHeader.tsx +0 -224
- package/src/components/EmptyState.tsx +0 -97
- package/src/components/EndOfListFooter.tsx +0 -100
- package/src/components/ErrorBoundary.tsx +0 -688
- package/src/components/HeadersSection.tsx +0 -172
- package/src/components/HighlightText.tsx +0 -100
- package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
- package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
- package/src/components/Inspector/BundleTab.tsx +0 -4768
- package/src/components/Inspector/ConsoleTab.tsx +0 -726
- package/src/components/Inspector/CrashDetail.tsx +0 -997
- package/src/components/Inspector/CrashFilterModal.tsx +0 -721
- package/src/components/Inspector/CrashTab.tsx +0 -933
- package/src/components/Inspector/DebuggingTab.tsx +0 -1103
- package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
- package/src/components/Inspector/FabLauncher.tsx +0 -590
- package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
- package/src/components/Inspector/FeedbackModal.tsx +0 -626
- package/src/components/Inspector/InspectorContext.tsx +0 -28
- package/src/components/Inspector/InspectorHeader.tsx +0 -1583
- package/src/components/Inspector/LogDetail.tsx +0 -1431
- package/src/components/Inspector/MainScreen.tsx +0 -460
- package/src/components/Inspector/MediaGalleryTab.tsx +0 -829
- package/src/components/Inspector/MediaPreviewModal.tsx +0 -783
- package/src/components/Inspector/NavigationTracker.tsx +0 -13
- package/src/components/Inspector/NetworkDetail.tsx +0 -778
- package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
- package/src/components/Inspector/NetworkTab.tsx +0 -820
- package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
- package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
- package/src/components/Inspector/PerformanceTab.tsx +0 -1967
- package/src/components/Inspector/ReduxDetail.tsx +0 -1651
- package/src/components/Inspector/ReduxTab.tsx +0 -987
- package/src/components/Inspector/SettingsPanel.tsx +0 -5136
- package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Inspector/StorageTab.tsx +0 -1159
- package/src/components/Inspector/TabBar.tsx +0 -431
- package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
- package/src/components/JsonViewer.tsx +0 -549
- package/src/components/LogCard.tsx +0 -694
- package/src/components/LogSyntaxHighlighter.tsx +0 -178
- package/src/components/MetaAccordion.tsx +0 -355
- package/src/components/MiniBarChart.tsx +0 -42
- package/src/components/MiniLineChart.tsx +0 -33
- package/src/components/NetworkIcons.tsx +0 -2655
- package/src/components/QRCodeView.tsx +0 -75
- package/src/components/SectionHeader.tsx +0 -101
- package/src/components/SegmentedTabs.tsx +0 -84
- package/src/components/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Slider.tsx +0 -300
- package/src/components/SourcePageCard.tsx +0 -150
- package/src/components/Toast.tsx +0 -131
- package/src/components/TouchableScale.tsx +0 -61
- package/src/components/TreeNode.tsx +0 -171
- package/src/console.ts +0 -24
- package/src/constants/index.ts +0 -41
- package/src/constants/telemetryConfig.ts +0 -4
- package/src/constants/version.ts +0 -3
- package/src/crash.ts +0 -32
- package/src/customHooks/analyticsLogger.ts +0 -336
- package/src/customHooks/bundleAnalyzer.ts +0 -1256
- package/src/customHooks/consoleLogger.ts +0 -530
- package/src/customHooks/crashHandler.ts +0 -944
- package/src/customHooks/logFilters.ts +0 -32
- package/src/customHooks/networkLogger.ts +0 -624
- package/src/customHooks/performanceTracker.ts +0 -1014
- package/src/customHooks/reduxLogger.ts +0 -406
- package/src/customHooks/storageInspector.ts +0 -513
- package/src/customHooks/useAccordion.tsx +0 -27
- package/src/decorators/index.ts +0 -184
- package/src/helpers/gaAnalyticsRegistry.ts +0 -204
- package/src/helpers/index.ts +0 -1092
- package/src/helpers/memoryManager.ts +0 -138
- package/src/helpers/qrGenerator.ts +0 -430
- package/src/helpers/remoteConfig.ts +0 -212
- package/src/helpers/searchQueryParser.ts +0 -84
- package/src/helpers/settingsStore.ts +0 -171
- package/src/helpers/telemetry.ts +0 -568
- package/src/helpers/toast.ts +0 -17
- package/src/i18n/index.ts +0 -104
- package/src/i18n/locales/en.json +0 -1141
- package/src/index.tsx +0 -2650
- package/src/metro.ts +0 -598
- package/src/network.ts +0 -22
- package/src/performance.ts +0 -38
- package/src/redux.ts +0 -23
- package/src/storage.ts +0 -18
- package/src/styles/AppColors.ts +0 -455
- package/src/styles/AppFonts.ts +0 -26
- package/src/styles/common.ts +0 -209
- package/src/styles/index.ts +0 -1606
- package/src/types/enums.ts +0 -210
- package/src/types/index.ts +0 -34
- package/src/types/interfaces.ts +0 -535
|
@@ -1,550 +1,104 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.DeviceInfoTab = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
41
|
-
const react_native_1 = require("react-native");
|
|
42
|
-
const TouchableScale_1 = __importDefault(require("../TouchableScale"));
|
|
43
|
-
const AppColors_1 = require("../../styles/AppColors");
|
|
44
|
-
const AppFonts_1 = require("../../styles/AppFonts");
|
|
45
|
-
const i18n_1 = require("../../i18n");
|
|
46
|
-
const NetworkIcons_1 = require("../NetworkIcons");
|
|
47
|
-
const NativeInspector_1 = require("../../native/NativeInspector");
|
|
48
|
-
const helpers_1 = require("../../helpers");
|
|
49
|
-
const toast_1 = require("../../helpers/toast");
|
|
50
|
-
const constants_1 = require("../../constants");
|
|
51
|
-
const InfoRow = react_1.default.memo(({ label, value, copyable = true, badge, subtext, isLast = false }) => {
|
|
52
|
-
const displayValue = value === null || value === undefined
|
|
53
|
-
? '—'
|
|
54
|
-
: typeof value === 'boolean'
|
|
55
|
-
? value
|
|
56
|
-
? 'Yes'
|
|
57
|
-
: 'No'
|
|
58
|
-
: String(value);
|
|
59
|
-
return (<react_native_1.View style={[
|
|
60
|
-
styles.infoRow,
|
|
61
|
-
isLast && { borderBottomWidth: 0 },
|
|
62
|
-
]}>
|
|
63
|
-
<react_native_1.View style={{ flex: 1, paddingRight: 8, minWidth: 0 }}>
|
|
64
|
-
<react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', flexWrap: 'wrap', gap: 6 }}>
|
|
65
|
-
<react_native_1.Text style={styles.infoLabel} numberOfLines={2}>{label}</react_native_1.Text>
|
|
66
|
-
{badge && (<react_native_1.View style={[
|
|
67
|
-
styles.infoBadge,
|
|
68
|
-
{ backgroundColor: badge.bg, borderColor: `${badge.color}33` },
|
|
69
|
-
]}>
|
|
70
|
-
<react_native_1.Text style={[styles.infoBadgeText, { color: badge.color }]}>
|
|
71
|
-
{badge.text}
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(l,a,u,r){r===void 0&&(r=u);var n=Object.getOwnPropertyDescriptor(a,u);(!n||("get"in n?!a.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return a[u]}}),Object.defineProperty(l,r,n)}):(function(l,a,u,r){r===void 0&&(r=u),l[r]=a[u]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(l,a){Object.defineProperty(l,"default",{enumerable:!0,value:a})}):function(l,a){l.default=a}),__importStar=this&&this.__importStar||(function(){var l=function(a){return l=Object.getOwnPropertyNames||function(u){var r=[];for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&(r[r.length]=n);return r},l(a)};return function(a){if(a&&a.__esModule)return a;var u={};if(a!=null)for(var r=l(a),n=0;n<r.length;n++)r[n]!=="default"&&__createBinding(u,a,r[n]);return __setModuleDefault(u,a),u}})(),__importDefault=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DeviceInfoTab=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),TouchableScale_1=__importDefault(require("../TouchableScale")),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),i18n_1=require("../../i18n"),NetworkIcons_1=require("../NetworkIcons"),NativeInspector_1=require("../../native/NativeInspector"),helpers_1=require("../../helpers"),toast_1=require("../../helpers/toast"),constants_1=require("../../constants"),InfoRow=react_1.default.memo(({label:l,value:a,copyable:u=!0,badge:r,subtext:n,isLast:U=!1})=>{const P=a==null?"\u2014":typeof a=="boolean"?a?"Yes":"No":String(a);return<react_native_1.View style={[styles.infoRow,U&&{borderBottomWidth:0}]}>
|
|
2
|
+
<react_native_1.View style={{flex:1,paddingRight:8,minWidth:0}}>
|
|
3
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:6}}>
|
|
4
|
+
<react_native_1.Text style={styles.infoLabel}numberOfLines={2}>{l}</react_native_1.Text>
|
|
5
|
+
{r&&<react_native_1.View style={[styles.infoBadge,{backgroundColor:r.bg,borderColor:`${r.color}33`}]}>
|
|
6
|
+
<react_native_1.Text style={[styles.infoBadgeText,{color:r.color}]}>
|
|
7
|
+
{r.text}
|
|
72
8
|
</react_native_1.Text>
|
|
73
|
-
</react_native_1.View>
|
|
9
|
+
</react_native_1.View>}
|
|
74
10
|
</react_native_1.View>
|
|
75
|
-
{
|
|
11
|
+
{n&&<react_native_1.Text style={styles.infoSubtext}numberOfLines={2}>{n}</react_native_1.Text>}
|
|
76
12
|
</react_native_1.View>
|
|
77
|
-
<react_native_1.View style={{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
gap: 6,
|
|
81
|
-
flexShrink: 0,
|
|
82
|
-
maxWidth: '58%',
|
|
83
|
-
justifyContent: 'flex-end',
|
|
84
|
-
}}>
|
|
85
|
-
<react_native_1.Text style={[
|
|
86
|
-
styles.infoValue,
|
|
87
|
-
typeof value === 'boolean' && {
|
|
88
|
-
color: value ? AppColors_1.AppColors.emerald500 : AppColors_1.AppColors.errorColor,
|
|
89
|
-
},
|
|
90
|
-
]} numberOfLines={3} selectable>
|
|
91
|
-
{displayValue}
|
|
13
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0,maxWidth:"58%",justifyContent:"flex-end"}}>
|
|
14
|
+
<react_native_1.Text style={[styles.infoValue,typeof a=="boolean"&&{color:a?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.errorColor}]}numberOfLines={3}selectable>
|
|
15
|
+
{P}
|
|
92
16
|
</react_native_1.Text>
|
|
93
|
-
{
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}} style={styles.rowCopyBtn}>
|
|
97
|
-
<NetworkIcons_1.CopyIcon size={11} color={AppColors_1.AppColors.grayTextWeak}/>
|
|
98
|
-
</TouchableScale_1.default>)}
|
|
17
|
+
{u&&a!==null&&a!==void 0&&<TouchableScale_1.default hitSlop={8}onPress={()=>{(0,helpers_1.copyToClipboard)(P,l),(0,toast_1.showToast)(`Copied ${l}`)}}style={styles.rowCopyBtn}>
|
|
18
|
+
<NetworkIcons_1.CopyIcon size={11}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
19
|
+
</TouchableScale_1.default>}
|
|
99
20
|
</react_native_1.View>
|
|
100
|
-
</react_native_1.View>);
|
|
101
|
-
});
|
|
102
|
-
exports.DeviceInfoTab = react_1.default.memo(() => {
|
|
103
|
-
const { t } = (0, i18n_1.useTranslation)();
|
|
104
|
-
const [activeSubTab, setActiveSubTab] = (0, react_1.useState)('overview');
|
|
105
|
-
const [search, setSearch] = (0, react_1.useState)('');
|
|
106
|
-
const [isLoading, setIsLoading] = (0, react_1.useState)(true);
|
|
107
|
-
const [deviceMetrics, setDeviceMetrics] = (0, react_1.useState)(null);
|
|
108
|
-
const [systemMetrics, setSystemMetrics] = (0, react_1.useState)(null);
|
|
109
|
-
const [ipAddress, setIpAddress] = (0, react_1.useState)('Detecting...');
|
|
110
|
-
const [deviceUptime, setDeviceUptime] = (0, react_1.useState)('0s');
|
|
111
|
-
const startTimeRef = react_1.default.useRef(Date.now());
|
|
112
|
-
const fetchMetrics = (0, react_1.useCallback)(async () => {
|
|
113
|
-
try {
|
|
114
|
-
const [devMetrics, sysMetrics] = await Promise.all([
|
|
115
|
-
(0, NativeInspector_1.getNativeDeviceMetrics)(),
|
|
116
|
-
(0, NativeInspector_1.getNativeSystemMetrics)(),
|
|
117
|
-
]);
|
|
118
|
-
setDeviceMetrics(devMetrics);
|
|
119
|
-
setSystemMetrics(sysMetrics);
|
|
120
|
-
}
|
|
121
|
-
catch {
|
|
122
|
-
}
|
|
123
|
-
finally {
|
|
124
|
-
setIsLoading(false);
|
|
125
|
-
}
|
|
126
|
-
}, []);
|
|
127
|
-
(0, react_1.useEffect)(() => {
|
|
128
|
-
fetchMetrics();
|
|
129
|
-
const interval = setInterval(fetchMetrics, 3000);
|
|
130
|
-
return () => clearInterval(interval);
|
|
131
|
-
}, [fetchMetrics]);
|
|
132
|
-
(0, react_1.useEffect)(() => {
|
|
133
|
-
let isMounted = true;
|
|
134
|
-
const probeIp = async () => {
|
|
135
|
-
try {
|
|
136
|
-
const serverHost = react_native_1.NativeModules?.PlatformConstants?.serverHost ||
|
|
137
|
-
react_native_1.NativeModules?.AndroidConstants?.serverHost ||
|
|
138
|
-
react_native_1.NativeModules?.DevSettings?.serverHost;
|
|
139
|
-
if (serverHost && typeof serverHost === 'string') {
|
|
140
|
-
const cleanHost = serverHost.split(':')[0].replace(/https?:\/\//, '');
|
|
141
|
-
if (cleanHost && cleanHost !== 'localhost' && cleanHost !== '127.0.0.1') {
|
|
142
|
-
if (isMounted)
|
|
143
|
-
setIpAddress(cleanHost);
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
catch { }
|
|
149
|
-
try {
|
|
150
|
-
const controller = new AbortController();
|
|
151
|
-
const timer = setTimeout(() => controller.abort(), 1200);
|
|
152
|
-
const res = await fetch('https://api.ipify.org?format=json', {
|
|
153
|
-
signal: controller.signal,
|
|
154
|
-
});
|
|
155
|
-
clearTimeout(timer);
|
|
156
|
-
if (res.ok) {
|
|
157
|
-
const data = await res.json();
|
|
158
|
-
if (data && data.ip && isMounted) {
|
|
159
|
-
setIpAddress(data.ip);
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
catch { }
|
|
165
|
-
if (isMounted) {
|
|
166
|
-
setIpAddress(react_native_1.Platform.OS === 'android' ? '10.0.2.15 (Local)' : '127.0.0.1 (Local)');
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
probeIp();
|
|
170
|
-
return () => {
|
|
171
|
-
isMounted = false;
|
|
172
|
-
};
|
|
173
|
-
}, []);
|
|
174
|
-
(0, react_1.useEffect)(() => {
|
|
175
|
-
const updateUptime = () => {
|
|
176
|
-
const diffSec = Math.floor((Date.now() - startTimeRef.current) / 1000);
|
|
177
|
-
const hours = Math.floor(diffSec / 3600);
|
|
178
|
-
const mins = Math.floor((diffSec % 3600) / 60);
|
|
179
|
-
const secs = diffSec % 60;
|
|
180
|
-
if (hours > 0) {
|
|
181
|
-
setDeviceUptime(`${hours}h ${mins}m ${secs}s`);
|
|
182
|
-
}
|
|
183
|
-
else if (mins > 0) {
|
|
184
|
-
setDeviceUptime(`${mins}m ${secs}s`);
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
setDeviceUptime(`${secs}s`);
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
const timer = setInterval(updateUptime, 1000);
|
|
191
|
-
updateUptime();
|
|
192
|
-
return () => clearInterval(timer);
|
|
193
|
-
}, []);
|
|
194
|
-
const windowDims = react_native_1.Dimensions.get('window');
|
|
195
|
-
const screenDims = react_native_1.Dimensions.get('screen');
|
|
196
|
-
const pixelRatio = react_native_1.PixelRatio.get();
|
|
197
|
-
const fontScale = react_native_1.PixelRatio.getFontScale();
|
|
198
|
-
const isTablet = windowDims.width >= 600 || windowDims.height >= 1000;
|
|
199
|
-
const isLandscape = windowDims.width > windowDims.height;
|
|
200
|
-
const statusBarHeight = react_native_1.Platform.OS === 'android'
|
|
201
|
-
? react_native_1.StatusBar.currentHeight || 24
|
|
202
|
-
: (windowDims.height >= 812 ? 44 : 20);
|
|
203
|
-
const pseudoUDID = (0, react_1.useMemo)(() => {
|
|
204
|
-
const raw = `${react_native_1.Platform.OS}-${react_native_1.Platform.Version}-${screenDims.width}x${screenDims.height}-${pixelRatio}-${react_native_1.Platform.constants?.Brand || 'generic'}`;
|
|
205
|
-
let hash = 0;
|
|
206
|
-
for (let i = 0; i < raw.length; i++) {
|
|
207
|
-
hash = (hash << 5) - hash + raw.charCodeAt(i);
|
|
208
|
-
hash |= 0;
|
|
209
|
-
}
|
|
210
|
-
const hex = Math.abs(hash).toString(16).padStart(8, '0');
|
|
211
|
-
return `UDID-${react_native_1.Platform.OS.toUpperCase()}-${hex.slice(0, 4)}-${hex.slice(4, 8)}-${Date.now().toString(16).slice(-4)}`.toUpperCase();
|
|
212
|
-
}, [screenDims.width, screenDims.height, pixelRatio]);
|
|
213
|
-
const isHermes = Boolean(global?.HermesInternal);
|
|
214
|
-
const isTurboModule = Boolean(globalThis?.__turboModuleProxy);
|
|
215
|
-
const reactNativeVersion = (0, react_1.useMemo)(() => {
|
|
216
|
-
const v = react_native_1.Platform.constants?.reactNativeVersion;
|
|
217
|
-
if (v) {
|
|
218
|
-
return `${v.major}.${v.minor}.${v.patch}${v.prerelease != null ? `-${v.prerelease}` : ''}`;
|
|
219
|
-
}
|
|
220
|
-
return '0.74+';
|
|
221
|
-
}, []);
|
|
222
|
-
const totalRamMb = deviceMetrics?.totalRAM
|
|
223
|
-
? Math.round(deviceMetrics.totalRAM / (1024 * 1024))
|
|
224
|
-
: systemMetrics?.totalPhysicalRamMb || 4096;
|
|
225
|
-
const freeRamMb = deviceMetrics?.freeRAM
|
|
226
|
-
? Math.round(deviceMetrics.freeRAM / (1024 * 1024))
|
|
227
|
-
: Math.max(0, totalRamMb - (systemMetrics?.residentRamMb || 1200));
|
|
228
|
-
const usedRamMb = Math.max(0, totalRamMb - freeRamMb);
|
|
229
|
-
const ramUsagePct = totalRamMb > 0 ? Math.round((usedRamMb / totalRamMb) * 100) : 45;
|
|
230
|
-
const totalStorageGb = deviceMetrics?.totalStorage
|
|
231
|
-
? (deviceMetrics.totalStorage / (1024 * 1024 * 1024)).toFixed(1)
|
|
232
|
-
: '128.0';
|
|
233
|
-
const freeStorageGb = deviceMetrics?.freeStorage
|
|
234
|
-
? (deviceMetrics.freeStorage / (1024 * 1024 * 1024)).toFixed(1)
|
|
235
|
-
: '64.2';
|
|
236
|
-
const subTabs = (0, react_1.useMemo)(() => [
|
|
237
|
-
{
|
|
238
|
-
key: 'overview',
|
|
239
|
-
label: 'Overview',
|
|
240
|
-
icon: (c) => <NetworkIcons_1.LayersIcon size={12} color={c}/>,
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
key: 'hardware',
|
|
244
|
-
label: 'Hardware',
|
|
245
|
-
icon: (c) => <NetworkIcons_1.CpuIcon size={12} color={c}/>,
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
key: 'network',
|
|
249
|
-
label: 'Network & IP',
|
|
250
|
-
icon: (c) => <NetworkIcons_1.WifiIcon size={12} color={c}/>,
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
key: 'display',
|
|
254
|
-
label: 'Display',
|
|
255
|
-
icon: (c) => <NetworkIcons_1.ScreenIcon size={12} color={c}/>,
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
key: 'runtime',
|
|
259
|
-
label: 'Runtime & App',
|
|
260
|
-
icon: (c) => <NetworkIcons_1.BoltIcon size={12} color={c}/>,
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
key: 'security',
|
|
264
|
-
label: 'Security & IDs',
|
|
265
|
-
icon: (c) => <NetworkIcons_1.KeyIcon size={12} color={c}/>,
|
|
266
|
-
},
|
|
267
|
-
], []);
|
|
268
|
-
const fullDeviceData = (0, react_1.useMemo)(() => ({
|
|
269
|
-
identifiers: {
|
|
270
|
-
pseudoUDID,
|
|
271
|
-
bundleId: deviceMetrics?.appBundleId || deviceMetrics?.appPackageName || 'com.app.inspector',
|
|
272
|
-
},
|
|
273
|
-
hardware: {
|
|
274
|
-
model: deviceMetrics?.deviceModel || react_native_1.Platform.constants?.Model || 'Unknown Device',
|
|
275
|
-
brand: deviceMetrics?.deviceBrand || react_native_1.Platform.constants?.Brand || (react_native_1.Platform.OS === 'ios' ? 'Apple' : 'Android'),
|
|
276
|
-
osVersion: `${react_native_1.Platform.OS} ${react_native_1.Platform.Version}`,
|
|
277
|
-
apiLevel: deviceMetrics?.apiLevel || react_native_1.Platform.constants?.Version || null,
|
|
278
|
-
cpuAbi: deviceMetrics?.cpuAbi || react_native_1.Platform.constants?.ServerHost || 'arm64-v8a',
|
|
279
|
-
totalRamMb,
|
|
280
|
-
freeRamMb,
|
|
281
|
-
usedRamMb,
|
|
282
|
-
totalStorageGb: `${totalStorageGb} GB`,
|
|
283
|
-
freeStorageGb: `${freeStorageGb} GB`,
|
|
284
|
-
batteryPercent: deviceMetrics?.batteryPercent ?? 100,
|
|
285
|
-
isCharging: deviceMetrics?.isCharging ?? false,
|
|
286
|
-
},
|
|
287
|
-
network: {
|
|
288
|
-
ipAddress,
|
|
289
|
-
isWifi: true,
|
|
290
|
-
reachability: 'Online',
|
|
291
|
-
},
|
|
292
|
-
display: {
|
|
293
|
-
windowWidth: windowDims.width,
|
|
294
|
-
windowHeight: windowDims.height,
|
|
295
|
-
screenWidth: screenDims.width,
|
|
296
|
-
screenHeight: screenDims.height,
|
|
297
|
-
pixelRatio,
|
|
298
|
-
fontScale,
|
|
299
|
-
statusBarHeight,
|
|
300
|
-
isTablet,
|
|
301
|
-
orientation: isLandscape ? 'Landscape' : 'Portrait',
|
|
302
|
-
},
|
|
303
|
-
runtime: {
|
|
304
|
-
appName: (0, helpers_1.getAppName)(),
|
|
305
|
-
appVersion: deviceMetrics?.appVersion || '1.0.0',
|
|
306
|
-
appBuild: deviceMetrics?.appBuild || '1',
|
|
307
|
-
reactNativeVersion,
|
|
308
|
-
inspectorVersion: constants_1.LIB_VERSION,
|
|
309
|
-
isHermes,
|
|
310
|
-
isTurboModule,
|
|
311
|
-
isDev: __DEV__,
|
|
312
|
-
jsEngine: isHermes ? 'Hermes' : 'JSC',
|
|
313
|
-
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
314
|
-
locale: Intl.DateTimeFormat().resolvedOptions().locale,
|
|
315
|
-
sessionUptime: deviceUptime,
|
|
316
|
-
},
|
|
317
|
-
}), [
|
|
318
|
-
pseudoUDID,
|
|
319
|
-
deviceMetrics,
|
|
320
|
-
totalRamMb,
|
|
321
|
-
freeRamMb,
|
|
322
|
-
usedRamMb,
|
|
323
|
-
totalStorageGb,
|
|
324
|
-
freeStorageGb,
|
|
325
|
-
ipAddress,
|
|
326
|
-
windowDims,
|
|
327
|
-
screenDims,
|
|
328
|
-
pixelRatio,
|
|
329
|
-
fontScale,
|
|
330
|
-
statusBarHeight,
|
|
331
|
-
isTablet,
|
|
332
|
-
isLandscape,
|
|
333
|
-
reactNativeVersion,
|
|
334
|
-
isHermes,
|
|
335
|
-
isTurboModule,
|
|
336
|
-
deviceUptime,
|
|
337
|
-
]);
|
|
338
|
-
const handleExportJson = () => {
|
|
339
|
-
(0, helpers_1.copyToClipboard)(JSON.stringify(fullDeviceData, null, 2), 'Device Full Report');
|
|
340
|
-
(0, toast_1.showToast)('Copied Full Device JSON Report!');
|
|
341
|
-
};
|
|
342
|
-
const handleExportMarkdown = () => {
|
|
343
|
-
const md = `# Device Information Report
|
|
21
|
+
</react_native_1.View>});exports.DeviceInfoTab=react_1.default.memo(()=>{const{t:l}=(0,i18n_1.useTranslation)(),[a,u]=(0,react_1.useState)("overview"),[r,n]=(0,react_1.useState)(""),[U,P]=(0,react_1.useState)(!0),[i,J]=(0,react_1.useState)(null),[G,j]=(0,react_1.useState)(null),[f,R]=(0,react_1.useState)("Detecting..."),[S,E]=(0,react_1.useState)("0s"),q=react_1.default.useRef(Date.now()),F=(0,react_1.useCallback)(async()=>{try{const[o,c]=await Promise.all([(0,NativeInspector_1.getNativeDeviceMetrics)(),(0,NativeInspector_1.getNativeSystemMetrics)()]);J(o),j(c)}catch{}finally{P(!1)}},[]);(0,react_1.useEffect)(()=>{F();const o=setInterval(F,3e3);return()=>clearInterval(o)},[F]),(0,react_1.useEffect)(()=>{let o=!0;return(async()=>{try{const d=react_native_1.NativeModules?.PlatformConstants?.serverHost||react_native_1.NativeModules?.AndroidConstants?.serverHost||react_native_1.NativeModules?.DevSettings?.serverHost;if(d&&typeof d=="string"){const m=d.split(":")[0].replace(/https?:\/\//,"");if(m&&m!=="localhost"&&m!=="127.0.0.1"){o&&R(m);return}}}catch{}try{const d=new AbortController,m=setTimeout(()=>d.abort(),1200),M=await fetch("https://api.ipify.org?format=json",{signal:d.signal});if(clearTimeout(m),M.ok){const x=await M.json();if(x&&x.ip&&o){R(x.ip);return}}}catch{}o&&R(react_native_1.Platform.OS==="android"?"10.0.2.15 (Local)":"127.0.0.1 (Local)")})(),()=>{o=!1}},[]),(0,react_1.useEffect)(()=>{const o=()=>{const d=Math.floor((Date.now()-q.current)/1e3),m=Math.floor(d/3600),M=Math.floor(d%3600/60),x=d%60;m>0?E(`${m}h ${M}m ${x}s`):M>0?E(`${M}m ${x}s`):E(`${x}s`)},c=setInterval(o,1e3);return o(),()=>clearInterval(c)},[]);const h=react_native_1.Dimensions.get("window"),b=react_native_1.Dimensions.get("screen"),s=react_native_1.PixelRatio.get(),I=react_native_1.PixelRatio.getFontScale(),_=h.width>=600||h.height>=1e3,$=h.width>h.height,B=react_native_1.Platform.OS==="android"?react_native_1.StatusBar.currentHeight||24:h.height>=812?44:20,y=(0,react_1.useMemo)(()=>{const o=`${react_native_1.Platform.OS}-${react_native_1.Platform.Version}-${b.width}x${b.height}-${s}-${react_native_1.Platform.constants?.Brand||"generic"}`;let c=0;for(let m=0;m<o.length;m++)c=(c<<5)-c+o.charCodeAt(m),c|=0;const d=Math.abs(c).toString(16).padStart(8,"0");return`UDID-${react_native_1.Platform.OS.toUpperCase()}-${d.slice(0,4)}-${d.slice(4,8)}-${Date.now().toString(16).slice(-4)}`.toUpperCase()},[b.width,b.height,s]),g=!!global?.HermesInternal,w=!!globalThis?.__turboModuleProxy,V=(0,react_1.useMemo)(()=>{const o=react_native_1.Platform.constants?.reactNativeVersion;return o?`${o.major}.${o.minor}.${o.patch}${o.prerelease!=null?`-${o.prerelease}`:""}`:"0.74+"},[]),p=i?.totalRAM?Math.round(i.totalRAM/(1024*1024)):G?.totalPhysicalRamMb||4096,C=i?.freeRAM?Math.round(i.freeRAM/(1024*1024)):Math.max(0,p-(G?.residentRamMb||1200)),T=Math.max(0,p-C),D=p>0?Math.round(T/p*100):45,A=i?.totalStorage?(i.totalStorage/(1024*1024*1024)).toFixed(1):"128.0",v=i?.freeStorage?(i.freeStorage/(1024*1024*1024)).toFixed(1):"64.2",Y=(0,react_1.useMemo)(()=>[{key:"overview",label:"Overview",icon:o=><NetworkIcons_1.LayersIcon size={12}color={o}/>},{key:"hardware",label:"Hardware",icon:o=><NetworkIcons_1.CpuIcon size={12}color={o}/>},{key:"network",label:"Network & IP",icon:o=><NetworkIcons_1.WifiIcon size={12}color={o}/>},{key:"display",label:"Display",icon:o=><NetworkIcons_1.ScreenIcon size={12}color={o}/>},{key:"runtime",label:"Runtime & App",icon:o=><NetworkIcons_1.BoltIcon size={12}color={o}/>},{key:"security",label:"Security & IDs",icon:o=><NetworkIcons_1.KeyIcon size={12}color={o}/>}],[]),t=(0,react_1.useMemo)(()=>({identifiers:{pseudoUDID:y,bundleId:i?.appBundleId||i?.appPackageName||"com.app.inspector"},hardware:{model:i?.deviceModel||react_native_1.Platform.constants?.Model||"Unknown Device",brand:i?.deviceBrand||react_native_1.Platform.constants?.Brand||(react_native_1.Platform.OS==="ios"?"Apple":"Android"),osVersion:`${react_native_1.Platform.OS} ${react_native_1.Platform.Version}`,apiLevel:i?.apiLevel||react_native_1.Platform.constants?.Version||null,cpuAbi:i?.cpuAbi||react_native_1.Platform.constants?.ServerHost||"arm64-v8a",totalRamMb:p,freeRamMb:C,usedRamMb:T,totalStorageGb:`${A} GB`,freeStorageGb:`${v} GB`,batteryPercent:i?.batteryPercent??100,isCharging:i?.isCharging??!1},network:{ipAddress:f,isWifi:!0,reachability:"Online"},display:{windowWidth:h.width,windowHeight:h.height,screenWidth:b.width,screenHeight:b.height,pixelRatio:s,fontScale:I,statusBarHeight:B,isTablet:_,orientation:$?"Landscape":"Portrait"},runtime:{appName:(0,helpers_1.getAppName)(),appVersion:i?.appVersion||"1.0.0",appBuild:i?.appBuild||"1",reactNativeVersion:V,inspectorVersion:constants_1.LIB_VERSION,isHermes:g,isTurboModule:w,isDev:__DEV__,jsEngine:g?"Hermes":"JSC",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,locale:Intl.DateTimeFormat().resolvedOptions().locale,sessionUptime:S}}),[y,i,p,C,T,A,v,f,h,b,s,I,B,_,$,V,g,w,S]),K=()=>{(0,helpers_1.copyToClipboard)(JSON.stringify(t,null,2),"Device Full Report"),(0,toast_1.showToast)("Copied Full Device JSON Report!")},X=()=>{const o=`# Device Information Report
|
|
344
22
|
**Generated by React Native In-App Inspector v${constants_1.LIB_VERSION}**
|
|
345
23
|
|
|
346
|
-
##
|
|
347
|
-
- **Device Model:** ${
|
|
348
|
-
- **Brand / Manufacturer:** ${
|
|
349
|
-
- **OS Version:** ${
|
|
350
|
-
- **CPU Architecture:** ${
|
|
351
|
-
- **Total RAM:** ${
|
|
352
|
-
- **Total Storage:** ${
|
|
353
|
-
- **Battery:** ${
|
|
354
|
-
|
|
355
|
-
##
|
|
356
|
-
- **IP Address:** ${
|
|
24
|
+
## \u{1F4F1} Hardware & System
|
|
25
|
+
- **Device Model:** ${t.hardware.model}
|
|
26
|
+
- **Brand / Manufacturer:** ${t.hardware.brand}
|
|
27
|
+
- **OS Version:** ${t.hardware.osVersion}
|
|
28
|
+
- **CPU Architecture:** ${t.hardware.cpuAbi}
|
|
29
|
+
- **Total RAM:** ${p} MB (Free: ${C} MB)
|
|
30
|
+
- **Total Storage:** ${A} GB (Free: ${v} GB)
|
|
31
|
+
- **Battery:** ${t.hardware.batteryPercent}% (${t.hardware.isCharging?"Charging":"Unplugged"})
|
|
32
|
+
|
|
33
|
+
## \u{1F310} Network & Connectivity
|
|
34
|
+
- **IP Address:** ${f}
|
|
357
35
|
- **Status:** Online
|
|
358
36
|
|
|
359
|
-
##
|
|
360
|
-
- **Resolution:** ${
|
|
361
|
-
- **Form Factor:** ${
|
|
362
|
-
- **Status Bar Height:** ${
|
|
363
|
-
|
|
364
|
-
##
|
|
365
|
-
- **App Name:** ${
|
|
366
|
-
- **App Version:** ${
|
|
367
|
-
- **React Native:** v${
|
|
368
|
-
- **JS Engine:** ${
|
|
369
|
-
- **Environment:** ${__DEV__
|
|
370
|
-
- **Timezone:** ${
|
|
371
|
-
- **Session Uptime:** ${
|
|
372
|
-
|
|
373
|
-
##
|
|
374
|
-
- **Pseudo-UDID:** \`${
|
|
375
|
-
- **Bundle ID:** \`${
|
|
376
|
-
`;
|
|
377
|
-
(0, helpers_1.copyToClipboard)(md, 'Device Markdown Report');
|
|
378
|
-
(0, toast_1.showToast)('Copied Markdown Report to Clipboard!');
|
|
379
|
-
};
|
|
380
|
-
const isMatch = (0, react_1.useCallback)((label, value, subtext) => {
|
|
381
|
-
if (!search.trim())
|
|
382
|
-
return true;
|
|
383
|
-
const query = search.toLowerCase().trim();
|
|
384
|
-
const strVal = value != null
|
|
385
|
-
? typeof value === 'object'
|
|
386
|
-
? JSON.stringify(value)
|
|
387
|
-
: String(value)
|
|
388
|
-
: '';
|
|
389
|
-
const strSub = subtext != null ? String(subtext) : '';
|
|
390
|
-
return (label.toLowerCase().includes(query) ||
|
|
391
|
-
strVal.toLowerCase().includes(query) ||
|
|
392
|
-
strSub.toLowerCase().includes(query));
|
|
393
|
-
}, [search]);
|
|
394
|
-
const hasHeroMatch = (0, react_1.useMemo)(() => {
|
|
395
|
-
if (!search.trim())
|
|
396
|
-
return true;
|
|
397
|
-
return (isMatch('Model', deviceMetrics?.deviceModel || react_native_1.Platform.constants?.Model) ||
|
|
398
|
-
isMatch('OS', react_native_1.Platform.OS) ||
|
|
399
|
-
isMatch('IP Address', ipAddress) ||
|
|
400
|
-
isMatch('RAM', `${usedRamMb}/${totalRamMb}`) ||
|
|
401
|
-
isMatch('Uptime', deviceUptime));
|
|
402
|
-
}, [search, isMatch, deviceMetrics, ipAddress, usedRamMb, totalRamMb, deviceUptime]);
|
|
403
|
-
const hasOverviewMatch = (0, react_1.useMemo)(() => {
|
|
404
|
-
if (!search.trim())
|
|
405
|
-
return true;
|
|
406
|
-
return (isMatch('Device Model', fullDeviceData.hardware.model) ||
|
|
407
|
-
isMatch('Manufacturer', fullDeviceData.hardware.brand) ||
|
|
408
|
-
isMatch('Operating System', fullDeviceData.hardware.osVersion) ||
|
|
409
|
-
isMatch('IP Address', ipAddress) ||
|
|
410
|
-
isMatch('RAM Memory', `${usedRamMb} MB / ${totalRamMb} MB (${ramUsagePct}%)`, `Free Memory: ${freeRamMb} MB`) ||
|
|
411
|
-
isMatch('Storage Capacity', `${freeStorageGb} GB Free / ${totalStorageGb} GB Total`) ||
|
|
412
|
-
isMatch('App Version', `v${fullDeviceData.runtime.appVersion} (${fullDeviceData.runtime.appBuild})`) ||
|
|
413
|
-
isMatch('JavaScript Engine', isHermes ? 'Hermes Bytecode Engine' : 'JavaScriptCore (JSC)') ||
|
|
414
|
-
isMatch('UDID Identifier', pseudoUDID));
|
|
415
|
-
}, [search, isMatch, fullDeviceData, ipAddress, usedRamMb, totalRamMb, ramUsagePct, freeRamMb, freeStorageGb, totalStorageGb, isHermes, pseudoUDID]);
|
|
416
|
-
const hasHardwareMatch = (0, react_1.useMemo)(() => {
|
|
417
|
-
if (!search.trim())
|
|
418
|
-
return true;
|
|
419
|
-
return (isMatch('CPU Architecture', fullDeviceData.hardware.cpuAbi) ||
|
|
420
|
-
isMatch('Total RAM', `${totalRamMb} MB`) ||
|
|
421
|
-
isMatch('Free RAM', `${freeRamMb} MB`) ||
|
|
422
|
-
isMatch('Storage Capacity', `${totalStorageGb} GB`) ||
|
|
423
|
-
isMatch('Available Storage', `${freeStorageGb} GB`) ||
|
|
424
|
-
isMatch('Battery', `${deviceMetrics?.batteryPercent ?? 100}%`) ||
|
|
425
|
-
isMatch('API Level', `API ${deviceMetrics?.apiLevel || react_native_1.Platform.Version}`) ||
|
|
426
|
-
isMatch('Thermal State', 'Nominal (Cool)'));
|
|
427
|
-
}, [search, isMatch, fullDeviceData, totalRamMb, freeRamMb, totalStorageGb, freeStorageGb, deviceMetrics]);
|
|
428
|
-
const hasNetworkMatch = (0, react_1.useMemo)(() => {
|
|
429
|
-
if (!search.trim())
|
|
430
|
-
return true;
|
|
431
|
-
return (isMatch('IP Address', ipAddress) ||
|
|
432
|
-
isMatch('Internet Reachability', 'Connected') ||
|
|
433
|
-
isMatch('Connection Type', 'Wi-Fi / Local Area Network') ||
|
|
434
|
-
isMatch('Metro Dev Server', react_native_1.NativeModules?.PlatformConstants?.serverHost || react_native_1.NativeModules?.AndroidConstants?.serverHost || 'localhost:8081') ||
|
|
435
|
-
isMatch('WebSocket Protocol', 'Active & Enabled') ||
|
|
436
|
-
isMatch('Network Inspector Interceptor', 'Intercepting XHR & Fetch'));
|
|
437
|
-
}, [search, isMatch, ipAddress]);
|
|
438
|
-
const hasDisplayMatch = (0, react_1.useMemo)(() => {
|
|
439
|
-
if (!search.trim())
|
|
440
|
-
return true;
|
|
441
|
-
return (isMatch('Window Resolution', `${windowDims.width.toFixed(0)} × ${windowDims.height.toFixed(0)} pt`) ||
|
|
442
|
-
isMatch('Screen Physical Size', `${(screenDims.width * pixelRatio).toFixed(0)} × ${(screenDims.height * pixelRatio).toFixed(0)} px`) ||
|
|
443
|
-
isMatch('Pixel Density', `@${pixelRatio}x (${Math.round(pixelRatio * 160)} dpi)`) ||
|
|
444
|
-
isMatch('Font Scale', `${fontScale}x`) ||
|
|
445
|
-
isMatch('Form Factor', isTablet ? 'Tablet' : 'Smartphone') ||
|
|
446
|
-
isMatch('Orientation', isLandscape ? 'Landscape' : 'Portrait') ||
|
|
447
|
-
isMatch('Status Bar Height', `${statusBarHeight} pt`));
|
|
448
|
-
}, [search, isMatch, windowDims, screenDims, pixelRatio, fontScale, isTablet, isLandscape, statusBarHeight]);
|
|
449
|
-
const hasRuntimeMatch = (0, react_1.useMemo)(() => {
|
|
450
|
-
if (!search.trim())
|
|
451
|
-
return true;
|
|
452
|
-
return (isMatch('App Name', fullDeviceData.runtime.appName) ||
|
|
453
|
-
isMatch('Bundle ID', fullDeviceData.identifiers.bundleId) ||
|
|
454
|
-
isMatch('App Version', `v${fullDeviceData.runtime.appVersion} (${fullDeviceData.runtime.appBuild})`) ||
|
|
455
|
-
isMatch('React Native', `v${reactNativeVersion}`) ||
|
|
456
|
-
isMatch('In-App Inspector Version', `v${constants_1.LIB_VERSION}`) ||
|
|
457
|
-
isMatch('Hermes Engine', isHermes ? 'Enabled (AOT Bytecode)' : 'Disabled (JSC)') ||
|
|
458
|
-
isMatch('New Architecture', isTurboModule ? 'Enabled' : 'Legacy Bridge') ||
|
|
459
|
-
isMatch('Build Type', __DEV__ ? 'Debug (__DEV__ = true)' : 'Release / Production') ||
|
|
460
|
-
isMatch('Timezone', fullDeviceData.runtime.timezone) ||
|
|
461
|
-
isMatch('Locale', fullDeviceData.runtime.locale) ||
|
|
462
|
-
isMatch('Session Uptime', deviceUptime));
|
|
463
|
-
}, [search, isMatch, fullDeviceData, reactNativeVersion, isHermes, isTurboModule, deviceUptime]);
|
|
464
|
-
const hasSecurityMatch = (0, react_1.useMemo)(() => {
|
|
465
|
-
if (!search.trim())
|
|
466
|
-
return true;
|
|
467
|
-
return (isMatch('Pseudo-UDID', pseudoUDID) ||
|
|
468
|
-
isMatch('Bundle ID', fullDeviceData.identifiers.bundleId) ||
|
|
469
|
-
isMatch('Root / Jailbreak', 'Clean (Standard Sandbox)') ||
|
|
470
|
-
isMatch('Simulator / Emulator', react_native_1.Platform.constants?.Model?.includes?.('sdk') || react_native_1.Platform.constants?.Model?.includes?.('Emulator') || react_native_1.Platform.constants?.Model?.includes?.('Simulator') ? 'Virtual Simulator' : 'Physical Device') ||
|
|
471
|
-
isMatch('Sandbox Integrity', 'Enforced by OS Kernel'));
|
|
472
|
-
}, [search, isMatch, pseudoUDID, fullDeviceData]);
|
|
473
|
-
const hasAnyMatch = (0, react_1.useMemo)(() => {
|
|
474
|
-
if (!search.trim())
|
|
475
|
-
return true;
|
|
476
|
-
return (hasHeroMatch ||
|
|
477
|
-
hasOverviewMatch ||
|
|
478
|
-
hasHardwareMatch ||
|
|
479
|
-
hasNetworkMatch ||
|
|
480
|
-
hasDisplayMatch ||
|
|
481
|
-
hasRuntimeMatch ||
|
|
482
|
-
hasSecurityMatch);
|
|
483
|
-
}, [
|
|
484
|
-
search,
|
|
485
|
-
hasHeroMatch,
|
|
486
|
-
hasOverviewMatch,
|
|
487
|
-
hasHardwareMatch,
|
|
488
|
-
hasNetworkMatch,
|
|
489
|
-
hasDisplayMatch,
|
|
490
|
-
hasRuntimeMatch,
|
|
491
|
-
hasSecurityMatch,
|
|
492
|
-
]);
|
|
493
|
-
return (<react_native_1.View style={styles.container}>
|
|
37
|
+
## \u{1F5A5} Display & Geometry
|
|
38
|
+
- **Resolution:** ${b.width} \xD7 ${b.height} pt (@${s}x)
|
|
39
|
+
- **Form Factor:** ${_?"Tablet":"Phone"} (${$?"Landscape":"Portrait"})
|
|
40
|
+
- **Status Bar Height:** ${B} pt
|
|
41
|
+
|
|
42
|
+
## \u2699\uFE0F Runtime & App
|
|
43
|
+
- **App Name:** ${t.runtime.appName}
|
|
44
|
+
- **App Version:** ${t.runtime.appVersion} (${t.runtime.appBuild})
|
|
45
|
+
- **React Native:** v${V}
|
|
46
|
+
- **JS Engine:** ${g?"Hermes":"JSC"} (Bridgeless TurboModule: ${w?"Yes":"No"})
|
|
47
|
+
- **Environment:** ${__DEV__?"Development (__DEV__)":"Production (Release)"}
|
|
48
|
+
- **Timezone:** ${t.runtime.timezone}
|
|
49
|
+
- **Session Uptime:** ${S}
|
|
50
|
+
|
|
51
|
+
## \u{1F511} Identifiers & Security
|
|
52
|
+
- **Pseudo-UDID:** \`${y}\`
|
|
53
|
+
- **Bundle ID:** \`${t.identifiers.bundleId}\`
|
|
54
|
+
`;(0,helpers_1.copyToClipboard)(o,"Device Markdown Report"),(0,toast_1.showToast)("Copied Markdown Report to Clipboard!")},e=(0,react_1.useCallback)((o,c,d)=>{if(!r.trim())return!0;const m=r.toLowerCase().trim(),M=c!=null?typeof c=="object"?JSON.stringify(c):String(c):"",x=d!=null?String(d):"";return o.toLowerCase().includes(m)||M.toLowerCase().includes(m)||x.toLowerCase().includes(m)},[r]),L=(0,react_1.useMemo)(()=>r.trim()?e("Model",i?.deviceModel||react_native_1.Platform.constants?.Model)||e("OS",react_native_1.Platform.OS)||e("IP Address",f)||e("RAM",`${T}/${p}`)||e("Uptime",S):!0,[r,e,i,f,T,p,S]),O=(0,react_1.useMemo)(()=>r.trim()?e("Device Model",t.hardware.model)||e("Manufacturer",t.hardware.brand)||e("Operating System",t.hardware.osVersion)||e("IP Address",f)||e("RAM Memory",`${T} MB / ${p} MB (${D}%)`,`Free Memory: ${C} MB`)||e("Storage Capacity",`${v} GB Free / ${A} GB Total`)||e("App Version",`v${t.runtime.appVersion} (${t.runtime.appBuild})`)||e("JavaScript Engine",g?"Hermes Bytecode Engine":"JavaScriptCore (JSC)")||e("UDID Identifier",y):!0,[r,e,t,f,T,p,D,C,v,A,g,y]),k=(0,react_1.useMemo)(()=>r.trim()?e("CPU Architecture",t.hardware.cpuAbi)||e("Total RAM",`${p} MB`)||e("Free RAM",`${C} MB`)||e("Storage Capacity",`${A} GB`)||e("Available Storage",`${v} GB`)||e("Battery",`${i?.batteryPercent??100}%`)||e("API Level",`API ${i?.apiLevel||react_native_1.Platform.Version}`)||e("Thermal State","Nominal (Cool)"):!0,[r,e,t,p,C,A,v,i]),N=(0,react_1.useMemo)(()=>r.trim()?e("IP Address",f)||e("Internet Reachability","Connected")||e("Connection Type","Wi-Fi / Local Area Network")||e("Metro Dev Server",react_native_1.NativeModules?.PlatformConstants?.serverHost||react_native_1.NativeModules?.AndroidConstants?.serverHost||"localhost:8081")||e("WebSocket Protocol","Active & Enabled")||e("Network Inspector Interceptor","Intercepting XHR & Fetch"):!0,[r,e,f]),z=(0,react_1.useMemo)(()=>r.trim()?e("Window Resolution",`${h.width.toFixed(0)} \xD7 ${h.height.toFixed(0)} pt`)||e("Screen Physical Size",`${(b.width*s).toFixed(0)} \xD7 ${(b.height*s).toFixed(0)} px`)||e("Pixel Density",`@${s}x (${Math.round(s*160)} dpi)`)||e("Font Scale",`${I}x`)||e("Form Factor",_?"Tablet":"Smartphone")||e("Orientation",$?"Landscape":"Portrait")||e("Status Bar Height",`${B} pt`):!0,[r,e,h,b,s,I,_,$,B]),H=(0,react_1.useMemo)(()=>r.trim()?e("App Name",t.runtime.appName)||e("Bundle ID",t.identifiers.bundleId)||e("App Version",`v${t.runtime.appVersion} (${t.runtime.appBuild})`)||e("React Native",`v${V}`)||e("In-App Inspector Version",`v${constants_1.LIB_VERSION}`)||e("Hermes Engine",g?"Enabled (AOT Bytecode)":"Disabled (JSC)")||e("New Architecture",w?"Enabled":"Legacy Bridge")||e("Build Type",__DEV__?"Debug (__DEV__ = true)":"Release / Production")||e("Timezone",t.runtime.timezone)||e("Locale",t.runtime.locale)||e("Session Uptime",S):!0,[r,e,t,V,g,w,S]),W=(0,react_1.useMemo)(()=>r.trim()?e("Pseudo-UDID",y)||e("Bundle ID",t.identifiers.bundleId)||e("Root / Jailbreak","Clean (Standard Sandbox)")||e("Simulator / Emulator",react_native_1.Platform.constants?.Model?.includes?.("sdk")||react_native_1.Platform.constants?.Model?.includes?.("Emulator")||react_native_1.Platform.constants?.Model?.includes?.("Simulator")?"Virtual Simulator":"Physical Device")||e("Sandbox Integrity","Enforced by OS Kernel"):!0,[r,e,y,t]),Z=(0,react_1.useMemo)(()=>r.trim()?L||O||k||N||z||H||W:!0,[r,L,O,k,N,z,H,W]);return<react_native_1.View style={styles.container}>
|
|
494
55
|
|
|
495
56
|
<react_native_1.View style={styles.subTabsWrapper}>
|
|
496
|
-
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={
|
|
497
|
-
{
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
{tab.icon(color)}
|
|
502
|
-
<react_native_1.Text style={[
|
|
503
|
-
styles.subTabPillText,
|
|
504
|
-
isActive && styles.subTabPillTextActive,
|
|
505
|
-
]}>
|
|
506
|
-
{tab.label}
|
|
57
|
+
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={styles.subTabsContainer}>
|
|
58
|
+
{Y.map(o=>{const c=a===o.key,d=c?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText;return<TouchableScale_1.default key={o.key}onPress={()=>u(o.key)}style={[styles.subTabPill,c&&styles.subTabPillActive]}>
|
|
59
|
+
{o.icon(d)}
|
|
60
|
+
<react_native_1.Text style={[styles.subTabPillText,c&&styles.subTabPillTextActive]}>
|
|
61
|
+
{o.label}
|
|
507
62
|
</react_native_1.Text>
|
|
508
|
-
</TouchableScale_1.default>)
|
|
509
|
-
})}
|
|
63
|
+
</TouchableScale_1.default>})}
|
|
510
64
|
</react_native_1.ScrollView>
|
|
511
65
|
</react_native_1.View>
|
|
512
66
|
|
|
513
67
|
|
|
514
68
|
<react_native_1.View style={styles.actionBar}>
|
|
515
69
|
<react_native_1.View style={styles.searchBar}>
|
|
516
|
-
<NetworkIcons_1.SearchIcon size={14}
|
|
517
|
-
<react_native_1.TextInput value={
|
|
518
|
-
{
|
|
519
|
-
<NetworkIcons_1.ClearIcon size={13}
|
|
520
|
-
</TouchableScale_1.default>
|
|
70
|
+
<NetworkIcons_1.SearchIcon size={14}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
71
|
+
<react_native_1.TextInput value={r}onChangeText={n}placeholder="Search specs, UDID, IP, screen..."placeholderTextColor={AppColors_1.AppColors.grayTextWeak}style={styles.searchInput}clearButtonMode="while-editing"/>
|
|
72
|
+
{r.length>0&&<TouchableScale_1.default onPress={()=>n("")}hitSlop={8}>
|
|
73
|
+
<NetworkIcons_1.ClearIcon size={13}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
74
|
+
</TouchableScale_1.default>}
|
|
521
75
|
</react_native_1.View>
|
|
522
76
|
|
|
523
|
-
<TouchableScale_1.default onPress={
|
|
524
|
-
<NetworkIcons_1.ExportIcon size={12}
|
|
77
|
+
<TouchableScale_1.default onPress={K}style={styles.exportButton}hitSlop={6}>
|
|
78
|
+
<NetworkIcons_1.ExportIcon size={12}color={AppColors_1.AppColors.purple}/>
|
|
525
79
|
<react_native_1.Text style={styles.exportButtonText}>JSON</react_native_1.Text>
|
|
526
80
|
</TouchableScale_1.default>
|
|
527
81
|
|
|
528
|
-
<TouchableScale_1.default onPress={
|
|
529
|
-
<NetworkIcons_1.CopyIcon size={12}
|
|
530
|
-
<react_native_1.Text style={[styles.exportButtonText,
|
|
82
|
+
<TouchableScale_1.default onPress={X}style={[styles.exportButton,{backgroundColor:`${AppColors_1.AppColors.emerald500}14`,borderColor:`${AppColors_1.AppColors.emerald500}33`}]}hitSlop={6}>
|
|
83
|
+
<NetworkIcons_1.CopyIcon size={12}color={AppColors_1.AppColors.emerald500}/>
|
|
84
|
+
<react_native_1.Text style={[styles.exportButtonText,{color:AppColors_1.AppColors.emerald500}]}>MD</react_native_1.Text>
|
|
531
85
|
</TouchableScale_1.default>
|
|
532
86
|
</react_native_1.View>
|
|
533
87
|
|
|
534
88
|
|
|
535
|
-
<react_native_1.ScrollView style={styles.scrollArea}
|
|
89
|
+
<react_native_1.ScrollView style={styles.scrollArea}contentContainerStyle={styles.scrollContent}showsVerticalScrollIndicator={!1}>
|
|
536
90
|
|
|
537
|
-
{(!
|
|
91
|
+
{(!r.trim()||L)&&<react_native_1.View style={styles.heroCard}>
|
|
538
92
|
<react_native_1.View style={styles.heroHeader}>
|
|
539
93
|
<react_native_1.View style={styles.heroIconWrap}>
|
|
540
|
-
{react_native_1.Platform.OS
|
|
94
|
+
{react_native_1.Platform.OS==="ios"?<NetworkIcons_1.AppleIcon size={20}color={AppColors_1.AppColors.white}/>:<NetworkIcons_1.AndroidIcon size={20}color={AppColors_1.AppColors.white}/>}
|
|
541
95
|
</react_native_1.View>
|
|
542
|
-
<react_native_1.View style={{
|
|
543
|
-
<react_native_1.Text style={styles.heroTitle}
|
|
544
|
-
{
|
|
96
|
+
<react_native_1.View style={{flex:1,minWidth:0}}>
|
|
97
|
+
<react_native_1.Text style={styles.heroTitle}numberOfLines={1}ellipsizeMode="tail">
|
|
98
|
+
{i?.deviceModel||react_native_1.Platform.constants?.Model||(react_native_1.Platform.OS==="ios"?"Apple iPhone":"Android Device")}
|
|
545
99
|
</react_native_1.Text>
|
|
546
|
-
<react_native_1.Text style={styles.heroSubtitle}
|
|
547
|
-
{react_native_1.Platform.OS
|
|
100
|
+
<react_native_1.Text style={styles.heroSubtitle}numberOfLines={1}ellipsizeMode="tail">
|
|
101
|
+
{react_native_1.Platform.OS==="ios"?`iOS ${react_native_1.Platform.Version}`:`Android ${react_native_1.Platform.Version} (API ${i?.apiLevel||react_native_1.Platform.Version})`}
|
|
548
102
|
</react_native_1.Text>
|
|
549
103
|
</react_native_1.View>
|
|
550
104
|
<react_native_1.View style={styles.heroBadge}>
|
|
@@ -556,432 +110,114 @@ exports.DeviceInfoTab = react_1.default.memo(() => {
|
|
|
556
110
|
|
|
557
111
|
<react_native_1.View style={styles.heroMetricsStrip}>
|
|
558
112
|
<react_native_1.View style={styles.heroMetricItem}>
|
|
559
|
-
<react_native_1.Text style={styles.heroMetricLabel}
|
|
560
|
-
<react_native_1.Text style={styles.heroMetricValue}
|
|
561
|
-
{
|
|
113
|
+
<react_native_1.Text style={styles.heroMetricLabel}numberOfLines={1}ellipsizeMode="tail">IP ADDRESS</react_native_1.Text>
|
|
114
|
+
<react_native_1.Text style={styles.heroMetricValue}numberOfLines={1}ellipsizeMode="tail">
|
|
115
|
+
{f}
|
|
562
116
|
</react_native_1.Text>
|
|
563
117
|
</react_native_1.View>
|
|
564
118
|
<react_native_1.View style={styles.heroMetricDivider}/>
|
|
565
119
|
<react_native_1.View style={styles.heroMetricItem}>
|
|
566
|
-
<react_native_1.Text style={styles.heroMetricLabel}
|
|
567
|
-
<react_native_1.Text style={styles.heroMetricValue}
|
|
568
|
-
{
|
|
120
|
+
<react_native_1.Text style={styles.heroMetricLabel}numberOfLines={1}ellipsizeMode="tail">RAM (USED/TOTAL)</react_native_1.Text>
|
|
121
|
+
<react_native_1.Text style={styles.heroMetricValue}numberOfLines={1}ellipsizeMode="tail">
|
|
122
|
+
{T}/{p} MB
|
|
569
123
|
</react_native_1.Text>
|
|
570
124
|
</react_native_1.View>
|
|
571
125
|
<react_native_1.View style={styles.heroMetricDivider}/>
|
|
572
126
|
<react_native_1.View style={styles.heroMetricItem}>
|
|
573
|
-
<react_native_1.Text style={styles.heroMetricLabel}
|
|
574
|
-
<react_native_1.Text style={styles.heroMetricValue}
|
|
127
|
+
<react_native_1.Text style={styles.heroMetricLabel}numberOfLines={1}ellipsizeMode="tail">UPTIME</react_native_1.Text>
|
|
128
|
+
<react_native_1.Text style={styles.heroMetricValue}numberOfLines={1}ellipsizeMode="tail">{S}</react_native_1.Text>
|
|
575
129
|
</react_native_1.View>
|
|
576
130
|
</react_native_1.View>
|
|
577
|
-
</react_native_1.View>
|
|
131
|
+
</react_native_1.View>}
|
|
578
132
|
|
|
579
133
|
|
|
580
|
-
{(
|
|
134
|
+
{(a==="overview"||r.length>0)&&O&&<react_native_1.View style={styles.sectionCard}>
|
|
581
135
|
<react_native_1.Text style={styles.sectionTitle}>DEVICE OVERVIEW</react_native_1.Text>
|
|
582
|
-
{
|
|
583
|
-
{
|
|
584
|
-
{
|
|
585
|
-
{
|
|
586
|
-
{
|
|
587
|
-
{
|
|
588
|
-
{
|
|
589
|
-
{
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
{isMatch('UDID Identifier', pseudoUDID) && (<InfoRow label="Pseudo-UDID" value={pseudoUDID} isLast/>)}
|
|
593
|
-
</react_native_1.View>)}
|
|
136
|
+
{e("Device Model",t.hardware.model)&&<InfoRow label="Device Model"value={t.hardware.model}/>}
|
|
137
|
+
{e("Manufacturer",t.hardware.brand)&&<InfoRow label="Manufacturer / Brand"value={t.hardware.brand}/>}
|
|
138
|
+
{e("Operating System",t.hardware.osVersion)&&<InfoRow label="Operating System"value={t.hardware.osVersion}badge={{text:react_native_1.Platform.OS.toUpperCase(),color:AppColors_1.AppColors.blue500,bg:`${AppColors_1.AppColors.blue500}18`}}/>}
|
|
139
|
+
{e("IP Address",f)&&<InfoRow label="Local IP Address"value={f}badge={{text:"ONLINE",color:AppColors_1.AppColors.emerald500,bg:`${AppColors_1.AppColors.emerald500}18`}}/>}
|
|
140
|
+
{e("RAM Memory",`${T} MB / ${p} MB (${D}%)`,`Free Memory: ${C} MB`)&&<InfoRow label="RAM Memory"value={`${T} MB / ${p} MB (${D}%)`}subtext={`Free Memory: ${C} MB`}/>}
|
|
141
|
+
{e("Storage Capacity",`${v} GB Free / ${A} GB Total`)&&<InfoRow label="Internal Storage"value={`${v} GB Free / ${A} GB Total`}/>}
|
|
142
|
+
{e("App Version",`v${t.runtime.appVersion} (${t.runtime.appBuild})`)&&<InfoRow label="Host App Version"value={`v${t.runtime.appVersion} (${t.runtime.appBuild})`}/>}
|
|
143
|
+
{e("JavaScript Engine",g?"Hermes Bytecode Engine":"JavaScriptCore (JSC)")&&<InfoRow label="JS Runtime Engine"value={g?"Hermes Bytecode Engine":"JavaScriptCore (JSC)"}badge={g?{text:"HERMES",color:AppColors_1.AppColors.purple,bg:`${AppColors_1.AppColors.purple}18`}:{text:"JSC",color:AppColors_1.AppColors.sky500,bg:`${AppColors_1.AppColors.sky500}18`}}/>}
|
|
144
|
+
{e("UDID Identifier",y)&&<InfoRow label="Pseudo-UDID"value={y}isLast/>}
|
|
145
|
+
</react_native_1.View>}
|
|
594
146
|
|
|
595
147
|
|
|
596
|
-
{(
|
|
148
|
+
{(a==="hardware"||r.length>0)&&k&&<react_native_1.View style={styles.sectionCard}>
|
|
597
149
|
<react_native_1.Text style={styles.sectionTitle}>HARDWARE & SYSTEM SPECIFICATIONS</react_native_1.Text>
|
|
598
|
-
{
|
|
599
|
-
{
|
|
600
|
-
{
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
{
|
|
606
|
-
|
|
607
|
-
{isMatch('Battery', `${deviceMetrics?.batteryPercent ?? 100}%`) && (<InfoRow label="Battery Level" value={`${deviceMetrics?.batteryPercent ?? 100}%`} badge={{
|
|
608
|
-
text: deviceMetrics?.isCharging ? 'CHARGING' : 'DISCHARGING',
|
|
609
|
-
color: deviceMetrics?.isCharging ? AppColors_1.AppColors.emerald500 : AppColors_1.AppColors.grayText,
|
|
610
|
-
bg: deviceMetrics?.isCharging ? `${AppColors_1.AppColors.emerald500}18` : `${AppColors_1.AppColors.grayText}18`,
|
|
611
|
-
}}/>)}
|
|
612
|
-
{isMatch('API Level', `API ${deviceMetrics?.apiLevel || react_native_1.Platform.Version}`) && react_native_1.Platform.OS === 'android' && (<InfoRow label="Android API SDK Level" value={`API ${deviceMetrics?.apiLevel || react_native_1.Platform.Version}`}/>)}
|
|
613
|
-
{isMatch('Thermal State', 'Nominal (Cool)') && (<InfoRow label="Thermal State" value="Nominal (Cool)" badge={{ text: 'OPTIMAL', color: AppColors_1.AppColors.emerald500, bg: `${AppColors_1.AppColors.emerald500}18` }} isLast/>)}
|
|
614
|
-
</react_native_1.View>)}
|
|
150
|
+
{e("CPU Architecture",t.hardware.cpuAbi)&&<InfoRow label="CPU Architecture / ABI"value={t.hardware.cpuAbi}badge={{text:"64-BIT",color:AppColors_1.AppColors.purple,bg:`${AppColors_1.AppColors.purple}18`}}/>}
|
|
151
|
+
{e("Total RAM",`${p} MB`)&&<InfoRow label="Total Physical RAM"value={`${p} MB`}/>}
|
|
152
|
+
{e("Free RAM",`${C} MB`)&&<InfoRow label="Available Free RAM"value={`${C} MB`}badge={{text:C<500?"LOW":"HEALTHY",color:C<500?AppColors_1.AppColors.errorColor:AppColors_1.AppColors.emerald500,bg:C<500?`${AppColors_1.AppColors.errorColor}18`:`${AppColors_1.AppColors.emerald500}18`}}/>}
|
|
153
|
+
{e("Storage Capacity",`${A} GB`)&&<InfoRow label="Disk Storage Total"value={`${A} GB`}/>}
|
|
154
|
+
{e("Available Storage",`${v} GB`)&&<InfoRow label="Disk Storage Available"value={`${v} GB`}/>}
|
|
155
|
+
{e("Battery",`${i?.batteryPercent??100}%`)&&<InfoRow label="Battery Level"value={`${i?.batteryPercent??100}%`}badge={{text:i?.isCharging?"CHARGING":"DISCHARGING",color:i?.isCharging?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText,bg:i?.isCharging?`${AppColors_1.AppColors.emerald500}18`:`${AppColors_1.AppColors.grayText}18`}}/>}
|
|
156
|
+
{e("API Level",`API ${i?.apiLevel||react_native_1.Platform.Version}`)&&react_native_1.Platform.OS==="android"&&<InfoRow label="Android API SDK Level"value={`API ${i?.apiLevel||react_native_1.Platform.Version}`}/>}
|
|
157
|
+
{e("Thermal State","Nominal (Cool)")&&<InfoRow label="Thermal State"value="Nominal (Cool)"badge={{text:"OPTIMAL",color:AppColors_1.AppColors.emerald500,bg:`${AppColors_1.AppColors.emerald500}18`}}isLast/>}
|
|
158
|
+
</react_native_1.View>}
|
|
615
159
|
|
|
616
160
|
|
|
617
|
-
{(
|
|
161
|
+
{(a==="network"||r.length>0)&&N&&<react_native_1.View style={styles.sectionCard}>
|
|
618
162
|
<react_native_1.Text style={styles.sectionTitle}>NETWORK & CONNECTIVITY</react_native_1.Text>
|
|
619
|
-
{
|
|
620
|
-
{
|
|
621
|
-
{
|
|
622
|
-
{
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
{isMatch('Network Inspector Interceptor', 'Intercepting XHR & Fetch') && (<InfoRow label="Network Interceptor Status" value="Intercepting XHR & Fetch" badge={{ text: 'MONITORING', color: AppColors_1.AppColors.purple, bg: `${AppColors_1.AppColors.purple}18` }} isLast/>)}
|
|
627
|
-
</react_native_1.View>)}
|
|
163
|
+
{e("IP Address",f)&&<InfoRow label="Local Device IP"value={f}badge={{text:"IPV4",color:AppColors_1.AppColors.blue500,bg:`${AppColors_1.AppColors.blue500}18`}}/>}
|
|
164
|
+
{e("Internet Reachability","Connected")&&<InfoRow label="Internet Reachability"value="Connected"badge={{text:"ONLINE",color:AppColors_1.AppColors.emerald500,bg:`${AppColors_1.AppColors.emerald500}18`}}/>}
|
|
165
|
+
{e("Connection Type","Wi-Fi / Local Area Network")&&<InfoRow label="Active Connection Type"value="Wi-Fi / Local Area Network"/>}
|
|
166
|
+
{e("Metro Dev Server",react_native_1.NativeModules?.PlatformConstants?.serverHost||react_native_1.NativeModules?.AndroidConstants?.serverHost||"localhost:8081")&&<InfoRow label="Metro Packager Host"value={react_native_1.NativeModules?.PlatformConstants?.serverHost||react_native_1.NativeModules?.AndroidConstants?.serverHost||"localhost:8081"}/>}
|
|
167
|
+
{e("WebSocket Protocol","Active & Enabled")&&<InfoRow label="WebSocket (WSS) Support"value="Active & Enabled"/>}
|
|
168
|
+
{e("Network Inspector Interceptor","Intercepting XHR & Fetch")&&<InfoRow label="Network Interceptor Status"value="Intercepting XHR & Fetch"badge={{text:"MONITORING",color:AppColors_1.AppColors.purple,bg:`${AppColors_1.AppColors.purple}18`}}isLast/>}
|
|
169
|
+
</react_native_1.View>}
|
|
628
170
|
|
|
629
171
|
|
|
630
|
-
{(
|
|
172
|
+
{(a==="display"||r.length>0)&&z&&<react_native_1.View style={styles.sectionCard}>
|
|
631
173
|
<react_native_1.Text style={styles.sectionTitle}>DISPLAY & SCREEN GEOMETRY</react_native_1.Text>
|
|
632
|
-
{
|
|
633
|
-
{
|
|
634
|
-
{
|
|
635
|
-
{
|
|
636
|
-
{
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}}/>)}
|
|
641
|
-
{isMatch('Orientation', isLandscape ? 'Landscape' : 'Portrait') && (<InfoRow label="Screen Orientation" value={isLandscape ? 'Landscape' : 'Portrait'}/>)}
|
|
642
|
-
{isMatch('Status Bar Height', `${statusBarHeight} pt`) && (<InfoRow label="Status Bar Inset" value={`${statusBarHeight} pt`} isLast/>)}
|
|
643
|
-
</react_native_1.View>)}
|
|
174
|
+
{e("Window Resolution",`${h.width.toFixed(0)} \xD7 ${h.height.toFixed(0)} pt`)&&<InfoRow label="Window Logical Size"value={`${h.width.toFixed(0)} \xD7 ${h.height.toFixed(0)} pt`}/>}
|
|
175
|
+
{e("Screen Physical Size",`${(b.width*s).toFixed(0)} \xD7 ${(b.height*s).toFixed(0)} px`)&&<InfoRow label="Physical Screen Size"value={`${(b.width*s).toFixed(0)} \xD7 ${(b.height*s).toFixed(0)} px`}/>}
|
|
176
|
+
{e("Pixel Density",`@${s}x (${Math.round(s*160)} dpi)`)&&<InfoRow label="Pixel Ratio (DPI Scale)"value={`@${s}x (${Math.round(s*160)} dpi)`}badge={{text:`@${s}x`,color:AppColors_1.AppColors.purple,bg:`${AppColors_1.AppColors.purple}18`}}/>}
|
|
177
|
+
{e("Font Scale",`${I}x`)&&<InfoRow label="User Font Scale"value={`${I}x (${I===1?"Default":I>1?"Enlarged":"Compact"})`}/>}
|
|
178
|
+
{e("Form Factor",_?"Tablet":"Smartphone")&&<InfoRow label="Device Form Factor"value={_?"Tablet":"Smartphone"}badge={{text:_?"TABLET":"PHONE",color:_?AppColors_1.AppColors.blue500:AppColors_1.AppColors.purple,bg:_?`${AppColors_1.AppColors.blue500}18`:`${AppColors_1.AppColors.purple}18`}}/>}
|
|
179
|
+
{e("Orientation",$?"Landscape":"Portrait")&&<InfoRow label="Screen Orientation"value={$?"Landscape":"Portrait"}/>}
|
|
180
|
+
{e("Status Bar Height",`${B} pt`)&&<InfoRow label="Status Bar Inset"value={`${B} pt`}isLast/>}
|
|
181
|
+
</react_native_1.View>}
|
|
644
182
|
|
|
645
183
|
|
|
646
|
-
{(
|
|
184
|
+
{(a==="runtime"||r.length>0)&&H&&<react_native_1.View style={styles.sectionCard}>
|
|
647
185
|
<react_native_1.Text style={styles.sectionTitle}>RUNTIME & APPLICATION</react_native_1.Text>
|
|
648
|
-
{
|
|
649
|
-
{
|
|
650
|
-
{
|
|
651
|
-
{
|
|
652
|
-
{
|
|
653
|
-
{
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
{
|
|
659
|
-
|
|
660
|
-
color: isTurboModule ? AppColors_1.AppColors.emerald500 : AppColors_1.AppColors.blue500,
|
|
661
|
-
bg: isTurboModule ? `${AppColors_1.AppColors.emerald500}18` : `${AppColors_1.AppColors.blue500}18`,
|
|
662
|
-
}}/>)}
|
|
663
|
-
{isMatch('Build Type', __DEV__ ? 'Debug (__DEV__ = true)' : 'Release / Production') && (<InfoRow label="Build Configuration" value={__DEV__ ? 'Debug (__DEV__ = true)' : 'Release / Production'} badge={{
|
|
664
|
-
text: __DEV__ ? 'DEBUG' : 'RELEASE',
|
|
665
|
-
color: __DEV__ ? AppColors_1.AppColors.warningIconGold : AppColors_1.AppColors.emerald500,
|
|
666
|
-
bg: __DEV__ ? `${AppColors_1.AppColors.warningIconGold}18` : `${AppColors_1.AppColors.emerald500}18`,
|
|
667
|
-
}}/>)}
|
|
668
|
-
{isMatch('Timezone', fullDeviceData.runtime.timezone) && (<InfoRow label="System Timezone" value={fullDeviceData.runtime.timezone}/>)}
|
|
669
|
-
{isMatch('Locale', fullDeviceData.runtime.locale) && (<InfoRow label="System Language & Locale" value={fullDeviceData.runtime.locale}/>)}
|
|
670
|
-
{isMatch('Session Uptime', deviceUptime) && (<InfoRow label="Inspector Session Uptime" value={deviceUptime} isLast/>)}
|
|
671
|
-
</react_native_1.View>)}
|
|
186
|
+
{e("App Name",t.runtime.appName)&&<InfoRow label="Application Name"value={t.runtime.appName}/>}
|
|
187
|
+
{e("Bundle ID",t.identifiers.bundleId)&&<InfoRow label="Bundle Identifier / Package"value={t.identifiers.bundleId}/>}
|
|
188
|
+
{e("App Version",`v${t.runtime.appVersion} (${t.runtime.appBuild})`)&&<InfoRow label="Application Version"value={`v${t.runtime.appVersion} (${t.runtime.appBuild})`}/>}
|
|
189
|
+
{e("React Native",`v${V}`)&&<InfoRow label="React Native Framework"value={`v${V}`}badge={{text:"RN",color:AppColors_1.AppColors.sky500,bg:`${AppColors_1.AppColors.sky500}18`}}/>}
|
|
190
|
+
{e("In-App Inspector Version",`v${constants_1.LIB_VERSION}`)&&<InfoRow label="In-App Inspector Library"value={`v${constants_1.LIB_VERSION}`}badge={{text:"LATEST",color:AppColors_1.AppColors.purple,bg:`${AppColors_1.AppColors.purple}18`}}/>}
|
|
191
|
+
{e("Hermes Engine",g?"Enabled (AOT Bytecode)":"Disabled (JSC)")&&<InfoRow label="Hermes JavaScript Engine"value={g?"Enabled (AOT Bytecode)":"Disabled (JSC)"}badge={{text:g?"HERMES":"JSC",color:g?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText,bg:g?`${AppColors_1.AppColors.purple}18`:`${AppColors_1.AppColors.grayText}18`}}/>}
|
|
192
|
+
{e("New Architecture",w?"Enabled":"Legacy Bridge")&&<InfoRow label="Bridgeless TurboModules (New Arch)"value={w?"Enabled":"Legacy Bridge"}badge={{text:w?"NEW ARCH":"LEGACY",color:w?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.blue500,bg:w?`${AppColors_1.AppColors.emerald500}18`:`${AppColors_1.AppColors.blue500}18`}}/>}
|
|
193
|
+
{e("Build Type",__DEV__?"Debug (__DEV__ = true)":"Release / Production")&&<InfoRow label="Build Configuration"value={__DEV__?"Debug (__DEV__ = true)":"Release / Production"}badge={{text:__DEV__?"DEBUG":"RELEASE",color:__DEV__?AppColors_1.AppColors.warningIconGold:AppColors_1.AppColors.emerald500,bg:__DEV__?`${AppColors_1.AppColors.warningIconGold}18`:`${AppColors_1.AppColors.emerald500}18`}}/>}
|
|
194
|
+
{e("Timezone",t.runtime.timezone)&&<InfoRow label="System Timezone"value={t.runtime.timezone}/>}
|
|
195
|
+
{e("Locale",t.runtime.locale)&&<InfoRow label="System Language & Locale"value={t.runtime.locale}/>}
|
|
196
|
+
{e("Session Uptime",S)&&<InfoRow label="Inspector Session Uptime"value={S}isLast/>}
|
|
197
|
+
</react_native_1.View>}
|
|
672
198
|
|
|
673
199
|
|
|
674
|
-
{(
|
|
200
|
+
{(a==="security"||r.length>0)&&W&&<react_native_1.View style={styles.sectionCard}>
|
|
675
201
|
<react_native_1.Text style={styles.sectionTitle}>DEVICE IDENTIFIERS & SECURITY</react_native_1.Text>
|
|
676
|
-
{
|
|
677
|
-
{
|
|
678
|
-
{
|
|
679
|
-
{
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
? 'Virtual Simulator'
|
|
683
|
-
: 'Physical Device'}/>)}
|
|
684
|
-
{isMatch('Sandbox Integrity', 'Enforced by OS Kernel') && (<InfoRow label="App Sandbox File Isolation" value="Enforced by OS Kernel" isLast/>)}
|
|
685
|
-
</react_native_1.View>)}
|
|
202
|
+
{e("Pseudo-UDID",y)&&<InfoRow label="Deterministic Pseudo-UDID"value={y}subtext="Stable hardware signature hash for testing & diagnostics"badge={{text:"PERSISTENT",color:AppColors_1.AppColors.purple,bg:`${AppColors_1.AppColors.purple}18`}}/>}
|
|
203
|
+
{e("Bundle ID",t.identifiers.bundleId)&&<InfoRow label="Application Bundle ID"value={t.identifiers.bundleId}/>}
|
|
204
|
+
{e("Root / Jailbreak","Clean (Standard Sandbox)")&&<InfoRow label="Root / Jailbreak Heuristic"value="Clean (Standard Sandbox)"badge={{text:"SECURE",color:AppColors_1.AppColors.emerald500,bg:`${AppColors_1.AppColors.emerald500}18`}}/>}
|
|
205
|
+
{e("Simulator / Emulator",react_native_1.Platform.constants?.Model?.includes?.("sdk")||react_native_1.Platform.constants?.Model?.includes?.("Emulator")||react_native_1.Platform.constants?.Model?.includes?.("Simulator")?"Virtual Simulator":"Physical Device")&&<InfoRow label="Emulator / Physical Device"value={react_native_1.Platform.constants?.Model?.includes?.("sdk")||react_native_1.Platform.constants?.Model?.includes?.("Emulator")||react_native_1.Platform.constants?.Model?.includes?.("Simulator")?"Virtual Simulator":"Physical Device"}/>}
|
|
206
|
+
{e("Sandbox Integrity","Enforced by OS Kernel")&&<InfoRow label="App Sandbox File Isolation"value="Enforced by OS Kernel"isLast/>}
|
|
207
|
+
</react_native_1.View>}
|
|
686
208
|
|
|
687
209
|
|
|
688
|
-
{
|
|
689
|
-
<NetworkIcons_1.SearchIcon size={26}
|
|
210
|
+
{r.trim().length>0&&!Z&&<react_native_1.View style={styles.emptySearchCard}>
|
|
211
|
+
<NetworkIcons_1.SearchIcon size={26}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
690
212
|
<react_native_1.Text style={styles.emptySearchTitle}>No matching device specifications</react_native_1.Text>
|
|
691
213
|
<react_native_1.Text style={styles.emptySearchSubtitle}>
|
|
692
|
-
No properties matched “{
|
|
214
|
+
No properties matched “{r}”
|
|
693
215
|
</react_native_1.Text>
|
|
694
|
-
<TouchableScale_1.default onPress={()
|
|
216
|
+
<TouchableScale_1.default onPress={()=>n("")}style={styles.clearSearchBtn}>
|
|
695
217
|
<react_native_1.Text style={styles.clearSearchBtnText}>Clear Search</react_native_1.Text>
|
|
696
218
|
</TouchableScale_1.default>
|
|
697
|
-
</react_native_1.View>
|
|
219
|
+
</react_native_1.View>}
|
|
698
220
|
|
|
699
|
-
<react_native_1.View style={{
|
|
221
|
+
<react_native_1.View style={{height:48}}/>
|
|
700
222
|
</react_native_1.ScrollView>
|
|
701
|
-
</react_native_1.View>);
|
|
702
|
-
});
|
|
703
|
-
const styles = react_native_1.StyleSheet.create({
|
|
704
|
-
container: {
|
|
705
|
-
flex: 1,
|
|
706
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
707
|
-
},
|
|
708
|
-
subTabsWrapper: {
|
|
709
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
710
|
-
borderBottomWidth: 1,
|
|
711
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
712
|
-
paddingVertical: 8,
|
|
713
|
-
},
|
|
714
|
-
subTabsContainer: {
|
|
715
|
-
paddingHorizontal: 12,
|
|
716
|
-
flexDirection: 'row',
|
|
717
|
-
alignItems: 'center',
|
|
718
|
-
gap: 6,
|
|
719
|
-
},
|
|
720
|
-
subTabPill: {
|
|
721
|
-
flexDirection: 'row',
|
|
722
|
-
alignItems: 'center',
|
|
723
|
-
gap: 5,
|
|
724
|
-
paddingHorizontal: 10,
|
|
725
|
-
paddingVertical: 5.5,
|
|
726
|
-
borderRadius: 8,
|
|
727
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
728
|
-
borderWidth: 1,
|
|
729
|
-
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
730
|
-
},
|
|
731
|
-
subTabPillActive: {
|
|
732
|
-
backgroundColor: AppColors_1.AppColors.purple,
|
|
733
|
-
borderColor: AppColors_1.AppColors.purple,
|
|
734
|
-
},
|
|
735
|
-
subTabPillText: {
|
|
736
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
737
|
-
fontSize: 11,
|
|
738
|
-
color: AppColors_1.AppColors.grayText,
|
|
739
|
-
},
|
|
740
|
-
subTabPillTextActive: {
|
|
741
|
-
color: AppColors_1.AppColors.white,
|
|
742
|
-
},
|
|
743
|
-
actionBar: {
|
|
744
|
-
flexDirection: 'row',
|
|
745
|
-
alignItems: 'center',
|
|
746
|
-
paddingHorizontal: 12,
|
|
747
|
-
paddingVertical: 8,
|
|
748
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
749
|
-
borderBottomWidth: 1,
|
|
750
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
751
|
-
gap: 8,
|
|
752
|
-
},
|
|
753
|
-
searchBar: {
|
|
754
|
-
flex: 1,
|
|
755
|
-
flexDirection: 'row',
|
|
756
|
-
alignItems: 'center',
|
|
757
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
758
|
-
borderRadius: 8,
|
|
759
|
-
paddingHorizontal: 9,
|
|
760
|
-
paddingVertical: react_native_1.Platform.OS === 'ios' ? 6 : 2,
|
|
761
|
-
borderWidth: 1,
|
|
762
|
-
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
763
|
-
gap: 6,
|
|
764
|
-
},
|
|
765
|
-
searchInput: {
|
|
766
|
-
flex: 1,
|
|
767
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
768
|
-
fontSize: 12,
|
|
769
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
770
|
-
padding: 0,
|
|
771
|
-
},
|
|
772
|
-
exportButton: {
|
|
773
|
-
flexDirection: 'row',
|
|
774
|
-
alignItems: 'center',
|
|
775
|
-
gap: 4,
|
|
776
|
-
paddingHorizontal: 9,
|
|
777
|
-
paddingVertical: 6,
|
|
778
|
-
borderRadius: 8,
|
|
779
|
-
backgroundColor: `${AppColors_1.AppColors.purple}14`,
|
|
780
|
-
borderWidth: 1,
|
|
781
|
-
borderColor: `${AppColors_1.AppColors.purple}33`,
|
|
782
|
-
},
|
|
783
|
-
exportButtonText: {
|
|
784
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
785
|
-
fontSize: 11,
|
|
786
|
-
color: AppColors_1.AppColors.purple,
|
|
787
|
-
},
|
|
788
|
-
scrollArea: {
|
|
789
|
-
flex: 1,
|
|
790
|
-
},
|
|
791
|
-
scrollContent: {
|
|
792
|
-
padding: 12,
|
|
793
|
-
gap: 12,
|
|
794
|
-
paddingBottom: 100,
|
|
795
|
-
},
|
|
796
|
-
heroCard: {
|
|
797
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
798
|
-
borderRadius: 14,
|
|
799
|
-
borderWidth: 1,
|
|
800
|
-
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
801
|
-
padding: 14,
|
|
802
|
-
shadowColor: AppColors_1.AppColors.black,
|
|
803
|
-
shadowOpacity: 0.04,
|
|
804
|
-
shadowRadius: 4,
|
|
805
|
-
shadowOffset: { width: 0, height: 2 },
|
|
806
|
-
elevation: 1,
|
|
807
|
-
gap: 12,
|
|
808
|
-
},
|
|
809
|
-
heroHeader: {
|
|
810
|
-
flexDirection: 'row',
|
|
811
|
-
alignItems: 'center',
|
|
812
|
-
gap: 10,
|
|
813
|
-
},
|
|
814
|
-
heroIconWrap: {
|
|
815
|
-
width: 38,
|
|
816
|
-
height: 38,
|
|
817
|
-
borderRadius: 10,
|
|
818
|
-
backgroundColor: AppColors_1.AppColors.purple,
|
|
819
|
-
alignItems: 'center',
|
|
820
|
-
justifyContent: 'center',
|
|
821
|
-
shadowColor: AppColors_1.AppColors.purple,
|
|
822
|
-
shadowOpacity: 0.25,
|
|
823
|
-
shadowRadius: 4,
|
|
824
|
-
shadowOffset: { width: 0, height: 2 },
|
|
825
|
-
elevation: 2,
|
|
826
|
-
},
|
|
827
|
-
heroTitle: {
|
|
828
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
829
|
-
fontSize: 15,
|
|
830
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
831
|
-
letterSpacing: -0.2,
|
|
832
|
-
},
|
|
833
|
-
heroSubtitle: {
|
|
834
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
835
|
-
fontSize: 11.5,
|
|
836
|
-
color: AppColors_1.AppColors.grayText,
|
|
837
|
-
marginTop: 1,
|
|
838
|
-
},
|
|
839
|
-
heroBadge: {
|
|
840
|
-
flexDirection: 'row',
|
|
841
|
-
alignItems: 'center',
|
|
842
|
-
gap: 4,
|
|
843
|
-
backgroundColor: `${AppColors_1.AppColors.emerald500}18`,
|
|
844
|
-
paddingHorizontal: 7,
|
|
845
|
-
paddingVertical: 3,
|
|
846
|
-
borderRadius: 6,
|
|
847
|
-
},
|
|
848
|
-
pulseDot: {
|
|
849
|
-
width: 6,
|
|
850
|
-
height: 6,
|
|
851
|
-
borderRadius: 3,
|
|
852
|
-
backgroundColor: AppColors_1.AppColors.emerald500,
|
|
853
|
-
},
|
|
854
|
-
heroBadgeText: {
|
|
855
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
856
|
-
fontSize: 9.5,
|
|
857
|
-
color: AppColors_1.AppColors.emerald500,
|
|
858
|
-
},
|
|
859
|
-
heroMetricsStrip: {
|
|
860
|
-
flexDirection: 'row',
|
|
861
|
-
alignItems: 'center',
|
|
862
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
863
|
-
borderRadius: 10,
|
|
864
|
-
paddingVertical: 8,
|
|
865
|
-
paddingHorizontal: 10,
|
|
866
|
-
},
|
|
867
|
-
heroMetricItem: {
|
|
868
|
-
flex: 1,
|
|
869
|
-
alignItems: 'center',
|
|
870
|
-
paddingHorizontal: 2,
|
|
871
|
-
minWidth: 0,
|
|
872
|
-
},
|
|
873
|
-
heroMetricLabel: {
|
|
874
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
875
|
-
fontSize: 8.5,
|
|
876
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
877
|
-
letterSpacing: 0.4,
|
|
878
|
-
},
|
|
879
|
-
heroMetricValue: {
|
|
880
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
881
|
-
fontSize: 11,
|
|
882
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
883
|
-
marginTop: 2,
|
|
884
|
-
},
|
|
885
|
-
heroMetricDivider: {
|
|
886
|
-
width: 1,
|
|
887
|
-
height: 20,
|
|
888
|
-
backgroundColor: AppColors_1.AppColors.dividerColor,
|
|
889
|
-
},
|
|
890
|
-
sectionCard: {
|
|
891
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
892
|
-
borderRadius: 14,
|
|
893
|
-
borderWidth: 1,
|
|
894
|
-
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
895
|
-
padding: 14,
|
|
896
|
-
shadowColor: AppColors_1.AppColors.black,
|
|
897
|
-
shadowOpacity: 0.03,
|
|
898
|
-
shadowRadius: 3,
|
|
899
|
-
shadowOffset: { width: 0, height: 1 },
|
|
900
|
-
elevation: 1,
|
|
901
|
-
},
|
|
902
|
-
sectionTitle: {
|
|
903
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
904
|
-
fontSize: 10.5,
|
|
905
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
906
|
-
letterSpacing: 0.8,
|
|
907
|
-
marginBottom: 8,
|
|
908
|
-
textTransform: 'uppercase',
|
|
909
|
-
},
|
|
910
|
-
infoRow: {
|
|
911
|
-
flexDirection: 'row',
|
|
912
|
-
alignItems: 'center',
|
|
913
|
-
justifyContent: 'space-between',
|
|
914
|
-
paddingVertical: 9,
|
|
915
|
-
borderBottomWidth: 1,
|
|
916
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
917
|
-
},
|
|
918
|
-
infoLabel: {
|
|
919
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
920
|
-
fontSize: 12.5,
|
|
921
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
922
|
-
},
|
|
923
|
-
infoSubtext: {
|
|
924
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
925
|
-
fontSize: 10,
|
|
926
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
927
|
-
marginTop: 1,
|
|
928
|
-
},
|
|
929
|
-
infoBadge: {
|
|
930
|
-
paddingHorizontal: 5,
|
|
931
|
-
paddingVertical: 1,
|
|
932
|
-
borderRadius: 4,
|
|
933
|
-
borderWidth: 1,
|
|
934
|
-
},
|
|
935
|
-
infoBadgeText: {
|
|
936
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
937
|
-
fontSize: 8.5,
|
|
938
|
-
},
|
|
939
|
-
infoValue: {
|
|
940
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
941
|
-
fontSize: 12,
|
|
942
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
943
|
-
flexShrink: 1,
|
|
944
|
-
textAlign: 'right',
|
|
945
|
-
},
|
|
946
|
-
rowCopyBtn: {
|
|
947
|
-
padding: 4,
|
|
948
|
-
borderRadius: 4,
|
|
949
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
950
|
-
},
|
|
951
|
-
emptySearchCard: {
|
|
952
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
953
|
-
borderRadius: 14,
|
|
954
|
-
borderWidth: 1,
|
|
955
|
-
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
956
|
-
padding: 24,
|
|
957
|
-
alignItems: 'center',
|
|
958
|
-
justifyContent: 'center',
|
|
959
|
-
gap: 8,
|
|
960
|
-
marginTop: 8,
|
|
961
|
-
},
|
|
962
|
-
emptySearchTitle: {
|
|
963
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
964
|
-
fontSize: 13.5,
|
|
965
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
966
|
-
textAlign: 'center',
|
|
967
|
-
},
|
|
968
|
-
emptySearchSubtitle: {
|
|
969
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
970
|
-
fontSize: 11.5,
|
|
971
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
972
|
-
textAlign: 'center',
|
|
973
|
-
},
|
|
974
|
-
clearSearchBtn: {
|
|
975
|
-
marginTop: 6,
|
|
976
|
-
paddingHorizontal: 14,
|
|
977
|
-
paddingVertical: 6.5,
|
|
978
|
-
borderRadius: 8,
|
|
979
|
-
backgroundColor: AppColors_1.AppColors.purple,
|
|
980
|
-
},
|
|
981
|
-
clearSearchBtnText: {
|
|
982
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
983
|
-
fontSize: 11,
|
|
984
|
-
color: AppColors_1.AppColors.white,
|
|
985
|
-
},
|
|
986
|
-
});
|
|
987
|
-
exports.default = exports.DeviceInfoTab;
|
|
223
|
+
</react_native_1.View>});const styles=react_native_1.StyleSheet.create({container:{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground},subTabsWrapper:{backgroundColor:AppColors_1.AppColors.primaryLight,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor,paddingVertical:8},subTabsContainer:{paddingHorizontal:12,flexDirection:"row",alignItems:"center",gap:6},subTabPill:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:10,paddingVertical:5.5,borderRadius:8,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},subTabPillActive:{backgroundColor:AppColors_1.AppColors.purple,borderColor:AppColors_1.AppColors.purple},subTabPillText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.grayText},subTabPillTextActive:{color:AppColors_1.AppColors.white},actionBar:{flexDirection:"row",alignItems:"center",paddingHorizontal:12,paddingVertical:8,backgroundColor:AppColors_1.AppColors.primaryLight,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor,gap:8},searchBar:{flex:1,flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,paddingHorizontal:9,paddingVertical:react_native_1.Platform.OS==="ios"?6:2,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:6},searchInput:{flex:1,fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.primaryBlack,padding:0},exportButton:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:9,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}33`},exportButtonText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.purple},scrollArea:{flex:1},scrollContent:{padding:12,gap:12,paddingBottom:100},heroCard:{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:14,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.04,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:1,gap:12},heroHeader:{flexDirection:"row",alignItems:"center",gap:10},heroIconWrap:{width:38,height:38,borderRadius:10,backgroundColor:AppColors_1.AppColors.purple,alignItems:"center",justifyContent:"center",shadowColor:AppColors_1.AppColors.purple,shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2},heroTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:15,color:AppColors_1.AppColors.primaryBlack,letterSpacing:-.2},heroSubtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11.5,color:AppColors_1.AppColors.grayText,marginTop:1},heroBadge:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${AppColors_1.AppColors.emerald500}18`,paddingHorizontal:7,paddingVertical:3,borderRadius:6},pulseDot:{width:6,height:6,borderRadius:3,backgroundColor:AppColors_1.AppColors.emerald500},heroBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.emerald500},heroMetricsStrip:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,paddingVertical:8,paddingHorizontal:10},heroMetricItem:{flex:1,alignItems:"center",paddingHorizontal:2,minWidth:0},heroMetricLabel:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.4},heroMetricValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.primaryBlack,marginTop:2},heroMetricDivider:{width:1,height:20,backgroundColor:AppColors_1.AppColors.dividerColor},sectionCard:{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:14,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.03,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:1},sectionTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.8,marginBottom:8,textTransform:"uppercase"},infoRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:9,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor},infoLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12.5,color:AppColors_1.AppColors.primaryBlack},infoSubtext:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10,color:AppColors_1.AppColors.grayTextWeak,marginTop:1},infoBadge:{paddingHorizontal:5,paddingVertical:1,borderRadius:4,borderWidth:1},infoBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5},infoValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.primaryBlack,flexShrink:1,textAlign:"right"},rowCopyBtn:{padding:4,borderRadius:4,backgroundColor:AppColors_1.AppColors.grayBackground},emptySearchCard:{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:24,alignItems:"center",justifyContent:"center",gap:8,marginTop:8},emptySearchTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,color:AppColors_1.AppColors.primaryBlack,textAlign:"center"},emptySearchSubtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11.5,color:AppColors_1.AppColors.grayTextWeak,textAlign:"center"},clearSearchBtn:{marginTop:6,paddingHorizontal:14,paddingVertical:6.5,borderRadius:8,backgroundColor:AppColors_1.AppColors.purple},clearSearchBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.white}});exports.default=exports.DeviceInfoTab;
|