expo-dev-launcher 2.4.12 → 2.4.13

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/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 2.4.13 — 2023-09-25
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fetch dev sessions whenever navigating to the launcher home screen. ([#24378](https://github.com/expo/expo/pull/24378), [#24502](https://github.com/expo/expo/pull/24502) by [@gabrieldonadel](https://github.com/gabrieldonadel))
18
+
19
+ ### 💡 Others
20
+
21
+ - Update dev sessions default ports to check. ([#24380](https://github.com/expo/expo/pull/24380) by [@gabrieldonadel](https://github.com/gabrieldonadel))
22
+
13
23
  ## 2.4.12 — 2023-09-16
14
24
 
15
25
  ### 💡 Others
@@ -41,7 +41,7 @@ android {
41
41
  minSdkVersion safeExtGet('minSdkVersion', 21)
42
42
  targetSdkVersion safeExtGet("targetSdkVersion", 33)
43
43
  versionCode 9
44
- versionName "2.4.12"
44
+ versionName "2.4.13"
45
45
  }
46
46
 
47
47
  lintOptions {
@@ -1289,7 +1289,7 @@ __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",
1289
1289
  }
1290
1290
  }
1291
1291
  `;function v(t){return b.apply(this,arguments)}function b(){return(b=(0,n.default)((function*(t){var n={appId:t},u=(yield f.apiClient.request(y,n)).app.byId.updateChannels,o=[];return u.forEach((function(t){var n={name:t.name,branches:t.updateBranches.map((function(t){return t.name}))};o.push(n)})),o}))).apply(this,arguments)}}),1197,[6,324,1128,96,1053,1146,1148,1149,204]);
1292
- __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.HomeScreen=function(n){var p=n.fetchOnMount,f=void 0!==p&&p,R=n.pollInterval,H=void 0===R?1e3:R,M=n.pollAmount,B=void 0===M?5:M,D=n.navigation,F=(0,V.useModalStack)(),L=o.useState(''),U=(0,t.default)(L,2),k=U[0],E=U[1],W=o.useState(''),_=(0,t.default)(W,2),N=_[0],$=_[1],K=(0,z.useDevSessions)(),Q=K.data,q=K.pollAsync,G=K.isFetching,J=(0,P.useToastStack)(),X=(0,O.useUpdatesConfig)().projectUrl,Y=(0,S.useCrashReport)(),Z=o.useRef(Q);o.useEffect((function(){0===Z.current.length&&f&&q({pollAmount:B,pollInterval:H})}),[f,H,B,q]);var ee=(function(){var n=(0,s.default)((function*(n){$(n),yield(0,b.loadApp)(n).catch((function(n){$(''),F.push((function(){return(0,T.jsx)(h.LoadAppErrorModal,{message:n.message})}))})),$('')}));return function(s){return n.apply(this,arguments)}})(),ne=(function(){var n=(0,s.default)((function*(n){ee(n.url)}));return function(s){return n.apply(this,arguments)}})(),re=(function(){var n=(0,s.default)((function*(n){ee(n)}));return function(s){return n.apply(this,arguments)}})(),se=(function(){var n=(0,s.default)((function*(n){if(n.isEASUpdate){var s=(0,y.formatUpdateUrl)(n.url,n.updateMessage);(0,b.loadUpdate)(s,X).catch((function(n){J.push((function(){return(0,T.jsx)(v.Toasts.Error,{children:n.message})}),{durationMs:1e4})}))}else ee(n.url)}));return function(s){return n.apply(this,arguments)}})();return(0,T.jsx)(l.View,{testID:"DevLauncherMainScreen",flex:"1",children:(0,T.jsxs)(c.KeyboardAvoidingView,{behavior:"padding",style:{flex:1},children:[(0,T.jsx)(u.AppHeader,{navigation:D}),(0,T.jsx)(c.ScrollView,{children:(0,T.jsxs)(j.ScreenContainer,{children:[Y&&(0,T.jsx)(l.View,{px:"medium",py:"small",mt:"small",children:(0,T.jsx)(l.Button.FadeOnPressContainer,{onPress:function(){D.navigate('Crash Report',Y)},bg:"default",rounded:"large",children:(0,T.jsx)(l.Row,{align:"center",padding:"medium",bg:"default",children:(0,T.jsx)(l.Button.Text,{color:"default",children:"The last time you tried to open an app the development build crashed. Tap to get more information."})})})}),(0,T.jsxs)(l.View,{py:"large",children:[(0,T.jsxs)(l.Row,{px:"small",align:"center",children:[(0,T.jsx)(l.View,{px:"medium",children:(0,T.jsx)(l.TerminalIcon,{})}),(0,T.jsx)(l.Heading,{color:"secondary",children:"Development servers"}),(0,T.jsx)(l.Spacer.Horizontal,{}),Q.length>0&&(0,T.jsx)(l.Button.FadeOnPressContainer,{bg:"ghost",rounded:"full",onPress:function(){F.push((function(){return(0,T.jsx)(x.DevServerExplainerModal,{})}))},children:(0,T.jsx)(l.View,{rounded:"full",padding:"tiny",children:(0,T.jsx)(l.InfoIcon,{})})})]}),(0,T.jsx)(l.Spacer.Vertical,{size:"small"}),(0,T.jsx)(l.View,{px:"medium",children:(0,T.jsxs)(l.View,{children:[0===Q.length&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(l.View,{padding:"medium",bg:"default",roundedTop:"large",children:[(0,T.jsx)(l.Text,{children:"Start a local development server with:"}),(0,T.jsx)(l.Spacer.Vertical,{size:"small"}),(0,T.jsx)(l.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,T.jsx)(l.Text,{type:"mono",size:"small",children:"npx expo start --dev-client"})}),(0,T.jsx)(l.Spacer.Vertical,{size:"small"}),(0,T.jsx)(l.Text,{children:"Then, select the local server when it appears here."}),(0,T.jsx)(l.Spacer.Vertical,{size:"small"}),(0,T.jsx)(l.Text,{children:"Alternatively, open the Camera app and scan the QR code that appears in your terminal"})]}),(0,T.jsx)(l.Divider,{})]}),(null==Q?void 0:Q.length)>0&&(0,T.jsx)(C,{devSessions:Q,onDevSessionPress:ne}),(0,T.jsx)(A,{isFetching:G,onRefetchPress:function(){q({pollAmount:B,pollInterval:H})}}),(0,T.jsx)(l.Divider,{}),(0,T.jsx)(w.UrlDropdown,{onSubmit:re,inputValue:k,setInputValue:E,isLoading:''!==k&&k===N})]})}),(0,T.jsx)(l.Spacer.Vertical,{size:"medium"}),(0,T.jsx)(I,{onRecentAppPress:se,loadingUrl:N})]})]})})]})})};var s=n(r(d[1])),t=n(r(d[2])),l=r(d[3]),o=(function(n,s){if(!s&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=H(s);if(t&&t.has(n))return t.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,t&&t.set(n,l);return l})(r(d[4])),c=r(d[5]),u=r(d[6]),x=r(d[7]),p=r(d[8]),h=r(d[9]),f=r(d[10]),j=r(d[11]),v=r(d[12]),w=r(d[13]),y=r(d[14]),b=r(d[15]),S=r(d[16]),z=r(d[17]),V=r(d[18]),R=r(d[19]),P=r(d[20]),O=r(d[21]),T=r(d[22]);function H(n){if("function"!=typeof WeakMap)return null;var s=new WeakMap,t=new WeakMap;return(H=function(n){return n?t:s})(n)}function A(n){var s=n.isFetching,t=n.onRefetchPress,o=(0,l.useExpoTheme)(),c=s?o.status.info:o.status.default;return(0,T.jsx)(l.Button.FadeOnPressContainer,{onPress:t,disabled:s,bg:"default",rounded:"none",children:(0,T.jsxs)(l.Row,{align:"center",padding:"medium",bg:"default",children:[(0,T.jsx)(l.View,{width:"6",children:(0,T.jsx)(f.PulseIndicator,{isActive:s,color:c})}),(0,T.jsx)(l.Button.Text,{color:"default",children:s?'Searching for development servers...':'Fetch development servers'}),(0,T.jsx)(l.Spacer.Horizontal,{}),!s&&(0,T.jsx)(l.RefreshIcon,{})]})})}function C(n){var s=n.devSessions,t=void 0===s?[]:s,o=n.onDevSessionPress;return 0===t.length?null:(0,T.jsx)(l.View,{children:t.map((function(n){return(0,T.jsxs)(l.View,{children:[(0,T.jsx)(l.Button.FadeOnPressContainer,{onPress:function(){return o(n)},roundedTop:"large",roundedBottom:"none",bg:"default",children:(0,T.jsxs)(l.Row,{align:"center",padding:"medium",bg:"default",children:[(0,T.jsx)(l.StatusIndicator,{size:"small",status:"success"}),(0,T.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,T.jsx)(l.View,{flex:"1",children:(0,T.jsx)(l.Button.Text,{color:"default",numberOfLines:1,children:n.description})}),(0,T.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,T.jsx)(l.ChevronRightIcon,{})]})}),(0,T.jsx)(l.Divider,{})]},n.url)}))})}function I(n){var s=n.onRecentAppPress,t=n.loadingUrl,o=(0,R.useRecentlyOpenedApps)(),c=o.data,u=o.clear;if(0===c.length)return null;function x(n){var s,t=null!=(s=n.name)?s:n.url;return n.isEASUpdate&&null!=n.updateMessage?(0,T.jsx)(D,{url:n.url,message:n.updateMessage,branchName:n.branchName}):(0,T.jsx)(B,{label:t,url:n.url})}return(0,T.jsxs)(l.View,{px:"medium",children:[(0,T.jsxs)(l.Row,{align:"center",py:"small",children:[(0,T.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,T.jsx)(l.Heading,{color:"secondary",children:"Recently opened"}),(0,T.jsx)(l.Spacer.Horizontal,{}),(0,T.jsx)(l.Button.FadeOnPressContainer,{bg:"ghost",onPress:u,children:(0,T.jsx)(l.View,{rounded:"medium",px:"small",py:"micro",children:(0,T.jsx)(l.Heading,{size:"small",weight:"semibold",color:"secondary",children:"Reset"})})})]}),(0,T.jsx)(l.View,{children:c.map((function(n,o,c){var u=0===o,p=o===c.length-1,h=n.url===t;return(0,T.jsxs)(M,{isLoading:h,children:[(0,T.jsx)(l.Button.FadeOnPressContainer,{onPress:function(){return s(n)},roundedTop:u?'large':'none',roundedBottom:p?'large':'none',py:"small",bg:"default",children:x(n)}),!p&&(0,T.jsx)(l.Divider,{})]},n.id)}))})]})}function M(n){var s=n.children,t=n.isLoading,l=(0,p.useLoadingContainerStyle)(t);return(0,T.jsx)(c.Animated.View,{style:l,children:s})}function B(n){var s=n.label,t=n.url;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(l.Row,{align:"center",px:"medium",bg:"default",children:[(0,T.jsx)(l.StatusIndicator,{size:"small",status:"success"}),(0,T.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,T.jsx)(l.View,{flex:"1",children:(0,T.jsx)(l.Button.Text,{color:"default",numberOfLines:1,children:s})}),(0,T.jsx)(l.ChevronRightIcon,{})]}),(0,T.jsxs)(l.Row,{px:"medium",align:"center",bg:"default",children:[(0,T.jsx)(l.Spacer.Vertical,{size:"tiny"}),(0,T.jsx)(l.Spacer.Horizontal,{size:"large"}),(0,T.jsx)(l.Row,{style:{flexWrap:'wrap',flexShrink:1},children:(0,T.jsx)(l.Text,{size:"small",color:"secondary",numberOfLines:1,children:t})})]})]})}function D(n){var s=n.url,t=n.branchName,o=n.message,c=(0,l.useExpoPalette)();return(0,T.jsxs)(l.View,{children:[(0,T.jsxs)(l.Row,{align:"center",px:"medium",bg:"default",children:[(0,T.jsxs)(l.Row,{shrink:"1",style:{backgroundColor:c.blue[100]},py:"tiny",px:"1.5",rounded:"medium",align:"center",children:[(0,T.jsx)(l.BranchIcon,{style:{maxHeight:10,maxWidth:12,resizeMode:'contain'},resizeMethod:"scale"}),(0,T.jsx)(l.Spacer.Horizontal,{size:"tiny"}),(0,T.jsx)(l.View,{shrink:"1",children:(0,T.jsx)(l.Text,{size:"small",numberOfLines:1,children:`Branch: ${t}`})})]}),(0,T.jsx)(l.Spacer.Horizontal,{}),(0,T.jsx)(l.ChevronRightIcon,{})]}),(0,T.jsx)(l.Spacer.Vertical,{size:"small",bg:"default"}),Boolean(o)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(l.Row,{px:"medium",align:"center",bg:"default",children:(0,T.jsx)(l.View,{children:(0,T.jsx)(l.Heading,{size:"small",numberOfLines:1,children:`Update "${o}"`})})}),(0,T.jsx)(l.Spacer.Vertical,{size:"micro",bg:"default"})]}),(0,T.jsx)(l.Row,{px:"medium",align:"center",bg:"default",children:(0,T.jsx)(l.Row,{style:{flexWrap:'wrap',flexShrink:1},children:(0,T.jsx)(l.Text,{size:"small",color:"secondary",numberOfLines:1,children:s})})})]})}}),1198,[6,324,47,632,96,2,1193,1199,1183,1177,1200,1189,1148,1201,1191,1050,1159,1161,1172,1175,1149,1151,204]);
1292
+ __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.HomeScreen=function(n){var h=n.pollInterval,f=void 0===h?1e3:h,P=n.pollAmount,H=void 0===P?5:P,M=n.navigation,D=(0,R.useModalStack)(),F=c.useState(''),L=(0,t.default)(F,2),k=L[0],U=L[1],E=c.useState(''),W=(0,t.default)(E,2),_=W[0],N=W[1],$=(0,V.useDevSessions)(),K=$.data,Q=$.pollAsync,q=$.isFetching,G=(0,O.useToastStack)(),J=(0,T.useUpdatesConfig)().projectUrl,X=(0,z.useCrashReport)(),Y=(null==K?void 0:K.length)>0;(0,l.useFocusEffect)(c.useCallback((function(){Y||Q({pollAmount:H,pollInterval:f})}),[Y,H,f]));var Z=(function(){var n=(0,s.default)((function*(n){N(n),yield(0,S.loadApp)(n).catch((function(n){N(''),D.push((function(){return(0,C.jsx)(j.LoadAppErrorModal,{message:n.message})}))})),N('')}));return function(s){return n.apply(this,arguments)}})(),ee=(function(){var n=(0,s.default)((function*(n){Z(n.url)}));return function(s){return n.apply(this,arguments)}})(),ne=(function(){var n=(0,s.default)((function*(n){Z(n)}));return function(s){return n.apply(this,arguments)}})(),re=(function(){var n=(0,s.default)((function*(n){if(n.isEASUpdate){var s=(0,y.formatUpdateUrl)(n.url,n.updateMessage);(0,S.loadUpdate)(s,J).catch((function(n){G.push((function(){return(0,C.jsx)(w.Toasts.Error,{children:n.message})}),{durationMs:1e4})}))}else Z(n.url)}));return function(s){return n.apply(this,arguments)}})();return(0,C.jsx)(o.View,{testID:"DevLauncherMainScreen",flex:"1",children:(0,C.jsxs)(u.KeyboardAvoidingView,{behavior:"padding",style:{flex:1},children:[(0,C.jsx)(x.AppHeader,{navigation:M}),(0,C.jsx)(u.ScrollView,{children:(0,C.jsxs)(v.ScreenContainer,{children:[X&&(0,C.jsx)(o.View,{px:"medium",py:"small",mt:"small",children:(0,C.jsx)(o.Button.FadeOnPressContainer,{onPress:function(){M.navigate('Crash Report',X)},bg:"default",rounded:"large",children:(0,C.jsx)(o.Row,{align:"center",padding:"medium",bg:"default",children:(0,C.jsx)(o.Button.Text,{color:"default",children:"The last time you tried to open an app the development build crashed. Tap to get more information."})})})}),(0,C.jsxs)(o.View,{py:"large",children:[(0,C.jsxs)(o.Row,{px:"small",align:"center",children:[(0,C.jsx)(o.View,{px:"medium",children:(0,C.jsx)(o.TerminalIcon,{})}),(0,C.jsx)(o.Heading,{color:"secondary",children:"Development servers"}),(0,C.jsx)(o.Spacer.Horizontal,{}),(null==K?void 0:K.length)>0&&(0,C.jsx)(o.Button.FadeOnPressContainer,{bg:"ghost",rounded:"full",onPress:function(){D.push((function(){return(0,C.jsx)(p.DevServerExplainerModal,{})}))},children:(0,C.jsx)(o.View,{rounded:"full",padding:"tiny",children:(0,C.jsx)(o.InfoIcon,{})})})]}),(0,C.jsx)(o.Spacer.Vertical,{size:"small"}),(0,C.jsx)(o.View,{px:"medium",children:(0,C.jsxs)(o.View,{children:[0===(null==K?void 0:K.length)&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(o.View,{padding:"medium",bg:"default",roundedTop:"large",children:[(0,C.jsx)(o.Text,{children:"Start a local development server with:"}),(0,C.jsx)(o.Spacer.Vertical,{size:"small"}),(0,C.jsx)(o.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,C.jsx)(o.Text,{type:"mono",size:"small",children:"npx expo start --dev-client"})}),(0,C.jsx)(o.Spacer.Vertical,{size:"small"}),(0,C.jsx)(o.Text,{children:"Then, select the local server when it appears here."}),(0,C.jsx)(o.Spacer.Vertical,{size:"small"}),(0,C.jsx)(o.Text,{children:"Alternatively, open the Camera app and scan the QR code that appears in your terminal"})]}),(0,C.jsx)(o.Divider,{})]}),(null==K?void 0:K.length)>0&&(0,C.jsx)(I,{devSessions:K,onDevSessionPress:ee}),(0,C.jsx)(A,{isFetching:q,onRefetchPress:function(){Q({pollAmount:H,pollInterval:f})}}),(0,C.jsx)(o.Divider,{}),(0,C.jsx)(b.UrlDropdown,{onSubmit:ne,inputValue:k,setInputValue:U,isLoading:''!==k&&k===_})]})}),(0,C.jsx)(o.Spacer.Vertical,{size:"medium"}),(0,C.jsx)(B,{onRecentAppPress:re,loadingUrl:_})]})]})})]})})};var s=n(r(d[1])),t=n(r(d[2])),l=r(d[3]),o=r(d[4]),c=(function(n,s){if(!s&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=H(s);if(t&&t.has(n))return t.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,t&&t.set(n,l);return l})(r(d[5])),u=r(d[6]),x=r(d[7]),p=r(d[8]),h=r(d[9]),j=r(d[10]),f=r(d[11]),v=r(d[12]),w=r(d[13]),b=r(d[14]),y=r(d[15]),S=r(d[16]),z=r(d[17]),V=r(d[18]),R=r(d[19]),P=r(d[20]),O=r(d[21]),T=r(d[22]),C=r(d[23]);function H(n){if("function"!=typeof WeakMap)return null;var s=new WeakMap,t=new WeakMap;return(H=function(n){return n?t:s})(n)}function A(n){var s=n.isFetching,t=n.onRefetchPress,l=(0,o.useExpoTheme)(),c=s?l.status.info:l.status.default;return(0,C.jsx)(o.Button.FadeOnPressContainer,{onPress:t,disabled:s,bg:"default",rounded:"none",children:(0,C.jsxs)(o.Row,{align:"center",padding:"medium",bg:"default",children:[(0,C.jsx)(o.View,{width:"6",children:(0,C.jsx)(f.PulseIndicator,{isActive:s,color:c})}),(0,C.jsx)(o.Button.Text,{color:"default",children:s?'Searching for development servers...':'Fetch development servers'}),(0,C.jsx)(o.Spacer.Horizontal,{}),!s&&(0,C.jsx)(o.RefreshIcon,{})]})})}function I(n){var s=n.devSessions,t=void 0===s?[]:s,l=n.onDevSessionPress;return 0===t.length?null:(0,C.jsx)(o.View,{children:t.map((function(n){return(0,C.jsxs)(o.View,{children:[(0,C.jsx)(o.Button.FadeOnPressContainer,{onPress:function(){return l(n)},roundedTop:"large",roundedBottom:"none",bg:"default",children:(0,C.jsxs)(o.Row,{align:"center",padding:"medium",bg:"default",children:[(0,C.jsx)(o.StatusIndicator,{size:"small",status:"success"}),(0,C.jsx)(o.Spacer.Horizontal,{size:"small"}),(0,C.jsx)(o.View,{flex:"1",children:(0,C.jsx)(o.Button.Text,{color:"default",numberOfLines:1,children:n.description})}),(0,C.jsx)(o.Spacer.Horizontal,{size:"small"}),(0,C.jsx)(o.ChevronRightIcon,{})]})}),(0,C.jsx)(o.Divider,{})]},n.url)}))})}function B(n){var s=n.onRecentAppPress,t=n.loadingUrl,l=(0,P.useRecentlyOpenedApps)(),c=l.data,u=l.clear;if(0===c.length)return null;function x(n){var s,t=null!=(s=n.name)?s:n.url;return n.isEASUpdate&&null!=n.updateMessage?(0,C.jsx)(F,{url:n.url,message:n.updateMessage,branchName:n.branchName}):(0,C.jsx)(D,{label:t,url:n.url})}return(0,C.jsxs)(o.View,{px:"medium",children:[(0,C.jsxs)(o.Row,{align:"center",py:"small",children:[(0,C.jsx)(o.Spacer.Horizontal,{size:"small"}),(0,C.jsx)(o.Heading,{color:"secondary",children:"Recently opened"}),(0,C.jsx)(o.Spacer.Horizontal,{}),(0,C.jsx)(o.Button.FadeOnPressContainer,{bg:"ghost",onPress:u,children:(0,C.jsx)(o.View,{rounded:"medium",px:"small",py:"micro",children:(0,C.jsx)(o.Heading,{size:"small",weight:"semibold",color:"secondary",children:"Reset"})})})]}),(0,C.jsx)(o.View,{children:c.map((function(n,l,c){var u=0===l,p=l===c.length-1,h=n.url===t;return(0,C.jsxs)(M,{isLoading:h,children:[(0,C.jsx)(o.Button.FadeOnPressContainer,{onPress:function(){return s(n)},roundedTop:u?'large':'none',roundedBottom:p?'large':'none',py:"small",bg:"default",children:x(n)}),!p&&(0,C.jsx)(o.Divider,{})]},n.id)}))})]})}function M(n){var s=n.children,t=n.isLoading,l=(0,h.useLoadingContainerStyle)(t);return(0,C.jsx)(u.Animated.View,{style:l,children:s})}function D(n){var s=n.label,t=n.url;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(o.Row,{align:"center",px:"medium",bg:"default",children:[(0,C.jsx)(o.StatusIndicator,{size:"small",status:"success"}),(0,C.jsx)(o.Spacer.Horizontal,{size:"small"}),(0,C.jsx)(o.View,{flex:"1",children:(0,C.jsx)(o.Button.Text,{color:"default",numberOfLines:1,children:s})}),(0,C.jsx)(o.ChevronRightIcon,{})]}),(0,C.jsxs)(o.Row,{px:"medium",align:"center",bg:"default",children:[(0,C.jsx)(o.Spacer.Vertical,{size:"tiny"}),(0,C.jsx)(o.Spacer.Horizontal,{size:"large"}),(0,C.jsx)(o.Row,{style:{flexWrap:'wrap',flexShrink:1},children:(0,C.jsx)(o.Text,{size:"small",color:"secondary",numberOfLines:1,children:t})})]})]})}function F(n){var s=n.url,t=n.branchName,l=n.message,c=(0,o.useExpoPalette)();return(0,C.jsxs)(o.View,{children:[(0,C.jsxs)(o.Row,{align:"center",px:"medium",bg:"default",children:[(0,C.jsxs)(o.Row,{shrink:"1",style:{backgroundColor:c.blue[100]},py:"tiny",px:"1.5",rounded:"medium",align:"center",children:[(0,C.jsx)(o.BranchIcon,{style:{maxHeight:10,maxWidth:12,resizeMode:'contain'},resizeMethod:"scale"}),(0,C.jsx)(o.Spacer.Horizontal,{size:"tiny"}),(0,C.jsx)(o.View,{shrink:"1",children:(0,C.jsx)(o.Text,{size:"small",numberOfLines:1,children:`Branch: ${t}`})})]}),(0,C.jsx)(o.Spacer.Horizontal,{}),(0,C.jsx)(o.ChevronRightIcon,{})]}),(0,C.jsx)(o.Spacer.Vertical,{size:"small",bg:"default"}),Boolean(l)&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(o.Row,{px:"medium",align:"center",bg:"default",children:(0,C.jsx)(o.View,{children:(0,C.jsx)(o.Heading,{size:"small",numberOfLines:1,children:`Update "${l}"`})})}),(0,C.jsx)(o.Spacer.Vertical,{size:"micro",bg:"default"})]}),(0,C.jsx)(o.Row,{px:"medium",align:"center",bg:"default",children:(0,C.jsx)(o.Row,{style:{flexWrap:'wrap',flexShrink:1},children:(0,C.jsx)(o.Text,{size:"small",color:"secondary",numberOfLines:1,children:s})})})]})}}),1198,[6,324,47,436,632,96,2,1193,1199,1183,1177,1200,1189,1148,1201,1191,1050,1159,1161,1172,1175,1149,1151,204]);
1293
1293
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DevServerExplainerModal=function(){return(0,l.jsxs)(n.BaseModal,{title:"Development servers",children:[(0,l.jsx)(t.Spacer.Vertical,{size:"small"}),(0,l.jsx)(t.Text,{size:"medium",children:"Start a local development server with:"}),(0,l.jsx)(t.Spacer.Vertical,{size:"small"}),(0,l.jsx)(t.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,l.jsx)(t.Text,{type:"mono",size:"small",children:"npx expo start --dev-client"})}),(0,l.jsx)(t.Spacer.Vertical,{size:"large"}),(0,l.jsx)(t.Text,{children:"Then, select the local server when it appears here."}),(0,l.jsx)(t.Spacer.Vertical,{size:"small"}),(0,l.jsx)(t.Text,{children:"Alternatively, open the Camera app and scan the QR code that appears in your terminal"})]})};var t=r(d[0]),n=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=s(n);if(l&&l.has(t))return l.get(t);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var u=c?Object.getOwnPropertyDescriptor(t,p):null;u&&(u.get||u.set)?Object.defineProperty(o,p,u):o[p]=t[p]}o.default=t,l&&l.set(t,o)})(r(d[1])),r(d[2])),l=r(d[3]);function s(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(s=function(t){return t?l:n})(t)}}),1199,[632,96,1176,204]);
1294
1294
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.PulseIndicator=function(c){var l=c.isActive,f=c.color,s=n.useRef(new u.Animated.Value(0)),p=s.current.interpolate({inputRange:[0,1],outputRange:[.95,2]}),y=s.current.interpolate({inputRange:[0,1],outputRange:[1,0]}),v=n.useRef(u.Animated.loop(u.Animated.timing(s.current,{toValue:1,duration:1200,useNativeDriver:!0})));return n.useEffect((function(){l?v.current.start():(s.current.setValue(0),v.current.stop(),v.current.reset())}),[l]),(0,o.jsx)(t.StatusIndicator,{size:"small",style:{backgroundColor:f},children:(0,o.jsx)(u.Animated.View,{style:{flex:1,borderRadius:100,transform:[{scale:p}],opacity:y,backgroundColor:f}})})};var t=r(d[0]),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=c(n);if(u&&u.has(t))return u.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=l?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(o,f,s):o[f]=t[f]}o.default=t,u&&u.set(t,o);return o})(r(d[1])),u=r(d[2]),o=r(d[3]);function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(c=function(t){return t?u:n})(t)}}),1200,[632,96,2,204]);
1295
1295
  __d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UrlDropdown=function(t){var n=t.onSubmit,b=t.isLoading,y=t.inputValue,j=t.setInputValue,v=(0,i.useExpoTheme)(),O=(0,i.useCurrentTheme)(),x={dark:{active:v.background.secondary,inactive:v.background.default},light:{active:v.background.secondary,inactive:v.background.default}},w=u.useRef(),P=u.useState(!1),D=(0,o.default)(P,2),C=D[0],k=D[1],I=u.useState((0,s.validateUrl)(y)),T=(0,o.default)(I,2),V=T[0],L=T[1],S=u.useState(!1),B=(0,o.default)(S,2),U=B[0],R=B[1],M={transform:[{translateX:-3},{rotate:C?'90deg':'0deg'}]},_=x[O],z=U?_.active:_.inactive;return(0,p.jsxs)(i.View,{rounded:"large",children:[(0,p.jsx)(i.Button.Container,{onPressIn:function(){return R(!0)},onPressOut:function(){return R(!1)},onPress:function(){k(!C)},roundedTop:"none",roundedBottom:C?'none':'large',testID:"DevLauncherURLToggle",children:(0,p.jsxs)(i.Row,{align:"center",padding:"medium",style:{backgroundColor:z},children:[(0,p.jsx)(i.View,{width:"6",children:(0,p.jsx)(i.ChevronRightIcon,{style:M})}),(0,p.jsx)(i.Text,{color:"default",children:"Enter URL manually"})]})}),C&&(0,p.jsxs)(i.View,{px:"medium",py:"medium",roundedBottom:"large",bg:"default",children:[(0,p.jsxs)(i.View,{border:"default",rounded:"medium",py:l.Platform.select({android:'tiny',ios:'medium'}),px:"medium",shadow:"micro",children:[(0,p.jsx)(i.TextInput,{autoFocus:!0,clearButtonMode:"while-editing",keyboardType:"url",autoCapitalize:"none",autoComplete:"off",autoCorrect:!1,placeholder:"http://10.0.0.25:8081",placeholderTextColor:v.text.secondary,ref:w,onChangeText:(0,c.debounce)((function(t){L((0,s.validateUrl)(t)),j(t)})),onBlur:function(){L((0,s.validateUrl)(y))},testID:"DevLauncherURLInput"}),(0,p.jsx)(i.View,{style:{position:'absolute',bottom:-20},children:!V&&''!==y&&(0,p.jsx)(i.Text,{color:"error",size:"small",children:"Invalid URL"})})]}),(0,p.jsx)(i.Spacer.Vertical,{size:"xl"}),(0,p.jsxs)(i.Button.FadeOnPressContainer,{bg:V?'tertiary':'disabled',shadow:"button",rounded:"medium",disabled:!V||b,onPress:function(){var t;n(y),null==(t=w.current)||t.blur()},testID:"DevLauncherLoadAppButton",children:[(0,p.jsx)(i.View,{py:"small",opacity:b?'0.5':'1',children:(0,p.jsx)(i.Button.Text,{align:"center",weight:"semibold",color:"tertiary",children:"Connect"})}),b&&(0,p.jsx)(i.View,{style:h(h({},l.StyleSheet.absoluteFillObject),{},{justifyContent:'center',alignItems:'center'}),children:(0,p.jsx)(f.ActivityIndicator,{size:"small"})})]})]})]})};var n=t(r(d[1])),o=t(r(d[2])),i=r(d[3]),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=b(n);if(o&&o.has(t))return o.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var c=u?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(i,l,c):i[l]=t[l]}i.default=t,o&&o.set(t,i);return i})(r(d[4])),l=r(d[5]),c=r(d[6]),s=r(d[7]),f=r(d[8]),p=r(d[9]);function b(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(b=function(t){return t?o:n})(t)}function y(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),o.push.apply(o,i)}return o}function h(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?y(Object(i),!0).forEach((function(o){(0,n.default)(t,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}}),1201,[6,31,47,632,96,2,1202,1203,1182,204]);
@@ -1,3 +1,4 @@
1
+ import { useFocusEffect } from '@react-navigation/native';
1
2
  import {
2
3
  Heading,
3
4
  Text,
@@ -37,18 +38,12 @@ import { useUpdatesConfig } from '../providers/UpdatesConfigProvider';
37
38
  import { DevSession } from '../types';
38
39
 
39
40
  export type HomeScreenProps = {
40
- fetchOnMount?: boolean;
41
41
  pollInterval?: number;
42
42
  pollAmount?: number;
43
43
  navigation?: any;
44
44
  };
45
45
 
46
- export function HomeScreen({
47
- fetchOnMount = false,
48
- pollInterval = 1000,
49
- pollAmount = 5,
50
- navigation,
51
- }: HomeScreenProps) {
46
+ export function HomeScreen({ pollInterval = 1000, pollAmount = 5, navigation }: HomeScreenProps) {
52
47
  const modalStack = useModalStack();
53
48
  const [inputValue, setInputValue] = React.useState('');
54
49
  const [loadingUrl, setLoadingUrl] = React.useState('');
@@ -59,13 +54,14 @@ export function HomeScreen({
59
54
 
60
55
  const crashReport = useCrashReport();
61
56
 
62
- const initialDevSessionData = React.useRef(devSessions);
63
-
64
- React.useEffect(() => {
65
- if (initialDevSessionData.current.length === 0 && fetchOnMount) {
66
- pollAsync({ pollAmount, pollInterval });
67
- }
68
- }, [fetchOnMount, pollInterval, pollAmount, pollAsync]);
57
+ const hasDevSessions = devSessions?.length > 0;
58
+ useFocusEffect(
59
+ React.useCallback(() => {
60
+ if (!hasDevSessions) {
61
+ pollAsync({ pollAmount, pollInterval });
62
+ }
63
+ }, [hasDevSessions, pollAmount, pollInterval])
64
+ );
69
65
 
70
66
  const onLoadUrl = async (url: string) => {
71
67
  setLoadingUrl(url);
@@ -141,7 +137,7 @@ export function HomeScreen({
141
137
 
142
138
  <Spacer.Horizontal />
143
139
 
144
- {devSessions.length > 0 && (
140
+ {devSessions?.length > 0 && (
145
141
  <Button.FadeOnPressContainer
146
142
  bg="ghost"
147
143
  rounded="full"
@@ -157,7 +153,7 @@ export function HomeScreen({
157
153
 
158
154
  <View px="medium">
159
155
  <View>
160
- {devSessions.length === 0 && (
156
+ {devSessions?.length === 0 && (
161
157
  <>
162
158
  <View padding="medium" bg="default" roundedTop="large">
163
159
  <Text>Start a local development server with:</Text>
package/ios/main.jsbundle CHANGED
@@ -1286,7 +1286,7 @@ __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",
1286
1286
  }
1287
1287
  }
1288
1288
  `;function v(t){return b.apply(this,arguments)}function b(){return(b=(0,n.default)((function*(t){var n={appId:t},u=(yield f.apiClient.request(y,n)).app.byId.updateChannels,o=[];return u.forEach((function(t){var n={name:t.name,branches:t.updateBranches.map((function(t){return t.name}))};o.push(n)})),o}))).apply(this,arguments)}}),1194,[6,324,1125,96,1050,1143,1145,1146,206]);
