expo-dev-launcher 0.11.4 → 0.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/debug/assets/expo_dev_launcher_android.bundle +5 -5
  4. package/android/src/debug/java/expo/modules/devlauncher/DevLauncherController.kt +22 -15
  5. package/android/src/debug/java/expo/modules/devlauncher/launcher/loaders/DevLauncherAppLoaderFactory.kt +0 -1
  6. package/android/src/debug/java/expo/modules/devlauncher/modules/DevLauncherAuth.kt +2 -7
  7. package/android/src/debug/java/expo/modules/devlauncher/modules/DevLauncherInternalModule.kt +15 -17
  8. package/android/src/expo-45/expo/modules/devlauncher/DevLauncherPackageDelegate.kt +7 -4
  9. package/android/src/main/java/expo/modules/devlauncher/helpers/DevLauncherOkHttpExtensions.kt +0 -1
  10. package/android/src/main/java/expo/modules/devlauncher/helpers/DevLauncherUpdatesHelper.kt +24 -21
  11. package/android/src/main/java/expo/modules/devlauncher/launcher/configurators/DevLauncherExpoActivityConfigurator.kt +9 -6
  12. package/android/src/main/java/expo/modules/devlauncher/launcher/errors/DevLauncherErrorActivity.kt +6 -6
  13. package/android/src/main/java/expo/modules/devlauncher/launcher/errors/DevLauncherErrorRegistry.kt +7 -5
  14. package/android/src/main/java/expo/modules/devlauncher/launcher/errors/DevLauncherStackAdapter.kt +1 -1
  15. package/android/src/main/java/expo/modules/devlauncher/launcher/errors/DevLauncherUncaughtExceptionHandler.kt +0 -1
  16. package/android/src/main/java/expo/modules/devlauncher/launcher/manifest/DevLauncherManifestParser.kt +3 -3
  17. package/android/src/main/java/expo/modules/devlauncher/splashscreen/DevLauncherSplashScreenProvider.kt +10 -10
  18. package/android/src/react-native-64/expo/modules/devlauncher/rncompatibility/DevLauncherDevSupportManager.kt +2 -1
  19. package/android/src/react-native-65/expo/modules/devlauncher/rncompatibility/DevLauncherDevSupportManager.kt +18 -17
  20. package/android/src/react-native-66/expo/modules/devlauncher/rncompatibility/DevLauncherDevSupportManager.kt +32 -16
  21. package/android/src/react-native-67/expo/modules/devlauncher/rncompatibility/DevLauncherDevSupportManager.kt +32 -16
  22. package/android/src/react-native-67/expo/modules/devlauncher/rncompatibility/DevLauncherDevSupportManagerFactory.kt +1 -1
  23. package/android/src/release/java/expo/modules/devlauncher/DevLauncherPackageDelegate.kt +1 -1
  24. package/android/src/release/java/expo/modules/devlauncher/launcher/loaders/DevLauncherAppLoaderFactory.kt +2 -5
  25. package/android/src/testDebug/java/expo/modules/devlauncher/DevLauncherControllerTest.kt +7 -6
  26. package/android/src/testDebug/java/expo/modules/devlauncher/launcher/loaders/DevLauncherAppLoaderFactoryTest.kt +19 -15
  27. package/android/src/testDebug/java/expo/modules/devlauncher/modules/DevLauncherModuleTest.kt +4 -2
  28. package/bundle/apiClient.ts +5 -3
  29. package/bundle/components/EASUpdatesRows.tsx +20 -10
  30. package/bundle/queries/useBranchesForApp.tsx +5 -3
  31. package/bundle/screens/UpdatesScreen.tsx +8 -3
  32. package/ios/EXDevLauncherController.m +20 -0
  33. package/ios/main.jsbundle +5 -5
  34. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -10,6 +10,24 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.11.7 — 2022-06-07
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fix opening published EAS Update from URL on Android. ([#17734](https://github.com/expo/expo/pull/17734) by [@esamelson](https://github.com/esamelson))
18
+
19
+ ### 💡 Others
20
+
21
+ - Stop persisting remote debugging setting between app loads on iOS. ([#17650](https://github.com/expo/expo/pull/17650) by [@esamelson](https://github.com/esamelson))
22
+
23
+ ## 0.11.6 — 2022-05-19
24
+
25
+ _This version does not introduce any user-facing changes._
26
+
27
+ ## 0.11.5 — 2022-05-06
28
+
29
+ _This version does not introduce any user-facing changes._
30
+
13
31
  ## 0.11.4 — 2022-05-05
14
32
 
15
33
  ### 🐛 Bug fixes
@@ -40,7 +40,7 @@ android {
40
40
  minSdkVersion safeExtGet('minSdkVersion', 21)
41
41
  targetSdkVersion safeExtGet("targetSdkVersion", 31)
42
42
  versionCode 9
43
- versionName "0.11.4"
43
+ versionName "0.11.7"
44
44
  }
45
45
 
46
46
  lintOptions {
@@ -67,8 +67,8 @@ __d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return n
67
67
  __d(function(g,r,i,a,m,e,d){'use strict';var l,n,s=r(d[0]).polyfillGlobal;if(null!=(l=g)&&null!=(n=l.HermesInternal)&&null!=n.hasPromise&&n.hasPromise())g.Promise;else s('Promise',function(){return r(d[1])})},61,[62,63]);
68
68
  __d(function(g,r,i,a,m,e,d){'use strict';var l=r(d[0]);function o(o,t,n){var c=Object.getOwnPropertyDescriptor(o,t),b=c||{},f=b.enumerable,u=b.writable,p=b.configurable;!c||void 0!==p&&p?l(o,t,{get:n,enumerable:!1!==f,writable:!1!==u}):console.error('Failed to set polyfill. '+t+' is not configurable.')}m.exports={polyfillObjectProperty:o,polyfillGlobal:function(l,t){o(g,l,t)}}},62,[58]);
69
69
  __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);r(d[1]),r(d[2]),m.exports=t},63,[64,66,67]);
70
- __d(function(g,r,_i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n;var t=l(!0),o=l(!1),f=l(null),i=l(void 0),u=l(0),c=l('');function l(t){var o=new n(n._0);return o._V=1,o._W=t,o}n.resolve=function(y){if(y instanceof n)return y;if(null===y)return f;if(void 0===y)return i;if(!0===y)return t;if(!1===y)return o;if(0===y)return u;if(''===y)return c;if('object'==typeof y||'function'==typeof y)try{var p=y.then;if('function'==typeof p)return new n(p.bind(y))}catch(t){return new n(function(n,o){o(t)})}return l(y)};var y=function(n){return'function'==typeof Array.from?(y=Array.from,Array.from(n)):(y=function(n){return Array.prototype.slice.call(n)},Array.prototype.slice.call(n))};n.all=function(t){var o=y(t);return new n(function(t,f){if(0===o.length)return t([]);var i=o.length;function u(c,l){if(l&&('object'==typeof l||'function'==typeof l)){if(l instanceof n&&l.then===n.prototype.then){for(;3===l._V;)l=l._W;return 1===l._V?u(c,l._W):(2===l._V&&f(l._W),void l.then(function(n){u(c,n)},f))}var y=l.then;if('function'==typeof y)return void new n(y.bind(l)).then(function(n){u(c,n)},f)}o[c]=l,0==--i&&t(o)}for(var c=0;c<o.length;c++)u(c,o[c])})},n.reject=function(t){return new n(function(n,o){o(t)})},n.race=function(t){return new n(function(o,f){y(t).forEach(function(t){n.resolve(t).then(o,f)})})},n.prototype.catch=function(n){return this.then(null,n)}},64,[65]);
71
- __d(function(g,r,_i,_a,m,e,d){'use strict';function n(){}var t=null,o={};function i(n){try{return n.then}catch(n){return t=n,o}}function u(n,i){try{return n(i)}catch(n){return t=n,o}}function f(n,i,u){try{n(i,u)}catch(n){return t=n,o}}function c(t){if('object'!=typeof this)throw new TypeError('Promises must be constructed via new');if('function'!=typeof t)throw new TypeError('Promise constructor\'s argument is not a function');this._U=0,this._V=0,this._W=null,this._X=null,t!==n&&y(t,this)}function _(t,o,i){return new t.constructor(function(u,f){var _=new c(n);_.then(u,f),s(t,new v(o,i,_))})}function s(n,t){for(;3===n._V;)n=n._W;if(c._Y&&c._Y(n),0===n._V)return 0===n._U?(n._U=1,void(n._X=t)):1===n._U?(n._U=2,void(n._X=[n._X,t])):void n._X.push(t);l(n,t)}function l(n,i){setImmediate(function(){var f=1===n._V?i.onFulfilled:i.onRejected;if(null!==f){var c=u(f,n._W);c===o?p(i.promise,t):h(i.promise,c)}else 1===n._V?h(i.promise,n._W):p(i.promise,n._W)})}function h(n,u){if(u===n)return p(n,new TypeError('A promise cannot be resolved with itself.'));if(u&&('object'==typeof u||'function'==typeof u)){var f=i(u);if(f===o)return p(n,t);if(f===n.then&&u instanceof c)return n._V=3,n._W=u,void a(n);if('function'==typeof f)return void y(f.bind(u),n)}n._V=1,n._W=u,a(n)}function p(n,t){n._V=2,n._W=t,c._Z&&c._Z(n,t),a(n)}function a(n){if(1===n._U&&(s(n,n._X),n._X=null),2===n._U){for(var t=0;t<n._X.length;t++)s(n,n._X[t]);n._X=null}}function v(n,t,o){this.onFulfilled='function'==typeof n?n:null,this.onRejected='function'==typeof t?t:null,this.promise=o}function y(n,i){var u=!1,c=f(n,function(n){u||(u=!0,h(i,n))},function(n){u||(u=!0,p(i,n))});u||c!==o||(u=!0,p(i,t))}m.exports=c,c._Y=null,c._Z=null,c._0=n,c.prototype.then=function(t,o){if(this.constructor!==c)return _(this,t,o);var i=new c(n);return s(this,new v(t,o,i)),i}},65,[]);
70
+ __d(function(g,r,_i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n;var t=l(!0),o=l(!1),f=l(null),i=l(void 0),u=l(0),c=l('');function l(t){var o=new n(n._61);return o._65=1,o._55=t,o}n.resolve=function(h){if(h instanceof n)return h;if(null===h)return f;if(void 0===h)return i;if(!0===h)return t;if(!1===h)return o;if(0===h)return u;if(''===h)return c;if('object'==typeof h||'function'==typeof h)try{var v=h.then;if('function'==typeof v)return new n(v.bind(h))}catch(t){return new n(function(n,o){o(t)})}return l(h)},n.all=function(t){var o=Array.prototype.slice.call(t);return new n(function(t,f){if(0===o.length)return t([]);var i=o.length;function u(c,l){if(l&&('object'==typeof l||'function'==typeof l)){if(l instanceof n&&l.then===n.prototype.then){for(;3===l._65;)l=l._55;return 1===l._65?u(c,l._55):(2===l._65&&f(l._55),void l.then(function(n){u(c,n)},f))}var h=l.then;if('function'==typeof h)return void new n(h.bind(l)).then(function(n){u(c,n)},f)}o[c]=l,0==--i&&t(o)}for(var c=0;c<o.length;c++)u(c,o[c])})},n.reject=function(t){return new n(function(n,o){o(t)})},n.race=function(t){return new n(function(o,f){t.forEach(function(t){n.resolve(t).then(o,f)})})},n.prototype.catch=function(n){return this.then(null,n)}},64,[65]);
71
+ __d(function(g,r,_i,_a,m,e,d){'use strict';function n(){}var t=null,o={};function i(n){try{return n.then}catch(n){return t=n,o}}function u(n,i){try{return n(i)}catch(n){return t=n,o}}function f(n,i,u){try{n(i,u)}catch(n){return t=n,o}}function c(t){if('object'!=typeof this)throw new TypeError('Promises must be constructed via new');if('function'!=typeof t)throw new TypeError('Promise constructor\'s argument is not a function');this._40=0,this._65=0,this._55=null,this._72=null,t!==n&&y(t,this)}function _(t,o,i){return new t.constructor(function(u,f){var _=new c(n);_.then(u,f),s(t,new v(o,i,_))})}function s(n,t){for(;3===n._65;)n=n._55;if(c._37&&c._37(n),0===n._65)return 0===n._40?(n._40=1,void(n._72=t)):1===n._40?(n._40=2,void(n._72=[n._72,t])):void n._72.push(t);l(n,t)}function l(n,i){setImmediate(function(){var f=1===n._65?i.onFulfilled:i.onRejected;if(null!==f){var c=u(f,n._55);c===o?p(i.promise,t):h(i.promise,c)}else 1===n._65?h(i.promise,n._55):p(i.promise,n._55)})}function h(n,u){if(u===n)return p(n,new TypeError('A promise cannot be resolved with itself.'));if(u&&('object'==typeof u||'function'==typeof u)){var f=i(u);if(f===o)return p(n,t);if(f===n.then&&u instanceof c)return n._65=3,n._55=u,void a(n);if('function'==typeof f)return void y(f.bind(u),n)}n._65=1,n._55=u,a(n)}function p(n,t){n._65=2,n._55=t,c._87&&c._87(n,t),a(n)}function a(n){if(1===n._40&&(s(n,n._72),n._72=null),2===n._40){for(var t=0;t<n._72.length;t++)s(n,n._72[t]);n._72=null}}function v(n,t,o){this.onFulfilled='function'==typeof n?n:null,this.onRejected='function'==typeof t?t:null,this.promise=o}function y(n,i){var u=!1,c=f(n,function(n){u||(u=!0,h(i,n))},function(n){u||(u=!0,p(i,n))});u||c!==o||(u=!0,p(i,t))}m.exports=c,c._37=null,c._87=null,c._61=n,c.prototype.then=function(t,o){if(this.constructor!==c)return _(this,t,o);var i=new c(n);return s(this,new v(t,o,i)),i}},65,[]);
72
72
  __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t,t.prototype.done=function(t,n){(arguments.length?this.then.apply(this,arguments):this).then(null,function(t){setTimeout(function(){throw t},0)})}},66,[65]);
