UNPKG

shipthis

Version:

ShipThis manages building and uploading your Godot games to the App Store and Google Play.

76 lines (72 loc) 2.98 kB
import { jsxs, jsx, Fragment } from 'react/jsx-runtime'; import { Box, Text } from 'ink'; import Spinner from 'ink-spinner'; import '@inkjs/ui'; import 'node:crypto'; import 'node:fs'; import 'node:path'; import 'node:readline'; import 'node:url'; import 'readline-sync'; import 'luxon'; import 'axios'; import 'isomorphic-git'; import './index-BwnzoldS.js'; import '@oclif/core'; import '@tanstack/react-query'; import 'react'; import 'crypto-js'; import 'uuid'; import { u as useAppleApp } from './useAppleApp-BZc_cNa-.js'; import 'fast-glob'; import 'yazl'; import 'socket.io-client'; import 'fullscreen-ink'; import { T as Table } from './Table-FaNgpyeq.js'; import { T as Title } from './Title-BCQtayg6.js'; import 'string-length'; import 'strip-ansi'; import 'open'; import './index-hoHfGrjg.js'; import './ejs-DirFZbza.js'; import 'marked'; import 'marked-terminal'; import 'qrcode'; import { u as useAppleBundleId } from './useAppleBundleId-DvMXAvWD.js'; const AppleAppDetails = (props) => { const { data, isLoading } = useAppleApp(props); return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [ /* @__PURE__ */ jsx(Title, { children: "App Details (in the Apple Developer Portal)" }), isLoading && /* @__PURE__ */ jsx(Spinner, { type: "dots" }), data && data.summary && /* @__PURE__ */ jsx(Table, { data: [data.summary] }) ] }); }; const AppleBundleIdDetails = (props) => { const { data, isLoading } = useAppleBundleId(props); const { bundleIdSummary, capabilities, capabilitiesTable, shouldSyncCapabilities } = data || {}; return /* @__PURE__ */ jsxs(Fragment, { children: [ /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [ /* @__PURE__ */ jsx(Title, { children: "BundleId Details (in the Apple Developer Portal)" }), isLoading && /* @__PURE__ */ jsx(Spinner, { type: "dots" }), bundleIdSummary && /* @__PURE__ */ jsx(Table, { data: [bundleIdSummary] }) ] }), capabilities && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [ /* @__PURE__ */ jsx(Title, { children: "Capabilities enabled in the BundleId" }), /* @__PURE__ */ jsx( Table, { data: capabilities.map((c) => ({ capability: `${c}` })) } ) ] }), capabilitiesTable && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [ /* @__PURE__ */ jsx(Title, { children: "BundleId Capability Check" }), /* @__PURE__ */ jsx(Table, { data: capabilitiesTable }) ] }), shouldSyncCapabilities && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [ /* @__PURE__ */ jsx(Text, { bold: true, children: "The capabilities are out of sync with the Apple Developer Portal." }), /* @__PURE__ */ jsx(Text, { bold: true, children: "Run shipthis game ios app sync" }) ] }) ] }); }; export { AppleAppDetails as A, AppleBundleIdDetails as a };