Skip to content

Pass Android release options for build/deploy/run #2585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export class BuildCommandBase {
teamId: this.$options.teamId,
device: this.$options.device,
provision: this.$options.provision,
release: this.$options.release
release: this.$options.release,
keyStoreAlias: this.$options.keyStoreAlias,
keyStorePath: this.$options.keyStorePath,
keyStoreAliasPassword: this.$options.keyStoreAliasPassword,
keyStorePassword: this.$options.keyStorePassword
};
await this.$platformService.buildPlatform(platform, buildConfig, this.$projectData);
if (this.$options.copyTo) {
Expand Down
6 changes: 5 additions & 1 deletion lib/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export class DeployOnDeviceCommand implements ICommand {
release: this.$options.release,
forceInstall: true,
provision: this.$options.provision,
teamId: this.$options.teamId
teamId: this.$options.teamId,
keyStoreAlias: this.$options.keyStoreAlias,
keyStoreAliasPassword: this.$options.keyStoreAliasPassword,
keyStorePassword: this.$options.keyStorePassword,
keyStorePath: this.$options.keyStorePath
};
return this.$platformService.deployPlatform(args[0], appFilesUpdaterOptions, deployOptions, this.$projectData, this.$options.provision);
}
Expand Down
6 changes: 5 additions & 1 deletion lib/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export class RunCommandBase {
platformTemplate: this.$options.platformTemplate,
release: this.$options.release,
provision: this.$options.provision,
teamId: this.$options.teamId
teamId: this.$options.teamId,
keyStoreAlias: this.$options.keyStoreAlias,
keyStoreAliasPassword: this.$options.keyStoreAliasPassword,
keyStorePassword: this.$options.keyStorePassword,
keyStorePath: this.$options.keyStorePath
};
await this.$platformService.deployPlatform(args[0], appFilesUpdaterOptions, deployOptions, this.$projectData, this.$options.provision);

Expand Down
2 changes: 1 addition & 1 deletion lib/declarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ interface IDeviceEmulator extends IEmulator, IDeviceIdentifier { }

interface IRunPlatformOptions extends IJustLaunch, IDeviceEmulator { }

interface IDeployPlatformOptions extends IPlatformTemplate, IRelease, IClean, IDeviceEmulator, IProvision, ITeamIdentifier {
interface IDeployPlatformOptions extends IAndroidReleaseOptions, IPlatformTemplate, IRelease, IClean, IDeviceEmulator, IProvision, ITeamIdentifier {
projectDir: string;
forceInstall?: boolean;
}
Expand Down
6 changes: 5 additions & 1 deletion lib/services/platform-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,11 @@ export class PlatformService extends EventEmitter implements IPlatformService {
release: deployOptions.release,
device: deployOptions.device,
provision: deployOptions.provision,
teamId: deployOptions.teamId
teamId: deployOptions.teamId,
keyStoreAlias: deployOptions.keyStoreAlias,
keyStoreAliasPassword: deployOptions.keyStoreAliasPassword,
keyStorePassword: deployOptions.keyStorePassword,
keyStorePath: deployOptions.keyStorePath
};
let shouldBuild = await this.shouldBuild(platform, projectData, buildConfig);
if (shouldBuild) {
Expand Down