1289
- __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.HomeScreen=function(n){var p=n.fetchOnMount,f=void 0!==p&&p,R=n.pollInterval,H=void 0===R?1e3:R,M=n.pollAmount,B=void 0===M?5:M,D=n.navigation,F=(0,V.useModalStack)(),L=o.useState(''),U=(0,t.default)(L,2),k=U[0],E=U[1],W=o.useState(''),_=(0,t.default)(W,2),N=_[0],$=_[1],K=(0,z.useDevSessions)(),Q=K.data,q=K.pollAsync,G=K.isFetching,J=(0,P.useToastStack)(),X=(0,O.useUpdatesConfig)().projectUrl,Y=(0,S.useCrashReport)(),Z=o.useRef(Q);o.useEffect((function(){0===Z.current.length&&f&&q({pollAmount:B,pollInterval:H})}),[f,H,B,q]);var ee=(function(){var n=(0,s.default)((function*(n){$(n),yield(0,b.loadApp)(n).catch((function(n){$(''),F.push((function(){return(0,T.jsx)(h.LoadAppErrorModal,{message:n.message})}))})),$('')}));return function(s){return n.apply(this,arguments)}})(),ne=(function(){var n=(0,s.default)((function*(n){ee(n.url)}));return function(s){return n.apply(this,arguments)}})(),re=(function(){var n=(0,s.default)((function*(n){ee(n)}));return function(s){return n.apply(this,arguments)}})(),se=(function(){var n=(0,s.default)((function*(n){if(n.isEASUpdate){var s=(0,y.formatUpdateUrl)(n.url,n.updateMessage);(0,b.loadUpdate)(s,X).catch((function(n){J.push((function(){return(0,T.jsx)(v.Toasts.Error,{children:n.message})}),{durationMs:1e4})}))}else ee(n.url)}));return function(s){return n.apply(this,arguments)}})();return(0,T.jsx)(l.View,{testID:"DevLauncherMainScreen",flex:"1",children:(0,T.jsxs)(c.KeyboardAvoidingView,{behavior:"padding",style:{flex:1},children:[(0,T.jsx)(u.AppHeader,{navigation:D}),(0,T.jsx)(c.ScrollView,{children:(0,T.jsxs)(j.ScreenContainer,{children:[Y&&(0,T.jsx)(l.View,{px:"medium",py:"small",mt:"small",children:(0,T.jsx)(l.Button.FadeOnPressContainer,{onPress:function(){D.navigate('Crash Report',Y)},bg:"default",rounded:"large",children:(0,T.jsx)(l.Row,{align:"center",padding:"medium",bg:"default",children:(0,T.jsx)(l.Button.Text,{color:"default",children:"The last time you tried to open an app the development build crashed. Tap to get more information."})})})}),(0,T.jsxs)(l.View,{py:"large",children:[(0,T.jsxs)(l.Row,{px:"small",align:"center",children:[(0,T.jsx)(l.View,{px:"medium",children:(0,T.jsx)(l.TerminalIcon,{})}),(0,T.jsx)(l.Heading,{color:"secondary",children:"Development servers"}),(0,T.jsx)(l.Spacer.Horizontal,{}),Q.length>0&&(0,T.jsx)(l.Button.FadeOnPressContainer,{bg:"ghost",rounded:"full",onPress:function(){F.push((function(){return(0,T.jsx)(x.DevServerExplainerModal,{})}))},children:(0,T.jsx)(l.View,{rounded:"full",padding:"tiny",children:(0,T.jsx)(l.InfoIcon,{})})})]}),(0,T.jsx)(l.Spacer.Vertical,{size:"small"}),(0,T.jsx)(l.View,{px:"medium",children:(0,T.jsxs)(l.View,{children:[0===Q.length&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(l.View,{padding:"medium",bg:"default",roundedTop:"large",children:[(0,T.jsx)(l.Text,{children:"Start a local development server with:"}),(0,T.jsx)(l.Spacer.Vertical,{size:"small"}),(0,T.jsx)(l.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,T.jsx)(l.Text,{type:"mono",size:"small",children:"npx expo start --dev-client"})}),(0,T.jsx)(l.Spacer.Vertical,{size:"small"}),(0,T.jsx)(l.Text,{children:"Then, select the local server when it appears here."}),(0,T.jsx)(l.Spacer.Vertical,{size:"small"}),(0,T.jsx)(l.Text,{children:"Alternatively, open the Camera app and scan the QR code that appears in your terminal"})]}),(0,T.jsx)(l.Divider,{})]}),(null==Q?void 0:Q.length)>0&&(0,T.jsx)(C,{devSessions:Q,onDevSessionPress:ne}),(0,T.jsx)(A,{isFetching:G,onRefetchPress:function(){q({pollAmount:B,pollInterval:H})}}),(0,T.jsx)(l.Divider,{}),(0,T.jsx)(w.UrlDropdown,{onSubmit:re,inputValue:k,setInputValue:E,isLoading:''!==k&&k===N})]})}),(0,T.jsx)(l.Spacer.Vertical,{size:"medium"}),(0,T.jsx)(I,{onRecentAppPress:se,loadingUrl:N})]})]})})]})})};var s=n(r(d[1])),t=n(r(d[2])),l=r(d[3]),o=(function(n,s){if(!s&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=H(s);if(t&&t.has(n))return t.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,t&&t.set(n,l);return l})(r(d[4])),c=r(d[5]),u=r(d[6]),x=r(d[7]),p=r(d[8]),h=r(d[9]),f=r(d[10]),j=r(d[11]),v=r(d[12]),w=r(d[13]),y=r(d[14]),b=r(d[15]),S=r(d[16]),z=r(d[17]),V=r(d[18]),R=r(d[19]),P=r(d[20]),O=r(d[21]),T=r(d[22]);function H(n){if("function"!=typeof WeakMap)return null;var s=new WeakMap,t=new WeakMap;return(H=function(n){return n?t:s})(n)}function A(n){var s=n.isFetching,t=n.onRefetchPress,o=(0,l.useExpoTheme)(),c=s?o.status.info:o.status.default;return(0,T.jsx)(l.Button.FadeOnPressContainer,{onPress:t,disabled:s,bg:"default",rounded:"none",children:(0,T.jsxs)(l.Row,{align:"center",padding:"medium",bg:"default",children:[(0,T.jsx)(l.View,{width:"6",children:(0,T.jsx)(f.PulseIndicator,{isActive:s,color:c})}),(0,T.jsx)(l.Button.Text,{color:"default",children:s?'Searching for development servers...':'Fetch development servers'}),(0,T.jsx)(l.Spacer.Horizontal,{}),!s&&(0,T.jsx)(l.RefreshIcon,{})]})})}function C(n){var s=n.devSessions,t=void 0===s?[]:s,o=n.onDevSessionPress;return 0===t.length?null:(0,T.jsx)(l.View,{children:t.map((function(n){return(0,T.jsxs)(l.View,{children:[(0,T.jsx)(l.Button.FadeOnPressContainer,{onPress:function(){return o(n)},roundedTop:"large",roundedBottom:"none",bg:"default",children:(0,T.jsxs)(l.Row,{align:"center",padding:"medium",bg:"default",children:[(0,T.jsx)(l.StatusIndicator,{size:"small",status:"success"}),(0,T.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,T.jsx)(l.View,{flex:"1",children:(0,T.jsx)(l.Button.Text,{color:"default",numberOfLines:1,children:n.description})}),(0,T.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,T.jsx)(l.ChevronRightIcon,{})]})}),(0,T.jsx)(l.Divider,{})]},n.url)}))})}function I(n){var s=n.onRecentAppPress,t=n.loadingUrl,o=(0,R.useRecentlyOpenedApps)(),c=o.data,u=o.clear;if(0===c.length)return null;function x(n){var s,t=null!=(s=n.name)?s:n.url;return n.isEASUpdate&&null!=n.updateMessage?(0,T.jsx)(D,{url:n.url,message:n.updateMessage,branchName:n.branchName}):(0,T.jsx)(B,{label:t,url:n.url})}return(0,T.jsxs)(l.View,{px:"medium",children:[(0,T.jsxs)(l.Row,{align:"center",py:"small",children:[(0,T.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,T.jsx)(l.Heading,{color:"secondary",children:"Recently opened"}),(0,T.jsx)(l.Spacer.Horizontal,{}),(0,T.jsx)(l.Button.FadeOnPressContainer,{bg:"ghost",onPress:u,children:(0,T.jsx)(l.View,{rounded:"medium",px:"small",py:"micro",children:(0,T.jsx)(l.Heading,{size:"small",weight:"semibold",color:"secondary",children:"Reset"})})})]}),(0,T.jsx)(l.View,{children:c.map((function(n,o,c){var u=0===o,p=o===c.length-1,h=n.url===t;return(0,T.jsxs)(M,{isLoading:h,children:[(0,T.jsx)(l.Button.FadeOnPressContainer,{onPress:function(){return s(n)},roundedTop:u?'large':'none',roundedBottom:p?'large':'none',py:"small",bg:"default",children:x(n)}),!p&&(0,T.jsx)(l.Divider,{})]},n.id)}))})]})}function M(n){var s=n.children,t=n.isLoading,l=(0,p.useLoadingContainerStyle)(t);return(0,T.jsx)(c.Animated.View,{style:l,children:s})}function B(n){var s=n.label,t=n.url;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(l.Row,{align:"center",px:"medium",bg:"default",children:[(0,T.jsx)(l.StatusIndicator,{size:"small",status:"success"}),(0,T.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,T.jsx)(l.View,{flex:"1",children:(0,T.jsx)(l.Button.Text,{color:"default",numberOfLines:1,children:s})}),(0,T.jsx)(l.ChevronRightIcon,{})]}),(0,T.jsxs)(l.Row,{px:"medium",align:"center",bg:"default",children:[(0,T.jsx)(l.Spacer.Vertical,{size:"tiny"}),(0,T.jsx)(l.Spacer.Horizontal,{size:"large"}),(0,T.jsx)(l.Row,{style:{flexWrap:'wrap',flexShrink:1},children:(0,T.jsx)(l.Text,{size:"small",color:"secondary",numberOfLines:1,children:t})})]})]})}function D(n){var s=n.url,t=n.branchName,o=n.message,c=(0,l.useExpoPalette)();return(0,T.jsxs)(l.View,{children:[(0,T.jsxs)(l.Row,{align:"center",px:"medium",bg:"default",children:[(0,T.jsxs)(l.Row,{shrink:"1",style:{backgroundColor:c.blue[100]},py:"tiny",px:"1.5",rounded:"medium",align:"center",children:[(0,T.jsx)(l.BranchIcon,{style:{maxHeight:10,maxWidth:12,resizeMode:'contain'},resizeMethod:"scale"}),(0,T.jsx)(l.Spacer.Horizontal,{size:"tiny"}),(0,T.jsx)(l.View,{shrink:"1",children:(0,T.jsx)(l.Text,{size:"small",numberOfLines:1,children:`Branch: ${t}`})})]}),(0,T.jsx)(l.Spacer.Horizontal,{}),(0,T.jsx)(l.ChevronRightIcon,{})]}),(0,T.jsx)(l.Spacer.Vertical,{size:"small",bg:"default"}),Boolean(o)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(l.Row,{px:"medium",align:"center",bg:"default",children:(0,T.jsx)(l.View,{children:(0,T.jsx)(l.Heading,{size:"small",numberOfLines:1,children:`Update "${o}"`})})}),(0,T.jsx)(l.Spacer.Vertical,{size:"micro",bg:"default"})]}),(0,T.jsx)(l.Row,{px:"medium",align:"center",bg:"default",children:(0,T.jsx)(l.Row,{style:{flexWrap:'wrap',flexShrink:1},children:(0,T.jsx)(l.Text,{size:"small",color:"secondary",numberOfLines:1,children:s})})})]})}}),1195,[6,324,47,629,96,2,1190,1196,1180,1174,1197,1186,1145,1198,1188,1047,1156,1158,1169,1172,1146,1148,206]);
1289
+ __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.HomeScreen=function(n){var h=n.pollInterval,f=void 0===h?1e3:h,P=n.pollAmount,H=void 0===P?5:P,M=n.navigation,D=(0,R.useModalStack)(),F=c.useState(''),L=(0,t.default)(F,2),k=L[0],U=L[1],E=c.useState(''),W=(0,t.default)(E,2),_=W[0],N=W[1],$=(0,V.useDevSessions)(),K=$.data,Q=$.pollAsync,q=$.isFetching,G=(0,O.useToastStack)(),J=(0,T.useUpdatesConfig)().projectUrl,X=(0,z.useCrashReport)(),Y=(null==K?void 0:K.length)>0;(0,l.useFocusEffect)(c.useCallback((function(){Y||Q({pollAmount:H,pollInterval:f})}),[Y,H,f]));var Z=(function(){var n=(0,s.default)((function*(n){N(n),yield(0,S.loadApp)(n).catch((function(n){N(''),D.push((function(){return(0,C.jsx)(j.LoadAppErrorModal,{message:n.message})}))})),N('')}));return function(s){return n.apply(this,arguments)}})(),ee=(function(){var n=(0,s.default)((function*(n){Z(n.url)}));return function(s){return n.apply(this,arguments)}})(),ne=(function(){var n=(0,s.default)((function*(n){Z(n)}));return function(s){return n.apply(this,arguments)}})(),re=(function(){var n=(0,s.default)((function*(n){if(n.isEASUpdate){var s=(0,y.formatUpdateUrl)(n.url,n.updateMessage);(0,S.loadUpdate)(s,J).catch((function(n){G.push((function(){return(0,C.jsx)(w.Toasts.Error,{children:n.message})}),{durationMs:1e4})}))}else Z(n.url)}));return function(s){return n.apply(this,arguments)}})();return(0,C.jsx)(o.View,{testID:"DevLauncherMainScreen",flex:"1",children:(0,C.jsxs)(u.KeyboardAvoidingView,{behavior:"padding",style:{flex:1},children:[(0,C.jsx)(x.AppHeader,{navigation:M}),(0,C.jsx)(u.ScrollView,{children:(0,C.jsxs)(v.ScreenContainer,{children:[X&&(0,C.jsx)(o.View,{px:"medium",py:"small",mt:"small",children:(0,C.jsx)(o.Button.FadeOnPressContainer,{onPress:function(){M.navigate('Crash Report',X)},bg:"default",rounded:"large",children:(0,C.jsx)(o.Row,{align:"center",padding:"medium",bg:"default",children:(0,C.jsx)(o.Button.Text,{color:"default",children:"The last time you tried to open an app the development build crashed. Tap to get more information."})})})}),(0,C.jsxs)(o.View,{py:"large",children:[(0,C.jsxs)(o.Row,{px:"small",align:"center",children:[(0,C.jsx)(o.View,{px:"medium",children:(0,C.jsx)(o.TerminalIcon,{})}),(0,C.jsx)(o.Heading,{color:"secondary",children:"Development servers"}),(0,C.jsx)(o.Spacer.Horizontal,{}),(null==K?void 0:K.length)>0&&(0,C.jsx)(o.Button.FadeOnPressContainer,{bg:"ghost",rounded:"full",onPress:function(){D.push((function(){return(0,C.jsx)(p.DevServerExplainerModal,{})}))},children:(0,C.jsx)(o.View,{rounded:"full",padding:"tiny",children:(0,C.jsx)(o.InfoIcon,{})})})]}),(0,C.jsx)(o.Spacer.Vertical,{size:"small"}),(0,C.jsx)(o.View,{px:"medium",children:(0,C.jsxs)(o.View,{children:[0===(null==K?void 0:K.length)&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(o.View,{padding:"medium",bg:"default",roundedTop:"large",children:[(0,C.jsx)(o.Text,{children:"Start a local development server with:"}),(0,C.jsx)(o.Spacer.Vertical,{size:"small"}),(0,C.jsx)(o.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,C.jsx)(o.Text,{type:"mono",size:"small",children:"npx expo start --dev-client"})}),(0,C.jsx)(o.Spacer.Vertical,{size:"small"}),(0,C.jsx)(o.Text,{children:"Then, select the local server when it appears here."}),(0,C.jsx)(o.Spacer.Vertical,{size:"small"}),(0,C.jsx)(o.Text,{children:"Alternatively, open the Camera app and scan the QR code that appears in your terminal"})]}),(0,C.jsx)(o.Divider,{})]}),(null==K?void 0:K.length)>0&&(0,C.jsx)(I,{devSessions:K,onDevSessionPress:ee}),(0,C.jsx)(A,{isFetching:q,onRefetchPress:function(){Q({pollAmount:H,pollInterval:f})}}),(0,C.jsx)(o.Divider,{}),(0,C.jsx)(b.UrlDropdown,{onSubmit:ne,inputValue:k,setInputValue:U,isLoading:''!==k&&k===_})]})}),(0,C.jsx)(o.Spacer.Vertical,{size:"medium"}),(0,C.jsx)(B,{onRecentAppPress:re,loadingUrl:_})]})]})})]})})};var s=n(r(d[1])),t=n(r(d[2])),l=r(d[3]),o=r(d[4]),c=(function(n,s){if(!s&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=H(s);if(t&&t.has(n))return t.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,t&&t.set(n,l);return l})(r(d[5])),u=r(d[6]),x=r(d[7]),p=r(d[8]),h=r(d[9]),j=r(d[10]),f=r(d[11]),v=r(d[12]),w=r(d[13]),b=r(d[14]),y=r(d[15]),S=r(d[16]),z=r(d[17]),V=r(d[18]),R=r(d[19]),P=r(d[20]),O=r(d[21]),T=r(d[22]),C=r(d[23]);function H(n){if("function"!=typeof WeakMap)return null;var s=new WeakMap,t=new WeakMap;return(H=function(n){return n?t:s})(n)}function A(n){var s=n.isFetching,t=n.onRefetchPress,l=(0,o.useExpoTheme)(),c=s?l.status.info:l.status.default;return(0,C.jsx)(o.Button.FadeOnPressContainer,{onPress:t,disabled:s,bg:"default",rounded:"none",children:(0,C.jsxs)(o.Row,{align:"center",padding:"medium",bg:"default",children:[(0,C.jsx)(o.View,{width:"6",children:(0,C.jsx)(f.PulseIndicator,{isActive:s,color:c})}),(0,C.jsx)(o.Button.Text,{color:"default",children:s?'Searching for development servers...':'Fetch development servers'}),(0,C.jsx)(o.Spacer.Horizontal,{}),!s&&(0,C.jsx)(o.RefreshIcon,{})]})})}function I(n){var s=n.devSessions,t=void 0===s?[]:s,l=n.onDevSessionPress;return 0===t.length?null:(0,C.jsx)(o.View,{children:t.map((function(n){return(0,C.jsxs)(o.View,{children:[(0,C.jsx)(o.Button.FadeOnPressContainer,{onPress:function(){return l(n)},roundedTop:"large",roundedBottom:"none",bg:"default",children:(0,C.jsxs)(o.Row,{align:"center",padding:"medium",bg:"default",children:[(0,C.jsx)(o.StatusIndicator,{size:"small",status:"success"}),(0,C.jsx)(o.Spacer.Horizontal,{size:"small"}),(0,C.jsx)(o.View,{flex:"1",children:(0,C.jsx)(o.Button.Text,{color:"default",numberOfLines:1,children:n.description})}),(0,C.jsx)(o.Spacer.Horizontal,{size:"small"}),(0,C.jsx)(o.ChevronRightIcon,{})]})}),(0,C.jsx)(o.Divider,{})]},n.url)}))})}function B(n){var s=n.onRecentAppPress,t=n.loadingUrl,l=(0,P.useRecentlyOpenedApps)(),c=l.data,u=l.clear;if(0===c.length)return null;function x(n){var s,t=null!=(s=n.name)?s:n.url;return n.isEASUpdate&&null!=n.updateMessage?(0,C.jsx)(F,{url:n.url,message:n.updateMessage,branchName:n.branchName}):(0,C.jsx)(D,{label:t,url:n.url})}return(0,C.jsxs)(o.View,{px:"medium",children:[(0,C.jsxs)(o.Row,{align:"center",py:"small",children:[(0,C.jsx)(o.Spacer.Horizontal,{size:"small"}),(0,C.jsx)(o.Heading,{color:"secondary",children:"Recently opened"}),(0,C.jsx)(o.Spacer.Horizontal,{}),(0,C.jsx)(o.Button.FadeOnPressContainer,{bg:"ghost",onPress:u,children:(0,C.jsx)(o.View,{rounded:"medium",px:"small",py:"micro",children:(0,C.jsx)(o.Heading,{size:"small",weight:"semibold",color:"secondary",children:"Reset"})})})]}),(0,C.jsx)(o.View,{children:c.map((function(n,l,c){var u=0===l,p=l===c.length-1,h=n.url===t;return(0,C.jsxs)(M,{isLoading:h,children:[(0,C.jsx)(o.Button.FadeOnPressContainer,{onPress:function(){return s(n)},roundedTop:u?'large':'none',roundedBottom:p?'large':'none',py:"small",bg:"default",children:x(n)}),!p&&(0,C.jsx)(o.Divider,{})]},n.id)}))})]})}function M(n){var s=n.children,t=n.isLoading,l=(0,h.useLoadingContainerStyle)(t);return(0,C.jsx)(u.Animated.View,{style:l,children:s})}function D(n){var s=n.label,t=n.url;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(o.Row,{align:"center",px:"medium",bg:"default",children:[(0,C.jsx)(o.StatusIndicator,{size:"small",status:"success"}),(0,C.jsx)(o.Spacer.Horizontal,{size:"small"}),(0,C.jsx)(o.View,{flex:"1",children:(0,C.jsx)(o.Button.Text,{color:"default",numberOfLines:1,children:s})}),(0,C.jsx)(o.ChevronRightIcon,{})]}),(0,C.jsxs)(o.Row,{px:"medium",align:"center",bg:"default",children:[(0,C.jsx)(o.Spacer.Vertical,{size:"tiny"}),(0,C.jsx)(o.Spacer.Horizontal,{size:"large"}),(0,C.jsx)(o.Row,{style:{flexWrap:'wrap',flexShrink:1},children:(0,C.jsx)(o.Text,{size:"small",color:"secondary",numberOfLines:1,children:t})})]})]})}function F(n){var s=n.url,t=n.branchName,l=n.message,c=(0,o.useExpoPalette)();return(0,C.jsxs)(o.View,{children:[(0,C.jsxs)(o.Row,{align:"center",px:"medium",bg:"default",children:[(0,C.jsxs)(o.Row,{shrink:"1",style:{backgroundColor:c.blue[100]},py:"tiny",px:"1.5",rounded:"medium",align:"center",children:[(0,C.jsx)(o.BranchIcon,{style:{maxHeight:10,maxWidth:12,resizeMode:'contain'},resizeMethod:"scale"}),(0,C.jsx)(o.Spacer.Horizontal,{size:"tiny"}),(0,C.jsx)(o.View,{shrink:"1",children:(0,C.jsx)(o.Text,{size:"small",numberOfLines:1,children:`Branch: ${t}`})})]}),(0,C.jsx)(o.Spacer.Horizontal,{}),(0,C.jsx)(o.ChevronRightIcon,{})]}),(0,C.jsx)(o.Spacer.Vertical,{size:"small",bg:"default"}),Boolean(l)&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(o.Row,{px:"medium",align:"center",bg:"default",children:(0,C.jsx)(o.View,{children:(0,C.jsx)(o.Heading,{size:"small",numberOfLines:1,children:`Update "${l}"`})})}),(0,C.jsx)(o.Spacer.Vertical,{size:"micro",bg:"default"})]}),(0,C.jsx)(o.Row,{px:"medium",align:"center",bg:"default",children:(0,C.jsx)(o.Row,{style:{flexWrap:'wrap',flexShrink:1},children:(0,C.jsx)(o.Text,{size:"small",color:"secondary",numberOfLines:1,children:s})})})]})}}),1195,[6,324,47,433,629,96,2,1190,1196,1180,1174,1197,1186,1145,1198,1188,1047,1156,1158,1169,1172,1146,1148,206]);
1290
1290
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DevServerExplainerModal=function(){return(0,l.jsxs)(n.BaseModal,{title:"Development servers",children:[(0,l.jsx)(t.Spacer.Vertical,{size:"small"}),(0,l.jsx)(t.Text,{size:"medium",children:"Start a local development server with:"}),(0,l.jsx)(t.Spacer.Vertical,{size:"small"}),(0,l.jsx)(t.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,l.jsx)(t.Text,{type:"mono",size:"small",children:"npx expo start --dev-client"})}),(0,l.jsx)(t.Spacer.Vertical,{size:"large"}),(0,l.jsx)(t.Text,{children:"Then, select the local server when it appears here."}),(0,l.jsx)(t.Spacer.Vertical,{size:"small"}),(0,l.jsx)(t.Text,{children:"Alternatively, open the Camera app and scan the QR code that appears in your terminal"})]})};var t=r(d[0]),n=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=s(n);if(l&&l.has(t))return l.get(t);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var u=c?Object.getOwnPropertyDescriptor(t,p):null;u&&(u.get||u.set)?Object.defineProperty(o,p,u):o[p]=t[p]}o.default=t,l&&l.set(t,o)})(r(d[1])),r(d[2])),l=r(d[3]);function s(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(s=function(t){return t?l:n})(t)}}),1196,[629,96,1173,206]);
1291
1291
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.PulseIndicator=function(c){var l=c.isActive,f=c.color,s=n.useRef(new u.Animated.Value(0)),p=s.current.interpolate({inputRange:[0,1],outputRange:[.95,2]}),y=s.current.interpolate({inputRange:[0,1],outputRange:[1,0]}),v=n.useRef(u.Animated.loop(u.Animated.timing(s.current,{toValue:1,duration:1200,useNativeDriver:!0})));return n.useEffect((function(){l?v.current.start():(s.current.setValue(0),v.current.stop(),v.current.reset())}),[l]),(0,o.jsx)(t.StatusIndicator,{size:"small",style:{backgroundColor:f},children:(0,o.jsx)(u.Animated.View,{style:{flex:1,borderRadius:100,transform:[{scale:p}],opacity:y,backgroundColor:f}})})};var t=r(d[0]),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=c(n);if(u&&u.has(t))return u.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=l?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(o,f,s):o[f]=t[f]}o.default=t,u&&u.set(t,o);return o})(r(d[1])),u=r(d[2]),o=r(d[3]);function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(c=function(t){return t?u:n})(t)}}),1197,[629,96,2,206]);
1292
1292
  __d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UrlDropdown=function(t){var n=t.onSubmit,b=t.isLoading,y=t.inputValue,j=t.setInputValue,v=(0,i.useExpoTheme)(),O=(0,i.useCurrentTheme)(),x={dark:{active:v.background.secondary,inactive:v.background.default},light:{active:v.background.secondary,inactive:v.background.default}},w=u.useRef(),P=u.useState(!1),D=(0,o.default)(P,2),C=D[0],k=D[1],I=u.useState((0,s.validateUrl)(y)),T=(0,o.default)(I,2),V=T[0],L=T[1],S=u.useState(!1),B=(0,o.default)(S,2),U=B[0],R=B[1],M={transform:[{translateX:-3},{rotate:C?'90deg':'0deg'}]},_=x[O],z=U?_.active:_.inactive;return(0,p.jsxs)(i.View,{rounded:"large",children:[(0,p.jsx)(i.Button.Container,{onPressIn:function(){return R(!0)},onPressOut:function(){return R(!1)},onPress:function(){k(!C)},roundedTop:"none",roundedBottom:C?'none':'large',testID:"DevLauncherURLToggle",children:(0,p.jsxs)(i.Row,{align:"center",padding:"medium",style:{backgroundColor:z},children:[(0,p.jsx)(i.View,{width:"6",children:(0,p.jsx)(i.ChevronRightIcon,{style:M})}),(0,p.jsx)(i.Text,{color:"default",children:"Enter URL manually"})]})}),C&&(0,p.jsxs)(i.View,{px:"medium",py:"medium",roundedBottom:"large",bg:"default",children:[(0,p.jsxs)(i.View,{border:"default",rounded:"medium",py:l.Platform.select({android:'tiny',ios:'medium'}),px:"medium",shadow:"micro",children:[(0,p.jsx)(i.TextInput,{autoFocus:!0,clearButtonMode:"while-editing",keyboardType:"url",autoCapitalize:"none",autoComplete:"off",autoCorrect:!1,placeholder:"http://10.0.0.25:8081",placeholderTextColor:v.text.secondary,ref:w,onChangeText:(0,c.debounce)((function(t){L((0,s.validateUrl)(t)),j(t)})),onBlur:function(){L((0,s.validateUrl)(y))},testID:"DevLauncherURLInput"}),(0,p.jsx)(i.View,{style:{position:'absolute',bottom:-20},children:!V&&''!==y&&(0,p.jsx)(i.Text,{color:"error",size:"small",children:"Invalid URL"})})]}),(0,p.jsx)(i.Spacer.Vertical,{size:"xl"}),(0,p.jsxs)(i.Button.FadeOnPressContainer,{bg:V?'tertiary':'disabled',shadow:"button",rounded:"medium",disabled:!V||b,onPress:function(){var t;n(y),null==(t=w.current)||t.blur()},testID:"DevLauncherLoadAppButton",children:[(0,p.jsx)(i.View,{py:"small",opacity:b?'0.5':'1',children:(0,p.jsx)(i.Button.Text,{align:"center",weight:"semibold",color:"tertiary",children:"Connect"})}),b&&(0,p.jsx)(i.View,{style:h(h({},l.StyleSheet.absoluteFillObject),{},{justifyContent:'center',alignItems:'center'}),children:(0,p.jsx)(f.ActivityIndicator,{size:"small"})})]})]})]})};var n=t(r(d[1])),o=t(r(d[2])),i=r(d[3]),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=b(n);if(o&&o.has(t))return o.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var c=u?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(i,l,c):i[l]=t[l]}i.default=t,o&&o.set(t,i);return i})(r(d[4])),l=r(d[5]),c=r(d[6]),s=r(d[7]),f=r(d[8]),p=r(d[9]);function b(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(b=function(t){return t?o:n})(t)}function y(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),o.push.apply(o,i)}return o}function h(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?y(Object(i),!0).forEach((function(o){(0,n.default)(t,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}}),1198,[6,31,47,629,96,2,1199,1200,1179,206]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-dev-launcher",
3
3
  "title": "Expo Development Launcher",
4
- "version": "2.4.12",
4
+ "version": "2.4.13",
5
5
  "description": "Pre-release version of the Expo development launcher package for testing.",
6
6
  "main": "build/DevLauncher.js",
7
7
  "types": "build/DevLauncher.d.ts",
@@ -30,7 +30,7 @@
30
30
  "license": "MIT",
31
31
  "homepage": "https://docs.expo.dev",
32
32
  "dependencies": {
33
- "expo-dev-menu": "3.2.0",
33
+ "expo-dev-menu": "3.2.1",
34
34
  "resolve-from": "^5.0.0",
35
35
  "semver": "^7.5.3"
36
36
  },
@@ -50,7 +50,7 @@
50
50
  "graphql": "^16.0.1",
51
51
  "graphql-request": "^3.6.1",
52
52
  "react": "18.2.0",
53
- "react-native": "0.72.4",
53
+ "react-native": "0.72.5",
54
54
  "react-query": "^3.34.16",
55
55
  "url": "^0.11.0"
56
56
  },
@@ -64,5 +64,5 @@
64
64
  "./setupTests.ts"
65
65
  ]
66
66
  },
67
- "gitHead": "ac9d28b6536f3f6161692f08b29d8a4a58b51641"
67
+ "gitHead": "4469ebf8b91b4b9f406b2348179429c226d768c9"
68
68
  }