73
73
  __d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n,n.prototype.finally=function(t){return this.then(function(o){return n.resolve(t()).then(function(){return o})},function(o){return n.resolve(t()).then(function(){throw o})})}},67,[65]);
74
74
  __d(function(g,r,i,a,m,e,d){'use strict';var t,n=r(d[0]),o=r(d[1]).polyfillGlobal,c=r(d[2]).hasNativeConstructor;try{t=c(n.mark(function t(){return n.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)}),'GeneratorFunction')}catch(n){t=!1}t||o('regeneratorRuntime',function(){return delete g.regeneratorRuntime,r(d[3])})},68,[69,62,71,70]);
@@ -1051,7 +1051,7 @@ __d(function(g,r,i,a,m,e,d){var t=r(d[0]).default;function n(t){if("function"!=t
1051
1051
  __d(function(g,r,i,a,m,e,d){"use strict";e.__esModule=!0,e.useInfiniteQuery=function(t,f,y){var Q=(0,n.parseQueryArgs)(t,f,y);return(0,s.useBaseQuery)(Q,u.InfiniteQueryObserver)};var u=r(d[0]),n=r(d[1]),s=r(d[2])},1045,[1026,1014,1042]);
1052
1052
  __d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);e.__esModule=!0,e.useHydrate=s,e.Hydrate=void 0;var u=t(r(d[1])),n=r(d[2]),o=r(d[3]);function s(t,s){var c=(0,o.useQueryClient)(),f=u.default.useRef(s);f.current=s,u.default.useMemo(function(){t&&(0,n.hydrate)(c,t,f.current)},[c,t])}e.Hydrate=function(t){var u=t.children,n=t.options;return s(t.state,n),u}},1046,[6,166,1009,1035]);
1053
1053
  __d(function(g,r,i,a,m,e,d){"use strict"},1047,[]);
1054
- __d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.prefetchBranchesForApp=function(t,n,i){return O.queryClient.prefetchInfiniteQuery(['branches',t,i],function(u){var o=u.pageParam,p=void 0===o?1:o;return M({page:p,appId:t,runtimeVersion:n,pageSize:i})})},e.primeCacheWithBranch=$,e.resetBranchQueries=function(){return O.queryClient.resetQueries(['branches'])},e.useBranchesForApp=function(t,n){var i,u,o,s,f,h,P=(0,y.useBuildInfo)().runtimeVersion,I=(0,v.useToastStack)(),w=(0,O.useQueryOptions)().queryOptions,S=null!=t&&n,$=(0,l.useInfiniteQuery)(['branches',t,w.pageSize],function(n){var i=n.pageParam;return M({appId:t,page:i,runtimeVersion:P,pageSize:w.pageSize})},{retry:3,refetchOnMount:!1,enabled:!!S,getNextPageParam:function(t,n){if(!(t.branches.length<w.pageSize))return(null==t?void 0:t.page)+1}});c.useEffect(function(){if($.error&&n){var t=0===I.getItems().filter(function(t){return'pushing'===t.status||'settled'===t.status}).length,i=$.error.message;t&&I.push(function(){return(0,j.jsx)(b.Toasts.Error,{children:(0,j.jsx)(p.Text,{color:"error",size:"small",children:i||"Something went wrong trying to fetch branches for this app"})})})}},[$.error,n]);var V=null!=(i=null==(u=$.data)?void 0:u.pages.flatMap(function(t){return t.branches}).filter(function(t){return t.updates.length>0}))?i:[],D=null!=(o=null==$?void 0:null==(s=$.data)?void 0:s.pages.flatMap(function(t){return t.incompatibleBranches}))?o:[],q=null!=(f=null==$?void 0:null==(h=$.data)?void 0:h.pages[0].branches.filter(function(t){return 0===t.updates.length}))?f:[];return B(B({},$),{},{data:V,emptyBranches:q,incompatibleBranches:D,isRefreshing:$.isRefetching&&!$.isFetchingNextPage,isFetchingNextPage:!$.isLoading&&$.isFetchingNextPage})};var n,i=t(r(d[1])),u=t(r(d[2])),o=t(r(d[3])),p=r(d[4]),s=r(d[5]),c=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=I(n);if(i&&i.has(t))return i.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var s=o?Object.getOwnPropertyDescriptor(t,p):null;s&&(s.get||s.set)?Object.defineProperty(u,p,s):u[p]=t[p]}u.default=t,i&&i.set(t,u);return u})(r(d[6])),f=r(d[7]),l=r(d[8]),h=r(d[9]),b=r(d[10]),y=r(d[11]),O=r(d[12]),v=r(d[13]),P=r(d[14]),j=r(d[15]);function I(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,i=new WeakMap;return(I=function(t){return t?i:n})(t)}function w(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);n&&(u=u.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,u)}return i}function B(t){for(var n=1;n<arguments.length;n++){var u=null!=arguments[n]?arguments[n]:{};n%2?w(Object(u),!0).forEach(function(n){(0,i.default)(t,n,u[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(u)):w(Object(u)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(u,n))})}return t}var S=(0,s.gql)(n||(n=(0,u.default)(["\n query getBranches(\n $appId: String!\n $offset: Int!\n $limit: Int!\n $runtimeVersion: String!\n $platform: AppPlatform!\n ) {\n app {\n byId(appId: $appId) {\n updateBranches(offset: $offset, limit: $limit) {\n id\n name\n\n compatibleUpdates: updates(\n offset: 0\n limit: 1\n filter: { runtimeVersions: [$runtimeVersion], platform: $platform }\n ) {\n id\n }\n\n updates: updates(offset: 0, limit: $limit, filter: { platform: $platform }) {\n id\n message\n runtimeVersion\n createdAt\n manifestPermalink\n }\n }\n }\n }\n }\n"])));function M(t){var n=t.appId,i=t.page,u=void 0===i?1:i,p=t.runtimeVersion,s=t.pageSize;if(''!==n){var c={appId:n,offset:(u-1)*s,limit:s,runtimeVersion:p,platform:f.Platform.OS.toUpperCase()},l=[],b=[];return h.apiClient.request(S,c).then(function(t){return t.app.byId.updateBranches.forEach(function(t){var i={id:t.id,name:t.name,updates:t.updates.map(function(t){return B(B({},t),{},{createdAt:(0,o.default)(new Date(t.createdAt),'MMMM d, yyyy, h:mma')})})};0===t.updates.length||t.compatibleUpdates.length>0?l.push(i):b.push(i),$(n,i),(0,P.primeCacheWithUpdates)(n,i.name,i.updates)}),{branches:l,incompatibleBranches:b,page:u}})}return{branches:[],incompatibleBranches:[],page:1}}function $(t,n){return O.queryClient.setQueryData(['branches',t,n.name],n)}},1048,[6,32,1049,1050,612,1083,166,2,1008,1101,1103,1104,1007,1105,1107,184]);
1054
+ __d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.prefetchBranchesForApp=function(t,n,i){return O.queryClient.prefetchInfiniteQuery(['branches',t,i],function(u){var o=u.pageParam,s=void 0===o?1:o;return $({page:s,appId:t,runtimeVersion:n,pageSize:i})})},e.primeCacheWithBranch=x,e.resetBranchQueries=function(){return O.queryClient.resetQueries(['branches'])},e.useBranchesForApp=function(t,n){var i,u,o,s,c,f,b=(0,v.useBuildInfo)().runtimeVersion,j=(0,P.useToastStack)(),I=(0,O.useQueryOptions)().queryOptions,B=null!=t&&n,M=(0,h.useInfiniteQuery)(['branches',t,I.pageSize],function(n){var i=n.pageParam;return $({appId:t,page:i,runtimeVersion:b,pageSize:I.pageSize})},{retry:3,refetchOnMount:!1,enabled:!!B,getNextPageParam:function(t){var n=t.incompatibleBranches.length+t.branches.length;if(!(n<I.pageSize))return(null==t?void 0:t.page)+1}});l.useEffect(function(){if(M.error&&n){var t=0===j.getItems().filter(function(t){return'pushing'===t.status||'settled'===t.status}).length,i=M.error.message;t&&j.push(function(){return(0,w.jsx)(y.Toasts.Error,{children:(0,w.jsx)(p.Text,{color:"error",size:"small",children:i||"Something went wrong trying to fetch branches for this app"})})})}},[M.error,n]);var x=null!=(i=null==(u=M.data)?void 0:u.pages.flatMap(function(t){return t.branches}).filter(function(t){return t.updates.length>0}))?i:[],V=null!=(o=null==M?void 0:null==(s=M.data)?void 0:s.pages.flatMap(function(t){return t.incompatibleBranches}))?o:[],D=null!=(c=null==M?void 0:null==(f=M.data)?void 0:f.pages[0].branches.filter(function(t){return 0===t.updates.length}))?c:[];return S(S({},M),{},{data:x,emptyBranches:D,incompatibleBranches:V,isRefreshing:M.isRefetching&&!M.isFetchingNextPage,isFetchingNextPage:!M.isLoading&&M.isFetchingNextPage})};var n,i=t(r(d[1])),u=t(r(d[2])),o=t(r(d[3])),s=t(r(d[4])),p=r(d[5]),c=r(d[6]),l=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=I(n);if(i&&i.has(t))return i.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var p=o?Object.getOwnPropertyDescriptor(t,s):null;p&&(p.get||p.set)?Object.defineProperty(u,s,p):u[s]=t[s]}u.default=t,i&&i.set(t,u);return u})(r(d[7])),f=r(d[8]),h=r(d[9]),b=r(d[10]),y=r(d[11]),v=r(d[12]),O=r(d[13]),P=r(d[14]),j=r(d[15]),w=r(d[16]);function I(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,i=new WeakMap;return(I=function(t){return t?i:n})(t)}function B(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);n&&(u=u.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,u)}return i}function S(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?B(Object(i),!0).forEach(function(n){(0,u.default)(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}var M=(0,c.gql)(n||(n=(0,o.default)(["\n query getBranches(\n $appId: String!\n $offset: Int!\n $limit: Int!\n $runtimeVersion: String!\n $platform: AppPlatform!\n ) {\n app {\n byId(appId: $appId) {\n updateBranches(offset: $offset, limit: $limit) {\n id\n name\n\n compatibleUpdates: updates(\n offset: 0\n limit: 1\n filter: { runtimeVersions: [$runtimeVersion], platform: $platform }\n ) {\n id\n }\n\n updates: updates(offset: 0, limit: $limit, filter: { platform: $platform }) {\n id\n message\n runtimeVersion\n createdAt\n manifestPermalink\n }\n }\n }\n }\n }\n"])));function $(t){var n,u,o,p,c,l,h,y;return i.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:if(n=t.appId,u=t.page,o=void 0===u?1:u,p=t.runtimeVersion,c=t.pageSize,''===n){i.next=7;break}return l={appId:n,offset:(o-1)*c,limit:c,runtimeVersion:p,platform:f.Platform.OS.toUpperCase()},h=[],y=[],i.abrupt("return",b.apiClient.request(M,l).then(function(t){return t.app.byId.updateBranches.forEach(function(t){var i={id:t.id,name:t.name,updates:t.updates.map(function(t){return S(S({},t),{},{createdAt:(0,s.default)(new Date(t.createdAt),'MMMM d, yyyy, h:mma')})})};0===t.updates.length||t.compatibleUpdates.length>0?h.push(i):y.push(i),x(n,i),(0,j.primeCacheWithUpdates)(n,i.name,i.updates)}),{branches:h,incompatibleBranches:y,page:o}}));case 7:return i.abrupt("return",{branches:[],incompatibleBranches:[],page:1});case 8:case"end":return i.stop()}},null,null,null,Promise)}function x(t,n){return O.queryClient.setQueryData(['branches',t,n.name],n)}},1048,[6,69,32,1049,1050,612,1083,166,2,1008,1101,1103,1104,1007,1105,1107,184]);
1055
1055
  __d(function(g,r,i,a,m,e,d){m.exports=function(t,o){return o||(o=t.slice(0)),t.raw=o,t},m.exports.__esModule=!0,m.exports.default=m.exports},1049,[]);
