react-native-inapp-inspector 2.3.24 → 2.3.25
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/dist/commonjs/components/AnalyticsDetail.js +8 -8
- package/dist/commonjs/components/AnalyticsEventCard.js +11 -8
- package/dist/commonjs/components/AppHeaderLogo.js +1 -1
- package/dist/commonjs/components/BrandSquareIcon.js +12 -12
- package/dist/commonjs/components/ConsoleLogCard.d.ts +1 -0
- package/dist/commonjs/components/ConsoleLogCard.js +92 -80
- package/dist/commonjs/components/EndOfListFooter.d.ts +5 -1
- package/dist/commonjs/components/EndOfListFooter.js +27 -5
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +30 -298
- package/dist/commonjs/components/Inspector/ConsoleTab.js +38 -93
- package/dist/commonjs/components/Inspector/CrashDetail.js +12 -12
- package/dist/commonjs/components/Inspector/CrashTab.js +43 -33
- package/dist/commonjs/components/Inspector/DebuggingTab.js +9 -9
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +54 -52
- package/dist/commonjs/components/Inspector/InspectorHeader.js +1 -1
- package/dist/commonjs/components/Inspector/MainScreen.js +23 -25
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +1 -1
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +3 -3
- package/dist/commonjs/components/Inspector/NetworkTab.js +31 -31
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +3 -3
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +21 -22
- package/dist/commonjs/components/Inspector/ReduxTab.js +110 -97
- package/dist/commonjs/components/Inspector/SettingsPanel.js +48 -100
- package/dist/commonjs/components/Inspector/StorageTab.js +56 -52
- package/dist/commonjs/components/Inspector/TabBar.js +29 -26
- package/dist/commonjs/components/JsonViewer.js +169 -164
- package/dist/commonjs/components/LogCard.js +34 -38
- package/dist/commonjs/components/LogSyntaxHighlighter.js +3 -3
- package/dist/commonjs/components/SegmentedTabs.d.ts +4 -1
- package/dist/commonjs/components/SegmentedTabs.js +8 -8
- package/dist/commonjs/constants/index.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/networkLogger.js +1 -2
- package/dist/commonjs/helpers/index.d.ts +6 -0
- package/dist/commonjs/helpers/index.js +4 -4
- package/dist/commonjs/helpers/memoryManager.d.ts +0 -1
- package/dist/commonjs/helpers/memoryManager.js +1 -1
- package/dist/commonjs/helpers/remoteConfig.js +1 -1
- package/dist/commonjs/helpers/settingsStore.js +1 -1
- package/dist/commonjs/i18n/index.d.ts +35 -0
- package/dist/commonjs/i18n/index.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -0
- package/dist/commonjs/i18n/locales/de.json +1 -0
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -0
- package/dist/commonjs/i18n/locales/fr.json +1 -0
- package/dist/commonjs/i18n/locales/hi.json +1 -0
- package/dist/commonjs/i18n/locales/ja.json +1 -0
- package/dist/commonjs/i18n/locales/ko.json +1 -0
- package/dist/commonjs/i18n/locales/pt.json +1 -0
- package/dist/commonjs/i18n/locales/ru.json +1 -0
- package/dist/commonjs/i18n/locales/zh.json +1 -0
- package/dist/commonjs/index.d.ts +2 -4
- package/dist/commonjs/index.js +2 -2
- package/dist/commonjs/styles/AppColors.d.ts +40 -0
- package/dist/commonjs/styles/AppColors.js +1 -1
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/enums.d.ts +0 -20
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/esm/components/AnalyticsDetail.js +75 -75
- package/dist/esm/components/AnalyticsEventCard.js +20 -17
- package/dist/esm/components/AppHeaderLogo.js +5 -5
- package/dist/esm/components/BrandSquareIcon.js +39 -39
- package/dist/esm/components/ConsoleLogCard.d.ts +1 -0
- package/dist/esm/components/ConsoleLogCard.js +98 -86
- package/dist/esm/components/EndOfListFooter.d.ts +5 -1
- package/dist/esm/components/EndOfListFooter.js +36 -14
- package/dist/esm/components/Inspector/AnalyticsTab.js +47 -315
- package/dist/esm/components/Inspector/ConsoleTab.js +61 -116
- package/dist/esm/components/Inspector/CrashDetail.js +49 -49
- package/dist/esm/components/Inspector/CrashTab.js +75 -65
- package/dist/esm/components/Inspector/DebuggingTab.js +31 -31
- package/dist/esm/components/Inspector/DeviceInfoTab.js +146 -144
- package/dist/esm/components/Inspector/InspectorHeader.js +5 -5
- package/dist/esm/components/Inspector/MainScreen.js +51 -53
- package/dist/esm/components/Inspector/MediaGalleryTab.js +1 -1
- package/dist/esm/components/Inspector/MediaPreviewModal.js +31 -31
- package/dist/esm/components/Inspector/NetworkTab.js +63 -63
- package/dist/esm/components/Inspector/NpmStarPrompt.js +42 -42
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -46
- package/dist/esm/components/Inspector/ReduxTab.js +163 -150
- package/dist/esm/components/Inspector/SettingsPanel.js +136 -188
- package/dist/esm/components/Inspector/StorageTab.js +88 -84
- package/dist/esm/components/Inspector/TabBar.js +37 -34
- package/dist/esm/components/JsonViewer.js +173 -168
- package/dist/esm/components/LogCard.js +38 -42
- package/dist/esm/components/LogSyntaxHighlighter.js +1 -1
- package/dist/esm/components/SegmentedTabs.d.ts +4 -1
- package/dist/esm/components/SegmentedTabs.js +8 -8
- package/dist/esm/constants/index.js +1 -1
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/networkLogger.js +1 -2
- package/dist/esm/helpers/index.d.ts +6 -0
- package/dist/esm/helpers/index.js +4 -4
- package/dist/esm/helpers/memoryManager.d.ts +0 -1
- package/dist/esm/helpers/memoryManager.js +1 -1
- package/dist/esm/helpers/remoteConfig.js +1 -1
- package/dist/esm/helpers/settingsStore.js +1 -1
- package/dist/esm/i18n/index.d.ts +35 -0
- package/dist/esm/i18n/index.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -0
- package/dist/esm/i18n/locales/de.json +1 -0
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -0
- package/dist/esm/i18n/locales/fr.json +1 -0
- package/dist/esm/i18n/locales/hi.json +1 -0
- package/dist/esm/i18n/locales/ja.json +1 -0
- package/dist/esm/i18n/locales/ko.json +1 -0
- package/dist/esm/i18n/locales/pt.json +1 -0
- package/dist/esm/i18n/locales/ru.json +1 -0
- package/dist/esm/i18n/locales/zh.json +1 -0
- package/dist/esm/index.d.ts +2 -4
- package/dist/esm/index.js +5 -5
- package/dist/esm/styles/AppColors.d.ts +40 -0
- package/dist/esm/styles/AppColors.js +1 -1
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/enums.d.ts +0 -20
- package/dist/esm/types/enums.js +1 -1
- package/package.json +1 -15
- package/dist/commonjs/bundle.d.ts +0 -2
- package/dist/commonjs/bundle.js +0 -1
- package/dist/commonjs/components/Inspector/BundleTab.d.ts +0 -48
- package/dist/commonjs/components/Inspector/BundleTab.js +0 -1297
- package/dist/commonjs/components/Inspector/PerformanceTab.d.ts +0 -27
- package/dist/commonjs/components/Inspector/PerformanceTab.js +0 -454
- package/dist/commonjs/customHooks/bundleAnalyzer.d.ts +0 -115
- package/dist/commonjs/customHooks/bundleAnalyzer.js +0 -1
- package/dist/commonjs/customHooks/performanceTracker.d.ts +0 -144
- package/dist/commonjs/customHooks/performanceTracker.js +0 -63
- package/dist/commonjs/performance.d.ts +0 -2
- package/dist/commonjs/performance.js +0 -1
- package/dist/esm/bundle.d.ts +0 -2
- package/dist/esm/bundle.js +0 -1
- package/dist/esm/components/Inspector/BundleTab.d.ts +0 -48
- package/dist/esm/components/Inspector/BundleTab.js +0 -1297
- package/dist/esm/components/Inspector/PerformanceTab.d.ts +0 -27
- package/dist/esm/components/Inspector/PerformanceTab.js +0 -454
- package/dist/esm/customHooks/bundleAnalyzer.d.ts +0 -115
- package/dist/esm/customHooks/bundleAnalyzer.js +0 -1
- package/dist/esm/customHooks/performanceTracker.d.ts +0 -144
- package/dist/esm/customHooks/performanceTracker.js +0 -63
- package/dist/esm/performance.d.ts +0 -2
- package/dist/esm/performance.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
<A onPress={()=>{
|
|
1
|
+
import Z,{useCallback as ee,useMemo as _,useRef as te,useState as W}from"react";import{Alert as re,FlatList as Ce,Platform as be,ScrollView as N,StyleSheet as Te,Text as T,TextInput as Se,TouchableOpacity as Ie,View as C}from"react-native";import{useTranslation as Be}from"../../i18n";import{useInspector as Ve}from"./InspectorContext";import A from"../TouchableScale";import Fe from"../AnimatedEntrance";import Re from"../EndOfListFooter";import He from"./FeatureUnderDevNotice";import Pe from"../HighlightText";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as k}from"../../styles/AppFonts";import{clearCrashRecords as Le}from"../../customHooks/crashHandler";import We,{DEFAULT_CRASH_FILTERS as q,isCrashFiltersDefault as $}from"./CrashFilterModal";import{SearchIcon as $e,ClearIcon as De,TrashIcon as Ae,TerminalIcon as Me,LayersIcon as je,ClockIcon as Oe,ShieldAlertIcon as Ne,FlameIcon as Ee,JsIcon as Je,HourglassIcon as Ue,SkullIcon as Qe,LayoutIcon as _e,ChipIcon as qe,AppleIcon as Ge,AndroidIcon as Ke,RepeatIcon as Xe,CodeBracketsIcon as Ye,FilterIcon as Ze,ForwardChevronIcon as Ct}from"../NetworkIcons";const bt=S=>{const R=Date.now(),E=Math.max(0,R-S),L=Math.floor(E/1e3),D=Math.floor(L/60),v=Math.floor(D/60),j=Math.floor(v/24);return L<60?`${L}s ago`:D<60?`${D}m ago`:v<24?`${v}h ago`:`${j}d ago`},Tt=Z.memo(()=>{const{t:S}=Be(),{crashRecords:R,selectedCrash:E,setSelectedCrash:L}=Ve(),D=te(null),[v,j]=W(100),[B,O]=W(""),[z,J]=W("all"),[w,U]=W(q),[G,Q]=W(!1),[xt,wt]=W("stack"),V=_(()=>{const r=R.length;let o=0,x=0,F=0,I=0,M=0;return R.forEach(P=>{P.isFatal&&o++,P.type==="js"?x++:P.type==="promise"?F++:P.type==="render"?I++:P.type==="native"&&M++}),{total:r,fatalCount:o,jsCount:x,promiseCount:F,renderCount:I,nativeCount:M}},[R]),H=_(()=>{let r=R.filter(o=>{if(z==="fatal"&&!o.isFatal||z==="js"&&o.type!=="js"||z==="promise"&&o.type!=="promise"||z==="render"&&o.type!=="render"||z==="native"&&o.type!=="native"||w.types.size>0&&!w.types.has("all")&&!(w.types.has("fatal")&&o.isFatal||w.types.has("js")&&o.type==="js"||w.types.has("promise")&&o.type==="promise"||w.types.has("render")&&o.type==="render"||w.types.has("native")&&o.type==="native"))return!1;if(w.timeWindow!=="all"){const x=Date.now(),F=w.timeWindow==="15m"?x-900*1e3:w.timeWindow==="1h"?x-3600*1e3:w.timeWindow==="24h"?x-1440*60*1e3:x-10080*60*1e3;if(o.timestamp<F)return!1}if(w.platform!=="all"&&(o.deviceInfo?.platform||"").toLowerCase()!==w.platform)return!1;if(w.engine!=="all"){const x=o.deviceInfo?.isHermes;if(w.engine==="hermes"&&x!==!0||w.engine==="jsc"&&x===!0)return!1}if(B.trim().length>0){const x=B.trim().toLowerCase().split(/\s+/).filter(Boolean),F=[o.message||"",o.name||"",o.stack||"",o.type||"",o.deviceInfo?.platform||"",...(o.breadcrumbs||[]).map(I=>`${I.type||""} ${I.message||""}`)].join(" ").toLowerCase();return x.every(I=>F.includes(I))}return!0});return w.sortBy==="time_asc"&&(r=[...r].sort((o,x)=>o.timestamp-x.timestamp)),r},[R,z,B,w]),K=()=>{re.alert(S("crash.clearTitle"),S("crash.clearMessage"),[{text:S("crash.clearCancel"),style:"cancel"},{text:S("crash.clearConfirm"),style:"destructive",onPress:()=>Le()}])},X=ee(({item:r,index:o})=>{const x=r.isFatal,F=r.type.toUpperCase(),I=r.parsedStack&&r.parsedStack.length>0?r.parsedStack.find(Y=>Y.isAppCode)||r.parsedStack[0]:null,M=r.type==="native"?`${e.errorColor}22`:r.type==="render"?`${e.purple}22`:r.type==="promise"?`${e.darkOrange}22`:`${e.offerPurple}22`,P=r.type==="native"?e.errorColor:r.type==="render"?e.purple:r.type==="promise"?e.darkOrange:e.offerPurple;return<Fe index={o}distance={8}>
|
|
2
|
+
<A onPress={()=>{L(r)}}style={[t.cardContainer,x&&t.fatalCardBorder]}>
|
|
3
3
|
|
|
4
4
|
<C style={t.cardHeader}>
|
|
5
5
|
<C style={t.badgeRow}>
|
|
@@ -7,42 +7,43 @@ import Y,{useCallback as Z,useMemo as U,useRef as ee,useState as W}from"react";i
|
|
|
7
7
|
<T style={t.sNoBadgeText}>#{o+1}</T>
|
|
8
8
|
</C>
|
|
9
9
|
|
|
10
|
-
{
|
|
11
|
-
<
|
|
12
|
-
<T style={t.fatalBadgeText}>{
|
|
10
|
+
{x?<C style={t.fatalBadge}>
|
|
11
|
+
<Ee size={10}color={e.white}/>
|
|
12
|
+
<T style={t.fatalBadgeText}>{S("crash.fatalBadge")}</T>
|
|
13
13
|
</C>:<C style={t.caughtBadge}>
|
|
14
|
-
<T style={t.caughtBadgeText}>{
|
|
14
|
+
<T style={t.caughtBadgeText}>{S("crash.handledBadge")}</T>
|
|
15
15
|
</C>}
|
|
16
16
|
|
|
17
|
-
<C style={[t.typeBadge,{backgroundColor
|
|
18
|
-
<T style={[t.typeBadgeText,{color:
|
|
19
|
-
{
|
|
17
|
+
<C style={[t.typeBadge,{backgroundColor:M}]}>
|
|
18
|
+
<T style={[t.typeBadgeText,{color:P}]}>
|
|
19
|
+
{F}
|
|
20
20
|
</T>
|
|
21
21
|
</C>
|
|
22
22
|
</C>
|
|
23
23
|
|
|
24
24
|
<C style={t.timeRow}>
|
|
25
|
-
<
|
|
25
|
+
<Oe size={11}color={e.grayTextWeak}/>
|
|
26
26
|
<T style={t.timestampText}>
|
|
27
27
|
{r.timeStr||new Date(r.timestamp).toLocaleTimeString()}
|
|
28
28
|
</T>
|
|
29
29
|
<T style={t.relativeTimeText}>
|
|
30
|
-
{
|
|
30
|
+
{bt(r.timestamp)}
|
|
31
31
|
</T>
|
|
32
|
+
<Ct size={13}color={e.grayTextWeak}/>
|
|
32
33
|
</C>
|
|
33
34
|
</C>
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
<C style={{marginVertical:6}}>
|
|
37
|
-
<
|
|
38
|
+
<Pe text={r.message||S("crash.unknownException")}highlight={B}numberOfLines={3}style={t.errorMessageText}/>
|
|
38
39
|
</C>
|
|
39
40
|
|
|
40
41
|
|
|
41
42
|
{I&&<C style={t.locationRow}>
|
|
42
|
-
|
|
43
|
+
<Me size={12}color={e.grayTextWeak}/>
|
|
43
44
|
<T numberOfLines={1}ellipsizeMode="middle"style={t.locationText}>
|
|
44
45
|
{I.method!=="<anonymous>"?`${I.method} `:""}
|
|
45
|
-
<T style={{color:e.purple,fontFamily:
|
|
46
|
+
<T style={{color:e.purple,fontFamily:k.interBold}}>
|
|
46
47
|
{I.file}:{I.lineNumber}
|
|
47
48
|
</T>
|
|
48
49
|
</T>
|
|
@@ -52,7 +53,7 @@ import Y,{useCallback as Z,useMemo as U,useRef as ee,useState as W}from"react";i
|
|
|
52
53
|
<C style={t.cardFooter}>
|
|
53
54
|
<C style={{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"}}>
|
|
54
55
|
{r.deviceInfo&&<C style={t.metaPill}>
|
|
55
|
-
{r.deviceInfo.platform==="ios"?<
|
|
56
|
+
{r.deviceInfo.platform==="ios"?<Ge size={10}color={e.grayText}/>:r.deviceInfo.platform==="android"?<Ke size={10}color={e.grayText}/>:null}
|
|
56
57
|
<T style={t.metaPillText}>
|
|
57
58
|
{r.deviceInfo.platform?.toUpperCase()}{" "}
|
|
58
59
|
{r.deviceInfo.osVersion||""}
|
|
@@ -64,13 +65,13 @@ import Y,{useCallback as Z,useMemo as U,useRef as ee,useState as W}from"react";i
|
|
|
64
65
|
</T>
|
|
65
66
|
</C>}
|
|
66
67
|
{r.parsedStack&&r.parsedStack.length>0&&<C style={t.metaPill}>
|
|
67
|
-
<
|
|
68
|
+
<Ye size={10}color={e.grayText}/>
|
|
68
69
|
<T style={t.metaPillText}>
|
|
69
70
|
{r.parsedStack.length}
|
|
70
71
|
</T>
|
|
71
72
|
</C>}
|
|
72
73
|
{r.breadcrumbs&&r.breadcrumbs.length>0&&<C style={t.metaPill}>
|
|
73
|
-
<
|
|
74
|
+
<Xe size={10}color={e.grayText}/>
|
|
74
75
|
<T style={t.metaPillText}>
|
|
75
76
|
{r.breadcrumbs.length} trail
|
|
76
77
|
</T>
|
|
@@ -83,117 +84,126 @@ import Y,{useCallback as Z,useMemo as U,useRef as ee,useState as W}from"react";i
|
|
|
83
84
|
</C>
|
|
84
85
|
</C>
|
|
85
86
|
</A>
|
|
86
|
-
</
|
|
87
|
-
{
|
|
87
|
+
</Fe>},[B,L]);return<C style={t.container}>
|
|
88
|
+
{R.length>0&&<>
|
|
88
89
|
|
|
89
90
|
<C style={t.statsBar}>
|
|
90
|
-
<
|
|
91
|
+
<N horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={t.statsScrollContent}>
|
|
91
92
|
<C style={[t.statChip,t.statChipActive]}>
|
|
92
|
-
<T style={t.statChipValue}>{
|
|
93
|
-
<T style={t.statChipLabel}>{
|
|
93
|
+
<T style={t.statChipValue}>{V.total}</T>
|
|
94
|
+
<T style={t.statChipLabel}>{S("crash.statCrashes")}</T>
|
|
94
95
|
</C>
|
|
95
96
|
|
|
96
97
|
<C style={t.statChip}>
|
|
97
98
|
<T style={[t.statChipValue,{color:e.errorColor}]}>
|
|
98
|
-
{
|
|
99
|
+
{V.fatalCount}
|
|
99
100
|
</T>
|
|
100
|
-
<T style={t.statChipLabel}>{
|
|
101
|
+
<T style={t.statChipLabel}>{S("crash.statFatal")}</T>
|
|
101
102
|
</C>
|
|
102
103
|
|
|
103
104
|
<C style={t.statChip}>
|
|
104
105
|
<T style={[t.statChipValue,{color:e.offerPurple}]}>
|
|
105
|
-
{
|
|
106
|
+
{V.jsCount}
|
|
106
107
|
</T>
|
|
107
|
-
<T style={t.statChipLabel}>{
|
|
108
|
+
<T style={t.statChipLabel}>{S("crash.statJsErrors")}</T>
|
|
108
109
|
</C>
|
|
109
110
|
|
|
110
111
|
<C style={t.statChip}>
|
|
111
112
|
<T style={[t.statChipValue,{color:e.darkOrange}]}>
|
|
112
|
-
{
|
|
113
|
+
{V.promiseCount}
|
|
113
114
|
</T>
|
|
114
|
-
<T style={t.statChipLabel}>{
|
|
115
|
+
<T style={t.statChipLabel}>{S("crash.statPromises")}</T>
|
|
115
116
|
</C>
|
|
116
117
|
|
|
117
118
|
<C style={t.statChip}>
|
|
118
119
|
<T style={[t.statChipValue,{color:e.purple}]}>
|
|
119
|
-
{
|
|
120
|
+
{V.renderCount}
|
|
120
121
|
</T>
|
|
121
|
-
<T style={t.statChipLabel}>{
|
|
122
|
+
<T style={t.statChipLabel}>{S("crash.statRender")}</T>
|
|
122
123
|
</C>
|
|
123
124
|
|
|
124
125
|
<C style={t.statChip}>
|
|
125
126
|
<T style={[t.statChipValue,{color:e.skyBlue}]}>
|
|
126
|
-
{
|
|
127
|
+
{V.nativeCount}
|
|
127
128
|
</T>
|
|
128
|
-
<T style={t.statChipLabel}>{
|
|
129
|
+
<T style={t.statChipLabel}>{S("crash.statNative")}</T>
|
|
129
130
|
</C>
|
|
130
|
-
</
|
|
131
|
+
</N>
|
|
131
132
|
</C>
|
|
132
133
|
|
|
133
134
|
|
|
134
135
|
<C style={t.controlsContainer}>
|
|
135
136
|
<C style={t.searchRow}>
|
|
136
137
|
<C style={t.searchInputWrapper}>
|
|
137
|
-
|
|
138
|
-
<Se value={
|
|
139
|
-
{
|
|
138
|
+
<$e color={e.grayTextWeak}size={14}/>
|
|
139
|
+
<Se value={B}onChangeText={O}placeholder={S("crash.searchPlaceholder")}placeholderTextColor={e.grayTextWeak}style={t.searchInput}autoCapitalize="none"autoCorrect={!1}/>
|
|
140
|
+
{B.length>0&&<C style={{flexDirection:"row",alignItems:"center",gap:4}}>
|
|
140
141
|
<C style={{backgroundColor:`${e.purple}20`,borderRadius:10,paddingHorizontal:6,paddingVertical:1.5}}>
|
|
141
|
-
<T style={{color:e.purple,fontSize:9.5,fontFamily:
|
|
142
|
-
{
|
|
142
|
+
<T style={{color:e.purple,fontSize:9.5,fontFamily:k.interBold}}>
|
|
143
|
+
{H.length}
|
|
143
144
|
</T>
|
|
144
145
|
</C>
|
|
145
|
-
<
|
|
146
|
-
<
|
|
147
|
-
</
|
|
146
|
+
<Ie onPress={()=>O("")}hitSlop={8}>
|
|
147
|
+
<De color={e.grayTextWeak}size={14}/>
|
|
148
|
+
</Ie>
|
|
148
149
|
</C>}
|
|
149
150
|
</C>
|
|
150
151
|
|
|
151
152
|
|
|
152
|
-
<A onPress={()=>
|
|
153
|
-
<
|
|
154
|
-
{
|
|
153
|
+
<A onPress={()=>Q(!0)}style={[t.filterButton,!$(w)&&{borderColor:`${e.brandPurple}60`,backgroundColor:`${e.brandPurple}15`}]}>
|
|
154
|
+
<Ze size={14}color={$(w)?e.grayTextStrong:e.brandPurple}/>
|
|
155
|
+
{!$(w)&&<C style={{position:"absolute",top:2,right:2,width:7,height:7,borderRadius:3.5,backgroundColor:e.darkOrange,borderWidth:1,borderColor:e.white}}/>}
|
|
155
156
|
</A>
|
|
156
157
|
|
|
157
158
|
|
|
158
|
-
<A onPress={
|
|
159
|
-
<
|
|
159
|
+
<A onPress={K}style={t.clearButton}>
|
|
160
|
+
<Ae size={14}color={e.errorColor}/>
|
|
160
161
|
</A>
|
|
161
162
|
</C>
|
|
162
163
|
|
|
163
|
-
<
|
|
164
|
+
<He featureName="Crash & Exception Sentinel"/>
|
|
164
165
|
|
|
165
166
|
|
|
166
|
-
<
|
|
167
|
-
{
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
167
|
+
<C style={{flexDirection:"row",alignItems:"center",marginBottom:8,paddingHorizontal:12,gap:6}}>
|
|
168
|
+
<N horizontal showsHorizontalScrollIndicator={!1}style={{flex:1}}contentContainerStyle={{flexDirection:"row",alignItems:"center",gap:6,paddingRight:6}}>
|
|
169
|
+
{[{key:"all",label:S("crash.filterAll"),Icon:je,count:V.total,themeColor:e.purple},{key:"fatal",label:S("crash.filterFatal"),Icon:Qe,count:V.fatalCount,themeColor:e.errorColor},{key:"js",label:S("crash.filterJsError"),Icon:Je,count:V.jsCount,themeColor:e.amber600},{key:"promise",label:S("crash.filterPromise"),Icon:Ue,count:V.promiseCount,themeColor:e.orange600},{key:"render",label:S("crash.filterRender"),Icon:_e,count:V.renderCount,themeColor:e.violet600},{key:"native",label:S("crash.filterNative"),Icon:qe,count:V.nativeCount,themeColor:e.cyan600}].map(r=>{const o=z===r.key,x=r.themeColor||e.purple,F=o?e.white:x,I=r.Icon;return<A key={r.key}onPress={()=>J(r.key)}>
|
|
170
|
+
<C style={{flexDirection:"row",alignItems:"center",paddingHorizontal:9,paddingVertical:4.5,borderRadius:8,backgroundColor:o?x:`${x}12`,borderWidth:1,borderColor:o?x:`${x}30`,gap:5}}>
|
|
171
|
+
<I size={11}color={F}/>
|
|
172
|
+
<T style={{fontFamily:k.interBold,fontSize:10.5,color:o?e.white:e.primaryBlack}}>
|
|
173
|
+
{r.label}
|
|
174
|
+
</T>
|
|
175
|
+
<C style={{backgroundColor:o?"rgba(255,255,255,0.25)":`${x}20`,paddingHorizontal:5,paddingVertical:1,borderRadius:8,alignItems:"center",justifyContent:"center"}}>
|
|
176
|
+
<T style={{fontFamily:k.interBold,fontSize:9.5,color:o?e.white:x}}>
|
|
177
|
+
{r.count}
|
|
178
|
+
</T>
|
|
179
|
+
</C>
|
|
180
|
+
</C>
|
|
181
|
+
</A>})}
|
|
182
|
+
</N>
|
|
183
|
+
</C>
|
|
174
184
|
</C>
|
|
175
185
|
</>}
|
|
176
186
|
|
|
177
187
|
|
|
178
|
-
{
|
|
188
|
+
{H.length===0?<N contentContainerStyle={t.emptyContainer}showsVerticalScrollIndicator={!1}>
|
|
179
189
|
<C style={t.emptyIconCircle}>
|
|
180
|
-
<
|
|
190
|
+
<Ne size={38}color={e.greenColor}/>
|
|
181
191
|
</C>
|
|
182
192
|
<T style={t.emptyTitle}>
|
|
183
|
-
{
|
|
193
|
+
{B.length>0?"No matching crash entries":z!=="all"||!$(w)?"No crashes match filters":S("crash.emptyTitle")}
|
|
184
194
|
</T>
|
|
185
195
|
<T style={t.emptySub}>
|
|
186
|
-
{
|
|
196
|
+
{B?`No crash entries matched "${B}"`:z!=="all"||!$(w)?"Try adjusting your filters or search keywords.":S("crash.emptySubtitle")}
|
|
187
197
|
</T>
|
|
188
|
-
{(
|
|
189
|
-
<T style={{fontFamily:
|
|
198
|
+
{(B.length>0||z!=="all"||!$(w))&&<A onPress={()=>{O(""),J("all"),U(q)}}style={{marginTop:10,paddingHorizontal:14,paddingVertical:7,borderRadius:8,backgroundColor:e.purple}}>
|
|
199
|
+
<T style={{fontFamily:k.interBold,fontSize:11.5,color:e.white}}>
|
|
190
200
|
Clear Search & Filters
|
|
191
201
|
</T>
|
|
192
202
|
</A>}
|
|
193
|
-
</
|
|
194
|
-
<Ce ref={
|
|
203
|
+
</N>:<>
|
|
204
|
+
<Ce ref={D}data={H.slice(0,v)}keyExtractor={r=>r.id}renderItem={X}initialNumToRender={12}maxToRenderPerBatch={8}windowSize={5}removeClippedSubviews={be.OS==="android"}renderToHardwareTextureAndroid={!0}contentContainerStyle={t.listContent}showsVerticalScrollIndicator={!1}ListFooterComponent={H.length>0?<Re count={Math.min(v,H.length)}totalCount={H.length}label="crashes"hasMore={H.length>v}onLoadMore={()=>j(r=>r+10)}/>:null}/>
|
|
195
205
|
</>}
|
|
196
206
|
|
|
197
207
|
|
|
198
|
-
<
|
|
199
|
-
</C>});export default
|
|
208
|
+
<We visible={G}onClose={()=>Q(!1)}filters={w}onApply={U}searchQuery={B}/>
|
|
209
|
+
</C>});export default Tt;const t=Te.create({container:{flex:1,backgroundColor:e.grayBackground},statsBar:{backgroundColor:e.primaryLight,borderBottomWidth:1,borderBottomColor:e.grayBorderSecondary,paddingVertical:10},statsScrollContent:{paddingHorizontal:16,gap:8},statChip:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:e.purpleShade50,borderWidth:1,borderColor:`${e.purple}14`},statChipActive:{backgroundColor:`${e.purple}14`,borderColor:`${e.purple}33`},statChipValue:{fontFamily:k.interBold,fontSize:13,color:e.primaryBlack},statChipLabel:{fontFamily:k.interMedium,fontSize:11,color:e.grayText},controlsContainer:{paddingHorizontal:16,paddingTop:12,paddingBottom:6,backgroundColor:e.grayBackground},searchRow:{flexDirection:"row",alignItems:"center",gap:8},searchInputWrapper:{flex:1,flexDirection:"row",alignItems:"center",backgroundColor:e.primaryLight,borderWidth:1,borderColor:e.grayBorderSecondary,borderRadius:10,paddingHorizontal:10,height:38,gap:8},searchInput:{flex:1,fontFamily:k.interRegular,fontSize:13,color:e.primaryBlack,paddingVertical:0},clearButton:{width:38,height:38,borderRadius:10,backgroundColor:`${e.errorColor}14`,borderWidth:1,borderColor:`${e.errorColor}22`,alignItems:"center",justifyContent:"center"},filterButton:{width:38,height:38,borderRadius:10,backgroundColor:`${e.brandPurple}0F`,borderWidth:1,borderColor:`${e.brandPurple}30`,alignItems:"center",justifyContent:"center"},filterScrollContent:{paddingVertical:10,gap:6},filterChip:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:e.primaryLight,borderWidth:1,borderColor:e.grayBorderSecondary},filterChipActive:{backgroundColor:e.purple,borderColor:e.purple},filterChipText:{fontFamily:k.interMedium,fontSize:12,color:e.grayText},filterChipTextActive:{fontFamily:k.interBold,color:e.white},listContent:{paddingHorizontal:16,paddingTop:4,paddingBottom:24,gap:10},cardContainer:{backgroundColor:e.primaryLight,borderRadius:12,borderWidth:1,borderColor:e.grayBorderSecondary,padding:14,shadowColor:e.shadowColorString,shadowOffset:{width:0,height:1},shadowOpacity:.05,shadowRadius:3,elevation:2},fatalCardBorder:{borderColor:`${e.errorColor}44`},cardHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},badgeRow:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:1},sNoBadge:{backgroundColor:e.grayBackground,borderWidth:1,borderColor:e.grayBorderSecondary,paddingHorizontal:6,paddingVertical:3,borderRadius:5},sNoBadgeText:{fontFamily:k.interBold,fontSize:9.5,color:e.grayText,letterSpacing:.3},fatalBadge:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:e.errorColor,paddingHorizontal:6,paddingVertical:3,borderRadius:5},fatalBadgeText:{fontFamily:k.interBold,fontSize:9.5,color:e.white,letterSpacing:.5},caughtBadge:{backgroundColor:`${e.greenColor}1F`,paddingHorizontal:6,paddingVertical:3,borderRadius:5},caughtBadgeText:{fontFamily:k.interBold,fontSize:9.5,color:e.greenColor,letterSpacing:.5},typeBadge:{paddingHorizontal:6,paddingVertical:3,borderRadius:5},typeBadgeText:{fontFamily:k.interBold,fontSize:9.5,letterSpacing:.5},timeRow:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:1},timestampText:{fontFamily:k.interRegular,fontSize:11,color:e.grayTextWeak},relativeTimeText:{fontFamily:k.interBold,fontSize:10,color:e.grayTextWeak,backgroundColor:e.grayBackground,paddingHorizontal:5,paddingVertical:1,borderRadius:4,overflow:"hidden"},errorMessageText:{fontFamily:k.interBold,fontSize:13.5,color:e.primaryBlack,lineHeight:18},locationRow:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2,marginBottom:6,backgroundColor:e.purpleShade50,paddingHorizontal:8,paddingVertical:4,borderRadius:6},locationText:{fontFamily:k.interRegular,fontSize:11,color:e.grayText,flex:1},cardFooter:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:6,paddingTop:8,borderTopWidth:1,borderTopColor:e.dividerColor},metaPill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:e.purpleShade50,paddingHorizontal:6,paddingVertical:2,borderRadius:4},metaPillText:{fontFamily:k.interMedium,fontSize:10,color:e.grayTextWeak},emptyContainer:{flexGrow:1,alignItems:"center",justifyContent:"center",padding:32,paddingBottom:80},emptyIconCircle:{width:72,height:72,borderRadius:36,backgroundColor:`${e.greenColor}1F`,alignItems:"center",justifyContent:"center",marginBottom:16},emptyTitle:{fontFamily:k.interBold,fontSize:17,color:e.primaryBlack,marginBottom:6},emptySub:{fontFamily:k.interRegular,fontSize:13,color:e.grayText,textAlign:"center",lineHeight:18,maxWidth:280}});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{useState as M,useEffect as
|
|
1
|
+
import{useState as M,useEffect as _,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 G,ActivityIndicator as Ce,Animated as Z}from"react-native";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as B}from"../../styles/AppFonts";import $e from"../QRCodeView";import Se from"../TouchableScale";import{showToast as J}from"../../helpers/toast";import{triggerNativeHaptic as L}from"../../native/NativeInspector";import{InfoCircleIcon as Ne,CheckIcon as Be,BoltIcon as Re,CircleXIcon as Ie,SparkleIcon as Ee,AndroidIcon as Ge,RepeatIcon as Ue,WrenchIcon as _e}from"../NetworkIcons";import Ke,{Path as Qe}from"react-native-svg";const Xe=({color:I=e.purple,size:N=13})=><Ke width={N}height={N}viewBox="0 0 24 24"fill="none">
|
|
2
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",
|
|
3
|
+
</Ke>;export const DebuggingTab=()=>{const I=Le(()=>{const k=Pe.SourceCode?.scriptURL||"";let V="localhost",S=8081;try{if(k.includes("://")){const v=k.split("://")[1].split("/")[0];if(v.includes(":")){const A=v.split(":");V=A[0];const P=parseInt(A[1],10);isNaN(P)||(S=P)}else V=v}}catch{}return{host:V,port:S,scriptURL:k}},[]),[N,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,ve]=M(!0),[R,U]=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,Ae]=M(!0),te=X(null);_(()=>{Z.timing(K,{toValue:Math.max(0,Math.min(100,R.progress)),duration:350,useNativeDriver:!1}).start()},[R.progress,K]),_(()=>{R.logs&&R.logs.length>0&&setTimeout(()=>{te.current?.scrollToEnd({animated:!0})},50)},[R.logs]);const E=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 S of k)for(const O of V)try{const v=new AbortController,A=setTimeout(()=>v.abort(),1200),P=await fetch(`http://${S}:${O}/__inapp_inspector/apk-info`,{signal:v.signal});if(clearTimeout(A),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]);_(()=>{E()},[E]),_(()=>()=>{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 S=await V.json();U(S),S.status==="completed"?(D.current&&clearInterval(D.current),L("success"),J("\u2713 APK Build Generated Successfully!"),S.apkSize&&ee((S.apkSize/(1024*1024)).toFixed(1)),S.apkName&&Y(S.apkName),E()):S.status==="failed"&&(D.current&&clearInterval(D.current),L("error"),J("\u2715 Build Failed: "+(S.error||"Gradle error")))}}catch{}},1e3)},[I.host,H,E]),Oe=async()=>{L("medium"),U({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 S=!1;for(const O of k)for(const v of V)try{const A=new AbortController,P=setTimeout(()=>A.abort(),2e3),z=await fetch(`http://${O}:${v}/__inapp_inspector/build-apk?scheme=${F}&clean=${W}`,{signal:A.signal});if(clearTimeout(P),z.ok){S=!0,Fe();return}}catch{}S||U(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 S of k)for(const O of V)try{const v=new AbortController,A=setTimeout(()=>v.abort(),1500);await fetch(`http://${S}:${O}/__inapp_inspector/stop-build`,{signal:v.signal}),clearTimeout(A)}catch{}U(S=>({...S,status:"idle",currentTask:"Build cancelled by user",logs:[...S.logs||[],"\u{1F6D1} Build cancelled by user."]})),J("Build cancelled")},re=`http://${N}:${H}/${De.replace(/^\/+/,"")}`,Ze=()=>{L("light"),He.share({message:re,title:"Install Android APK"})},$=R.status==="running";return<Te style={o.scrollArea}contentContainerStyle={o.scrollContent}showsVerticalScrollIndicator={!1}>
|
|
4
4
|
|
|
5
5
|
<T style={o.heroCard}>
|
|
6
6
|
<T style={o.heroHeader}>
|
|
7
7
|
<T style={o.heroIconWrap}>
|
|
8
|
-
<
|
|
8
|
+
<Ge size={20}color={e.white}/>
|
|
9
9
|
</T>
|
|
10
10
|
<T style={{flex:1,minWidth:0}}>
|
|
11
11
|
<C style={o.heroTitle}numberOfLines={1}>
|
|
@@ -26,7 +26,7 @@ import{useState as M,useEffect as G,useMemo as Le,useCallback as ie,useRef as X}
|
|
|
26
26
|
<T style={o.heroMetricItem}>
|
|
27
27
|
<C style={o.heroMetricLabel}>HOST IP</C>
|
|
28
28
|
<C style={o.heroMetricValue}numberOfLines={1}>
|
|
29
|
-
{
|
|
29
|
+
{N}
|
|
30
30
|
</C>
|
|
31
31
|
</T>
|
|
32
32
|
<T style={o.heroMetricDivider}/>
|
|
@@ -55,16 +55,16 @@ import{useState as M,useEffect as G,useMemo as Le,useCallback as ie,useRef as X}
|
|
|
55
55
|
<T style={o.sectionCard}>
|
|
56
56
|
<T style={o.sectionHeaderRow}>
|
|
57
57
|
<C style={o.sectionTitle}>QR CODE & DIRECT DOWNLOAD</C>
|
|
58
|
-
<
|
|
59
|
-
<
|
|
58
|
+
<G activeOpacity={.7}onPress={E}style={o.refreshBtn}>
|
|
59
|
+
<Ue size={12}color={e.purple}/>
|
|
60
60
|
<C style={o.refreshBtnText}>Refresh</C>
|
|
61
|
-
</
|
|
61
|
+
</G>
|
|
62
62
|
</T>
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
<T style={o.qrCenteredWrapper}>
|
|
66
66
|
<T style={o.qrInnerFrame}>
|
|
67
|
-
|
|
67
|
+
<$e value={re}size={235}color={e.primaryBlack}backgroundColor={e.white}/>
|
|
68
68
|
</T>
|
|
69
69
|
</T>
|
|
70
70
|
</T>
|
|
@@ -77,44 +77,44 @@ import{useState as M,useEffect as G,useMemo as Le,useCallback as ie,useRef as X}
|
|
|
77
77
|
<C style={o.sectionTitle}>BUILD GENERATOR (GRADLE)</C>
|
|
78
78
|
</T>
|
|
79
79
|
{R.status==="completed"&&<T style={o.completedBadge}>
|
|
80
|
-
<
|
|
80
|
+
<Be size={10}color={e.emerald500}/>
|
|
81
81
|
<C style={o.completedBadgeText}>100% Ready</C>
|
|
82
82
|
</T>}
|
|
83
83
|
</T>
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
<T style={o.subTabStrip}>
|
|
87
|
-
<
|
|
87
|
+
<G disabled={$}activeOpacity={.7}onPress={()=>{L("light"),oe("assembleRelease")}}style={[o.subTabItem,F==="assembleRelease"&&o.subTabItemActive]}>
|
|
88
88
|
<T style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
89
89
|
<Re size={12}color={F==="assembleRelease"?e.white:e.grayText}/>
|
|
90
90
|
<C style={[o.subTabText,F==="assembleRelease"&&o.subTabTextActive]}>
|
|
91
91
|
Release (assembleRelease)
|
|
92
92
|
</C>
|
|
93
93
|
</T>
|
|
94
|
-
</
|
|
94
|
+
</G>
|
|
95
95
|
|
|
96
|
-
<
|
|
96
|
+
<G disabled={$}activeOpacity={.7}onPress={()=>{L("light"),oe("assembleDebug")}}style={[o.subTabItem,F==="assembleDebug"&&o.subTabItemActive]}>
|
|
97
97
|
<T style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
98
|
-
<
|
|
98
|
+
<_e size={12}color={F==="assembleDebug"?e.white:e.grayText}/>
|
|
99
99
|
<C style={[o.subTabText,F==="assembleDebug"&&o.subTabTextActive]}>
|
|
100
100
|
Debug (assembleDebug)
|
|
101
101
|
</C>
|
|
102
102
|
</T>
|
|
103
|
-
</
|
|
103
|
+
</G>
|
|
104
104
|
</T>
|
|
105
105
|
|
|
106
106
|
|
|
107
|
-
<
|
|
107
|
+
<G disabled={$}activeOpacity={.7}onPress={()=>{L("light"),ve(!W)}}style={o.cleanRow}>
|
|
108
108
|
<T style={[o.checkboxBox,W&&o.checkboxBoxActive]}>
|
|
109
|
-
{W&&<
|
|
109
|
+
{W&&<Be size={11}color={e.white}/>}
|
|
110
110
|
</T>
|
|
111
111
|
<C style={o.cleanLabel}>
|
|
112
112
|
Clean build cache <C style={o.cleanCode}>(./gradlew clean)</C>
|
|
113
113
|
</C>
|
|
114
|
-
</
|
|
114
|
+
</G>
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
{
|
|
117
|
+
{$&&<T style={o.progressContainer}>
|
|
118
118
|
<T style={o.progressTopRow}>
|
|
119
119
|
<T style={o.progressTaskGroup}>
|
|
120
120
|
<Ce size="small"color={e.purple}/>
|
|
@@ -142,21 +142,21 @@ import{useState as M,useEffect as G,useMemo as Le,useCallback as ie,useRef as X}
|
|
|
142
142
|
</T>}
|
|
143
143
|
|
|
144
144
|
|
|
145
|
-
{(R.logs&&R.logs.length>0
|
|
145
|
+
{(R.logs&&R.logs.length>0||$)&&<T style={o.consoleContainer}>
|
|
146
146
|
<T style={o.consoleHeaderRow}>
|
|
147
147
|
<T style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
148
|
-
<Xe color=
|
|
148
|
+
<Xe color={e.sky400}size={12}/>
|
|
149
149
|
<C style={o.consoleHeaderTitle}>GRADLE VERBOSE OUTPUT</C>
|
|
150
150
|
</T>
|
|
151
|
-
<
|
|
151
|
+
<G activeOpacity={.7}onPress={()=>Ae(!Q)}style={o.consoleToggleBtn}>
|
|
152
152
|
<C style={o.consoleToggleText}>
|
|
153
153
|
{Q?"Hide Console":"Show Console"}
|
|
154
154
|
</C>
|
|
155
|
-
</
|
|
155
|
+
</G>
|
|
156
156
|
</T>
|
|
157
157
|
|
|
158
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
|
|
159
|
+
{R.logs&&R.logs.length>0?R.logs.map((k,V)=>{let S=e.slate400;return k.startsWith("> Task :")?S=e.sky400:k.includes("BUILD SUCCESSFUL")?S=e.buildSuccessGreen:k.includes("FAILURE")||k.includes("error:")?S=e.buildFailureRed:k.includes("UP-TO-DATE")&&(S=e.purple400),<C key={V}style={[o.consoleLogLine,{color:S}]}>
|
|
160
160
|
{k}
|
|
161
161
|
</C>}):<C style={o.consoleLogPlaceholder}>
|
|
162
162
|
Waiting for Gradle daemon output...
|
|
@@ -165,7 +165,7 @@ import{useState as M,useEffect as G,useMemo as Le,useCallback as ie,useRef as X}
|
|
|
165
165
|
</T>}
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
{
|
|
168
|
+
{$?<T style={o.buildingActionsRow}>
|
|
169
169
|
<T style={o.buildingStatusPill}>
|
|
170
170
|
<Ce size="small"color={e.purple}/>
|
|
171
171
|
<C style={o.buildingStatusPillText}numberOfLines={1}>
|
|
@@ -173,25 +173,25 @@ import{useState as M,useEffect as G,useMemo as Le,useCallback as ie,useRef as X}
|
|
|
173
173
|
</C>
|
|
174
174
|
</T>
|
|
175
175
|
|
|
176
|
-
<
|
|
176
|
+
<Se onPress={Me}style={o.stopBtn}>
|
|
177
177
|
<Ie size={13}color={e.white}/>
|
|
178
178
|
<C style={o.stopBtnText}>Stop Build</C>
|
|
179
|
-
</
|
|
180
|
-
</T>:<
|
|
179
|
+
</Se>
|
|
180
|
+
</T>:<Se onPress={Oe}style={o.generateBtn}>
|
|
181
181
|
<T style={o.ctaContentRow}>
|
|
182
|
-
<
|
|
182
|
+
<Ee size={14}color={e.white}/>
|
|
183
183
|
<C style={o.generateBtnText}>
|
|
184
184
|
{W?"Clean & Generate Build":"Generate Build"}
|
|
185
185
|
</C>
|
|
186
186
|
</T>
|
|
187
|
-
</
|
|
187
|
+
</Se>}
|
|
188
188
|
</T>
|
|
189
189
|
|
|
190
190
|
|
|
191
191
|
<T style={o.footerNoteRow}>
|
|
192
|
-
|
|
192
|
+
<Ne size={13}color={e.grayTextWeak}/>
|
|
193
193
|
<C style={o.footerNoteText}>
|
|
194
194
|
Ensure both Android devices are connected to the same Wi-Fi network.
|
|
195
195
|
</C>
|
|
196
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:
|
|
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:B.interBold,fontSize:15,color:e.primaryBlack,letterSpacing:-.2},heroSubtitle:{fontFamily:B.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:B.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:B.interBold,fontSize:8.5,color:e.grayTextWeak,letterSpacing:.4},heroMetricValue:{fontFamily:B.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:B.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:B.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:B.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:B.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:B.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:B.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:B.interMedium,fontSize:11,color:e.grayText},subTabTextActive:{fontFamily:B.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:B.interMedium,fontSize:11.5,color:e.grayTextStrong},cleanCode:{fontFamily:B.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:B.interMedium,fontSize:11,color:e.primaryBlack,flex:1},progressPercentageText:{fontFamily:B.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:B.interRegular,fontSize:11,color:e.errorColor,flex:1},consoleContainer:{backgroundColor:e.slate900,borderRadius:10,borderWidth:1,borderColor:e.slate800,overflow:"hidden",marginTop:4},consoleHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:e.slate800,paddingHorizontal:10,paddingVertical:6},consoleHeaderTitle:{fontFamily:B.interBold,fontSize:10,color:e.sky400,letterSpacing:.5},consoleToggleBtn:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,backgroundColor:"rgba(255,255,255,0.1)"},consoleToggleText:{fontFamily:B.interMedium,fontSize:9.5,color:e.slate400},consoleLogBox:{maxHeight:140,paddingHorizontal:10,paddingVertical:8},consoleLogContent:{gap:3},consoleLogLine:{fontFamily:B.interRegular,fontSize:10,lineHeight:14},consoleLogPlaceholder:{fontFamily:B.interRegular,fontSize:10,color:e.slate500,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:B.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:B.interBold,fontSize:12,color:e.white},ctaContentRow:{flexDirection:"row",alignItems:"center",gap:6},generateBtnText:{fontFamily:B.interBold,fontSize:12.5,color:e.white},footerNoteRow:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:8},footerNoteText:{fontFamily:B.interRegular,fontSize:11,color:e.grayTextWeak,textAlign:"center",flex:1}});export default DebuggingTab;
|