(config: Config, id: string)
| 87 | } |
| 88 | |
| 89 | async 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 | |
| 106 | async function getWebDir(config: Config, webDir?: string) { |
| 107 | if (!webDir) { |
no test coverage detected