1056
1056
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(k,O,P){(0,p.default)(2,arguments);var W=String(O),_=P||{},b=_.locale||n.default,R=b.options&&b.options.firstWeekContainsDate,S=null==R?1:(0,w.default)(R),C=null==_.firstWeekContainsDate?S:(0,w.default)(_.firstWeekContainsDate);if(!(C>=1&&C<=7))throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');var Y=b.options&&b.options.weekStartsOn,z=null==Y?0:(0,w.default)(Y),L=null==_.weekStartsOn?z:(0,w.default)(_.weekStartsOn);if(!(L>=0&&L<=6))throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');if(!b.localize)throw new RangeError('locale must contain localize property');if(!b.formatLong)throw new RangeError('locale must contain formatLong property');var T=(0,l.default)(k);if(!(0,t.default)(T))throw new RangeError('Invalid time value');var j=(0,s.default)(T),A=(0,o.default)(T,j),M={firstWeekContainsDate:C,weekStartsOn:L,locale:b,_originalDate:T};return W.match(v).map(function(t){var n=t[0];if('p'===n||'P'===n){var o=f.default[n];return o(t,b.formatLong,M)}return t}).join('').match(h).map(function(t){if("''"===t)return"'";var n=t[0];if("'"===n)return t.match(D)[1].replace(y,"'");var o=u.default[n];if(o)return!_.useAdditionalWeekYearTokens&&(0,c.isProtectedWeekYearToken)(t)&&(0,c.throwProtectedError)(t,O,k),!_.useAdditionalDayOfYearTokens&&(0,c.isProtectedDayOfYearToken)(t)&&(0,c.throwProtectedError)(t,O,k),o(A,t,b.localize,M);if(n.match(E))throw new RangeError('Format string contains an unescaped latin alphabet character `'+n+'`');return t}).join('')};var t=k(r(d[0])),n=k(r(d[1])),o=k(r(d[2])),l=k(r(d[3])),u=k(r(d[4])),f=k(r(d[5])),s=k(r(d[6])),c=r(d[7]),w=k(r(d[8])),p=k(r(d[9]));function k(t){return t&&t.__esModule?t:{default:t}}var h=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,D=/^'([^]*?)'?$/,y=/''/g,E=/[a-zA-Z]/;m.exports=e.default},1050,[1051,1055,1065,1054,1068,1080,1081,1082,1066,1053]);
1057
1057
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){if((0,f.default)(1,arguments),!(0,t.default)(n)&&'number'!=typeof n)return!1;var l=(0,u.default)(n);return!isNaN(Number(l))};var t=n(r(d[0])),u=n(r(d[1])),f=n(r(d[2]));function n(t){return t&&t.__esModule?t:{default:t}}m.exports=e.default},1051,[1052,1054,1053]);
@@ -1141,7 +1141,7 @@ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.E
1141
1141
  __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.BranchesScreen=function(j){var w=j.navigation,y=(0,h.useUpdatesConfig)().appId,B=(0,p.useUser)().isAuthenticated,P=(0,f.useBranchesForApp)(y,B),V=P.data,L=P.emptyBranches,z=P.incompatibleBranches,O=P.isLoading,M=P.isRefreshing,R=P.isFetchingNextPage,S=P.fetchNextPage,F=P.hasNextPage,U=P.refetch,E=(0,u.useOnUpdatePress)(),I=E.loadingUpdateId,T=E.onUpdatePress;return(0,x.jsx)(n.View,{flex:"1",px:"medium",children:(0,x.jsx)(o.FlatList,{isLoading:O,isRefreshing:M,onRefresh:function(){return U()},ListHeaderComponent:function(){if(V.length>0)return(0,x.jsx)(n.View,{py:"small",px:"small",children:(0,x.jsx)(n.Heading,{size:"small",color:"secondary",children:"Branches"})});return null},extraData:{length:V.length,hasNextPage:F,loadingUpdateId:I},data:V,ItemSeparatorComponent:n.Divider,renderItem:function(n){var t,l=n.index,o=n.item,c=0===l,u=l===(null==V?void 0:V.length)-1,h=I===(null==(t=o.updates[0])?void 0:t.id);return(0,x.jsx)(s.EASBranchRow,{branch:o,isFirst:c,isLast:u,isLoading:h,navigation:w,onUpdatePress:T})},keyExtractor:function(n){return null==n?void 0:n.id},ListFooterComponent:function(){var s=(0,c.getRecentRuntime)(z);return(0,x.jsxs)(n.View,{children:[V.length>0&&F&&(0,x.jsx)(n.View,{align:"centered",mt:"small",children:(0,x.jsx)(t.BasicButton,{label:"Load More",size:"small",isLoading:R,onPress:function(){return S()}})}),(0,x.jsx)(v,{branches:L,navigation:w}),0===V.length&&F&&(0,x.jsx)(n.View,{align:"centered",mt:"small",children:(0,x.jsx)(t.BasicButton,{label:"Load More",size:"small",isLoading:R,onPress:function(){return S()}})}),z.length>0&&(0,x.jsxs)(n.View,{px:"small",mt:"medium",children:[(0,x.jsx)(n.Text,{size:"small",color:"secondary",children:b(z.length)}),Boolean(null!=s)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n.Spacer.Vertical,{size:"small"}),(0,x.jsx)(n.Text,{size:"small",color:"secondary",children:"A recent update was published with runtime version \""+s+"\"."})]})]})]})},ListEmptyComponent:function(){if(0===L.length)return(0,x.jsxs)(n.View,{children:[(0,x.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,x.jsx)(l.EmptyBranchesMessage,{branches:V,incompatibleBranches:z})]});return null}})})},e.getIncompatibleBranchMessage=b;var n=r(d[0]),t=((function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=j(t);if(s&&s.has(n))return s.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,s&&s.set(n,l)})(r(d[1])),r(d[2])),s=r(d[3]),l=r(d[4]),o=r(d[5]),c=r(d[6]),u=r(d[7]),h=r(d[8]),p=r(d[9]),f=r(d[10]),x=r(d[11]);function j(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(j=function(n){return n?s:t})(n)}function v(t){var l=t.branches,o=t.navigation;return 0===l.length?null:(0,x.jsxs)(n.View,{children:[(0,x.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,x.jsx)(n.View,{py:"small",px:"small",children:(0,x.jsx)(n.Heading,{size:"small",color:"secondary",children:"Recently created branches"})}),l.slice(0,3).map(function(t,l,c){var u=0===l,h=l===(null==c?void 0:c.length)-1;return(0,x.jsxs)(n.View,{children:[(0,x.jsx)(s.EASEmptyBranchRow,{branch:t,isFirst:u,isLast:h,navigation:o}),!h&&(0,x.jsx)(n.Divider,{})]},t.id)}),(0,x.jsx)(n.Spacer.Vertical,{size:"small"})]})}function b(n){return 1===n?"There is 1 branch that is not compatible with this development build. To preview it, download or build a development client that matches its runtime version.":"There are "+n+" branches that are not compatible with this development build. To preview them, download or build a development client that matches their runtime version."}},1135,[612,166,1136,1138,1140,1142,1141,1144,1108,1119,1048,184]);
