Skip to content

Conversation

@mbarbon
Copy link

@mbarbon mbarbon commented Aug 11, 2017

Use the correct assemble target (avoids building all targets); install the correct APK for the requested variant type.

Test Plan

Test on a newly-built project, cleaning the android build between tests:

    # builds and installs app-debug.apk
    $ rm -rf android/app/build
    $ react-native run-android --deviceId <id>

    # builds and installs app-release.apk
    $ rm -rf android/app/buil
    $ react-native run-android --deviceId <id> --variant release

    # builds and installs app-debug.apk
    $ rm -rf android/app/buil
    $ react-native run-android --deviceId <id> --variant debug

Thanks!
Mattia

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Aug 11, 2017
function buildApk(args, gradlew) {
try {
console.log(chalk.bold('Building the app...'));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

semi: Missing semicolon.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the missing semicolons.

}

// using '-x lint' in order to ignore linting errors while building the apk
child_process.execFileSync(gradlew, ['build', '-x', 'lint'], {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

semi: Missing semicolon.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the missing semicolons.

gradleArgs.push('assemble' +
args.variant[0].toUpperCase() + args.variant.slice(1)
);
} else {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

semi: Missing semicolon.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the missing semicolons.

Use the correct assemble<variant> target (avoids building all targets).

Install the correct APK for the requested variant type.

Test on a newly-built project, cleaning the android build between tests:

    # builds and installs app-debug.apk
    $ rm -rf android/app/build
    $ react-native run-android --deviceId <id>

    # builds and installs app-release.apk
    $ rm -rf android/app/buil
    $ react-native run-android --deviceId <id> --variant release

    # builds and installs app-debug.apk
    $ rm -rf android/app/buil
    $ react-native run-android --deviceId <id> --variant debug
@mbarbon
Copy link
Author

mbarbon commented Aug 12, 2017

Pushed a new commit fixing the missing semicolons.

@facebook-github-bot
Copy link
Contributor

@mbarbon I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project.

@stale
Copy link

stale bot commented Dec 9, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 9, 2017
@stale stale bot closed this Dec 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Stale There has been a lack of activity on this issue and it may be closed soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants