react-native-inapp-inspector 2.3.18 → 2.3.20

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.
Files changed (358) hide show
  1. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +57 -0
  2. package/dist/commonjs/analytics.js +1 -24
  3. package/dist/commonjs/bundle.js +1 -16
  4. package/dist/commonjs/capture.d.ts +2 -0
  5. package/dist/commonjs/capture.js +1 -32
  6. package/dist/commonjs/components/AnalyticsDetail.js +92 -623
  7. package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
  8. package/dist/commonjs/components/AnalyticsGraph.js +70 -370
  9. package/dist/commonjs/components/AnimatedEntrance.js +1 -11
  10. package/dist/commonjs/components/AppHeaderLogo.js +7 -134
  11. package/dist/commonjs/components/BrandCircleIcon.js +73 -118
  12. package/dist/commonjs/components/BrandSquareIcon.js +63 -108
  13. package/dist/commonjs/components/CodeSnippet.js +48 -623
  14. package/dist/commonjs/components/ConsoleLogCard.js +63 -537
  15. package/dist/commonjs/components/CopyButton.js +3 -89
  16. package/dist/commonjs/components/DiffViewer.js +19 -83
  17. package/dist/commonjs/components/DomainHeader.js +27 -127
  18. package/dist/commonjs/components/EmptyState.d.ts +1 -0
  19. package/dist/commonjs/components/EmptyState.js +10 -87
  20. package/dist/commonjs/components/EndOfListFooter.js +7 -81
  21. package/dist/commonjs/components/ErrorBoundary.js +72 -566
  22. package/dist/commonjs/components/HeadersSection.js +31 -110
  23. package/dist/commonjs/components/HighlightText.js +17 -58
  24. package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
  25. package/dist/commonjs/components/Inspector/AboutModal.js +351 -0
  26. package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
  27. package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
  28. package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
  29. package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
  30. package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
  31. package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
  32. package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
  33. package/dist/commonjs/components/Inspector/DebuggingTab.js +64 -871
  34. package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
  35. package/dist/commonjs/components/Inspector/FabLauncher.js +85 -54
  36. package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
  37. package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +9 -0
  38. package/dist/commonjs/components/Inspector/FeedbackModal.js +167 -521
  39. package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
  40. package/dist/commonjs/components/Inspector/InspectorHeader.js +219 -1093
  41. package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
  42. package/dist/commonjs/components/Inspector/MainScreen.js +60 -332
  43. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +136 -278
  44. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +134 -361
  45. package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
  46. package/dist/commonjs/components/Inspector/NetworkDetail.js +96 -432
  47. package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
  48. package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
  49. package/dist/commonjs/components/Inspector/NpmStarPrompt.js +17 -433
  50. package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
  51. package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
  52. package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
  53. package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
  54. package/dist/commonjs/components/Inspector/SettingsPanel.js +431 -3431
  55. package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
  56. package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
  57. package/dist/commonjs/components/Inspector/TabBar.js +47 -183
  58. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +34 -408
  59. package/dist/commonjs/components/JsonViewer.js +168 -380
  60. package/dist/commonjs/components/LogCard.js +57 -567
  61. package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
  62. package/dist/commonjs/components/MetaAccordion.js +69 -238
  63. package/dist/commonjs/components/MiniBarChart.js +3 -56
  64. package/dist/commonjs/components/MiniLineChart.js +3 -58
  65. package/dist/commonjs/components/NetworkIcons.d.ts +7 -0
  66. package/dist/commonjs/components/NetworkIcons.js +479 -997
  67. package/dist/commonjs/components/QRCodeView.js +5 -79
  68. package/dist/commonjs/components/SectionHeader.js +15 -37
  69. package/dist/commonjs/components/SegmentedTabs.js +7 -61
  70. package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
  71. package/dist/commonjs/components/Slider.js +15 -243
  72. package/dist/commonjs/components/SourcePageCard.js +30 -89
  73. package/dist/commonjs/components/Toast.js +5 -147
  74. package/dist/commonjs/components/TouchableScale.js +3 -24
  75. package/dist/commonjs/components/TreeNode.js +55 -130
  76. package/dist/commonjs/console.js +1 -16
  77. package/dist/commonjs/constants/index.js +1 -32
  78. package/dist/commonjs/constants/telemetryConfig.js +1 -6
  79. package/dist/commonjs/constants/version.d.ts +1 -1
  80. package/dist/commonjs/constants/version.js +1 -4
  81. package/dist/commonjs/crash.js +1 -23
  82. package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
  83. package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
  84. package/dist/commonjs/customHooks/consoleLogger.js +6 -445
  85. package/dist/commonjs/customHooks/crashHandler.js +7 -656
  86. package/dist/commonjs/customHooks/logFilters.js +1 -23
  87. package/dist/commonjs/customHooks/networkLogger.js +2 -536
  88. package/dist/commonjs/customHooks/performanceTracker.js +63 -750
  89. package/dist/commonjs/customHooks/reduxLogger.js +2 -313
  90. package/dist/commonjs/customHooks/storageInspector.js +1 -435
  91. package/dist/commonjs/customHooks/useAccordion.js +1 -18
  92. package/dist/commonjs/decorators/index.js +1 -100
  93. package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
  94. package/dist/commonjs/helpers/index.js +8 -921
  95. package/dist/commonjs/helpers/memoryManager.js +1 -99
  96. package/dist/commonjs/helpers/qrGenerator.js +1 -367
  97. package/dist/commonjs/helpers/remoteConfig.js +1 -165
  98. package/dist/commonjs/helpers/searchQueryParser.js +1 -62
  99. package/dist/commonjs/helpers/settingsStore.js +1 -144
  100. package/dist/commonjs/helpers/telemetry.js +1 -501
  101. package/dist/commonjs/helpers/toast.js +1 -20
  102. package/dist/commonjs/i18n/index.js +1 -90
  103. package/dist/commonjs/i18n/locales/en.json +1 -1122
  104. package/dist/commonjs/index.js +5 -2153
  105. package/dist/commonjs/metro.js +6 -468
  106. package/dist/commonjs/native/NativeInspector.d.ts +3 -0
  107. package/dist/commonjs/native/NativeInspector.js +1 -402
  108. package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
  109. package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
  110. package/dist/commonjs/network.js +1 -13
  111. package/dist/commonjs/performance.js +1 -29
  112. package/dist/commonjs/redux.js +1 -20
  113. package/dist/commonjs/storage.js +1 -14
  114. package/dist/commonjs/styles/AppColors.js +1 -423
  115. package/dist/commonjs/styles/AppFonts.js +1 -17
  116. package/dist/commonjs/styles/common.js +1 -190
  117. package/dist/commonjs/styles/index.d.ts +6 -0
  118. package/dist/commonjs/styles/index.js +1 -1589
  119. package/dist/commonjs/types/enums.d.ts +2 -1
  120. package/dist/commonjs/types/enums.js +1 -150
  121. package/dist/commonjs/types/index.js +1 -18
  122. package/dist/commonjs/types/interfaces.d.ts +7 -0
  123. package/dist/commonjs/types/interfaces.js +1 -2
  124. package/dist/esm/analytics.js +1 -2
  125. package/dist/esm/bundle.js +1 -2
  126. package/dist/esm/capture.d.ts +2 -0
  127. package/dist/esm/capture.js +1 -29
  128. package/dist/esm/components/AnalyticsDetail.js +171 -664
  129. package/dist/esm/components/AnalyticsEventCard.js +77 -335
  130. package/dist/esm/components/AnalyticsGraph.js +95 -357
  131. package/dist/esm/components/AnimatedEntrance.js +1 -6
  132. package/dist/esm/components/AppHeaderLogo.js +7 -94
  133. package/dist/esm/components/BrandCircleIcon.js +114 -119
  134. package/dist/esm/components/BrandSquareIcon.js +73 -78
  135. package/dist/esm/components/CodeSnippet.js +58 -595
  136. package/dist/esm/components/ConsoleLogCard.js +91 -526
  137. package/dist/esm/components/CopyButton.js +3 -51
  138. package/dist/esm/components/DiffViewer.js +22 -48
  139. package/dist/esm/components/DomainHeader.js +43 -138
  140. package/dist/esm/components/EmptyState.d.ts +1 -0
  141. package/dist/esm/components/EmptyState.js +17 -56
  142. package/dist/esm/components/EndOfListFooter.js +15 -83
  143. package/dist/esm/components/ErrorBoundary.js +125 -582
  144. package/dist/esm/components/HeadersSection.js +52 -93
  145. package/dist/esm/components/HighlightText.js +17 -53
  146. package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
  147. package/dist/esm/components/Inspector/AboutModal.js +351 -0
  148. package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
  149. package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
  150. package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
  151. package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
  152. package/dist/esm/components/Inspector/CrashDetail.js +236 -747
  153. package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
  154. package/dist/esm/components/Inspector/CrashTab.js +177 -711
  155. package/dist/esm/components/Inspector/DebuggingTab.js +156 -923
  156. package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
  157. package/dist/esm/components/Inspector/FabLauncher.js +85 -49
  158. package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
  159. package/dist/esm/components/Inspector/FeedbackModal.d.ts +9 -0
  160. package/dist/esm/components/Inspector/FeedbackModal.js +182 -499
  161. package/dist/esm/components/Inspector/InspectorContext.js +1 -12
  162. package/dist/esm/components/Inspector/InspectorHeader.js +309 -1145
  163. package/dist/esm/components/Inspector/LogDetail.js +235 -1023
  164. package/dist/esm/components/Inspector/MainScreen.js +86 -320
  165. package/dist/esm/components/Inspector/MediaGalleryTab.js +157 -259
  166. package/dist/esm/components/Inspector/MediaPreviewModal.js +153 -340
  167. package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
  168. package/dist/esm/components/Inspector/NetworkDetail.js +141 -472
  169. package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
  170. package/dist/esm/components/Inspector/NetworkTab.js +125 -517
  171. package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
  172. package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
  173. package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
  174. package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
  175. package/dist/esm/components/Inspector/ReduxTab.js +144 -722
  176. package/dist/esm/components/Inspector/SettingsPanel.js +647 -3609
  177. package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
  178. package/dist/esm/components/Inspector/StorageTab.js +172 -866
  179. package/dist/esm/components/Inspector/TabBar.js +52 -183
  180. package/dist/esm/components/Inspector/UpdateAvailableModal.js +79 -416
  181. package/dist/esm/components/JsonViewer.js +179 -353
  182. package/dist/esm/components/LogCard.js +93 -565
  183. package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
  184. package/dist/esm/components/MetaAccordion.js +136 -267
  185. package/dist/esm/components/MiniBarChart.js +3 -18
  186. package/dist/esm/components/MiniLineChart.js +3 -20
  187. package/dist/esm/components/NetworkIcons.d.ts +7 -0
  188. package/dist/esm/components/NetworkIcons.js +481 -817
  189. package/dist/esm/components/QRCodeView.js +8 -45
  190. package/dist/esm/components/SectionHeader.js +22 -39
  191. package/dist/esm/components/SegmentedTabs.js +8 -57
  192. package/dist/esm/components/SkeletonPlaceholder.js +30 -163
  193. package/dist/esm/components/Slider.js +24 -213
  194. package/dist/esm/components/SourcePageCard.js +65 -86
  195. package/dist/esm/components/Toast.js +10 -117
  196. package/dist/esm/components/TouchableScale.js +3 -19
  197. package/dist/esm/components/TreeNode.js +58 -95
  198. package/dist/esm/console.js +1 -2
  199. package/dist/esm/constants/index.js +1 -28
  200. package/dist/esm/constants/telemetryConfig.js +1 -3
  201. package/dist/esm/constants/version.d.ts +1 -1
  202. package/dist/esm/constants/version.js +1 -1
  203. package/dist/esm/crash.js +1 -2
  204. package/dist/esm/customHooks/analyticsLogger.js +1 -230
  205. package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
  206. package/dist/esm/customHooks/consoleLogger.js +6 -432
  207. package/dist/esm/customHooks/crashHandler.js +7 -630
  208. package/dist/esm/customHooks/logFilters.js +1 -20
  209. package/dist/esm/customHooks/networkLogger.js +2 -519
  210. package/dist/esm/customHooks/performanceTracker.js +63 -723
  211. package/dist/esm/customHooks/reduxLogger.js +2 -293
  212. package/dist/esm/customHooks/storageInspector.js +1 -418
  213. package/dist/esm/customHooks/useAccordion.js +1 -16
  214. package/dist/esm/decorators/index.js +1 -95
  215. package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
  216. package/dist/esm/helpers/index.js +8 -861
  217. package/dist/esm/helpers/memoryManager.js +1 -91
  218. package/dist/esm/helpers/qrGenerator.js +1 -364
  219. package/dist/esm/helpers/remoteConfig.js +1 -160
  220. package/dist/esm/helpers/searchQueryParser.js +1 -59
  221. package/dist/esm/helpers/settingsStore.js +1 -134
  222. package/dist/esm/helpers/telemetry.js +1 -489
  223. package/dist/esm/helpers/toast.js +1 -15
  224. package/dist/esm/i18n/index.js +1 -78
  225. package/dist/esm/i18n/locales/en.json +1 -1122
  226. package/dist/esm/index.js +7 -1967
  227. package/dist/esm/metro.js +6 -459
  228. package/dist/esm/native/NativeInspector.d.ts +3 -0
  229. package/dist/esm/native/NativeInspector.js +1 -370
  230. package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
  231. package/dist/esm/native/NativeNetworkInspector.js +1 -2
  232. package/dist/esm/network.js +1 -1
  233. package/dist/esm/performance.js +1 -2
  234. package/dist/esm/redux.js +1 -1
  235. package/dist/esm/storage.js +1 -1
  236. package/dist/esm/styles/AppColors.js +1 -417
  237. package/dist/esm/styles/AppFonts.js +1 -13
  238. package/dist/esm/styles/common.js +1 -186
  239. package/dist/esm/styles/index.d.ts +6 -0
  240. package/dist/esm/styles/index.js +1 -1551
  241. package/dist/esm/types/enums.d.ts +2 -1
  242. package/dist/esm/types/enums.js +1 -147
  243. package/dist/esm/types/index.js +1 -2
  244. package/dist/esm/types/interfaces.d.ts +7 -0
  245. package/dist/esm/types/interfaces.js +1 -1
  246. package/ios/NetworkInspectorModule.mm +253 -136
  247. package/package.json +5 -3
  248. package/react-native-inapp-inspector.podspec +1 -1
  249. package/src/native/NativeInspector.ts +17 -0
  250. package/src/native/NativeNetworkInspector.ts +1 -0
  251. package/src/analytics.ts +0 -35
  252. package/src/bundle.ts +0 -25
  253. package/src/capture.ts +0 -101
  254. package/src/components/AnalyticsDetail.tsx +0 -870
  255. package/src/components/AnalyticsEventCard.tsx +0 -444
  256. package/src/components/AnalyticsGraph.tsx +0 -583
  257. package/src/components/AnimatedEntrance.tsx +0 -20
  258. package/src/components/AppHeaderLogo.tsx +0 -143
  259. package/src/components/BrandCircleIcon.tsx +0 -144
  260. package/src/components/BrandSquareIcon.tsx +0 -184
  261. package/src/components/CodeSnippet.tsx +0 -725
  262. package/src/components/ConsoleLogCard.tsx +0 -679
  263. package/src/components/CopyButton.tsx +0 -87
  264. package/src/components/DiffViewer.tsx +0 -82
  265. package/src/components/DomainHeader.tsx +0 -224
  266. package/src/components/EmptyState.tsx +0 -95
  267. package/src/components/EndOfListFooter.tsx +0 -100
  268. package/src/components/ErrorBoundary.tsx +0 -688
  269. package/src/components/HeadersSection.tsx +0 -172
  270. package/src/components/HighlightText.tsx +0 -100
  271. package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
  272. package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
  273. package/src/components/Inspector/BundleTab.tsx +0 -4768
  274. package/src/components/Inspector/ConsoleTab.tsx +0 -726
  275. package/src/components/Inspector/CrashDetail.tsx +0 -997
  276. package/src/components/Inspector/CrashFilterModal.tsx +0 -721
  277. package/src/components/Inspector/CrashTab.tsx +0 -933
  278. package/src/components/Inspector/DebuggingTab.tsx +0 -1103
  279. package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
  280. package/src/components/Inspector/FabLauncher.tsx +0 -80
  281. package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
  282. package/src/components/Inspector/FeedbackModal.tsx +0 -626
  283. package/src/components/Inspector/InspectorContext.tsx +0 -28
  284. package/src/components/Inspector/InspectorHeader.tsx +0 -1545
  285. package/src/components/Inspector/LogDetail.tsx +0 -1431
  286. package/src/components/Inspector/MainScreen.tsx +0 -459
  287. package/src/components/Inspector/MediaGalleryTab.tsx +0 -355
  288. package/src/components/Inspector/MediaPreviewModal.tsx +0 -435
  289. package/src/components/Inspector/NavigationTracker.tsx +0 -13
  290. package/src/components/Inspector/NetworkDetail.tsx +0 -795
  291. package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
  292. package/src/components/Inspector/NetworkTab.tsx +0 -820
  293. package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
  294. package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
  295. package/src/components/Inspector/PerformanceTab.tsx +0 -1967
  296. package/src/components/Inspector/ReduxDetail.tsx +0 -1651
  297. package/src/components/Inspector/ReduxTab.tsx +0 -987
  298. package/src/components/Inspector/SettingsPanel.tsx +0 -4580
  299. package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
  300. package/src/components/Inspector/StorageTab.tsx +0 -1159
  301. package/src/components/Inspector/TabBar.tsx +0 -263
  302. package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
  303. package/src/components/JsonViewer.tsx +0 -547
  304. package/src/components/LogCard.tsx +0 -694
  305. package/src/components/LogSyntaxHighlighter.tsx +0 -178
  306. package/src/components/MetaAccordion.tsx +0 -355
  307. package/src/components/MiniBarChart.tsx +0 -42
  308. package/src/components/MiniLineChart.tsx +0 -33
  309. package/src/components/NetworkIcons.tsx +0 -2599
  310. package/src/components/QRCodeView.tsx +0 -75
  311. package/src/components/SectionHeader.tsx +0 -101
  312. package/src/components/SegmentedTabs.tsx +0 -83
  313. package/src/components/SkeletonPlaceholder.tsx +0 -206
  314. package/src/components/Slider.tsx +0 -300
  315. package/src/components/SourcePageCard.tsx +0 -150
  316. package/src/components/Toast.tsx +0 -131
  317. package/src/components/TouchableScale.tsx +0 -61
  318. package/src/components/TreeNode.tsx +0 -171
  319. package/src/console.ts +0 -24
  320. package/src/constants/index.ts +0 -41
  321. package/src/constants/telemetryConfig.ts +0 -4
  322. package/src/constants/version.ts +0 -3
  323. package/src/crash.ts +0 -32
  324. package/src/customHooks/analyticsLogger.ts +0 -336
  325. package/src/customHooks/bundleAnalyzer.ts +0 -1256
  326. package/src/customHooks/consoleLogger.ts +0 -530
  327. package/src/customHooks/crashHandler.ts +0 -944
  328. package/src/customHooks/logFilters.ts +0 -32
  329. package/src/customHooks/networkLogger.ts +0 -624
  330. package/src/customHooks/performanceTracker.ts +0 -1014
  331. package/src/customHooks/reduxLogger.ts +0 -406
  332. package/src/customHooks/storageInspector.ts +0 -513
  333. package/src/customHooks/useAccordion.tsx +0 -27
  334. package/src/decorators/index.ts +0 -184
  335. package/src/helpers/gaAnalyticsRegistry.ts +0 -204
  336. package/src/helpers/index.ts +0 -1092
  337. package/src/helpers/memoryManager.ts +0 -138
  338. package/src/helpers/qrGenerator.ts +0 -430
  339. package/src/helpers/remoteConfig.ts +0 -212
  340. package/src/helpers/searchQueryParser.ts +0 -84
  341. package/src/helpers/settingsStore.ts +0 -171
  342. package/src/helpers/telemetry.ts +0 -568
  343. package/src/helpers/toast.ts +0 -17
  344. package/src/i18n/index.ts +0 -104
  345. package/src/i18n/locales/en.json +0 -1125
  346. package/src/index.tsx +0 -2635
  347. package/src/metro.ts +0 -598
  348. package/src/network.ts +0 -22
  349. package/src/performance.ts +0 -38
  350. package/src/redux.ts +0 -23
  351. package/src/storage.ts +0 -18
  352. package/src/styles/AppColors.ts +0 -455
  353. package/src/styles/AppFonts.ts +0 -26
  354. package/src/styles/common.ts +0 -209
  355. package/src/styles/index.ts +0 -1606
  356. package/src/types/enums.ts +0 -208
  357. package/src/types/index.ts +0 -34
  358. package/src/types/interfaces.ts +0 -530
