UNPKG

shipthis

Version:

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

33 lines (30 loc) 785 B
import { useQuery } from '@tanstack/react-query'; import { f as App } from './baseCommand-CTn3KGH3.js'; const queryAppleApp = async ({ ctx, iosBundleId }) => { if (!iosBundleId) { return { app: null, summary: null }; } const app = await App.findAsync(ctx, { bundleId: iosBundleId }); if (!app) { return { app: null, summary: null }; } return { app, summary: { bundleId: app.attributes.bundleId, id: app.id, name: app.attributes.name, primaryLocale: app.attributes.primaryLocale } }; }; const useAppleApp = (props) => { const queryResult = useQuery({ queryFn: () => queryAppleApp(props), queryKey: ["appleApp", props.iosBundleId] }); return queryResult; }; export { queryAppleApp as q, useAppleApp as u };