1142
1142
  __d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.BasicButton=function(t){var n=t.label,p=t.type,f=void 0===p?'tertiary':p,O=t.size,b=void 0===O?'medium':O,h=t.children,w=t.isLoading,v=(0,i.default)(t,u);return(0,s.jsx)(o.View,{align:"start",children:(0,s.jsxs)(o.View,{children:[(0,s.jsx)(o.View,{opacity:w?'0.5':'1',children:(0,s.jsx)(o.Button.ScaleOnPressContainer,y(y({bg:f},v),{},{children:(0,s.jsx)(o.View,y(y({},j[b]),{},{children:(0,s.jsxs)(o.Row,{align:"center",style:{minHeight:o.scale.large},children:[(0,s.jsx)(o.Button.Text,{weight:"medium",color:f,size:b,children:n}),h]})}))}))}),w&&(0,s.jsx)(o.View,{style:y(y({},c.StyleSheet.absoluteFillObject),{},{justifyContent:'center',alignItems:'center'}),children:(0,s.jsx)(l.ActivityIndicator,{size:"small"})})]})})};var n=t(r(d[1])),i=t(r(d[2])),o=r(d[3]),c=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=p(n);if(i&&i.has(t))return i.get(t);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var s=c?Object.getOwnPropertyDescriptor(t,l):null;s&&(s.get||s.set)?Object.defineProperty(o,l,s):o[l]=t[l]}o.default=t,i&&i.set(t,o)})(r(d[4])),r(d[5])),l=r(d[6]),s=r(d[7]),u=["label","type","size","children","isLoading"];function p(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,i=new WeakMap;return(p=function(t){return t?i:n})(t)}function f(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,o)}return i}function y(t){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?f(Object(o),!0).forEach(function(i){(0,n.default)(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var j={medium:{px:'3',py:'2'},small:{px:'2',py:'1'}}},1136,[6,32,99,612,166,2,1137,184]);
1143
1143
  __d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ActivityIndicator=function(t){var n=i.useRef(new u.Animated.Value(0));i.useEffect(function(){u.Animated.loop(u.Animated.sequence([u.Animated.timing(n.current,{toValue:1,duration:1e3,easing:u.Easing.linear,useNativeDriver:!0})])).start()},[]);var f=n.current.interpolate({inputRange:[0,1],outputRange:['0deg','360deg']});return(0,c.jsx)(u.Animated.View,{style:{position:'absolute',transform:[{rotateZ:f}]},children:(0,c.jsx)(o.LoadingIndicatorIcon,s({},t))})};var n=t(r(d[1])),o=r(d[2]),i=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=f(n);if(o&&o.has(t))return o.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=u?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(i,c,p):i[c]=t[c]}i.default=t,o&&o.set(t,i);return i})(r(d[3])),u=r(d[4]),c=r(d[5]);function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(f=function(t){return t?o:n})(t)}function p(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 s(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?p(Object(i),!0).forEach(function(o){(0,n.default)(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}},1137,[6,32,612,166,2,184]);
1144
- __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EASBranchRow=function(n){var p=n.branch,h=n.isFirst,z=n.isLast,f=n.isLoading,y=n.onUpdatePress,w=n.navigation,V=j(f),b=(0,s.useExpoPalette)(),v=(0,l.useUpdatesConfig)().runtimeVersion,S=p.name,R=p.updates[0],P=(null==R?void 0:R.runtimeVersion)===v;return(0,x.jsxs)(t.Animated.View,{style:V,children:[(0,x.jsxs)(u.ListButton,{isFirst:h,isLast:z,onPress:function(){w.navigate('Updates',{branchName:p.name})},children:[(0,x.jsxs)(s.Row,{children:[(0,x.jsxs)(s.Row,{style:{backgroundColor:b.blue[100]},py:"tiny",px:"1.5",rounded:"medium",align:"center",children:[(0,x.jsx)(s.BranchIcon,{style:{maxHeight:10,maxWidth:12,resizeMode:'contain'},resizeMethod:"scale"}),(0,x.jsx)(s.Spacer.Horizontal,{size:"tiny"}),(0,x.jsx)(s.Text,{size:"small",children:"Branch: "+S})]}),(0,x.jsx)(s.View,{style:{position:'absolute',right:0,top:s.scale.tiny},children:(0,x.jsx)(s.ChevronRightIcon,{})})]}),(0,x.jsx)(s.Spacer.Vertical,{size:"small"}),null!=R&&(0,x.jsxs)(s.Row,{children:[(0,x.jsxs)(s.View,{children:[(0,x.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,x.jsx)(s.UpdateIcon,{})]}),(0,x.jsx)(s.Spacer.Horizontal,{size:"small"}),(0,x.jsxs)(s.View,{flex:"1",shrink:"1",children:[(0,x.jsx)(s.Heading,{size:"small",numberOfLines:1,children:"Update \""+R.message+"\""}),(0,x.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,x.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,x.jsx)(s.Text,{size:"small",color:"secondary",children:"Published "+(null==R?void 0:R.createdAt)})]}),(0,x.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,x.jsx)(s.Spacer.Vertical,{size:"small"}),(0,x.jsx)(s.View,{align:"centered",opacity:P?'1':'0.5',children:(0,x.jsx)(c.BasicButton,{label:"Open",size:"small",onPress:function(){return y(R)}})})]}),(0,x.jsx)(s.Spacer.Vertical,{size:"small"})]}),f&&(0,x.jsx)(s.View,{inset:"full",align:"centered",children:(0,x.jsx)(o.ActivityIndicator,{})})]})},e.EASEmptyBranchRow=function(n){var t=n.branch,l=n.isFirst,o=n.isLast,c=n.navigation,p=(0,s.useExpoPalette)(),j=t.name;return(0,x.jsx)(u.ListButton,{isFirst:l,isLast:o,onPress:function(){c.navigate('Updates',{branchName:t.name})},children:(0,x.jsxs)(s.View,{children:[(0,x.jsxs)(s.Row,{children:[(0,x.jsxs)(s.Row,{style:{backgroundColor:p.blue[100]},py:"tiny",px:"1.5",rounded:"medium",align:"center",children:[(0,x.jsx)(s.BranchIcon,{style:{maxHeight:10,maxWidth:12,resizeMode:'contain'},resizeMethod:"scale"}),(0,x.jsx)(s.Spacer.Horizontal,{size:"tiny"}),(0,x.jsx)(s.Text,{size:"small",children:"Branch: "+j})]}),(0,x.jsx)(s.View,{style:{position:'absolute',right:0,top:s.scale.tiny},children:(0,x.jsx)(s.ChevronRightIcon,{})})]}),(0,x.jsx)(s.Spacer.Vertical,{size:"small"}),(0,x.jsxs)(s.Row,{children:[(0,x.jsxs)(s.View,{flex:"1",shrink:"1",children:[(0,x.jsx)(s.Heading,{size:"small",numberOfLines:1,color:"secondary",children:"No updates available."}),(0,x.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,x.jsx)(s.Spacer.Vertical,{size:"tiny"})]}),(0,x.jsx)(s.Spacer.Horizontal,{size:"large"})]})]})})},e.EASUpdateRow=function(n){var l=n.update,c=n.isFirst,p=n.isLast,h=n.isLoading,z=n.onPress,f=j(h);return(0,x.jsxs)(t.Animated.View,{style:f,children:[(0,x.jsx)(u.ListButton,{disabled:h,isFirst:c,isLast:p,onPress:z,children:(0,x.jsxs)(s.View,{children:[(0,x.jsx)(s.View,{style:{position:'absolute',right:0,top:s.scale.tiny},children:(0,x.jsx)(s.ChevronRightIcon,{})}),(0,x.jsx)(s.Spacer.Vertical,{size:"small"}),(0,x.jsxs)(s.Row,{children:[(0,x.jsxs)(s.View,{children:[(0,x.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,x.jsx)(s.UpdateIcon,{})]}),(0,x.jsx)(s.Spacer.Horizontal,{size:"small"}),(0,x.jsxs)(s.View,{flex:"1",shrink:"1",children:[(0,x.jsx)(s.Heading,{size:"small",numberOfLines:1,children:"Update \""+l.message+"\""}),(0,x.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,x.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,x.jsx)(s.Text,{size:"small",color:"secondary",children:"Published "+l.createdAt})]}),(0,x.jsx)(s.Spacer.Horizontal,{size:"large"})]}),(0,x.jsx)(s.Spacer.Vertical,{size:"small"})]})}),h&&(0,x.jsx)(s.View,{inset:"full",align:"centered",children:(0,x.jsx)(o.ActivityIndicator,{})})]})};var s=r(d[0]),n=(function(s,n){if(!n&&s&&s.__esModule)return s;if(null===s||"object"!=typeof s&&"function"!=typeof s)return{default:s};var t=p(n);if(t&&t.has(s))return t.get(s);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in s)if("default"!==c&&Object.prototype.hasOwnProperty.call(s,c)){var u=o?Object.getOwnPropertyDescriptor(s,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=s[c]}l.default=s,t&&t.set(s,l);return l})(r(d[1])),t=r(d[2]),l=r(d[3]),o=r(d[4]),c=r(d[5]),u=r(d[6]),x=r(d[7]);function p(s){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(p=function(s){return s?t:n})(s)}function j(){var s=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=n.useRef(new t.Animated.Value(0)).current;return n.useEffect(function(){t.Animated.spring(l,{toValue:s?1:0,useNativeDriver:!0}).start()},[s]),{opacity:l.interpolate({inputRange:[0,1],outputRange:[1,.7]}),transform:[{scale:l.interpolate({inputRange:[0,1],outputRange:[1,.975]})}]}}},1138,[612,166,2,1108,1137,1136,1139,184]);
1144
+ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EASBranchRow=function(n){var j=n.branch,h=n.isFirst,f=n.isLast,z=n.isLoading,y=n.onUpdatePress,w=n.navigation,V=p(z),b=(0,s.useExpoPalette)(),v=(0,l.useUpdatesConfig)().runtimeVersion,S=j.name,L=j.updates[0],R=(null==L?void 0:L.runtimeVersion)===v;return(0,u.jsxs)(t.Animated.View,{style:V,children:[(0,u.jsxs)(x.ListButton,{isFirst:h,isLast:f,onPress:function(){w.navigate('Updates',{branchName:j.name})},children:[(0,u.jsxs)(s.Row,{align:"center",children:[(0,u.jsxs)(s.Row,{shrink:"1",style:{backgroundColor:b.blue[100]},py:"tiny",px:"1.5",rounded:"medium",align:"center",children:[(0,u.jsx)(s.BranchIcon,{style:{maxHeight:10,maxWidth:12,resizeMode:'contain'},resizeMethod:"scale"}),(0,u.jsx)(s.Spacer.Horizontal,{size:"tiny"}),(0,u.jsx)(s.View,{shrink:"1",children:(0,u.jsx)(s.Text,{size:"small",numberOfLines:1,children:"Branch: "+S})})]}),(0,u.jsx)(s.Spacer.Horizontal,{}),(0,u.jsx)(s.View,{style:{paddingLeft:s.scale.small},children:(0,u.jsx)(s.ChevronRightIcon,{})})]}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"}),null!=L&&(0,u.jsxs)(s.Row,{children:[(0,u.jsxs)(s.View,{children:[(0,u.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,u.jsx)(s.UpdateIcon,{})]}),(0,u.jsx)(s.Spacer.Horizontal,{size:"small"}),(0,u.jsxs)(s.View,{flex:"1",shrink:"1",children:[(0,u.jsx)(s.Heading,{size:"small",numberOfLines:1,children:"Update \""+L.message+"\""}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,u.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,u.jsx)(s.Text,{size:"small",color:"secondary",children:"Published "+(null==L?void 0:L.createdAt)})]}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"}),(0,u.jsx)(s.View,{align:"centered",opacity:R?'1':'0.5',children:(0,u.jsx)(o.BasicButton,{label:"Open",size:"small",onPress:function(){return y(L)}})})]}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"})]}),z&&(0,u.jsx)(s.View,{inset:"full",align:"centered",children:(0,u.jsx)(c.ActivityIndicator,{})})]})},e.EASEmptyBranchRow=function(n){var t=n.branch,l=n.isFirst,c=n.isLast,o=n.navigation,j=(0,s.useExpoPalette)(),p=t.name;return(0,u.jsx)(x.ListButton,{isFirst:l,isLast:c,onPress:function(){o.navigate('Updates',{branchName:t.name})},children:(0,u.jsxs)(s.View,{children:[(0,u.jsxs)(s.Row,{align:"center",children:[(0,u.jsxs)(s.Row,{shrink:"1",style:{backgroundColor:j.blue[100]},py:"tiny",px:"1.5",rounded:"medium",align:"center",children:[(0,u.jsx)(s.BranchIcon,{style:{maxHeight:10,maxWidth:12,resizeMode:'contain'},resizeMethod:"scale"}),(0,u.jsx)(s.Spacer.Horizontal,{size:"tiny"}),(0,u.jsx)(s.View,{shrink:"1",children:(0,u.jsx)(s.Text,{size:"small",numberOfLines:1,children:"Branch: "+p})})]}),(0,u.jsx)(s.Spacer.Horizontal,{}),(0,u.jsx)(s.View,{style:{paddingLeft:s.scale.small},children:(0,u.jsx)(s.ChevronRightIcon,{})})]}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"}),(0,u.jsxs)(s.Row,{children:[(0,u.jsxs)(s.View,{flex:"1",shrink:"1",children:[(0,u.jsx)(s.Heading,{size:"small",numberOfLines:1,color:"secondary",children:"No updates available."}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,u.jsx)(s.Spacer.Vertical,{size:"tiny"})]}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"})]})]})})},e.EASUpdateRow=function(n){var l=n.update,o=n.isFirst,j=n.isLast,h=n.isLoading,f=n.onPress,z=p(h);return(0,u.jsxs)(t.Animated.View,{style:z,children:[(0,u.jsx)(x.ListButton,{disabled:h,isFirst:o,isLast:j,onPress:f,children:(0,u.jsxs)(s.View,{children:[(0,u.jsx)(s.View,{style:{position:'absolute',right:0,top:s.scale.tiny},children:(0,u.jsx)(s.ChevronRightIcon,{})}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"}),(0,u.jsxs)(s.Row,{children:[(0,u.jsxs)(s.View,{children:[(0,u.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,u.jsx)(s.UpdateIcon,{})]}),(0,u.jsx)(s.Spacer.Horizontal,{size:"small"}),(0,u.jsxs)(s.View,{flex:"1",shrink:"1",children:[(0,u.jsx)(s.Heading,{size:"small",numberOfLines:1,children:"Update \""+l.message+"\""}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,u.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,u.jsx)(s.Text,{size:"small",color:"secondary",children:"Published "+l.createdAt})]}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"})]}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"})]})}),h&&(0,u.jsx)(s.View,{inset:"full",align:"centered",children:(0,u.jsx)(c.ActivityIndicator,{})})]})};var s=r(d[0]),n=(function(s,n){if(!n&&s&&s.__esModule)return s;if(null===s||"object"!=typeof s&&"function"!=typeof s)return{default:s};var t=j(n);if(t&&t.has(s))return t.get(s);var l={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in s)if("default"!==o&&Object.prototype.hasOwnProperty.call(s,o)){var x=c?Object.getOwnPropertyDescriptor(s,o):null;x&&(x.get||x.set)?Object.defineProperty(l,o,x):l[o]=s[o]}l.default=s,t&&t.set(s,l);return l})(r(d[1])),t=r(d[2]),l=r(d[3]),c=r(d[4]),o=r(d[5]),x=r(d[6]),u=r(d[7]);function j(s){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(j=function(s){return s?t:n})(s)}function p(){var s=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=n.useRef(new t.Animated.Value(0)).current;return n.useEffect(function(){t.Animated.spring(l,{toValue:s?1:0,useNativeDriver:!0}).start()},[s]),{opacity:l.interpolate({inputRange:[0,1],outputRange:[1,.7]}),transform:[{scale:l.interpolate({inputRange:[0,1],outputRange:[1,.975]})}]}}},1138,[612,166,2,1108,1137,1136,1139,184]);
1145
1145
  __d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ListButton=function(t){var n=t.children,s=t.onPress,l=t.isFirst,p=t.isLast,O=(0,o.default)(t,u);return(0,c.jsx)(i.Button.ScaleOnPressContainer,f(f({bg:"default",onPress:s,roundedBottom:p?'large':'none',roundedTop:l?'large':'none'},O),{},{children:(0,c.jsx)(i.View,{bg:"default",roundedTop:l?'large':'none',roundedBottom:p?'large':'none',py:"small",px:"small",children:n})}))};var n=t(r(d[1])),o=t(r(d[2])),i=r(d[3]),c=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=s(n);if(o&&o.has(t))return o.get(t);var i={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var l=c?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(i,u,l):i[u]=t[u]}i.default=t,o&&o.set(t,i)})(r(d[4])),r(d[5])),u=["children","onPress","isFirst","isLast"];function s(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(s=function(t){return t?o:n})(t)}function l(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 f(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?l(Object(i),!0).forEach(function(o){(0,n.default)(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}},1139,[6,32,99,612,166,184]);
1146
1146
  __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyBranchesMessage=function(h){var x=h.branches,j=void 0===x?[]:x,b=h.incompatibleBranches,w=void 0===b?[]:b,y=(0,c.useUpdatesConfig)().runtimeVersion,v=(0,o.useBuildInfo)().appName,V=(0,u.useUser)().selectedAccount;if(0===j.length&&w.length>0){var O=(0,l.getRecentRuntime)(w);return(0,p.jsx)(t.View,{padding:"medium",rounded:"large",bg:"default",children:(0,p.jsxs)(t.View,{children:[(0,p.jsx)(t.Heading,{children:"There are no branches compatible with this development build."}),(0,p.jsx)(t.Spacer.Vertical,{size:"small"}),(0,p.jsx)(t.Text,{color:"secondary",size:"small",children:f(w.length)}),(0,p.jsx)(t.Spacer.Vertical,{size:"small"}),(0,p.jsx)(t.Text,{color:"secondary",size:"small",children:"The runtime version of this development build is \""+y+"\"."}),(0,p.jsx)(t.Spacer.Vertical,{size:"small"}),(0,p.jsx)(t.Text,{color:"secondary",size:"small",children:Boolean(null!=O)&&"A recent update was published with the runtime version \""+O+"\"."}),(0,p.jsx)(t.Spacer.Vertical,{size:"large"}),(0,p.jsx)(t.View,{align:"centered",children:(0,p.jsx)(t.Button.ScaleOnPressContainer,{bg:"tertiary",onPress:function(){return n.Linking.openURL(s.websiteOrigin+"/accounts/"+V.name+"/projects/"+v+"/builds")},children:(0,p.jsx)(t.View,{px:"2.5",py:"2",children:(0,p.jsx)(t.Button.Text,{weight:"medium",color:"tertiary",children:"See Development Builds"})})})})]})})}return(0,p.jsx)(t.View,{padding:"medium",rounded:"large",bg:"default",children:(0,p.jsx)(t.View,{children:(0,p.jsxs)(t.View,{children:[(0,p.jsx)(t.Heading,{children:"This app has no published updates yet."}),(0,p.jsx)(t.Spacer.Vertical,{size:"small"}),(0,p.jsx)(t.Spacer.Vertical,{size:"small"}),(0,p.jsx)(t.Text,{color:"secondary",size:"small",children:"Updates allow you to deliver code directly to your users."}),(0,p.jsx)(t.View,{py:"medium",align:"centered",children:(0,p.jsx)(t.Button.ScaleOnPressContainer,{bg:"tertiary",onPress:function(){return n.Linking.openURL("https://docs.expo.dev/eas-update/how-eas-update-works/")},children:(0,p.jsx)(t.View,{px:"2.5",py:"2",children:(0,p.jsx)(t.Button.Text,{weight:"medium",color:"tertiary",children:"Publish an update"})})})})]})})})},e.getCompatibleBranchMessage=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 s=h(n);if(s&&s.has(t))return s.get(t);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var u=o?Object.getOwnPropertyDescriptor(t,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=t[c]}l.default=t,s&&s.set(t,l)})(r(d[1])),r(d[2])),s=r(d[3]),l=r(d[4]),o=r(d[5]),c=r(d[6]),u=r(d[7]),p=r(d[8]);function h(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,s=new WeakMap;return(h=function(t){return t?s:n})(t)}function f(t){return 1===t?"However, there is a branch that is compatible with a different runtime version. You may need to publish a new update or install a new development build.":"However, there are "+t+" branches that are compatible with a different runtime version. You may need to publish a new update or install a new development build."}},1140,[612,166,2,1101,1141,1104,1108,1119,184]);