@@ -1,958 +1,191 @@
1
- import React, { useState, useEffect, useMemo, useCallback, useRef } from 'react';
2
- import { View, Text, ScrollView, StyleSheet, NativeModules, Share, TouchableOpacity, ActivityIndicator, Animated, } from 'react-native';
3
- import { AppColors } from '../../styles/AppColors';
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 O,useEffect as G,useMemo as Me,useCallback as ie,useRef as X}from"react";import{View as T,Text as C,ScrollView as Te,StyleSheet as Le,NativeModules as We,Share as Pe,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 He from"../QRCodeView";import Be from"../TouchableScale";import{showToast as J}from"../../helpers/toast";import{triggerNativeHaptic as M}from"../../native/NativeInspector";import{InfoCircleIcon as Ee,CheckIcon as Se,BoltIcon as $e,CircleXIcon as Re,SparkleIcon as Ne,AndroidIcon as Ue,RepeatIcon as _e}from"../NetworkIcons";import Ge,{Path as Ke}from"react-native-svg";const Qe=({color:I=e.purple,size:$=13})=><Ge width={$}height={$}viewBox="0 0 24 24"fill="none">
2
+ <Ke d="M4 17l6-6-6-6M12 19h8"stroke={I}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
3
+ </Ge>;export const DebuggingTab=()=>{const I=Me(()=>{const k=We.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 W=parseInt(v[1],10);isNaN(W)||(B=W)}else V=A}}catch{}return{host:V,port:B,scriptURL:k}},[]),[$,Ie]=O(()=>I.host&&I.host!=="localhost"&&I.host!=="127.0.0.1"&&I.host!=="10.0.2.2"?I.host:"192.168.1.2"),[P,Ve]=O(I.port||8083),[ze,Y]=O("app-debug.apk"),[q,ee]=O(null),[H,oe]=O("assembleRelease"),[L,De]=O(!0),[R,_]=O({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,Ae]=O(!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 F of V)try{const A=new AbortController,v=setTimeout(()=>A.abort(),1200),W=await fetch(`http://${B}:${F}/__inapp_inspector/apk-info`,{signal:A.signal});if(clearTimeout(v),W.ok){const z=await W.json();z.hostIp&&z.hostIp!=="127.0.0.1"&&z.hostIp!=="localhost"&&z.hostIp!=="10.0.2.2"&&Ie(z.hostIp),z.port&&Ve(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 ve=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}:${P}/__inapp_inspector/build-status`);if(V.ok){const B=await V.json();_(B),B.status==="completed"?(D.current&&clearInterval(D.current),M("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),M("error"),J("\u2715 Build Failed: "+(B.error||"Gradle error")))}}catch{}},1e3)},[I.host,P,N]),Fe=async()=>{M("medium"),_({status:"running",scheme:H,clean:L,progress:5,currentTask:L?"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([P,8083,8081,8082].filter(Boolean)));let B=!1;for(const F of k)for(const A of V)try{const v=new AbortController,W=setTimeout(()=>v.abort(),2e3),z=await fetch(`http://${F}:${A}/__inapp_inspector/build-apk?scheme=${H}&clean=${L}`,{signal:v.signal});if(clearTimeout(W),z.ok){B=!0,ve();return}}catch{}B||_(F=>({...F,status:"failed",error:"Cannot reach build server. Ensure npm start or npm run serve-apk is running on host."}))},Oe=async()=>{M("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([P,8083,8081,8082].filter(Boolean)));for(const B of k)for(const F of V)try{const A=new AbortController,v=setTimeout(()=>A.abort(),1500);await fetch(`http://${B}:${F}/__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://${$}:${P}/${ze.replace(/^\/+/,"")}`,Xe=()=>{M("light"),Pe.share({message:re,title:"Install Android APK"})},E=R.status==="running";return<Te style={o.scrollArea}contentContainerStyle={o.scrollContent}showsVerticalScrollIndicator={!1}>
236
4
 
237
- <View style={styles.heroCard}>
238
- <View style={styles.heroHeader}>
239
- <View style={styles.heroIconWrap}>
240
- <AndroidIcon size={20} color={AppColors.white}/>
241
- </View>
242
- <View style={{ flex: 1, minWidth: 0 }}>
243
- <Text style={styles.heroTitle} numberOfLines={1}>
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
- </Text>
246
- <Text style={styles.heroSubtitle} numberOfLines={1}>
13
+ </C>
14
+ <C style={o.heroSubtitle}numberOfLines={1}>
247
15
  Scan QR code with another Android device to download
248
- </Text>
249
- </View>
250
- <View style={styles.heroBadge}>
251
- <View style={styles.pulseDot}/>
252
- <Text style={styles.heroBadgeText}>Live Metro</Text>
253
- </View>
254
- </View>
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
- <View style={styles.heroMetricsStrip}>
258
- <View style={styles.heroMetricItem}>
259
- <Text style={styles.heroMetricLabel}>HOST IP</Text>
260
- <Text style={styles.heroMetricValue} numberOfLines={1}>
261
- {hostIp}
262
- </Text>
263
- </View>
264
- <View style={styles.heroMetricDivider}/>
265
- <View style={styles.heroMetricItem}>
266
- <Text style={styles.heroMetricLabel}>PORT</Text>
267
- <Text style={styles.heroMetricValue}>{port}</Text>
268
- </View>
269
- <View style={styles.heroMetricDivider}/>
270
- <View style={styles.heroMetricItem}>
271
- <Text style={styles.heroMetricLabel}>APK SIZE</Text>
272
- <Text style={[
273
- styles.heroMetricValue,
274
- { color: apkSizeMb ? AppColors.emerald500 : AppColors.grayTextWeak },
275
- ]}>
276
- {apkSizeMb ? `${apkSizeMb} MB` : 'Detected'}
277
- </Text>
278
- </View>
279
- <View style={styles.heroMetricDivider}/>
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}>{P}</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
- </Text>
288
- </View>
289
- </View>
290
- </View>
49
+ </C>
50
+ </T>
51
+ </T>
52
+ </T>
291
53
 
292
54
 
293
- <View style={styles.sectionCard}>
294
- <View style={styles.sectionHeaderRow}>
295
- <Text style={styles.sectionTitle}>QR CODE & DIRECT DOWNLOAD</Text>
296
- <TouchableOpacity activeOpacity={0.7} onPress={fetchMetroTelemetry} style={styles.refreshBtn}>
297
- <RepeatIcon size={12} color={AppColors.purple}/>
298
- <Text style={styles.refreshBtnText}>Refresh</Text>
299
- </TouchableOpacity>
300
- </View>
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
- <View style={styles.qrCenteredWrapper}>
304
- <View style={styles.qrInnerFrame}>
305
- <QRCodeView value={apkDownloadUrl} size={235} color={AppColors.primaryBlack} backgroundColor={AppColors.white}/>
306
- </View>
307
- </View>
308
- </View>
65
+ <T style={o.qrCenteredWrapper}>
66
+ <T style={o.qrInnerFrame}>
67
+ <He value={re}size={235}color={e.primaryBlack}backgroundColor={e.white}/>
68
+ </T>
69
+ </T>
70
+ </T>
309
71
 
310
72
 
311
- <View style={styles.sectionCard}>
312
- <View style={styles.sectionHeaderRow}>
313
- <View style={{ flexDirection: 'row', alignItems: 'center', gap: 6 }}>
314
- <BoltIcon size={13} color={AppColors.purple}/>
315
- <Text style={styles.sectionTitle}>BUILD GENERATOR (GRADLE)</Text>
316
- </View>
317
- {buildStatus.status === 'completed' && (<View style={styles.completedBadge}>
318
- <CheckIcon size={10} color={AppColors.emerald500}/>
319
- <Text style={styles.completedBadgeText}>100% Ready</Text>
320
- </View>)}
321
- </View>
73
+ <T style={o.sectionCard}>
74
+ <T style={o.sectionHeaderRow}>
75
+ <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
76
+ <$e 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
- <View style={styles.subTabStrip}>
325
- <TouchableOpacity disabled={isBuilding} activeOpacity={0.7} onPress={() => {
326
- triggerNativeHaptic('light');
327
- setSelectedScheme('assembleRelease');
328
- }} style={[
329
- styles.subTabItem,
330
- selectedScheme === 'assembleRelease' && styles.subTabItemActive,
331
- ]}>
332
- <Text style={[
333
- styles.subTabText,
334
- selectedScheme === 'assembleRelease' && styles.subTabTextActive,
335
- ]}>
86
+ <T style={o.subTabStrip}>
87
+ <U disabled={E}activeOpacity={.7}onPress={()=>{M("light"),oe("assembleRelease")}}style={[o.subTabItem,H==="assembleRelease"&&o.subTabItemActive]}>
88
+ <C style={[o.subTabText,H==="assembleRelease"&&o.subTabTextActive]}>
336
89
  ⚡ Release (assembleRelease)
337
- </Text>
338
- </TouchableOpacity>
90
+ </C>
91
+ </U>
339
92
 
340
- <TouchableOpacity disabled={isBuilding} activeOpacity={0.7} onPress={() => {
341
- triggerNativeHaptic('light');
342
- setSelectedScheme('assembleDebug');
343
- }} style={[
344
- styles.subTabItem,
345
- selectedScheme === 'assembleDebug' && styles.subTabItemActive,
346
- ]}>
347
- <Text style={[
348
- styles.subTabText,
349
- selectedScheme === 'assembleDebug' && styles.subTabTextActive,
350
- ]}>
93
+ <U disabled={E}activeOpacity={.7}onPress={()=>{M("light"),oe("assembleDebug")}}style={[o.subTabItem,H==="assembleDebug"&&o.subTabItemActive]}>
94
+ <C style={[o.subTabText,H==="assembleDebug"&&o.subTabTextActive]}>
351
95
  🛠 Debug (assembleDebug)
352
- </Text>
353
- </TouchableOpacity>
354
- </View>
96
+ </C>
97
+ </U>
98
+ </T>
355
99
 
356
100
 
357
- <TouchableOpacity disabled={isBuilding} activeOpacity={0.7} onPress={() => {
358
- triggerNativeHaptic('light');
359
- setIsCleanBuild(!isCleanBuild);
360
- }} style={styles.cleanRow}>
361
- <View style={[
362
- styles.checkboxBox,
363
- isCleanBuild && styles.checkboxBoxActive,
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>
101
+ <U disabled={E}activeOpacity={.7}onPress={()=>{M("light"),De(!L)}}style={o.cleanRow}>
102
+ <T style={[o.checkboxBox,L&&o.checkboxBoxActive]}>
103
+ {L&&<Se size={11}color={e.white}/>}
104
+ </T>
105
+ <C style={o.cleanLabel}>
106
+ Clean build cache <C style={o.cleanCode}>(./gradlew clean)</C>
107
+ </C>
108
+ </U>
371
109
 
372
110
 
373
- {isBuilding && (<View style={styles.progressContainer}>
374
- <View style={styles.progressTopRow}>
375
- <View style={styles.progressTaskGroup}>
376
- <ActivityIndicator size="small" color={AppColors.purple}/>
377
- <Text style={styles.progressTaskText} numberOfLines={1}>
378
- {buildStatus.currentTask || 'Executing Gradle tasks...'}
379
- </Text>
380
- </View>
381
- <Text style={styles.progressPercentageText}>
382
- {buildStatus.progress}%
383
- </Text>
384
- </View>
111
+ {E&&<T style={o.progressContainer}>
112
+ <T style={o.progressTopRow}>
113
+ <T style={o.progressTaskGroup}>
114
+ <Ce size="small"color={e.purple}/>
115
+ <C style={o.progressTaskText}numberOfLines={1}>
116
+ {R.currentTask||"Executing Gradle tasks..."}
117
+ </C>
118
+ </T>
119
+ <C style={o.progressPercentageText}>
120
+ {R.progress}%
121
+ </C>
122
+ </T>
385
123
 
386
124
 
387
- <View style={styles.progressBarTrack}>
388
- <Animated.View style={[
389
- styles.progressBarFill,
390
- {
391
- width: progressAnim.interpolate({
392
- inputRange: [0, 100],
393
- outputRange: ['5%', '100%'],
394
- }),
395
- },
396
- ]}/>
397
- </View>
398
- </View>)}
125
+ <T style={o.progressBarTrack}>
126
+ <Z.View style={[o.progressBarFill,{width:K.interpolate({inputRange:[0,100],outputRange:["5%","100%"]})}]}/>
127
+ </T>
128
+ </T>}
399
129
 
400
130
 
401
- {buildStatus.status === 'failed' && (<View style={styles.errorContainer}>
402
- <CircleXIcon size={13} color={AppColors.errorColor}/>
403
- <Text style={styles.errorText} numberOfLines={2}>
404
- {buildStatus.error || 'Build execution failed.'}
405
- </Text>
406
- </View>)}
131
+ {R.status==="failed"&&<T style={o.errorContainer}>
132
+ <Re size={13}color={e.errorColor}/>
133
+ <C style={o.errorText}numberOfLines={2}>
134
+ {R.error||"Build execution failed."}
135
+ </C>
136
+ </T>}
407
137
 
408
138
 
409
- {((buildStatus.logs && buildStatus.logs.length > 0) || isBuilding) && (<View style={styles.consoleContainer}>
410
- <View style={styles.consoleHeaderRow}>
411
- <View style={{ flexDirection: 'row', alignItems: 'center', gap: 6 }}>
412
- <TerminalConsoleIcon color="#38BDF8" size={12}/>
413
- <Text style={styles.consoleHeaderTitle}>GRADLE VERBOSE OUTPUT</Text>
414
- </View>
415
- <TouchableOpacity activeOpacity={0.7} onPress={() => setShowVerboseLogs(!showVerboseLogs)} style={styles.consoleToggleBtn}>
416
- <Text style={styles.consoleToggleText}>
417
- {showVerboseLogs ? 'Hide Console' : 'Show Console'}
418
- </Text>
419
- </TouchableOpacity>
420
- </View>
139
+ {(R.logs&&R.logs.length>0||E)&&<T style={o.consoleContainer}>
140
+ <T style={o.consoleHeaderRow}>
141
+ <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
142
+ <Qe color="#38BDF8"size={12}/>
143
+ <C style={o.consoleHeaderTitle}>GRADLE VERBOSE OUTPUT</C>
144
+ </T>
145
+ <U activeOpacity={.7}onPress={()=>Ae(!Q)}style={o.consoleToggleBtn}>
146
+ <C style={o.consoleToggleText}>
147
+ {Q?"Hide Console":"Show Console"}
148
+ </C>
149
+ </U>
150
+ </T>
421
151
 
422
- {showVerboseLogs && (<ScrollView ref={verboseScrollRef} style={styles.consoleLogBox} contentContainerStyle={styles.consoleLogContent} nestedScrollEnabled showsVerticalScrollIndicator>
423
- {buildStatus.logs && buildStatus.logs.length > 0 ? (buildStatus.logs.map((logLine, idx) => {
424
- let logColor = '#94A3B8';
425
- if (logLine.startsWith('> Task :'))
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}>
152
+ {Q&&<Te ref={te}style={o.consoleLogBox}contentContainerStyle={o.consoleLogContent}nestedScrollEnabled showsVerticalScrollIndicator>
153
+ {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}]}>
154
+ {k}
155
+ </C>}):<C style={o.consoleLogPlaceholder}>
437
156
  Waiting for Gradle daemon output...
438
- </Text>)}
439
- </ScrollView>)}
440
- </View>)}
157
+ </C>}
158
+ </Te>}
159
+ </T>}
441
160
 
