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,958 +1,197 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { AppFonts } from '../../styles/AppFonts';
|
|
5
|
-
import QRCodeView from '../QRCodeView';
|
|
6
|
-
import TouchableScale from '../TouchableScale';
|
|
7
|
-
import { showToast } from '../../helpers/toast';
|
|
8
|
-
import { triggerNativeHaptic } from '../../native/NativeInspector';
|
|
9
|
-
import { InfoCircleIcon, CheckIcon, BoltIcon, CircleXIcon, SparkleIcon, AndroidIcon, RepeatIcon, } from '../NetworkIcons';
|
|
10
|
-
import Svg, { Path } from 'react-native-svg';
|
|
11
|
-
const TerminalConsoleIcon = ({ color = AppColors.purple, size = 13 }) => (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
12
|
-
<Path d="M4 17l6-6-6-6M12 19h8" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
13
|
-
</Svg>);
|
|
14
|
-
export const DebuggingTab = () => {
|
|
15
|
-
const detectedConfig = useMemo(() => {
|
|
16
|
-
const scriptURL = NativeModules.SourceCode?.scriptURL || '';
|
|
17
|
-
let host = 'localhost';
|
|
18
|
-
let port = 8081;
|
|
19
|
-
try {
|
|
20
|
-
if (scriptURL.includes('://')) {
|
|
21
|
-
const urlWithoutScheme = scriptURL.split('://')[1];
|
|
22
|
-
const hostAndPort = urlWithoutScheme.split('/')[0];
|
|
23
|
-
if (hostAndPort.includes(':')) {
|
|
24
|
-
const parts = hostAndPort.split(':');
|
|
25
|
-
host = parts[0];
|
|
26
|
-
const parsedPort = parseInt(parts[1], 10);
|
|
27
|
-
if (!isNaN(parsedPort))
|
|
28
|
-
port = parsedPort;
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
host = hostAndPort;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
catch { }
|
|
36
|
-
return { host, port, scriptURL };
|
|
37
|
-
}, []);
|
|
38
|
-
const [hostIp, setHostIp] = useState(() => {
|
|
39
|
-
if (detectedConfig.host &&
|
|
40
|
-
detectedConfig.host !== 'localhost' &&
|
|
41
|
-
detectedConfig.host !== '127.0.0.1' &&
|
|
42
|
-
detectedConfig.host !== '10.0.2.2') {
|
|
43
|
-
return detectedConfig.host;
|
|
44
|
-
}
|
|
45
|
-
return '192.168.1.2';
|
|
46
|
-
});
|
|
47
|
-
const [port, setPort] = useState(detectedConfig.port || 8083);
|
|
48
|
-
const [apkFileName, setApkFileName] = useState('app-debug.apk');
|
|
49
|
-
const [apkSizeMb, setApkSizeMb] = useState(null);
|
|
50
|
-
const [selectedScheme, setSelectedScheme] = useState('assembleRelease');
|
|
51
|
-
const [isCleanBuild, setIsCleanBuild] = useState(true);
|
|
52
|
-
const [buildStatus, setBuildStatus] = useState({
|
|
53
|
-
status: 'idle',
|
|
54
|
-
scheme: 'assembleRelease',
|
|
55
|
-
clean: true,
|
|
56
|
-
progress: 0,
|
|
57
|
-
currentTask: '',
|
|
58
|
-
error: null,
|
|
59
|
-
apkName: null,
|
|
60
|
-
apkSize: null,
|
|
61
|
-
});
|
|
62
|
-
const pollingRef = useRef(null);
|
|
63
|
-
const progressAnim = useRef(new Animated.Value(0)).current;
|
|
64
|
-
const [showVerboseLogs, setShowVerboseLogs] = useState(true);
|
|
65
|
-
const verboseScrollRef = useRef(null);
|
|
66
|
-
useEffect(() => {
|
|
67
|
-
Animated.timing(progressAnim, {
|
|
68
|
-
toValue: Math.max(0, Math.min(100, buildStatus.progress)),
|
|
69
|
-
duration: 350,
|
|
70
|
-
useNativeDriver: false,
|
|
71
|
-
}).start();
|
|
72
|
-
}, [buildStatus.progress, progressAnim]);
|
|
73
|
-
useEffect(() => {
|
|
74
|
-
if (buildStatus.logs && buildStatus.logs.length > 0) {
|
|
75
|
-
setTimeout(() => {
|
|
76
|
-
verboseScrollRef.current?.scrollToEnd({ animated: true });
|
|
77
|
-
}, 50);
|
|
78
|
-
}
|
|
79
|
-
}, [buildStatus.logs]);
|
|
80
|
-
const fetchMetroTelemetry = useCallback(async () => {
|
|
81
|
-
const hostsToTry = Array.from(new Set([detectedConfig.host, '10.0.2.2', 'localhost', '127.0.0.1'].filter(Boolean)));
|
|
82
|
-
const portsToTry = Array.from(new Set([detectedConfig.port, 8083, 8081, 8082].filter(Boolean)));
|
|
83
|
-
for (const h of hostsToTry) {
|
|
84
|
-
for (const p of portsToTry) {
|
|
85
|
-
try {
|
|
86
|
-
const controller = new AbortController();
|
|
87
|
-
const timeoutId = setTimeout(() => controller.abort(), 1200);
|
|
88
|
-
const res = await fetch(`http://${h}:${p}/__inapp_inspector/apk-info`, {
|
|
89
|
-
signal: controller.signal,
|
|
90
|
-
});
|
|
91
|
-
clearTimeout(timeoutId);
|
|
92
|
-
if (res.ok) {
|
|
93
|
-
const data = await res.json();
|
|
94
|
-
if (data.hostIp &&
|
|
95
|
-
data.hostIp !== '127.0.0.1' &&
|
|
96
|
-
data.hostIp !== 'localhost' &&
|
|
97
|
-
data.hostIp !== '10.0.2.2') {
|
|
98
|
-
setHostIp(data.hostIp);
|
|
99
|
-
}
|
|
100
|
-
if (data.port) {
|
|
101
|
-
setPort(data.port);
|
|
102
|
-
}
|
|
103
|
-
if (data.apkName) {
|
|
104
|
-
setApkFileName(data.apkName);
|
|
105
|
-
}
|
|
106
|
-
if (data.apkSize) {
|
|
107
|
-
setApkSizeMb((data.apkSize / (1024 * 1024)).toFixed(1));
|
|
108
|
-
}
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
catch { }
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}, [detectedConfig.host, detectedConfig.port]);
|
|
116
|
-
useEffect(() => {
|
|
117
|
-
fetchMetroTelemetry();
|
|
118
|
-
}, [fetchMetroTelemetry]);
|
|
119
|
-
useEffect(() => {
|
|
120
|
-
return () => {
|
|
121
|
-
if (pollingRef.current) {
|
|
122
|
-
clearInterval(pollingRef.current);
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
}, []);
|
|
126
|
-
const pollBuildStatus = useCallback(() => {
|
|
127
|
-
if (pollingRef.current)
|
|
128
|
-
clearInterval(pollingRef.current);
|
|
129
|
-
const targetHost = detectedConfig.host || '10.0.2.2';
|
|
130
|
-
pollingRef.current = setInterval(async () => {
|
|
131
|
-
try {
|
|
132
|
-
const res = await fetch(`http://${targetHost}:${port}/__inapp_inspector/build-status`);
|
|
133
|
-
if (res.ok) {
|
|
134
|
-
const data = await res.json();
|
|
135
|
-
setBuildStatus(data);
|
|
136
|
-
if (data.status === 'completed') {
|
|
137
|
-
if (pollingRef.current)
|
|
138
|
-
clearInterval(pollingRef.current);
|
|
139
|
-
triggerNativeHaptic('success');
|
|
140
|
-
showToast('✓ APK Build Generated Successfully!');
|
|
141
|
-
if (data.apkSize) {
|
|
142
|
-
setApkSizeMb((data.apkSize / (1024 * 1024)).toFixed(1));
|
|
143
|
-
}
|
|
144
|
-
if (data.apkName) {
|
|
145
|
-
setApkFileName(data.apkName);
|
|
146
|
-
}
|
|
147
|
-
fetchMetroTelemetry();
|
|
148
|
-
}
|
|
149
|
-
else if (data.status === 'failed') {
|
|
150
|
-
if (pollingRef.current)
|
|
151
|
-
clearInterval(pollingRef.current);
|
|
152
|
-
triggerNativeHaptic('error');
|
|
153
|
-
showToast('✕ Build Failed: ' + (data.error || 'Gradle error'));
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
catch { }
|
|
158
|
-
}, 1000);
|
|
159
|
-
}, [detectedConfig.host, port, fetchMetroTelemetry]);
|
|
160
|
-
const handleStartBuild = async () => {
|
|
161
|
-
triggerNativeHaptic('medium');
|
|
162
|
-
setBuildStatus({
|
|
163
|
-
status: 'running',
|
|
164
|
-
scheme: selectedScheme,
|
|
165
|
-
clean: isCleanBuild,
|
|
166
|
-
progress: 5,
|
|
167
|
-
currentTask: isCleanBuild ? 'Cleaning build cache...' : 'Initializing build...',
|
|
168
|
-
error: null,
|
|
169
|
-
apkName: null,
|
|
170
|
-
apkSize: null,
|
|
171
|
-
});
|
|
172
|
-
const hostsToTry = Array.from(new Set([detectedConfig.host, '10.0.2.2', 'localhost', '127.0.0.1'].filter(Boolean)));
|
|
173
|
-
const portsToTry = Array.from(new Set([port, 8083, 8081, 8082].filter(Boolean)));
|
|
174
|
-
let buildTriggered = false;
|
|
175
|
-
for (const h of hostsToTry) {
|
|
176
|
-
for (const p of portsToTry) {
|
|
177
|
-
try {
|
|
178
|
-
const controller = new AbortController();
|
|
179
|
-
const timeoutId = setTimeout(() => controller.abort(), 2000);
|
|
180
|
-
const res = await fetch(`http://${h}:${p}/__inapp_inspector/build-apk?scheme=${selectedScheme}&clean=${isCleanBuild}`, { signal: controller.signal });
|
|
181
|
-
clearTimeout(timeoutId);
|
|
182
|
-
if (res.ok) {
|
|
183
|
-
buildTriggered = true;
|
|
184
|
-
pollBuildStatus();
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
catch { }
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
if (!buildTriggered) {
|
|
192
|
-
setBuildStatus(prev => ({
|
|
193
|
-
...prev,
|
|
194
|
-
status: 'failed',
|
|
195
|
-
error: 'Cannot reach build server. Ensure npm start or npm run serve-apk is running on host.',
|
|
196
|
-
}));
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
const handleStopBuild = async () => {
|
|
200
|
-
triggerNativeHaptic('warning');
|
|
201
|
-
if (pollingRef.current)
|
|
202
|
-
clearInterval(pollingRef.current);
|
|
203
|
-
const hostsToTry = Array.from(new Set([detectedConfig.host, '10.0.2.2', 'localhost', '127.0.0.1'].filter(Boolean)));
|
|
204
|
-
const portsToTry = Array.from(new Set([port, 8083, 8081, 8082].filter(Boolean)));
|
|
205
|
-
for (const h of hostsToTry) {
|
|
206
|
-
for (const p of portsToTry) {
|
|
207
|
-
try {
|
|
208
|
-
const controller = new AbortController();
|
|
209
|
-
const timeoutId = setTimeout(() => controller.abort(), 1500);
|
|
210
|
-
await fetch(`http://${h}:${p}/__inapp_inspector/stop-build`, {
|
|
211
|
-
signal: controller.signal,
|
|
212
|
-
});
|
|
213
|
-
clearTimeout(timeoutId);
|
|
214
|
-
}
|
|
215
|
-
catch { }
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
setBuildStatus(prev => ({
|
|
219
|
-
...prev,
|
|
220
|
-
status: 'idle',
|
|
221
|
-
currentTask: 'Build cancelled by user',
|
|
222
|
-
logs: [...(prev.logs || []), '🛑 Build cancelled by user.'],
|
|
223
|
-
}));
|
|
224
|
-
showToast('Build cancelled');
|
|
225
|
-
};
|
|
226
|
-
const apkDownloadUrl = `http://${hostIp}:${port}/${apkFileName.replace(/^\/+/, '')}`;
|
|
227
|
-
const handleShare = () => {
|
|
228
|
-
triggerNativeHaptic('light');
|
|
229
|
-
Share.share({
|
|
230
|
-
message: apkDownloadUrl,
|
|
231
|
-
title: 'Install Android APK',
|
|
232
|
-
});
|
|
233
|
-
};
|
|
234
|
-
const isBuilding = buildStatus.status === 'running';
|
|
235
|
-
return (<ScrollView style={styles.scrollArea} contentContainerStyle={styles.scrollContent} showsVerticalScrollIndicator={false}>
|
|
1
|
+
import{useState as M,useEffect as G,useMemo as Le,useCallback as ie,useRef as X}from"react";import{View as T,Text as C,ScrollView as Te,StyleSheet as We,NativeModules as Pe,Share as He,TouchableOpacity as U,ActivityIndicator as Ce,Animated as Z}from"react-native";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as S}from"../../styles/AppFonts";import Ee from"../QRCodeView";import Be from"../TouchableScale";import{showToast as J}from"../../helpers/toast";import{triggerNativeHaptic as L}from"../../native/NativeInspector";import{InfoCircleIcon as $e,CheckIcon as Se,BoltIcon as Re,CircleXIcon as Ie,SparkleIcon as Ne,AndroidIcon as Ue,RepeatIcon as _e,WrenchIcon as Ge}from"../NetworkIcons";import Ke,{Path as Qe}from"react-native-svg";const Xe=({color:I=e.purple,size:$=13})=><Ke width={$}height={$}viewBox="0 0 24 24"fill="none">
|
|
2
|
+
<Qe d="M4 17l6-6-6-6M12 19h8"stroke={I}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
3
|
+
</Ke>;export const DebuggingTab=()=>{const I=Le(()=>{const k=Pe.SourceCode?.scriptURL||"";let V="localhost",B=8081;try{if(k.includes("://")){const A=k.split("://")[1].split("/")[0];if(A.includes(":")){const v=A.split(":");V=v[0];const P=parseInt(v[1],10);isNaN(P)||(B=P)}else V=A}}catch{}return{host:V,port:B,scriptURL:k}},[]),[$,Ve]=M(()=>I.host&&I.host!=="localhost"&&I.host!=="127.0.0.1"&&I.host!=="10.0.2.2"?I.host:"192.168.1.2"),[H,ze]=M(I.port||8083),[De,Y]=M("app-debug.apk"),[q,ee]=M(null),[F,oe]=M("assembleRelease"),[W,Ae]=M(!0),[R,_]=M({status:"idle",scheme:"assembleRelease",clean:!0,progress:0,currentTask:"",error:null,apkName:null,apkSize:null}),D=X(null),K=X(new Z.Value(0)).current,[Q,ve]=M(!0),te=X(null);G(()=>{Z.timing(K,{toValue:Math.max(0,Math.min(100,R.progress)),duration:350,useNativeDriver:!1}).start()},[R.progress,K]),G(()=>{R.logs&&R.logs.length>0&&setTimeout(()=>{te.current?.scrollToEnd({animated:!0})},50)},[R.logs]);const N=ie(async()=>{const k=Array.from(new Set([I.host,"10.0.2.2","localhost","127.0.0.1"].filter(Boolean))),V=Array.from(new Set([I.port,8083,8081,8082].filter(Boolean)));for(const B of k)for(const O of V)try{const A=new AbortController,v=setTimeout(()=>A.abort(),1200),P=await fetch(`http://${B}:${O}/__inapp_inspector/apk-info`,{signal:A.signal});if(clearTimeout(v),P.ok){const z=await P.json();z.hostIp&&z.hostIp!=="127.0.0.1"&&z.hostIp!=="localhost"&&z.hostIp!=="10.0.2.2"&&Ve(z.hostIp),z.port&&ze(z.port),z.apkName&&Y(z.apkName),z.apkSize&&ee((z.apkSize/(1024*1024)).toFixed(1));return}}catch{}},[I.host,I.port]);G(()=>{N()},[N]),G(()=>()=>{D.current&&clearInterval(D.current)},[]);const Fe=ie(()=>{D.current&&clearInterval(D.current);const k=I.host||"10.0.2.2";D.current=setInterval(async()=>{try{const V=await fetch(`http://${k}:${H}/__inapp_inspector/build-status`);if(V.ok){const B=await V.json();_(B),B.status==="completed"?(D.current&&clearInterval(D.current),L("success"),J("\u2713 APK Build Generated Successfully!"),B.apkSize&&ee((B.apkSize/(1024*1024)).toFixed(1)),B.apkName&&Y(B.apkName),N()):B.status==="failed"&&(D.current&&clearInterval(D.current),L("error"),J("\u2715 Build Failed: "+(B.error||"Gradle error")))}}catch{}},1e3)},[I.host,H,N]),Oe=async()=>{L("medium"),_({status:"running",scheme:F,clean:W,progress:5,currentTask:W?"Cleaning build cache...":"Initializing build...",error:null,apkName:null,apkSize:null});const k=Array.from(new Set([I.host,"10.0.2.2","localhost","127.0.0.1"].filter(Boolean))),V=Array.from(new Set([H,8083,8081,8082].filter(Boolean)));let B=!1;for(const O of k)for(const A of V)try{const v=new AbortController,P=setTimeout(()=>v.abort(),2e3),z=await fetch(`http://${O}:${A}/__inapp_inspector/build-apk?scheme=${F}&clean=${W}`,{signal:v.signal});if(clearTimeout(P),z.ok){B=!0,Fe();return}}catch{}B||_(O=>({...O,status:"failed",error:"Cannot reach build server. Ensure npm start or npm run serve-apk is running on host."}))},Me=async()=>{L("warning"),D.current&&clearInterval(D.current);const k=Array.from(new Set([I.host,"10.0.2.2","localhost","127.0.0.1"].filter(Boolean))),V=Array.from(new Set([H,8083,8081,8082].filter(Boolean)));for(const B of k)for(const O of V)try{const A=new AbortController,v=setTimeout(()=>A.abort(),1500);await fetch(`http://${B}:${O}/__inapp_inspector/stop-build`,{signal:A.signal}),clearTimeout(v)}catch{}_(B=>({...B,status:"idle",currentTask:"Build cancelled by user",logs:[...B.logs||[],"\u{1F6D1} Build cancelled by user."]})),J("Build cancelled")},re=`http://${$}:${H}/${De.replace(/^\/+/,"")}`,Ze=()=>{L("light"),He.share({message:re,title:"Install Android APK"})},E=R.status==="running";return<Te style={o.scrollArea}contentContainerStyle={o.scrollContent}showsVerticalScrollIndicator={!1}>
|
|
236
4
|
|
|
237
|
-
<
|
|
238
|
-
<
|
|
239
|
-
<
|
|
240
|
-
<
|
|
241
|
-
</
|
|
242
|
-
<
|
|
243
|
-
<
|
|
5
|
+
<T style={o.heroCard}>
|
|
6
|
+
<T style={o.heroHeader}>
|
|
7
|
+
<T style={o.heroIconWrap}>
|
|
8
|
+
<Ue size={20}color={e.white}/>
|
|
9
|
+
</T>
|
|
10
|
+
<T style={{flex:1,minWidth:0}}>
|
|
11
|
+
<C style={o.heroTitle}numberOfLines={1}>
|
|
244
12
|
Multi-Device APK Installer
|
|
245
|
-
</
|
|
246
|
-
<
|
|
13
|
+
</C>
|
|
14
|
+
<C style={o.heroSubtitle}numberOfLines={1}>
|
|
247
15
|
Scan QR code with another Android device to download
|
|
248
|
-
</
|
|
249
|
-
</
|
|
250
|
-
<
|
|
251
|
-
<
|
|
252
|
-
<
|
|
253
|
-
</
|
|
254
|
-
</
|
|
16
|
+
</C>
|
|
17
|
+
</T>
|
|
18
|
+
<T style={o.heroBadge}>
|
|
19
|
+
<T style={o.pulseDot}/>
|
|
20
|
+
<C style={o.heroBadgeText}>Live Metro</C>
|
|
21
|
+
</T>
|
|
22
|
+
</T>
|
|
255
23
|
|
|
256
24
|
|
|
257
|
-
<
|
|
258
|
-
<
|
|
259
|
-
<
|
|
260
|
-
<
|
|
261
|
-
{
|
|
262
|
-
</
|
|
263
|
-
</
|
|
264
|
-
<
|
|
265
|
-
<
|
|
266
|
-
<
|
|
267
|
-
<
|
|
268
|
-
</
|
|
269
|
-
<
|
|
270
|
-
<
|
|
271
|
-
<
|
|
272
|
-
<
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
<View style={styles.heroMetricItem}>
|
|
281
|
-
<Text style={styles.heroMetricLabel}>STATUS</Text>
|
|
282
|
-
<Text style={[
|
|
283
|
-
styles.heroMetricValue,
|
|
284
|
-
{ color: AppColors.emerald500 },
|
|
285
|
-
]}>
|
|
25
|
+
<T style={o.heroMetricsStrip}>
|
|
26
|
+
<T style={o.heroMetricItem}>
|
|
27
|
+
<C style={o.heroMetricLabel}>HOST IP</C>
|
|
28
|
+
<C style={o.heroMetricValue}numberOfLines={1}>
|
|
29
|
+
{$}
|
|
30
|
+
</C>
|
|
31
|
+
</T>
|
|
32
|
+
<T style={o.heroMetricDivider}/>
|
|
33
|
+
<T style={o.heroMetricItem}>
|
|
34
|
+
<C style={o.heroMetricLabel}>PORT</C>
|
|
35
|
+
<C style={o.heroMetricValue}>{H}</C>
|
|
36
|
+
</T>
|
|
37
|
+
<T style={o.heroMetricDivider}/>
|
|
38
|
+
<T style={o.heroMetricItem}>
|
|
39
|
+
<C style={o.heroMetricLabel}>APK SIZE</C>
|
|
40
|
+
<C style={[o.heroMetricValue,{color:q?e.emerald500:e.grayTextWeak}]}>
|
|
41
|
+
{q?`${q} MB`:"Detected"}
|
|
42
|
+
</C>
|
|
43
|
+
</T>
|
|
44
|
+
<T style={o.heroMetricDivider}/>
|
|
45
|
+
<T style={o.heroMetricItem}>
|
|
46
|
+
<C style={o.heroMetricLabel}>STATUS</C>
|
|
47
|
+
<C style={[o.heroMetricValue,{color:e.emerald500}]}>
|
|
286
48
|
Ready
|
|
287
|
-
</
|
|
288
|
-
</
|
|
289
|
-
</
|
|
290
|
-
</
|
|
49
|
+
</C>
|
|
50
|
+
</T>
|
|
51
|
+
</T>
|
|
52
|
+
</T>
|
|
291
53
|
|
|
292
54
|
|
|
293
|
-
<
|
|
294
|
-
<
|
|
295
|
-
<
|
|
296
|
-
<
|
|
297
|
-
<
|
|
298
|
-
<
|
|
299
|
-
</
|
|
300
|
-
</
|
|
55
|
+
<T style={o.sectionCard}>
|
|
56
|
+
<T style={o.sectionHeaderRow}>
|
|
57
|
+
<C style={o.sectionTitle}>QR CODE & DIRECT DOWNLOAD</C>
|
|
58
|
+
<U activeOpacity={.7}onPress={N}style={o.refreshBtn}>
|
|
59
|
+
<_e size={12}color={e.purple}/>
|
|
60
|
+
<C style={o.refreshBtnText}>Refresh</C>
|
|
61
|
+
</U>
|
|
62
|
+
</T>
|
|
301
63
|
|
|
302
64
|
|
|
303
|
-
<
|
|
304
|
-
<
|
|
305
|
-
<
|
|
306
|
-
</
|
|
307
|
-
</
|
|
308
|
-
</
|
|
65
|
+
<T style={o.qrCenteredWrapper}>
|
|
66
|
+
<T style={o.qrInnerFrame}>
|
|
67
|
+
<Ee value={re}size={235}color={e.primaryBlack}backgroundColor={e.white}/>
|
|
68
|
+
</T>
|
|
69
|
+
</T>
|
|
70
|
+
</T>
|
|
309
71
|
|
|
310
72
|
|
|
311
|
-
<
|
|
312
|
-
<
|
|
313
|
-
<
|
|
314
|
-
<
|
|
315
|
-
<
|
|
316
|
-
</
|
|
317
|
-
{
|
|
318
|
-
<
|
|
319
|
-
<
|
|
320
|
-
</
|
|
321
|
-
</
|
|
73
|
+
<T style={o.sectionCard}>
|
|
74
|
+
<T style={o.sectionHeaderRow}>
|
|
75
|
+
<T style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
76
|
+
<Re size={13}color={e.purple}/>
|
|
77
|
+
<C style={o.sectionTitle}>BUILD GENERATOR (GRADLE)</C>
|
|
78
|
+
</T>
|
|
79
|
+
{R.status==="completed"&&<T style={o.completedBadge}>
|
|
80
|
+
<Se size={10}color={e.emerald500}/>
|
|
81
|
+
<C style={o.completedBadgeText}>100% Ready</C>
|
|
82
|
+
</T>}
|
|
83
|
+
</T>
|
|
322
84
|
|
|
323
85
|
|
|
324
|
-
<
|
|
325
|
-
<
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
styles.subTabText,
|
|
334
|
-
selectedScheme === 'assembleRelease' && styles.subTabTextActive,
|
|
335
|
-
]}>
|
|
336
|
-
⚡ Release (assembleRelease)
|
|
337
|
-
</Text>
|
|
338
|
-
</TouchableOpacity>
|
|
86
|
+
<T style={o.subTabStrip}>
|
|
87
|
+
<U disabled={E}activeOpacity={.7}onPress={()=>{L("light"),oe("assembleRelease")}}style={[o.subTabItem,F==="assembleRelease"&&o.subTabItemActive]}>
|
|
88
|
+
<T style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
89
|
+
<Re size={12}color={F==="assembleRelease"?e.white:e.grayText}/>
|
|
90
|
+
<C style={[o.subTabText,F==="assembleRelease"&&o.subTabTextActive]}>
|
|
91
|
+
Release (assembleRelease)
|
|
92
|
+
</C>
|
|
93
|
+
</T>
|
|
94
|
+
</U>
|
|
339
95
|
|
|
340
|
-
<
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
selectedScheme === 'assembleDebug' && styles.subTabTextActive,
|
|
350
|
-
]}>
|
|
351
|
-
🛠 Debug (assembleDebug)
|
|
352
|
-
</Text>
|
|
353
|
-
</TouchableOpacity>
|
|
354
|
-
</View>
|
|
96
|
+
<U disabled={E}activeOpacity={.7}onPress={()=>{L("light"),oe("assembleDebug")}}style={[o.subTabItem,F==="assembleDebug"&&o.subTabItemActive]}>
|
|
97
|
+
<T style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
98
|
+
<Ge size={12}color={F==="assembleDebug"?e.white:e.grayText}/>
|
|
99
|
+
<C style={[o.subTabText,F==="assembleDebug"&&o.subTabTextActive]}>
|
|
100
|
+
Debug (assembleDebug)
|
|
101
|
+
</C>
|
|
102
|
+
</T>
|
|
103
|
+
</U>
|
|
104
|
+
</T>
|
|
355
105
|
|
|
356
106
|
|
|
357
|
-
<
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
<
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
{isCleanBuild && <CheckIcon size={11} color={AppColors.white}/>}
|
|
366
|
-
</View>
|
|
367
|
-
<Text style={styles.cleanLabel}>
|
|
368
|
-
Clean build cache <Text style={styles.cleanCode}>(./gradlew clean)</Text>
|
|
369
|
-
</Text>
|
|
370
|
-
</TouchableOpacity>
|
|
107
|
+
<U disabled={E}activeOpacity={.7}onPress={()=>{L("light"),Ae(!W)}}style={o.cleanRow}>
|
|
108
|
+
<T style={[o.checkboxBox,W&&o.checkboxBoxActive]}>
|
|
109
|
+
{W&&<Se size={11}color={e.white}/>}
|
|
110
|
+
</T>
|
|
111
|
+
<C style={o.cleanLabel}>
|
|
112
|
+
Clean build cache <C style={o.cleanCode}>(./gradlew clean)</C>
|
|
113
|
+
</C>
|
|
114
|
+
</U>
|
|
371
115
|
|
|
372
116
|
|
|
373
|
-
{
|
|
374
|
-
<
|
|
375
|
-
<
|
|
376
|
-
<
|
|
377
|
-
<
|
|
378
|
-
{
|
|
379
|
-
</
|
|
380
|
-
</
|
|
381
|
-
<
|
|
382
|
-
{
|
|
383
|
-
</
|
|
384
|
-
</
|
|
117
|
+
{E&&<T style={o.progressContainer}>
|
|
118
|
+
<T style={o.progressTopRow}>
|
|
119
|
+
<T style={o.progressTaskGroup}>
|
|
120
|
+
<Ce size="small"color={e.purple}/>
|
|
121
|
+
<C style={o.progressTaskText}numberOfLines={1}>
|
|
122
|
+
{R.currentTask||"Executing Gradle tasks..."}
|
|
123
|
+
</C>
|
|
124
|
+
</T>
|
|
125
|
+
<C style={o.progressPercentageText}>
|
|
126
|
+
{R.progress}%
|
|
127
|
+
</C>
|
|
128
|
+
</T>
|
|
385
129
|
|
|
386
130
|
|
|
387
|
-
<
|
|
388
|
-
<
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
width: progressAnim.interpolate({
|
|
392
|
-
inputRange: [0, 100],
|
|
393
|
-
outputRange: ['5%', '100%'],
|
|
394
|
-
}),
|
|
395
|
-
},
|
|
396
|
-
]}/>
|
|
397
|
-
</View>
|
|
398
|
-
</View>)}
|
|
131
|
+
<T style={o.progressBarTrack}>
|
|
132
|
+
<Z.View style={[o.progressBarFill,{width:K.interpolate({inputRange:[0,100],outputRange:["5%","100%"]})}]}/>
|
|
133
|
+
</T>
|
|
134
|
+
</T>}
|
|
399
135
|
|
|
400
136
|
|
|
401
|
-
{
|
|
402
|
-
<
|
|
403
|
-
<
|
|
404
|
-
{
|
|
405
|
-
</
|
|
406
|
-
</
|
|
137
|
+
{R.status==="failed"&&<T style={o.errorContainer}>
|
|
138
|
+
<Ie size={13}color={e.errorColor}/>
|
|
139
|
+
<C style={o.errorText}numberOfLines={2}>
|
|
140
|
+
{R.error||"Build execution failed."}
|
|
141
|
+
</C>
|
|
142
|
+
</T>}
|
|
407
143
|
|
|
408
144
|
|
|
409
|
-
{(
|
|
410
|
-
<
|
|
411
|
-
<
|
|
412
|
-
<
|
|
413
|
-
<
|
|
414
|
-
</
|
|
415
|
-
<
|
|
416
|
-
<
|
|
417
|
-
{
|
|
418
|
-
</
|
|
419
|
-
</
|
|
420
|
-
</
|
|
145
|
+
{(R.logs&&R.logs.length>0||E)&&<T style={o.consoleContainer}>
|
|
146
|
+
<T style={o.consoleHeaderRow}>
|
|
147
|
+
<T style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
148
|
+
<Xe color="#38BDF8"size={12}/>
|
|
149
|
+
<C style={o.consoleHeaderTitle}>GRADLE VERBOSE OUTPUT</C>
|
|
150
|
+
</T>
|
|
151
|
+
<U activeOpacity={.7}onPress={()=>ve(!Q)}style={o.consoleToggleBtn}>
|
|
152
|
+
<C style={o.consoleToggleText}>
|
|
153
|
+
{Q?"Hide Console":"Show Console"}
|
|
154
|
+
</C>
|
|
155
|
+
</U>
|
|
156
|
+
</T>
|
|
421
157
|
|
|
422
|
-
{
|
|
423
|
-
{
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
logColor = '#38BDF8';
|
|
427
|
-
else if (logLine.includes('BUILD SUCCESSFUL'))
|
|
428
|
-
logColor = '#4ADE80';
|
|
429
|
-
else if (logLine.includes('FAILURE') || logLine.includes('error:'))
|
|
430
|
-
logColor = '#F87171';
|
|
431
|
-
else if (logLine.includes('UP-TO-DATE'))
|
|
432
|
-
logColor = '#A78BFA';
|
|
433
|
-
return (<Text key={idx} style={[styles.consoleLogLine, { color: logColor }]}>
|
|
434
|
-
{logLine}
|
|
435
|
-
</Text>);
|
|
436
|
-
})) : (<Text style={styles.consoleLogPlaceholder}>
|
|
158
|
+
{Q&&<Te ref={te}style={o.consoleLogBox}contentContainerStyle={o.consoleLogContent}nestedScrollEnabled showsVerticalScrollIndicator>
|
|
159
|
+
{R.logs&&R.logs.length>0?R.logs.map((k,V)=>{let B="#94A3B8";return k.startsWith("> Task :")?B="#38BDF8":k.includes("BUILD SUCCESSFUL")?B="#4ADE80":k.includes("FAILURE")||k.includes("error:")?B="#F87171":k.includes("UP-TO-DATE")&&(B="#A78BFA"),<C key={V}style={[o.consoleLogLine,{color:B}]}>
|
|
160
|
+
{k}
|
|
161
|
+
</C>}):<C style={o.consoleLogPlaceholder}>
|
|
437
162
|
Waiting for Gradle daemon output...
|
|
438
|
-
</
|
|
439
|
-
</
|
|
440
|
-
</
|
|
163
|
+
</C>}
|
|
164
|
+
</Te>}
|
|
165
|
+
</T>}
|
|
441
166
|
|
|
442
167
|
|
|
443
|
-
{
|
|
444
|
-
<
|
|
445
|
-
<
|
|
446
|
-
<
|
|
447
|
-
Building ({
|
|
448
|
-
</
|
|
449
|
-
</
|
|
168
|
+
{E?<T style={o.buildingActionsRow}>
|
|
169
|
+
<T style={o.buildingStatusPill}>
|
|
170
|
+
<Ce size="small"color={e.purple}/>
|
|
171
|
+
<C style={o.buildingStatusPillText}numberOfLines={1}>
|
|
172
|
+
Building ({R.progress}%)
|
|
173
|
+
</C>
|
|
174
|
+
</T>
|
|
450
175
|
|
|
451
|
-
<
|
|
452
|
-
<
|
|
453
|
-
<
|
|
454
|
-
</
|
|
455
|
-
</
|
|
456
|
-
<
|
|
457
|
-
<
|
|
458
|
-
<
|
|
459
|
-
{
|
|
460
|
-
</
|
|
461
|
-
</
|
|
462
|
-
</
|
|
463
|
-
</
|
|
176
|
+
<Be onPress={Me}style={o.stopBtn}>
|
|
177
|
+
<Ie size={13}color={e.white}/>
|
|
178
|
+
<C style={o.stopBtnText}>Stop Build</C>
|
|
179
|
+
</Be>
|
|
180
|
+
</T>:<Be onPress={Oe}style={o.generateBtn}>
|
|
181
|
+
<T style={o.ctaContentRow}>
|
|
182
|
+
<Ne size={14}color={e.white}/>
|
|
183
|
+
<C style={o.generateBtnText}>
|
|
184
|
+
{W?"Clean & Generate Build":"Generate Build"}
|
|
185
|
+
</C>
|
|
186
|
+
</T>
|
|
187
|
+
</Be>}
|
|
188
|
+
</T>
|
|
464
189
|
|
|
465
190
|
|
|
466
|
-
<
|
|
467
|
-
|
|
468
|
-
<
|
|
191
|
+
<T style={o.footerNoteRow}>
|
|
192
|
+
<$e size={13}color={e.grayTextWeak}/>
|
|
193
|
+
<C style={o.footerNoteText}>
|
|
469
194
|
Ensure both Android devices are connected to the same Wi-Fi network.
|
|
470
|
-
</
|
|
471
|
-
</
|
|
472
|
-
</
|
|
473
|
-
};
|
|
474
|
-
const styles = StyleSheet.create({
|
|
475
|
-
scrollArea: {
|
|
476
|
-
flex: 1,
|
|
477
|
-
backgroundColor: AppColors.contentBg,
|
|
478
|
-
},
|
|
479
|
-
scrollContent: {
|
|
480
|
-
padding: 12,
|
|
481
|
-
gap: 12,
|
|
482
|
-
paddingBottom: 100,
|
|
483
|
-
},
|
|
484
|
-
heroCard: {
|
|
485
|
-
backgroundColor: AppColors.primaryLight,
|
|
486
|
-
borderRadius: 14,
|
|
487
|
-
borderWidth: 1,
|
|
488
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
489
|
-
padding: 14,
|
|
490
|
-
shadowColor: AppColors.black,
|
|
491
|
-
shadowOpacity: 0.04,
|
|
492
|
-
shadowRadius: 4,
|
|
493
|
-
shadowOffset: { width: 0, height: 2 },
|
|
494
|
-
elevation: 1,
|
|
495
|
-
gap: 12,
|
|
496
|
-
},
|
|
497
|
-
heroHeader: {
|
|
498
|
-
flexDirection: 'row',
|
|
499
|
-
alignItems: 'center',
|
|
500
|
-
gap: 10,
|
|
501
|
-
},
|
|
502
|
-
heroIconWrap: {
|
|
503
|
-
width: 38,
|
|
504
|
-
height: 38,
|
|
505
|
-
borderRadius: 10,
|
|
506
|
-
backgroundColor: AppColors.purple,
|
|
507
|
-
alignItems: 'center',
|
|
508
|
-
justifyContent: 'center',
|
|
509
|
-
shadowColor: AppColors.purple,
|
|
510
|
-
shadowOpacity: 0.25,
|
|
511
|
-
shadowRadius: 4,
|
|
512
|
-
shadowOffset: { width: 0, height: 2 },
|
|
513
|
-
elevation: 2,
|
|
514
|
-
},
|
|
515
|
-
heroTitle: {
|
|
516
|
-
fontFamily: AppFonts.interBold,
|
|
517
|
-
fontSize: 15,
|
|
518
|
-
color: AppColors.primaryBlack,
|
|
519
|
-
letterSpacing: -0.2,
|
|
520
|
-
},
|
|
521
|
-
heroSubtitle: {
|
|
522
|
-
fontFamily: AppFonts.interRegular,
|
|
523
|
-
fontSize: 11.5,
|
|
524
|
-
color: AppColors.grayText,
|
|
525
|
-
marginTop: 1,
|
|
526
|
-
},
|
|
527
|
-
heroBadge: {
|
|
528
|
-
flexDirection: 'row',
|
|
529
|
-
alignItems: 'center',
|
|
530
|
-
gap: 4,
|
|
531
|
-
backgroundColor: `${AppColors.emerald500}18`,
|
|
532
|
-
paddingHorizontal: 7,
|
|
533
|
-
paddingVertical: 3,
|
|
534
|
-
borderRadius: 6,
|
|
535
|
-
},
|
|
536
|
-
pulseDot: {
|
|
537
|
-
width: 6,
|
|
538
|
-
height: 6,
|
|
539
|
-
borderRadius: 3,
|
|
540
|
-
backgroundColor: AppColors.emerald500,
|
|
541
|
-
},
|
|
542
|
-
heroBadgeText: {
|
|
543
|
-
fontFamily: AppFonts.interBold,
|
|
544
|
-
fontSize: 9.5,
|
|
545
|
-
color: AppColors.emerald500,
|
|
546
|
-
},
|
|
547
|
-
heroMetricsStrip: {
|
|
548
|
-
flexDirection: 'row',
|
|
549
|
-
alignItems: 'center',
|
|
550
|
-
backgroundColor: AppColors.grayBackground,
|
|
551
|
-
borderRadius: 10,
|
|
552
|
-
paddingVertical: 8,
|
|
553
|
-
paddingHorizontal: 10,
|
|
554
|
-
},
|
|
555
|
-
heroMetricItem: {
|
|
556
|
-
flex: 1,
|
|
557
|
-
alignItems: 'center',
|
|
558
|
-
paddingHorizontal: 2,
|
|
559
|
-
minWidth: 0,
|
|
560
|
-
},
|
|
561
|
-
heroMetricLabel: {
|
|
562
|
-
fontFamily: AppFonts.interBold,
|
|
563
|
-
fontSize: 8.5,
|
|
564
|
-
color: AppColors.grayTextWeak,
|
|
565
|
-
letterSpacing: 0.4,
|
|
566
|
-
},
|
|
567
|
-
heroMetricValue: {
|
|
568
|
-
fontFamily: AppFonts.interBold,
|
|
569
|
-
fontSize: 11,
|
|
570
|
-
color: AppColors.primaryBlack,
|
|
571
|
-
marginTop: 2,
|
|
572
|
-
},
|
|
573
|
-
heroMetricDivider: {
|
|
574
|
-
width: 1,
|
|
575
|
-
height: 20,
|
|
576
|
-
backgroundColor: AppColors.dividerColor,
|
|
577
|
-
},
|
|
578
|
-
sectionCard: {
|
|
579
|
-
backgroundColor: AppColors.primaryLight,
|
|
580
|
-
borderRadius: 14,
|
|
581
|
-
borderWidth: 1,
|
|
582
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
583
|
-
padding: 14,
|
|
584
|
-
shadowColor: AppColors.black,
|
|
585
|
-
shadowOpacity: 0.03,
|
|
586
|
-
shadowRadius: 3,
|
|
587
|
-
shadowOffset: { width: 0, height: 1 },
|
|
588
|
-
elevation: 1,
|
|
589
|
-
gap: 12,
|
|
590
|
-
},
|
|
591
|
-
sectionHeaderRow: {
|
|
592
|
-
flexDirection: 'row',
|
|
593
|
-
alignItems: 'center',
|
|
594
|
-
justifyContent: 'space-between',
|
|
595
|
-
},
|
|
596
|
-
sectionTitle: {
|
|
597
|
-
fontFamily: AppFonts.interBold,
|
|
598
|
-
fontSize: 10.5,
|
|
599
|
-
color: AppColors.grayTextWeak,
|
|
600
|
-
letterSpacing: 0.8,
|
|
601
|
-
textTransform: 'uppercase',
|
|
602
|
-
},
|
|
603
|
-
refreshBtn: {
|
|
604
|
-
flexDirection: 'row',
|
|
605
|
-
alignItems: 'center',
|
|
606
|
-
gap: 4,
|
|
607
|
-
paddingHorizontal: 7,
|
|
608
|
-
paddingVertical: 3,
|
|
609
|
-
borderRadius: 6,
|
|
610
|
-
backgroundColor: `${AppColors.purple}12`,
|
|
611
|
-
},
|
|
612
|
-
refreshBtnText: {
|
|
613
|
-
fontFamily: AppFonts.interBold,
|
|
614
|
-
fontSize: 10,
|
|
615
|
-
color: AppColors.purple,
|
|
616
|
-
},
|
|
617
|
-
qrCenteredWrapper: {
|
|
618
|
-
alignItems: 'center',
|
|
619
|
-
justifyContent: 'center',
|
|
620
|
-
backgroundColor: AppColors.grayBackground,
|
|
621
|
-
padding: 12,
|
|
622
|
-
borderRadius: 12,
|
|
623
|
-
borderWidth: 1,
|
|
624
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
625
|
-
},
|
|
626
|
-
qrInnerFrame: {
|
|
627
|
-
backgroundColor: AppColors.white,
|
|
628
|
-
padding: 6,
|
|
629
|
-
borderRadius: 8,
|
|
630
|
-
},
|
|
631
|
-
urlBox: {
|
|
632
|
-
flexDirection: 'row',
|
|
633
|
-
alignItems: 'center',
|
|
634
|
-
backgroundColor: AppColors.grayBackground,
|
|
635
|
-
borderRadius: 10,
|
|
636
|
-
paddingLeft: 10,
|
|
637
|
-
paddingRight: 6,
|
|
638
|
-
paddingVertical: 6,
|
|
639
|
-
borderWidth: 1,
|
|
640
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
641
|
-
gap: 8,
|
|
642
|
-
},
|
|
643
|
-
urlText: {
|
|
644
|
-
flex: 1,
|
|
645
|
-
fontFamily: AppFonts.interMedium,
|
|
646
|
-
fontSize: 11.5,
|
|
647
|
-
color: AppColors.skyBlue,
|
|
648
|
-
},
|
|
649
|
-
actionsRow: {
|
|
650
|
-
flexDirection: 'row',
|
|
651
|
-
gap: 10,
|
|
652
|
-
},
|
|
653
|
-
actionBtnSecondary: {
|
|
654
|
-
flex: 1,
|
|
655
|
-
flexDirection: 'row',
|
|
656
|
-
alignItems: 'center',
|
|
657
|
-
justifyContent: 'center',
|
|
658
|
-
gap: 6,
|
|
659
|
-
paddingVertical: 9,
|
|
660
|
-
borderRadius: 10,
|
|
661
|
-
borderWidth: 1,
|
|
662
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
663
|
-
backgroundColor: AppColors.grayBackground,
|
|
664
|
-
},
|
|
665
|
-
actionBtnSecondaryText: {
|
|
666
|
-
fontFamily: AppFonts.interBold,
|
|
667
|
-
fontSize: 12,
|
|
668
|
-
color: AppColors.grayTextStrong,
|
|
669
|
-
},
|
|
670
|
-
actionBtnPrimary: {
|
|
671
|
-
flex: 1,
|
|
672
|
-
flexDirection: 'row',
|
|
673
|
-
alignItems: 'center',
|
|
674
|
-
justifyContent: 'center',
|
|
675
|
-
gap: 6,
|
|
676
|
-
paddingVertical: 9,
|
|
677
|
-
borderRadius: 10,
|
|
678
|
-
backgroundColor: AppColors.purple,
|
|
679
|
-
shadowColor: AppColors.purple,
|
|
680
|
-
shadowOpacity: 0.25,
|
|
681
|
-
shadowRadius: 4,
|
|
682
|
-
shadowOffset: { width: 0, height: 2 },
|
|
683
|
-
elevation: 2,
|
|
684
|
-
},
|
|
685
|
-
actionBtnPrimaryText: {
|
|
686
|
-
fontFamily: AppFonts.interBold,
|
|
687
|
-
fontSize: 12,
|
|
688
|
-
color: AppColors.white,
|
|
689
|
-
},
|
|
690
|
-
completedBadge: {
|
|
691
|
-
flexDirection: 'row',
|
|
692
|
-
alignItems: 'center',
|
|
693
|
-
gap: 3,
|
|
694
|
-
backgroundColor: `${AppColors.emerald500}18`,
|
|
695
|
-
paddingHorizontal: 6,
|
|
696
|
-
paddingVertical: 2,
|
|
697
|
-
borderRadius: 5,
|
|
698
|
-
},
|
|
699
|
-
completedBadgeText: {
|
|
700
|
-
fontFamily: AppFonts.interBold,
|
|
701
|
-
fontSize: 9.5,
|
|
702
|
-
color: AppColors.emerald500,
|
|
703
|
-
},
|
|
704
|
-
subTabStrip: {
|
|
705
|
-
flexDirection: 'row',
|
|
706
|
-
backgroundColor: AppColors.grayBackground,
|
|
707
|
-
borderRadius: 8,
|
|
708
|
-
padding: 2,
|
|
709
|
-
borderWidth: 1,
|
|
710
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
711
|
-
},
|
|
712
|
-
subTabItem: {
|
|
713
|
-
flex: 1,
|
|
714
|
-
paddingVertical: 7,
|
|
715
|
-
borderRadius: 6,
|
|
716
|
-
alignItems: 'center',
|
|
717
|
-
justifyContent: 'center',
|
|
718
|
-
},
|
|
719
|
-
subTabItemActive: {
|
|
720
|
-
backgroundColor: AppColors.purple,
|
|
721
|
-
shadowColor: AppColors.purple,
|
|
722
|
-
shadowOpacity: 0.2,
|
|
723
|
-
shadowRadius: 3,
|
|
724
|
-
shadowOffset: { width: 0, height: 1 },
|
|
725
|
-
elevation: 1,
|
|
726
|
-
},
|
|
727
|
-
subTabText: {
|
|
728
|
-
fontFamily: AppFonts.interMedium,
|
|
729
|
-
fontSize: 11,
|
|
730
|
-
color: AppColors.grayText,
|
|
731
|
-
},
|
|
732
|
-
subTabTextActive: {
|
|
733
|
-
fontFamily: AppFonts.interBold,
|
|
734
|
-
color: AppColors.white,
|
|
735
|
-
},
|
|
736
|
-
cleanRow: {
|
|
737
|
-
flexDirection: 'row',
|
|
738
|
-
alignItems: 'center',
|
|
739
|
-
gap: 8,
|
|
740
|
-
paddingVertical: 2,
|
|
741
|
-
},
|
|
742
|
-
checkboxBox: {
|
|
743
|
-
width: 18,
|
|
744
|
-
height: 18,
|
|
745
|
-
borderRadius: 4,
|
|
746
|
-
borderWidth: 1.5,
|
|
747
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
748
|
-
backgroundColor: AppColors.grayBackground,
|
|
749
|
-
alignItems: 'center',
|
|
750
|
-
justifyContent: 'center',
|
|
751
|
-
},
|
|
752
|
-
checkboxBoxActive: {
|
|
753
|
-
backgroundColor: AppColors.purple,
|
|
754
|
-
borderColor: AppColors.purple,
|
|
755
|
-
},
|
|
756
|
-
cleanLabel: {
|
|
757
|
-
fontFamily: AppFonts.interMedium,
|
|
758
|
-
fontSize: 11.5,
|
|
759
|
-
color: AppColors.grayTextStrong,
|
|
760
|
-
},
|
|
761
|
-
cleanCode: {
|
|
762
|
-
fontFamily: AppFonts.interRegular,
|
|
763
|
-
color: AppColors.grayTextWeak,
|
|
764
|
-
fontSize: 10.5,
|
|
765
|
-
},
|
|
766
|
-
progressContainer: {
|
|
767
|
-
backgroundColor: AppColors.grayBackground,
|
|
768
|
-
borderRadius: 10,
|
|
769
|
-
padding: 10,
|
|
770
|
-
gap: 6,
|
|
771
|
-
borderWidth: 1,
|
|
772
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
773
|
-
},
|
|
774
|
-
progressTopRow: {
|
|
775
|
-
flexDirection: 'row',
|
|
776
|
-
alignItems: 'center',
|
|
777
|
-
justifyContent: 'space-between',
|
|
778
|
-
},
|
|
779
|
-
progressTaskGroup: {
|
|
780
|
-
flexDirection: 'row',
|
|
781
|
-
alignItems: 'center',
|
|
782
|
-
gap: 6,
|
|
783
|
-
flex: 1,
|
|
784
|
-
paddingRight: 8,
|
|
785
|
-
},
|
|
786
|
-
progressTaskText: {
|
|
787
|
-
fontFamily: AppFonts.interMedium,
|
|
788
|
-
fontSize: 11,
|
|
789
|
-
color: AppColors.primaryBlack,
|
|
790
|
-
flex: 1,
|
|
791
|
-
},
|
|
792
|
-
progressPercentageText: {
|
|
793
|
-
fontFamily: AppFonts.interBold,
|
|
794
|
-
fontSize: 11.5,
|
|
795
|
-
color: AppColors.purple,
|
|
796
|
-
},
|
|
797
|
-
progressBarTrack: {
|
|
798
|
-
width: '100%',
|
|
799
|
-
height: 6,
|
|
800
|
-
borderRadius: 3,
|
|
801
|
-
backgroundColor: AppColors.grayBorderSecondary,
|
|
802
|
-
overflow: 'hidden',
|
|
803
|
-
},
|
|
804
|
-
progressBarFill: {
|
|
805
|
-
height: '100%',
|
|
806
|
-
backgroundColor: AppColors.purple,
|
|
807
|
-
borderRadius: 3,
|
|
808
|
-
},
|
|
809
|
-
errorContainer: {
|
|
810
|
-
flexDirection: 'row',
|
|
811
|
-
alignItems: 'center',
|
|
812
|
-
gap: 6,
|
|
813
|
-
backgroundColor: `${AppColors.errorColor}12`,
|
|
814
|
-
padding: 8,
|
|
815
|
-
borderRadius: 8,
|
|
816
|
-
borderWidth: 1,
|
|
817
|
-
borderColor: `${AppColors.errorColor}25`,
|
|
818
|
-
},
|
|
819
|
-
errorText: {
|
|
820
|
-
fontFamily: AppFonts.interRegular,
|
|
821
|
-
fontSize: 11,
|
|
822
|
-
color: AppColors.errorColor,
|
|
823
|
-
flex: 1,
|
|
824
|
-
},
|
|
825
|
-
consoleContainer: {
|
|
826
|
-
backgroundColor: '#0F172A',
|
|
827
|
-
borderRadius: 10,
|
|
828
|
-
borderWidth: 1,
|
|
829
|
-
borderColor: '#1E293B',
|
|
830
|
-
overflow: 'hidden',
|
|
831
|
-
marginTop: 4,
|
|
832
|
-
},
|
|
833
|
-
consoleHeaderRow: {
|
|
834
|
-
flexDirection: 'row',
|
|
835
|
-
alignItems: 'center',
|
|
836
|
-
justifyContent: 'space-between',
|
|
837
|
-
backgroundColor: '#1E293B',
|
|
838
|
-
paddingHorizontal: 10,
|
|
839
|
-
paddingVertical: 6,
|
|
840
|
-
},
|
|
841
|
-
consoleHeaderTitle: {
|
|
842
|
-
fontFamily: AppFonts.interBold,
|
|
843
|
-
fontSize: 10,
|
|
844
|
-
color: '#38BDF8',
|
|
845
|
-
letterSpacing: 0.5,
|
|
846
|
-
},
|
|
847
|
-
consoleToggleBtn: {
|
|
848
|
-
paddingHorizontal: 6,
|
|
849
|
-
paddingVertical: 2,
|
|
850
|
-
borderRadius: 4,
|
|
851
|
-
backgroundColor: 'rgba(255,255,255,0.1)',
|
|
852
|
-
},
|
|
853
|
-
consoleToggleText: {
|
|
854
|
-
fontFamily: AppFonts.interMedium,
|
|
855
|
-
fontSize: 9.5,
|
|
856
|
-
color: '#94A3B8',
|
|
857
|
-
},
|
|
858
|
-
consoleLogBox: {
|
|
859
|
-
maxHeight: 140,
|
|
860
|
-
paddingHorizontal: 10,
|
|
861
|
-
paddingVertical: 8,
|
|
862
|
-
},
|
|
863
|
-
consoleLogContent: {
|
|
864
|
-
gap: 3,
|
|
865
|
-
},
|
|
866
|
-
consoleLogLine: {
|
|
867
|
-
fontFamily: AppFonts.interRegular,
|
|
868
|
-
fontSize: 10,
|
|
869
|
-
lineHeight: 14,
|
|
870
|
-
},
|
|
871
|
-
consoleLogPlaceholder: {
|
|
872
|
-
fontFamily: AppFonts.interRegular,
|
|
873
|
-
fontSize: 10,
|
|
874
|
-
color: '#64748B',
|
|
875
|
-
fontStyle: 'italic',
|
|
876
|
-
},
|
|
877
|
-
generateBtn: {
|
|
878
|
-
backgroundColor: AppColors.purple,
|
|
879
|
-
borderRadius: 10,
|
|
880
|
-
paddingVertical: 10,
|
|
881
|
-
alignItems: 'center',
|
|
882
|
-
justifyContent: 'center',
|
|
883
|
-
shadowColor: AppColors.purple,
|
|
884
|
-
shadowOpacity: 0.25,
|
|
885
|
-
shadowRadius: 4,
|
|
886
|
-
shadowOffset: { width: 0, height: 2 },
|
|
887
|
-
elevation: 2,
|
|
888
|
-
},
|
|
889
|
-
generateBtnDisabled: {
|
|
890
|
-
opacity: 0.7,
|
|
891
|
-
},
|
|
892
|
-
buildingActionsRow: {
|
|
893
|
-
flexDirection: 'row',
|
|
894
|
-
alignItems: 'center',
|
|
895
|
-
gap: 10,
|
|
896
|
-
},
|
|
897
|
-
buildingStatusPill: {
|
|
898
|
-
flex: 1,
|
|
899
|
-
flexDirection: 'row',
|
|
900
|
-
alignItems: 'center',
|
|
901
|
-
justifyContent: 'center',
|
|
902
|
-
gap: 8,
|
|
903
|
-
backgroundColor: `${AppColors.purple}14`,
|
|
904
|
-
borderRadius: 10,
|
|
905
|
-
paddingVertical: 10,
|
|
906
|
-
borderWidth: 1,
|
|
907
|
-
borderColor: `${AppColors.purple}30`,
|
|
908
|
-
},
|
|
909
|
-
buildingStatusPillText: {
|
|
910
|
-
fontFamily: AppFonts.interBold,
|
|
911
|
-
fontSize: 12,
|
|
912
|
-
color: AppColors.purple,
|
|
913
|
-
},
|
|
914
|
-
stopBtn: {
|
|
915
|
-
flexDirection: 'row',
|
|
916
|
-
alignItems: 'center',
|
|
917
|
-
justifyContent: 'center',
|
|
918
|
-
gap: 6,
|
|
919
|
-
backgroundColor: AppColors.errorColor,
|
|
920
|
-
borderRadius: 10,
|
|
921
|
-
paddingHorizontal: 16,
|
|
922
|
-
paddingVertical: 10,
|
|
923
|
-
shadowColor: AppColors.errorColor,
|
|
924
|
-
shadowOpacity: 0.25,
|
|
925
|
-
shadowRadius: 4,
|
|
926
|
-
shadowOffset: { width: 0, height: 2 },
|
|
927
|
-
elevation: 2,
|
|
928
|
-
},
|
|
929
|
-
stopBtnText: {
|
|
930
|
-
fontFamily: AppFonts.interBold,
|
|
931
|
-
fontSize: 12,
|
|
932
|
-
color: AppColors.white,
|
|
933
|
-
},
|
|
934
|
-
ctaContentRow: {
|
|
935
|
-
flexDirection: 'row',
|
|
936
|
-
alignItems: 'center',
|
|
937
|
-
gap: 6,
|
|
938
|
-
},
|
|
939
|
-
generateBtnText: {
|
|
940
|
-
fontFamily: AppFonts.interBold,
|
|
941
|
-
fontSize: 12.5,
|
|
942
|
-
color: AppColors.white,
|
|
943
|
-
},
|
|
944
|
-
footerNoteRow: {
|
|
945
|
-
flexDirection: 'row',
|
|
946
|
-
alignItems: 'center',
|
|
947
|
-
gap: 6,
|
|
948
|
-
paddingHorizontal: 8,
|
|
949
|
-
},
|
|
950
|
-
footerNoteText: {
|
|
951
|
-
fontFamily: AppFonts.interRegular,
|
|
952
|
-
fontSize: 11,
|
|
953
|
-
color: AppColors.grayTextWeak,
|
|
954
|
-
textAlign: 'center',
|
|
955
|
-
flex: 1,
|
|
956
|
-
},
|
|
957
|
-
});
|
|
958
|
-
export default DebuggingTab;
|
|
195
|
+
</C>
|
|
196
|
+
</T>
|
|
197
|
+
</Te>};const o=We.create({scrollArea:{flex:1,backgroundColor:e.contentBg},scrollContent:{padding:12,gap:12,paddingBottom:100},heroCard:{backgroundColor:e.primaryLight,borderRadius:14,borderWidth:1,borderColor:e.grayBorderSecondary,padding:14,shadowColor:e.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:e.purple,alignItems:"center",justifyContent:"center",shadowColor:e.purple,shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2},heroTitle:{fontFamily:S.interBold,fontSize:15,color:e.primaryBlack,letterSpacing:-.2},heroSubtitle:{fontFamily:S.interRegular,fontSize:11.5,color:e.grayText,marginTop:1},heroBadge:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${e.emerald500}18`,paddingHorizontal:7,paddingVertical:3,borderRadius:6},pulseDot:{width:6,height:6,borderRadius:3,backgroundColor:e.emerald500},heroBadgeText:{fontFamily:S.interBold,fontSize:9.5,color:e.emerald500},heroMetricsStrip:{flexDirection:"row",alignItems:"center",backgroundColor:e.grayBackground,borderRadius:10,paddingVertical:8,paddingHorizontal:10},heroMetricItem:{flex:1,alignItems:"center",paddingHorizontal:2,minWidth:0},heroMetricLabel:{fontFamily:S.interBold,fontSize:8.5,color:e.grayTextWeak,letterSpacing:.4},heroMetricValue:{fontFamily:S.interBold,fontSize:11,color:e.primaryBlack,marginTop:2},heroMetricDivider:{width:1,height:20,backgroundColor:e.dividerColor},sectionCard:{backgroundColor:e.primaryLight,borderRadius:14,borderWidth:1,borderColor:e.grayBorderSecondary,padding:14,shadowColor:e.black,shadowOpacity:.03,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:1,gap:12},sectionHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},sectionTitle:{fontFamily:S.interBold,fontSize:10.5,color:e.grayTextWeak,letterSpacing:.8,textTransform:"uppercase"},refreshBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:7,paddingVertical:3,borderRadius:6,backgroundColor:`${e.purple}12`},refreshBtnText:{fontFamily:S.interBold,fontSize:10,color:e.purple},qrCenteredWrapper:{alignItems:"center",justifyContent:"center",backgroundColor:e.grayBackground,padding:12,borderRadius:12,borderWidth:1,borderColor:e.grayBorderSecondary},qrInnerFrame:{backgroundColor:e.white,padding:6,borderRadius:8},urlBox:{flexDirection:"row",alignItems:"center",backgroundColor:e.grayBackground,borderRadius:10,paddingLeft:10,paddingRight:6,paddingVertical:6,borderWidth:1,borderColor:e.grayBorderSecondary,gap:8},urlText:{flex:1,fontFamily:S.interMedium,fontSize:11.5,color:e.skyBlue},actionsRow:{flexDirection:"row",gap:10},actionBtnSecondary:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,paddingVertical:9,borderRadius:10,borderWidth:1,borderColor:e.grayBorderSecondary,backgroundColor:e.grayBackground},actionBtnSecondaryText:{fontFamily:S.interBold,fontSize:12,color:e.grayTextStrong},actionBtnPrimary:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,paddingVertical:9,borderRadius:10,backgroundColor:e.purple,shadowColor:e.purple,shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2},actionBtnPrimaryText:{fontFamily:S.interBold,fontSize:12,color:e.white},completedBadge:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:`${e.emerald500}18`,paddingHorizontal:6,paddingVertical:2,borderRadius:5},completedBadgeText:{fontFamily:S.interBold,fontSize:9.5,color:e.emerald500},subTabStrip:{flexDirection:"row",backgroundColor:e.grayBackground,borderRadius:8,padding:2,borderWidth:1,borderColor:e.grayBorderSecondary},subTabItem:{flex:1,paddingVertical:7,borderRadius:6,alignItems:"center",justifyContent:"center"},subTabItemActive:{backgroundColor:e.purple,shadowColor:e.purple,shadowOpacity:.2,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:1},subTabText:{fontFamily:S.interMedium,fontSize:11,color:e.grayText},subTabTextActive:{fontFamily:S.interBold,color:e.white},cleanRow:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:2},checkboxBox:{width:18,height:18,borderRadius:4,borderWidth:1.5,borderColor:e.grayBorderSecondary,backgroundColor:e.grayBackground,alignItems:"center",justifyContent:"center"},checkboxBoxActive:{backgroundColor:e.purple,borderColor:e.purple},cleanLabel:{fontFamily:S.interMedium,fontSize:11.5,color:e.grayTextStrong},cleanCode:{fontFamily:S.interRegular,color:e.grayTextWeak,fontSize:10.5},progressContainer:{backgroundColor:e.grayBackground,borderRadius:10,padding:10,gap:6,borderWidth:1,borderColor:e.grayBorderSecondary},progressTopRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},progressTaskGroup:{flexDirection:"row",alignItems:"center",gap:6,flex:1,paddingRight:8},progressTaskText:{fontFamily:S.interMedium,fontSize:11,color:e.primaryBlack,flex:1},progressPercentageText:{fontFamily:S.interBold,fontSize:11.5,color:e.purple},progressBarTrack:{width:"100%",height:6,borderRadius:3,backgroundColor:e.grayBorderSecondary,overflow:"hidden"},progressBarFill:{height:"100%",backgroundColor:e.purple,borderRadius:3},errorContainer:{flexDirection:"row",alignItems:"center",gap:6,backgroundColor:`${e.errorColor}12`,padding:8,borderRadius:8,borderWidth:1,borderColor:`${e.errorColor}25`},errorText:{fontFamily:S.interRegular,fontSize:11,color:e.errorColor,flex:1},consoleContainer:{backgroundColor:"#0F172A",borderRadius:10,borderWidth:1,borderColor:"#1E293B",overflow:"hidden",marginTop:4},consoleHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:"#1E293B",paddingHorizontal:10,paddingVertical:6},consoleHeaderTitle:{fontFamily:S.interBold,fontSize:10,color:"#38BDF8",letterSpacing:.5},consoleToggleBtn:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,backgroundColor:"rgba(255,255,255,0.1)"},consoleToggleText:{fontFamily:S.interMedium,fontSize:9.5,color:"#94A3B8"},consoleLogBox:{maxHeight:140,paddingHorizontal:10,paddingVertical:8},consoleLogContent:{gap:3},consoleLogLine:{fontFamily:S.interRegular,fontSize:10,lineHeight:14},consoleLogPlaceholder:{fontFamily:S.interRegular,fontSize:10,color:"#64748B",fontStyle:"italic"},generateBtn:{backgroundColor:e.purple,borderRadius:10,paddingVertical:10,alignItems:"center",justifyContent:"center",shadowColor:e.purple,shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2},generateBtnDisabled:{opacity:.7},buildingActionsRow:{flexDirection:"row",alignItems:"center",gap:10},buildingStatusPill:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,backgroundColor:`${e.purple}14`,borderRadius:10,paddingVertical:10,borderWidth:1,borderColor:`${e.purple}30`},buildingStatusPillText:{fontFamily:S.interBold,fontSize:12,color:e.purple},stopBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:e.errorColor,borderRadius:10,paddingHorizontal:16,paddingVertical:10,shadowColor:e.errorColor,shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2},stopBtnText:{fontFamily:S.interBold,fontSize:12,color:e.white},ctaContentRow:{flexDirection:"row",alignItems:"center",gap:6},generateBtnText:{fontFamily:S.interBold,fontSize:12.5,color:e.white},footerNoteRow:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:8},footerNoteText:{fontFamily:S.interRegular,fontSize:11,color:e.grayTextWeak,textAlign:"center",flex:1}});export default DebuggingTab;
|