1147
1147
  __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getRecentRuntime=function(n){var t,u,l=n.find(function(n){return n.updates.length>0});return null!=(t=null==l?void 0:null==(u=l.updates)?void 0:u[0].runtimeVersion)?t:''}},1141,[]);
@@ -1151,7 +1151,7 @@ __d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",
1151
1151
  __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsScreen=function(c){var u=c.navigation,x=(0,f.useUser)().isAuthenticated,p=(0,f.useUserActions)(),b=(0,j.useUpdatesConfig)(),V=b.usesEASUpdates,S=b.appId,z=(0,y.useBranchesForApp)(S,x),L=z.isLoading,B=z.error,P=z.data,U=z.emptyBranches,R=z.incompatibleBranches,E=z.isRefreshing,T=z.refetch,O=(0,h.useThrottle)(E,1e3);var A=[],k=null!=B&&!L;V&&!k&&A.push('EASUpdates');return(0,w.jsxs)(n.View,{children:[(0,w.jsx)(o.AppHeader,{navigation:u}),(0,w.jsx)(t.ScrollView,{contentContainerStyle:{paddingBottom:n.scale[48]},refreshControl:null!=S?(0,w.jsx)(s.RefreshControl,{refreshing:O,onRefresh:function(){return T()}}):null,children:(0,w.jsxs)(n.View,{flex:"1",children:[0===A.length&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,w.jsxs)(n.View,{bg:"default",mx:"medium",py:"medium",px:"medium",rounded:"medium",children:[(0,w.jsx)(n.View,{align:"centered",children:(0,w.jsx)(n.ExtensionsIcon,{})}),(0,w.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,w.jsxs)(n.View,{px:"small",children:[(0,w.jsxs)(n.Text,{size:"small",align:"center",children:["Extensions allow you to customize your development build with additional capabilities.",' ',(0,w.jsx)(n.Text,{size:"small",style:{textDecorationLine:'underline'},onPress:function(){return s.Linking.openURL("https://docs.expo.dev/development/extensions/")},accessibilityRole:"link",children:"Learn more."})]}),(0,w.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,w.jsxs)(n.Text,{size:"small",align:"center",children:["If you would like to extend the display on this screen",' ',(0,w.jsx)(n.Text,{size:"small",style:{textDecorationLine:'underline'},onPress:function(){return s.Linking.openURL("https://expo.canny.io/feature-requests")},accessibilityRole:"link",children:"let us know about your use case"})]})]})]})]}),V&&x&&!k&&(0,w.jsxs)(n.View,{children:[(0,w.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,w.jsx)(v,{navigation:u,isLoading:L,branches:P,emptyBranches:U,incompatibleBranches:R}),(0,w.jsx)(n.Spacer.Vertical,{size:"medium"})]}),V&&!x&&(0,w.jsxs)(n.View,{children:[(0,w.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,w.jsxs)(n.View,{mx:"medium",padding:"medium",bg:"default",rounded:"large",children:[(0,w.jsx)(n.Text,{color:"secondary",size:"small",children:"Log in or create an account to get started with Extensions"}),(0,w.jsx)(n.Spacer.Vertical,{size:"large"}),(0,w.jsxs)(n.View,{children:[(0,w.jsx)(n.Button.ScaleOnPressContainer,{bg:"tertiary",rounded:"medium",onPress:function(){p.login('login')},accessibilityLabel:"Log in",children:(0,w.jsx)(n.View,{py:"small",children:(0,w.jsx)(n.Button.Text,{color:"tertiary",weight:"semibold",align:"center",children:"Log In"})})}),(0,w.jsx)(n.Spacer.Vertical,{size:"small"}),(0,w.jsx)(n.Button.ScaleOnPressContainer,{bg:"secondary",rounded:"medium",onPress:function(){p.login('signup')},accessibilityLabel:"Sign Up",children:(0,w.jsx)(n.View,{py:"small",children:(0,w.jsx)(n.Button.Text,{color:"secondary",weight:"semibold",align:"center",children:"Sign Up"})})})]})]}),(0,w.jsx)(n.Spacer.Vertical,{size:"medium"})]}),A.length>0&&(0,w.jsx)(n.View,{px:"xl",children:(0,w.jsxs)(n.Text,{size:"small",color:"secondary",children:["Extensions allow you to customize your development build with additional capabilities.",' ',(0,w.jsx)(n.Text,{size:"small",style:{textDecorationLine:'underline'},onPress:function(){return s.Linking.openURL("https://docs.expo.dev/development/extensions/")},accessibilityRole:"link",children:"Learn more."})]})}),L&&x&&(0,w.jsx)(n.View,{mt:"medium",inset:"full",align:"centered",mx:"medium",rounded:"large",bg:"default",children:(0,w.jsx)(l.ActivityIndicator,{})})]})})]})};var n=r(d[0]),s=((function(n,s){if(!s&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=b(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)})(r(d[1])),r(d[2])),t=r(d[3]),l=r(d[4]),o=r(d[5]),c=r(d[6]),u=r(d[7]),x=r(d[8]),h=r(d[9]),p=r(d[10]),j=r(d[11]),f=r(d[12]),y=r(d[13]),w=r(d[14]);function b(n){if("function"!=typeof WeakMap)return null;var s=new WeakMap,t=new WeakMap;return(b=function(n){return n?t:s})(n)}function v(s){var t=s.navigation,l=(s.isLoading,s.branches),o=s.emptyBranches,h=s.incompatibleBranches,j=(0,p.useOnUpdatePress)(),f=j.loadingUpdateId,y=j.onUpdatePress;function b(){t.navigate('Branches')}var v=l.length+o.length;return 0===l.length&&o.length>0?(0,w.jsxs)(n.View,{mx:"medium",children:[(0,w.jsx)(n.View,{py:"small",px:"small",children:(0,w.jsx)(n.Heading,{size:"small",color:"secondary",children:"EAS Update"})}),o.slice(0,3).map(function(s,l,o){var u=0===l,x=l===(null==o?void 0:o.length)-1;return(0,w.jsxs)(n.View,{children:[(0,w.jsx)(c.EASEmptyBranchRow,{branch:s,isFirst:u,isLast:x,navigation:t}),!x&&(0,w.jsx)(n.Divider,{})]},s.id)}),o.length>1&&(0,w.jsx)(n.Button.ScaleOnPressContainer,{onPress:b,bg:"default",roundedTop:"none",roundedBottom:"large",children:(0,w.jsx)(n.View,{bg:"default",py:"small",px:"small",roundedTop:"none",roundedBottom:"large",children:(0,w.jsxs)(n.Row,{children:[(0,w.jsx)(n.Text,{size:"medium",children:"See all branches"}),(0,w.jsx)(n.Spacer.Horizontal,{}),(0,w.jsx)(n.ChevronRightIcon,{})]})})})]}):0===l.length?(0,w.jsxs)(n.View,{mx:"medium",children:[(0,w.jsx)(n.View,{px:"small",children:(0,w.jsx)(n.Heading,{size:"small",color:"secondary",children:"EAS Updates"})}),(0,w.jsx)(n.Spacer.Vertical,{size:"small"}),(0,w.jsx)(u.EmptyBranchesMessage,{branches:l,incompatibleBranches:h})]}):(0,w.jsx)(n.View,{children:(0,w.jsxs)(n.View,{mx:"medium",children:[(0,w.jsx)(n.View,{py:"small",px:"small",children:(0,w.jsx)(n.Heading,{size:"small",color:"secondary",children:"EAS Updates"})}),null==l?void 0:l.slice(0,2).map(function(s,l,o){var u,x=0===l,h=l===o.length-1&&v<=1,p=(null==(u=s.updates[0])?void 0:u.id)===f;return(0,w.jsxs)(n.View,{children:[(0,w.jsx)(c.EASBranchRow,{branch:s,isFirst:x,isLast:h,navigation:t,isLoading:p,onUpdatePress:y}),(0,w.jsx)(n.Divider,{})]},s.name)}),v>1&&(0,w.jsx)(x.ListButton,{onPress:b,isLast:!0,children:(0,w.jsxs)(n.Row,{children:[(0,w.jsx)(n.Text,{size:"medium",children:"See all branches"}),(0,w.jsx)(n.Spacer.Horizontal,{}),(0,w.jsx)(n.ChevronRightIcon,{})]})})]})})}},1145,[612,166,2,556,1137,1146,1138,1140,1139,1143,1144,1108,1119,1048,184]);
1152
1152
  __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.AppHeader=function(u){var c,f=u.navigation,p=(0,t.useBuildInfo)(),x=p.appName,j=p.appIcon,h=(0,s.useUser)(),w=h.userData,b=h.selectedAccount,v=null!=w,y=null==b?void 0:null==(c=b.owner)?void 0:c.profilePhoto;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(n.View,{bg:"default",pt:"small",pb:"small",children:[(0,o.jsx)(l.SafeAreaTop,{}),(0,o.jsxs)(n.Row,{align:"center",children:[(0,o.jsx)(n.Spacer.Horizontal,{size:"medium"}),(0,o.jsx)(n.View,{flex:"1",shrink:"1",children:(0,o.jsxs)(n.Row,{align:"center",children:[(0,o.jsx)(n.View,{height:"xl",width:"xl",rounded:"large",bg:"secondary",children:Boolean(j)&&(0,o.jsx)(n.Image,{size:"xl",rounded:"large",source:{uri:j}})}),(0,o.jsx)(n.Spacer.Horizontal,{size:"small"}),(0,o.jsxs)(n.View,{flex:"1",children:[(0,o.jsx)(n.Heading,{weight:"semibold",numberOfLines:1,children:x}),(0,o.jsx)(n.Text,{size:"small",color:"secondary",children:"Development Build"})]})]})}),(0,o.jsx)(n.View,{children:(0,o.jsx)(n.Button.ScaleOnPressContainer,{onPress:function(){f.navigate('User Profile')},minScale:.85,accessibilityLabel:"Navigate to User Profile",bg:"ghost",rounded:"full",children:(0,o.jsx)(n.View,{children:v?(0,o.jsx)(n.View,{rounded:"full",padding:"small",children:(0,o.jsx)(n.Image,{size:"xl",rounded:"full",source:{uri:y}})}):(0,o.jsx)(n.View,{mx:"small",children:(0,o.jsx)(n.View,{bg:"default",rounded:"full",padding:"tiny",children:(0,o.jsx)(n.UserIcon,{})})})})})})]})]}),(0,o.jsx)(n.Divider,{weight:"thin"})]})};var n=r(d[0]),l=((function(n,l){if(!l&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=u(l);if(t&&t.has(n))return t.get(n);var s={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var f=o?Object.getOwnPropertyDescriptor(n,c):null;f&&(f.get||f.set)?Object.defineProperty(s,c,f):s[c]=n[c]}s.default=n,t&&t.set(n,s)})(r(d[1])),r(d[2])),t=r(d[3]),s=r(d[4]),o=r(d[5]);function u(n){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(u=function(n){return n?t:l})(n)}},1146,[612,166,1147,1104,1119,184]);