442
161
 
443
- {isBuilding ? (<View style={styles.buildingActionsRow}>
444
- <View style={styles.buildingStatusPill}>
445
- <ActivityIndicator size="small" color={AppColors.purple}/>
446
- <Text style={styles.buildingStatusPillText} numberOfLines={1}>
447
- Building ({buildStatus.progress}%)
448
- </Text>
449
- </View>
162
+ {E?<T style={o.buildingActionsRow}>
163
+ <T style={o.buildingStatusPill}>
164
+ <Ce size="small"color={e.purple}/>
165
+ <C style={o.buildingStatusPillText}numberOfLines={1}>
166
+ Building ({R.progress}%)
167
+ </C>
168
+ </T>
450
169
 
451
- <TouchableScale onPress={handleStopBuild} style={styles.stopBtn}>
452
- <CircleXIcon size={13} color={AppColors.white}/>
453
- <Text style={styles.stopBtnText}>Stop Build</Text>
454
- </TouchableScale>
455
- </View>) : (<TouchableScale onPress={handleStartBuild} style={styles.generateBtn}>
456
- <View style={styles.ctaContentRow}>
457
- <SparkleIcon size={14} color={AppColors.white}/>
458
- <Text style={styles.generateBtnText}>
459
- {isCleanBuild ? 'Clean & Generate Build' : 'Generate Build'}
460
- </Text>
461
- </View>
462
- </TouchableScale>)}
463
- </View>
170
+ <Be onPress={Oe}style={o.stopBtn}>
171
+ <Re size={13}color={e.white}/>
172
+ <C style={o.stopBtnText}>Stop Build</C>
173
+ </Be>
174
+ </T>:<Be onPress={Fe}style={o.generateBtn}>
175
+ <T style={o.ctaContentRow}>
176
+ <Ne size={14}color={e.white}/>
177
+ <C style={o.generateBtnText}>
178
+ {L?"Clean & Generate Build":"Generate Build"}
179
+ </C>
180
+ </T>
181
+ </Be>}
182
+ </T>
464
183
 
465
184
 
466
- <View style={styles.footerNoteRow}>
467
- <InfoCircleIcon size={13} color={AppColors.grayTextWeak}/>
468
- <Text style={styles.footerNoteText}>
185
+ <T style={o.footerNoteRow}>
186
+ <Ee size={13}color={e.grayTextWeak}/>
187
+ <C style={o.footerNoteText}>
469
188
  Ensure both Android devices are connected to the same Wi-Fi network.
470
- </Text>
471
- </View>
472
- </ScrollView>);
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;
189
+ </C>
190
+ </T>
191
+ </Te>};const o=Le.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;