MCPcopy
hub / github.com/ionic-team/capacitor / getAppId

Function getAppId

cli/src/tasks/init.ts:89–104  ·  view source on GitHub ↗
(config: Config, id: string)

Source from the content-addressed store, hash-verified

87}
88
89async function getAppId(config: Config, id: string) {
90 if (!id) {
91 const answers = await logPrompt(
92 `${c.strong(`What should be the Package ID for your app?`)}\n` +
93 `Package IDs (aka Bundle ID in iOS and Application ID in Android) are unique identifiers for apps. They must be in reverse domain name notation, generally representing a domain name that you or your company owns.`,
94 {
95 type: 'text',
96 name: 'id',
97 message: `Package ID`,
98 initial: config.app.appId ? config.app.appId : 'com.example.app',
99 },
100 );
101 return answers.id;
102 }
103 return id;
104}
105
106async function getWebDir(config: Config, webDir?: string) {
107 if (!webDir) {

Callers 1

initCommandFunction · 0.85

Calls 1

logPromptFunction · 0.90

Tested by

no test coverage detected