1153
1153
  __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAreaTop=function(){var f=(0,n.useSafeAreaInsets)().top;return(0,o.jsx)(t.View,{style:{height: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 o=f(n);if(o&&o.has(t))return o.get(t);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=p?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=t[c]}u.default=t,o&&o.set(t,u)})(r(d[1])),r(d[2])),o=r(d[3]);function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(f=function(t){return t?o:n})(t)}},1147,[612,166,500,184]);
1154
- __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UpdatesScreen=function(n){var c=n.route,j=(0,f.useUpdatesConfig)().runtimeVersion,V=c.params.branchName,v=o.useState(!1),O=(0,t.default)(v,2),L=O[0],z=O[1],U=(0,w.useUpdatesForBranch)(V),C=U.data,R=U.isLoading,S=U.hasNextPage,B=U.fetchNextPage,k=U.refetch,F=U.isRefreshing,N=U.isFetchingNextPage;function T(){z(!0),B()}var A=(0,x.useOnUpdatePress)(),E=A.onUpdatePress,H=A.loadingUpdateId;return(0,y.jsxs)(s.View,{flex:"1",children:[(0,y.jsx)(b,{branchName:V,updates:C,onOpenPress:function(){return E(C[0])}}),(0,y.jsx)(p.FlatList,{isLoading:R,isRefreshing:F,onRefresh:function(){return k()},ListHeaderComponent:function(){if(0===C.length)return null;return(0,y.jsx)(s.View,{py:"small",px:"large",children:(0,y.jsx)(s.Heading,{size:"small",color:"secondary",children:"Updates"})})},data:C,extraData:{length:C.length,loadingUpdateId:H},renderItem:function(n){var t=n.index,o=n.item,l=0===t,c=t===C.length-1,u=o.runtimeVersion===j,p=o.id===H;return(0,y.jsxs)(s.View,{px:"medium",opacity:u?'1':'0.5',children:[(0,y.jsx)(h.EASUpdateRow,{update:o,isFirst:l,isLast:c,isLoading:p,onPress:function(){return E(o)}}),!c&&(0,y.jsx)(s.Divider,{})]})},keyExtractor:function(n){return n.id},ListFooterComponent:function(){if(S)return(0,y.jsx)(s.View,{align:"centered",mt:"large",children:(0,y.jsx)(u.BasicButton,{label:"Load More",isLoading:N,onPress:T,size:"small"})});if(C.length>0&&L)return(0,y.jsx)(P,{});return null},ListEmptyComponent:function(){return(0,y.jsx)(s.View,{mt:"large",mx:"medium",bg:"default",rounded:"large",padding:"medium",children:(0,y.jsxs)(s.View,{children:[(0,y.jsx)(s.Heading,{children:"There are no updates available for this branch."}),(0,y.jsx)(s.Spacer.Vertical,{size:"small"}),(0,y.jsx)(s.Text,{color:"secondary",size:"small",children:"Updates allow you to deliver code directly to your users."}),(0,y.jsx)(s.View,{py:"medium",align:"centered",children:(0,y.jsx)(s.Button.ScaleOnPressContainer,{bg:"tertiary",onPress:function(){l.Linking.openURL("https://docs.expo.dev/eas-update/how-eas-update-works/")},children:(0,y.jsx)(s.View,{px:"2.5",py:"2",children:(0,y.jsx)(s.Button.Text,{weight:"medium",color:"tertiary",children:"Publish an update"})})})})]})})}})]})};var t=n(r(d[1])),s=r(d[2]),o=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=V(t);if(s&&s.has(n))return s.get(n);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=l?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(o,c,u):o[c]=n[c]}o.default=n,s&&s.set(n,o);return o})(r(d[3])),l=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]),x=r(d[9]),f=r(d[10]),j=r(d[11]),w=r(d[12]),y=r(d[13]);function V(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(V=function(n){return n?s:t})(n)}function b(n){var t=n.branchName,o=n.updates,l=n.onOpenPress,c=(0,f.useUpdatesConfig)(),h=c.appId,p=c.runtimeVersion,x=(0,j.useChannelsForApp)(h).data,w=[];null==x||x.forEach(function(n){n.branches.includes(t)&&w.push(t)});var V=o.length>0,b=o[0],P=(null==b?void 0:b.runtimeVersion)===p;return(0,y.jsxs)(s.View,{bg:"default",px:"medium",py:"medium",children:[(0,y.jsxs)(s.Row,{align:"center",children:[(0,y.jsx)(s.View,{width:"8",children:(0,y.jsx)(s.BranchIcon,{})}),(0,y.jsx)(s.View,{children:(0,y.jsx)(s.Heading,{weight:"bold",children:t})}),(0,y.jsx)(s.Spacer.Horizontal,{}),V&&(0,y.jsx)(s.View,{opacity:P?'1':'0.75',children:(0,y.jsx)(u.BasicButton,{label:"Open Latest",onPress:l,size:"small"})})]}),w.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(s.Spacer.Vertical,{size:"medium"}),(0,y.jsx)(v,{channels:w})]})]})}function v(n){var t=n.channels,o=(0,s.useExpoPalette)();return 0===t.length?null:(0,y.jsx)(s.View,{children:(0,y.jsxs)(s.Row,{align:"center",children:[(0,y.jsxs)(s.Text,{size:"small",color:"secondary",children:["Available on:",' ']}),(0,y.jsx)(c.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:(0,y.jsx)(s.Row,{children:t.map(function(n){return(0,y.jsx)(s.View,{children:(0,y.jsx)(s.View,{align:"start",rounded:"medium",px:"1.5",mx:"0.5",py:"1",style:{backgroundColor:o.orange['000']},children:(0,y.jsx)(s.Text,{size:"small",children:"Channel: "+n})},n)},n)})})})]})})}function P(){var n=o.useRef(new l.Animated.Value(1));return o.useEffect(function(){l.Animated.timing(n.current,{toValue:0,duration:800,delay:800,useNativeDriver:!0}).start()},[]),(0,y.jsx)(l.Animated.View,{style:{opacity:n.current},children:(0,y.jsx)(s.View,{mt:"medium",children:(0,y.jsx)(s.Text,{align:"center",size:"small",color:"secondary",children:"There are no more updates for this branch!"})})})}},1148,[6,43,612,166,2,556,1136,1138,1142,1144,1108,1149,1107,184]);
1154
+ __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UpdatesScreen=function(n){var c=n.route,j=(0,f.useUpdatesConfig)().runtimeVersion,V=c.params.branchName,v=l.useState(!1),L=(0,t.default)(v,2),O=L[0],z=L[1],U=(0,w.useUpdatesForBranch)(V),C=U.data,R=U.isLoading,S=U.hasNextPage,k=U.fetchNextPage,B=U.refetch,F=U.isRefreshing,N=U.isFetchingNextPage;function T(){z(!0),k()}var A=(0,x.useOnUpdatePress)(),E=A.onUpdatePress,H=A.loadingUpdateId;return(0,y.jsxs)(s.View,{flex:"1",children:[(0,y.jsx)(b,{branchName:V,updates:C,onOpenPress:function(){return E(C[0])}}),(0,y.jsx)(p.FlatList,{isLoading:R,isRefreshing:F,onRefresh:function(){return B()},ListHeaderComponent:function(){if(0===C.length)return null;return(0,y.jsx)(s.View,{py:"small",px:"large",children:(0,y.jsx)(s.Heading,{size:"small",color:"secondary",children:"Updates"})})},data:C,extraData:{length:C.length,loadingUpdateId:H},renderItem:function(n){var t=n.index,l=n.item,o=0===t,c=t===C.length-1,u=l.runtimeVersion===j,p=l.id===H;return(0,y.jsxs)(s.View,{px:"medium",opacity:u?'1':'0.5',children:[(0,y.jsx)(h.EASUpdateRow,{update:l,isFirst:o,isLast:c,isLoading:p,onPress:function(){return E(l)}}),!c&&(0,y.jsx)(s.Divider,{})]})},keyExtractor:function(n){return n.id},ListFooterComponent:function(){if(S)return(0,y.jsx)(s.View,{align:"centered",mt:"large",children:(0,y.jsx)(u.BasicButton,{label:"Load More",isLoading:N,onPress:T,size:"small"})});if(C.length>0&&O)return(0,y.jsx)(P,{});return null},ListEmptyComponent:function(){return(0,y.jsx)(s.View,{mt:"large",mx:"medium",bg:"default",rounded:"large",padding:"medium",children:(0,y.jsxs)(s.View,{children:[(0,y.jsx)(s.Heading,{children:"There are no updates available for this branch."}),(0,y.jsx)(s.Spacer.Vertical,{size:"small"}),(0,y.jsx)(s.Text,{color:"secondary",size:"small",children:"Updates allow you to deliver code directly to your users."}),(0,y.jsx)(s.View,{py:"medium",align:"centered",children:(0,y.jsx)(s.Button.ScaleOnPressContainer,{bg:"tertiary",onPress:function(){o.Linking.openURL("https://docs.expo.dev/eas-update/how-eas-update-works/")},children:(0,y.jsx)(s.View,{px:"2.5",py:"2",children:(0,y.jsx)(s.Button.Text,{weight:"medium",color:"tertiary",children:"Publish an update"})})})})]})})}})]})};var t=n(r(d[1])),s=r(d[2]),l=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=V(t);if(s&&s.has(n))return s.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,s&&s.set(n,l);return l})(r(d[3])),o=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]),x=r(d[9]),f=r(d[10]),j=r(d[11]),w=r(d[12]),y=r(d[13]);function V(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(V=function(n){return n?s:t})(n)}function b(n){var t=n.branchName,l=n.updates,o=n.onOpenPress,c=(0,f.useUpdatesConfig)(),h=c.appId,p=c.runtimeVersion,x=(0,j.useChannelsForApp)(h).data,w=[];null==x||x.forEach(function(n){n.branches.includes(t)&&w.push(t)});var V=l.length>0,b=l[0],P=(null==b?void 0:b.runtimeVersion)===p;return(0,y.jsxs)(s.View,{bg:"default",px:"medium",py:"medium",children:[(0,y.jsxs)(s.Row,{align:"center",children:[(0,y.jsx)(s.View,{width:"8",children:(0,y.jsx)(s.BranchIcon,{})}),(0,y.jsx)(s.View,{shrink:"1",children:(0,y.jsx)(s.Heading,{weight:"bold",numberOfLines:2,children:t})}),(0,y.jsx)(s.Spacer.Horizontal,{}),V&&(0,y.jsx)(s.View,{opacity:P?'1':'0.75',style:{marginLeft:s.scale.small},children:(0,y.jsx)(u.BasicButton,{label:"Open Latest",onPress:o,size:"small"})})]}),w.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(s.Spacer.Vertical,{size:"medium"}),(0,y.jsx)(v,{channels:w})]})]})}function v(n){var t=n.channels,l=(0,s.useExpoPalette)();return 0===t.length?null:(0,y.jsx)(s.View,{children:(0,y.jsxs)(s.Row,{align:"center",children:[(0,y.jsxs)(s.Text,{size:"small",color:"secondary",children:["Available on:",' ']}),(0,y.jsx)(c.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:(0,y.jsx)(s.Row,{children:t.map(function(n){return(0,y.jsx)(s.View,{children:(0,y.jsx)(s.View,{align:"start",rounded:"medium",px:"1.5",mx:"0.5",py:"1",style:{backgroundColor:l.orange['000']},children:(0,y.jsx)(s.Text,{size:"small",children:"Channel: "+n})},n)},n)})})})]})})}function P(){var n=l.useRef(new o.Animated.Value(1));return l.useEffect(function(){o.Animated.timing(n.current,{toValue:0,duration:800,delay:800,useNativeDriver:!0}).start()},[]),(0,y.jsx)(o.Animated.View,{style:{opacity:n.current},children:(0,y.jsx)(s.View,{mt:"medium",children:(0,y.jsx)(s.Text,{align:"center",size:"small",color:"secondary",children:"There are no more updates for this branch!"})})})}},1148,[6,43,612,166,2,556,1136,1138,1142,1144,1108,1149,1107,184]);
1155
1155
  __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useChannelsForApp=function(n){var t=(0,l.useToastStack)(),u=(0,p.useQuery)(['channels',n],function(){return b(n)});return f.useEffect(function(){u.error&&0===t.getItems().length&&t.push(function(){return(0,h.jsx)(s.Toasts.Error,{children:"Something went wrong trying to find the channels for this branch."})})},[u.error]),u};var t,u=n(r(d[1])),o=r(d[2]),f=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=y(t);if(u&&u.has(n))return u.get(n);var o={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var c=f?Object.getOwnPropertyDescriptor(n,p):null;c&&(c.get||c.set)?Object.defineProperty(o,p,c):o[p]=n[p]}o.default=n,u&&u.set(n,o);return o})(r(d[3])),p=r(d[4]),c=r(d[5]),s=r(d[6]),l=r(d[7]),h=r(d[8]);function y(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,u=new WeakMap;return(y=function(n){return n?u:t})(n)}var v=(0,o.gql)(t||(t=(0,u.default)(["\n query getUpdates($appId: String!) {\n app {\n byId(appId: $appId) {\n updateChannels(offset: 0, limit: 10) {\n name\n updateBranches(offset: 0, limit: 10) {\n name\n }\n }\n }\n }\n }\n"])));function b(n){var t={appId:n};return c.apiClient.request(v,t).then(function(n){var t=[];return n.app.byId.updateChannels.forEach(function(n){var u={name:n.name,branches:n.updateBranches.map(function(n){return n.name})};t.push(u)}),t})}},1149,[6,1049,1083,166,1008,1101,1103,1105,184]);
