Skip to content

Commit

Permalink
Fix command for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
dagio committed May 1, 2016
1 parent 1998008 commit c358e81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 42 deletions.
36 changes: 0 additions & 36 deletions src/Archive/AndroidArchive.php

This file was deleted.

12 changes: 6 additions & 6 deletions src/Command/UploadAppCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ protected function execute(InputInterface $input, OutputInterface $output)
$appPath = $input->getArgument('app-path');

if ($platform == 'ios' || $platform == 'android') {
$output->writeln(sprintf('App found : "%s"', $appPath));

if ($platform == 'ios') {
$bundleArchive = new IOSArchive();
$uploadFilePath = $bundleArchive->create($appPath);
$output->writeln(sprintf('Archive created in "%s"', $uploadFilePath));
} else {
$bundleArchive = new AndroidArchive();
$uploadFilePath = $appPath;
}

$zipFilePath = $bundleArchive->create($appPath);

$output->writeln(sprintf('Archive created in "%s"', $zipFilePath));

$uploadApi = new UploadApi();
$response = $uploadApi->upload(
$zipFilePath,
$uploadFilePath,
$input->getArgument('token'),
$platform,
$input->getOption('public-key')
Expand Down

0 comments on commit c358e81

Please sign in to comment.