Skip to content

Commit

Permalink
feat: remove build default flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
rams23 committed Feb 28, 2023
1 parent fe29a77 commit 2fac9a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/application/buildIos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function installPods() {
executeCommand('pod install', {cwd: iosFolder})
}

function _buildIos(buildType: string, platformName: keyof typeof iosBuildPlatforms) {
function _buildIos(buildType?: string, platformName: keyof typeof iosBuildPlatforms = 'simulator') {
const iosFolder = path.join(getProjectRootDir(), 'ios')
const workspacePath = path.join(iosFolder, `${appName}.xcworkspace`)
const buildFlavor = getIosFlavors(buildType)
Expand Down Expand Up @@ -59,7 +59,7 @@ function _buildIos(buildType: string, platformName: keyof typeof iosBuildPlatfor

}

export function buildIos(buildType: string, platformName: keyof typeof iosBuildPlatforms) {
export function buildIos(buildType?: string, platformName: keyof typeof iosBuildPlatforms = 'simulator') {
installPods()
_buildIos(buildType, platformName)
}
2 changes: 1 addition & 1 deletion src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class Build extends Command {
ios: Flags.boolean({char: 'i', description: 'Generate ios native build'}),
android: Flags.boolean({char: 'a', description: 'Generate android native build'}),
all: Flags.boolean({description: 'Generate both ios and android native build'}),
flavor: Flags.string({char: 'f', description: 'Specify flavor to build', default:'dev'}),
flavor: Flags.string({char: 'f', description: 'Specify flavor to build'}),
}

static args = {
Expand Down

0 comments on commit 2fac9a8

Please sign in to comment.