1156
1156
  __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 f=n.fetchOnMount,y=void 0!==f&&f,V=n.pollInterval,R=void 0===V?1e3:V,T=n.pollAmount,D=void 0===T?5:T,I=n.navigation,A=(0,S.useModalStack)(),B=o.useState(''),C=(0,s.default)(B,2),M=C[0],H=C[1],_=o.useState(''),F=(0,s.default)(_,2),L=F[0],k=F[1],E=(0,w.useDevSessions)(),W=E.data,Q=E.pollAsync,U=E.isFetching,q=(0,v.useCrashReport)(),G=o.useRef(W);o.useEffect(function(){0===G.current.length&&y&&Q({pollAmount:D,pollInterval:R})},[y,R,D,Q]);var J=function(n){return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return k(n),s.next=3,t.default.awrap((0,j.loadApp)(n).catch(function(n){k(''),A.push(function(){return(0,P.jsx)(x.LoadAppErrorModal,{message:n.message})})}));case 3:k('');case 4:case"end":return s.stop()}},null,null,null,Promise)};return(0,P.jsxs)(l.View,{testID:"DevLauncherMainScreen",children:[(0,P.jsx)(u.AppHeader,{navigation:I}),(0,P.jsxs)(c.ScrollView,{contentContainerStyle:{paddingBottom:l.scale[48]},children:[q&&(0,P.jsx)(l.View,{px:"medium",py:"small",mt:"small",children:(0,P.jsx)(l.Button.ScaleOnPressContainer,{onPress:function(){I.navigate('Crash Report',q)},bg:"default",rounded:"large",children:(0,P.jsx)(l.Row,{align:"center",padding:"medium",bg:"default",children:(0,P.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,P.jsxs)(l.View,{py:"large",children:[(0,P.jsxs)(l.Row,{px:"small",align:"center",children:[(0,P.jsx)(l.View,{px:"medium",children:(0,P.jsx)(l.TerminalIcon,{})}),(0,P.jsx)(l.Heading,{color:"secondary",children:"Development servers"}),(0,P.jsx)(l.Spacer.Horizontal,{}),W.length>0&&(0,P.jsx)(l.Button.ScaleOnPressContainer,{bg:"ghost",rounded:"full",minScale:.85,onPress:function(){A.push(function(){return(0,P.jsx)(p.DevServerExplainerModal,{})})},children:(0,P.jsx)(l.View,{rounded:"full",padding:"tiny",children:(0,P.jsx)(l.InfoIcon,{})})})]}),(0,P.jsx)(l.Spacer.Vertical,{size:"small"}),(0,P.jsx)(l.View,{px:"medium",children:(0,P.jsxs)(l.View,{children:[0===W.length&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(l.View,{padding:"medium",bg:"default",roundedTop:"large",children:[(0,P.jsx)(l.Text,{children:"Start a local development server with:"}),(0,P.jsx)(l.Spacer.Vertical,{size:"small"}),(0,P.jsx)(l.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,P.jsx)(l.Text,{type:"mono",size:"small",children:"expo start --dev-client"})}),(0,P.jsx)(l.Spacer.Vertical,{size:"small"}),(0,P.jsx)(l.Text,{children:"Then, select the local server when it appears here."}),(0,P.jsx)(l.Spacer.Vertical,{size:"small"}),(0,P.jsx)(l.Text,{children:"Alternatively, open the Camera app and scan the QR code that appears in your terminal"})]}),(0,P.jsx)(l.Divider,{})]}),(null==W?void 0:W.length)>0&&(0,P.jsx)(O,{devSessions:W,onDevSessionPress:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:J(n.url);case 1:case"end":return t.stop()}},null,null,null,Promise)}}),(0,P.jsx)(b,{isFetching:U,onRefetchPress:function(){Q({pollAmount:D,pollInterval:R})}}),(0,P.jsx)(l.Divider,{}),(0,P.jsx)(h.UrlDropdown,{onSubmit:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:J(n);case 1:case"end":return t.stop()}},null,null,null,Promise)},inputValue:M,setInputValue:H,isLoading:''!==M&&M===L})]})}),(0,P.jsx)(l.Spacer.Vertical,{size:"medium"}),(0,P.jsx)(z,{onAppPress:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:J(n);case 1:case"end":return t.stop()}},null,null,null,Promise)}})]})]})]})};var t=n(r(d[1])),s=n(r(d[2])),l=r(d[3]),o=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=V(t);if(s&&s.has(n))return s.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,s&&s.set(n,l);return l})(r(d[4])),c=r(d[5]),u=r(d[6]),p=r(d[7]),x=r(d[8]),f=r(d[9]),h=r(d[10]),j=r(d[11]),v=r(d[12]),w=r(d[13]),S=r(d[14]),y=r(d[15]),P=r(d[16]);function V(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(V=function(n){return n?s:t})(n)}function b(n){var t=n.isFetching,s=n.onRefetchPress,o=(0,l.useExpoTheme)(),c=t?o.status.info:o.status.default;return(0,P.jsx)(l.Button.ScaleOnPressContainer,{onPress:s,disabled:t,bg:"default",rounded:"none",children:(0,P.jsxs)(l.Row,{align:"center",padding:"medium",bg:"default",children:[(0,P.jsx)(l.View,{width:"6",children:(0,P.jsx)(f.PulseIndicator,{isActive:t,color:c})}),(0,P.jsx)(l.Button.Text,{color:"default",children:t?'Searching for development servers...':'Fetch development servers'}),(0,P.jsx)(l.Spacer.Horizontal,{}),!t&&(0,P.jsx)(l.RefreshIcon,{})]})})}function O(n){var t=n.devSessions,s=void 0===t?[]:t,o=n.onDevSessionPress;return 0===s.length?null:(0,P.jsx)(l.View,{children:s.map(function(n){return(0,P.jsxs)(l.View,{children:[(0,P.jsx)(l.Button.ScaleOnPressContainer,{onPress:function(){return o(n)},roundedTop:"large",roundedBottom:"none",bg:"default",children:(0,P.jsxs)(l.Row,{align:"center",padding:"medium",bg:"default",children:[(0,P.jsx)(l.StatusIndicator,{size:"small",status:"success"}),(0,P.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,P.jsx)(l.View,{flex:"1",children:(0,P.jsx)(l.Button.Text,{color:"default",numberOfLines:1,children:n.description})}),(0,P.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,P.jsx)(l.ChevronRightIcon,{})]})}),(0,P.jsx)(l.Divider,{})]},n.url)})})}function z(n){var t=n.onAppPress,s=(0,y.useRecentlyOpenedApps)().data;return 0===s.length?null:(0,P.jsxs)(l.View,{px:"medium",children:[(0,P.jsx)(l.View,{padding:"medium",children:(0,P.jsx)(l.Heading,{color:"secondary",children:"Recently opened"})}),(0,P.jsx)(l.View,{children:s.slice(0,5).map(function(n,s,o){var c,u=0===s,p=s===o.length-1,x=null!=(c=n.name)?c:n.url;return(0,P.jsxs)(l.View,{children:[(0,P.jsx)(l.Button.ScaleOnPressContainer,{onPress:function(){return t(n.url)},roundedTop:u?'large':'none',roundedBottom:p?'large':'none',bg:"default",children:(0,P.jsxs)(l.Row,{align:"center",padding:"medium",bg:"default",children:[(0,P.jsx)(l.StatusIndicator,{size:"small",status:"success"}),(0,P.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,P.jsx)(l.View,{flex:"1",children:(0,P.jsx)(l.Button.Text,{color:"default",numberOfLines:1,children:x})}),(0,P.jsx)(l.ChevronRightIcon,{})]})}),!p&&(0,P.jsx)(l.Divider,{})]},n.url)})})]})}},1150,[6,69,43,612,166,2,1146,1151,1132,1152,1153,1005,1114,1116,1127,1130,184]);
1157
1157
  __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:"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)}},1151,[612,166,1131,184]);
@@ -55,8 +55,8 @@ private const val NEW_ACTIVITY_FLAGS = Intent.FLAG_ACTIVITY_NEW_TASK or
55
55
  Intent.FLAG_ACTIVITY_CLEAR_TASK or
56
56
  Intent.FLAG_ACTIVITY_NO_ANIMATION
57
57
 
58
- class DevLauncherController private constructor()
59
- : DevLauncherKoinComponent, DevLauncherControllerInterface {
58
+ class DevLauncherController private constructor() :
59
+ DevLauncherKoinComponent, DevLauncherControllerInterface {
60
60
  private val context: Context by lazy {
61
61
  DevLauncherKoinContext.app.koin.get()
62
62
  }
@@ -69,9 +69,13 @@ class DevLauncherController private constructor()
69
69
  var devMenuManager: DevMenuManager = DevMenuManager
70
70
  override var updatesInterface: UpdatesInterface?
71
71
  get() = internalUpdatesInterface
72
- set(value) = DevLauncherKoinContext.app.koin.loadModules(listOf(module {
73
- single { value }
74
- }))
72
+ set(value) = DevLauncherKoinContext.app.koin.loadModules(
73
+ listOf(
74
+ module {
75
+ single { value }
76
+ }
77
+ )
78
+ )
75
79
  override val coroutineScope = CoroutineScope(Dispatchers.Default)
76
80
 
77
81
  override val devClientHost = DevLauncherClientHost((context as Application), DEV_LAUNCHER_HOST)
@@ -115,7 +119,7 @@ class DevLauncherController private constructor()
115
119
 
116
120
  // default to the EXPO_UPDATE_URL value configured in AndroidManifest.xml when project url is unspecified for an EAS update
117
121
  if (isEASUpdate && projectUrl == null) {
118
- val projectUrlString = appHost.reactInstanceManager?.currentReactContext?.let { getMetadataValue(it, "expo.modules.updates.EXPO_UPDATE_URL") }
122
+ val projectUrlString = getMetadataValue(context, "expo.modules.updates.EXPO_UPDATE_URL")
119
123
  parsedProjectUrl = Uri.parse(projectUrlString)
120
124
  }
121
125
 
@@ -325,9 +329,9 @@ class DevLauncherController private constructor()
325
329
  internal var sAdditionalPackages: List<ReactPackage>? = null
326
330
 
327
331
  @JvmStatic
328
- fun getMetadataValue(reactApplicationContext: ReactContext, key: String): String {
329
- val packageManager = reactApplicationContext.packageManager
330
- val packageName = reactApplicationContext.packageName
332
+ fun getMetadataValue(context: Context, key: String): String {
333
+ val packageManager = context.packageManager
334
+ val packageName = context.packageName
331
335
  val applicationInfo = packageManager.getApplicationInfo(packageName, PackageManager.GET_META_DATA)
332
336
  var metaDataValue = ""
333
337
 
@@ -360,12 +364,15 @@ class DevLauncherController private constructor()
360
364
  if (!testInterceptor.allowReinitialization()) {
361
365
  check(!wasInitialized()) { "DevelopmentClientController was initialized." }
362
366
  }
363
- DevLauncherKoinContext.app.koin.loadModules(listOf(
364
- module {
365
- single { context }
366
- single { appHost }
367
- }
368
- ), allowOverride = true)
367
+ DevLauncherKoinContext.app.koin.loadModules(
368
+ listOf(
369
+ module {
370
+ single { context }
371
+ single { appHost }
372
+ }
373
+ ),
374
+ allowOverride = true
375
+ )
369
376
 
370
377
  val controller = DevLauncherController()
371
378
  DevLauncherKoinContext.app.koin.declare<DevLauncherControllerInterface>(controller)
@@ -73,4 +73,3 @@ class DevLauncherAppLoaderFactory : DevLauncherKoinComponent, DevLauncherAppLoad
73
73
  return block()
74
74
  }
75
75
  }
76
-
@@ -1,23 +1,18 @@
1
1
  package expo.modules.devlauncher.modules
2
2
 
3
-
4
3
  import android.content.Context
5
4
  import android.content.Intent
6
5
  import android.net.Uri
7
- import android.se.omapi.Session
8
- import android.util.Log
9
6
  import androidx.browser.customtabs.CustomTabsIntent
10
7
  import com.facebook.react.bridge.*
11
8
  import expo.modules.devlauncher.koin.DevLauncherKoinComponent
12
9
  import expo.modules.devmenu.DevMenuManager
13
- import org.json.JSONObject
14
-
15
10
 
16
11
  private const val SessionKey = "expo-dev-menu.session"
17
12
  private const val SessionStore = "expo.modules.devmenu.sessionstore"
18
13
 
19
- class DevLauncherAuth(reactContext: ReactApplicationContext?)
20
- : ReactContextBaseJavaModule(reactContext), DevLauncherKoinComponent {
14
+ class DevLauncherAuth(reactContext: ReactApplicationContext?) :
15
+ ReactContextBaseJavaModule(reactContext), DevLauncherKoinComponent {
21
16
 
22
17
  private val localStore = reactApplicationContext.getSharedPreferences(SessionStore, Context.MODE_PRIVATE)
23
18
 
@@ -19,7 +19,6 @@ import expo.modules.devlauncher.koin.DevLauncherKoinComponent
19
19
  import expo.modules.devlauncher.launcher.DevLauncherControllerInterface
20
20
  import expo.modules.devlauncher.launcher.DevLauncherIntentRegistryInterface
21
21
  import expo.modules.devlauncher.launcher.errors.DevLauncherErrorRegistry
22
- import expo.modules.devmenu.DevMenuAppInfo
23
22
  import expo.modules.devmenu.DevMenuManager
24
23
  import kotlinx.coroutines.launch
25
24
  import org.koin.core.component.inject
@@ -28,8 +27,8 @@ private const val ON_NEW_DEEP_LINK_EVENT = "expo.modules.devlauncher.onnewdeepli
28
27
  private const val CLIENT_PACKAGE_NAME = "host.exp.exponent"
29
28
  private val CLIENT_HOME_QR_SCANNER_DEEP_LINK = Uri.parse("expo-home://qr-scanner")
30
29
 
31
- class DevLauncherInternalModule(reactContext: ReactApplicationContext?)
32
- : ReactContextBaseJavaModule(reactContext), DevLauncherKoinComponent {
30
+ class DevLauncherInternalModule(reactContext: ReactApplicationContext?) :
31
+ ReactContextBaseJavaModule(reactContext), DevLauncherKoinComponent {
33
32
  private val controller: DevLauncherControllerInterface by inject()
34
33
  private val intentRegistry: DevLauncherIntentRegistryInterface by inject()
35
34
  private val installationIDHelper: DevLauncherInstallationIDHelper by inject()
@@ -88,13 +87,13 @@ class DevLauncherInternalModule(reactContext: ReactApplicationContext?)
88
87
  }
89
88
 
90
89
  private fun sanitizeUrlString(url: String): Uri {
91
- val parsedUrl = Uri.parse(url?.trim())
90
+ val parsedUrl = Uri.parse(url.trim())
92
91
  val appUrl = if (isDevLauncherUrl(parsedUrl)) {
93
92
  requireNotNull(getAppUrlFromDevLauncherUrl(parsedUrl)) { "The provided url doesn't contain the app url." }
94
93
  } else {
95
94
  parsedUrl
96
95
  }
97
- return appUrl;
96
+ return appUrl
98
97
  }
99
98
 
100
99
  @ReactMethod
@@ -136,13 +135,15 @@ class DevLauncherInternalModule(reactContext: ReactApplicationContext?)
136
135
 
137
136
  @ReactMethod
138
137
  fun getRecentlyOpenedApps(promise: Promise) {
139
- promise.resolve(Arguments
140
- .createMap()
141
- .apply {
142
- controller.getRecentlyOpenedApps().forEach { (key, value) ->
143
- putString(key, value)
138
+ promise.resolve(
139
+ Arguments
140
+ .createMap()
141
+ .apply {
142
+ controller.getRecentlyOpenedApps().forEach { (key, value) ->
143
+ putString(key, value)
144
+ }
144
145
  }
145
- })
146
+ )
146
147
  }
147
148
 
148
149
  @ReactMethod
@@ -214,17 +215,16 @@ class DevLauncherInternalModule(reactContext: ReactApplicationContext?)
214
215
  }
215
216
  }
216
217
 
217
-
218
218
  @ReactMethod
219
219
  fun getBuildInfo(promise: Promise) {
220
220
  val map = Arguments.createMap()
221
221
  val packageManager = reactApplicationContext.packageManager
222
222
  val packageName = reactApplicationContext.packageName
223
223
 
224
- val packageInfo = packageManager.getPackageInfo(packageName, 0)
224
+ val packageInfo = packageManager.getPackageInfo(packageName, 0)
225
225
  val applicationInfo = packageManager.getApplicationInfo(packageName, PackageManager.GET_META_DATA)
226
226
  val appName = packageManager.getApplicationLabel(applicationInfo).toString()
227
- val runtimeVersion = DevLauncherController.getMetadataValue(reactApplicationContext,"expo.modules.updates.EXPO_RUNTIME_VERSION")
227
+ val runtimeVersion = DevLauncherController.getMetadataValue(reactApplicationContext, "expo.modules.updates.EXPO_RUNTIME_VERSION")
228
228
  val sdkVersion = DevLauncherController.getMetadataValue(reactApplicationContext, "expo.modules.updates.EXPO_SDK_VERSION")
229
229
  var appIcon = getApplicationIconUri()
230
230
 
@@ -257,13 +257,11 @@ class DevLauncherInternalModule(reactContext: ReactApplicationContext?)
257
257
  }
258
258
 
259
259
  private fun getApplicationIconUri(): String {
260
- var appIcon = ""
261
260
  val packageManager = reactApplicationContext.packageManager
262
261
  val packageName = reactApplicationContext.packageName
263
262
  val applicationInfo = packageManager.getApplicationInfo(packageName, 0)
264
- appIcon = "" + applicationInfo.icon
265
263
  // TODO - figure out how to get resId for AdaptiveIconDrawable icons
266
- return appIcon
264
+ return "" + applicationInfo.icon
267
265
  }
268
266
 
269
267
  @ReactMethod
@@ -76,11 +76,14 @@ object DevLauncherPackageDelegate {
76
76
  if (!shouldEnableAutoSetup) {
77
77
  return null
78
78
  }
79
- return DevLauncherController.wrapReactActivityDelegate(activity, object : DevLauncherReactActivityDelegateSupplier {
80
- override fun get(): ReactActivityDelegate {
81
- return delegate
79
+ return DevLauncherController.wrapReactActivityDelegate(
80
+ activity,
81
+ object : DevLauncherReactActivityDelegateSupplier {
82
+ override fun get(): ReactActivityDelegate {
83
+ return delegate
84
+ }
82
85
  }
83
- })
86
+ )
84
87
  }
85
88
  }
86
89
  )
@@ -44,7 +44,6 @@ fun post(url: Uri, requestBody: RequestBody, vararg headers: Pair<String, String
44
44
  .apply {
45
45
  headers.forEach {
46
46
  addHeader(it.first, it.second)
47
-
48
47
  }
49
48
  }
50
49
  .build()
@@ -15,29 +15,32 @@ suspend fun UpdatesInterface.loadUpdate(
15
15
  shouldContinue: (manifest: JSONObject) -> Boolean
16
16
  ): UpdatesInterface.Update =
17
17
  suspendCoroutine { cont ->
18
- this.fetchUpdateWithConfiguration(configuration, context, object : UpdatesInterface.UpdateCallback {
19
- override fun onSuccess(update: UpdatesInterface.Update?) {
20
- // if the update is null, we previously aborted the fetch, so we've already resumed
21
- update?.let { cont.resume(update) }
22
- }
23
- override fun onFailure(e: Exception?) {
24
- cont.resumeWithException(e ?: Exception("There was an unexpected error loading the update."))
25
- }
26
- override fun onProgress(successfulAssetCount: Int, failedAssetCount: Int, totalAssetCount: Int) = Unit
27
- override fun onManifestLoaded(manifest: JSONObject): Boolean {
28
- return if (shouldContinue(manifest)) {
29
- true
30
- } else {
31
- cont.resume(object : UpdatesInterface.Update {
32
- override fun getLaunchAssetPath(): String {
33
- throw Exception("Tried to access launch asset path for a manifest that was not loaded")
34
- }
35
- override fun getManifest(): JSONObject = manifest
36
- })
37
- false
18
+ this.fetchUpdateWithConfiguration(
19
+ configuration, context,
20
+ object : UpdatesInterface.UpdateCallback {
21
+ override fun onSuccess(update: UpdatesInterface.Update?) {
22
+ // if the update is null, we previously aborted the fetch, so we've already resumed
23
+ update?.let { cont.resume(update) }
24
+ }
25
+ override fun onFailure(e: Exception?) {
26
+ cont.resumeWithException(e ?: Exception("There was an unexpected error loading the update."))
27
+ }
28
+ override fun onProgress(successfulAssetCount: Int, failedAssetCount: Int, totalAssetCount: Int) = Unit
29
+ override fun onManifestLoaded(manifest: JSONObject): Boolean {
30
+ return if (shouldContinue(manifest)) {
31
+ true
32
+ } else {
33
+ cont.resume(object : UpdatesInterface.Update {
34
+ override fun getLaunchAssetPath(): String {
35
+ throw Exception("Tried to access launch asset path for a manifest that was not loaded")
36
+ }
37
+ override fun getManifest(): JSONObject = manifest
38
+ })
39
+ false
40
+ }
38
41
  }
39
42
  }
40
- })
43
+ )
41
44
  }
42
45
 
43
46
  fun createUpdatesConfigurationWithUrl(url: Uri, projectUrl: Uri, installationID: String?): HashMap<String, Any> {
@@ -33,11 +33,13 @@ class DevLauncherExpoActivityConfigurator(
33
33
  val color = Color.parseColor(manifest.getPrimaryColor())
34
34
  val icon = BitmapFactory.decodeResource(context.resources, context.applicationInfo.icon)
35
35
 
36
- activity.setTaskDescription(ActivityManager.TaskDescription(
37
- manifest.getName(),
38
- icon,
39
- color
40
- ))
36
+ activity.setTaskDescription(
37
+ ActivityManager.TaskDescription(
38
+ manifest.getName(),
39
+ icon,
40
+ color
41
+ )
42
+ )
41
43
  }
42
44
 
43
45
  fun applyOrientation(activity: ReactActivity) {
@@ -131,7 +133,8 @@ class DevLauncherExpoActivityConfigurator(
131
133
  defaultInsets.systemWindowInsetLeft,
132
134
  0,
133
135
  defaultInsets.systemWindowInsetRight,
134
- defaultInsets.systemWindowInsetBottom)
136
+ defaultInsets.systemWindowInsetBottom
137
+ )
135
138
  }
136
139
  } else {
137
140
  decorView.setOnApplyWindowInsetsListener(null)
@@ -13,8 +13,8 @@ import kotlinx.coroutines.launch
13
13
  import org.koin.core.component.inject
14
14
  import java.lang.ref.WeakReference
15
15
 
16
- class DevLauncherErrorActivity
17
- : FragmentActivity(), DevLauncherKoinComponent {
16
+ class DevLauncherErrorActivity :
17
+ FragmentActivity(), DevLauncherKoinComponent {
18
18
 
19
19
  private val controller: DevLauncherControllerInterface by inject()
20
20
  private lateinit var binding: ErrorFragmentBinding
@@ -53,7 +53,6 @@ class DevLauncherErrorActivity
53
53
  adapter.notifyDataSetChanged()
54
54
  }
55
55
  binding.errorDetails.text = error.message ?: "Unknown error"
56
-
57
56
  }
58
57
 
59
58
  private fun launchHome() {
@@ -126,9 +125,10 @@ class DevLauncherErrorActivity
126
125
 
127
126
  context.startActivity(
128
127
  Intent(context, DevLauncherErrorActivity::class.java).apply {
129
- addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or
130
- Intent.FLAG_ACTIVITY_CLEAR_TASK or
131
- Intent.FLAG_ACTIVITY_NO_ANIMATION
128
+ addFlags(
129
+ Intent.FLAG_ACTIVITY_NEW_TASK or
130
+ Intent.FLAG_ACTIVITY_CLEAR_TASK or
131
+ Intent.FLAG_ACTIVITY_NO_ANIMATION
132
132
  )
133
133
  }
134
134
  )