Skip to content
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

Make upload tasks support up-to-date checks #239

Merged
merged 1 commit into from
Jul 22, 2020
Merged

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Jul 22, 2020

Goal

Adds the mapping file as an input to the BugsnagUploadProguardTask, and an output file for each upload request that writes the result of the request. This enables up-to-date checks on all the upload tasks as their inputs/outputs are explicitly defined.

Changeset

  • Read package value from the android manifest, as this allows tasks to avoid reading the information from the ApkVariant, leading to an ultimate removal of these fields from the tasks
  • Created a Provider<RegularFile> which finds the mapping file. This is set as an input property on the proguard upload tasks
  • Added an OutputFile property where the response information is written for each task, enabling up-to-date checks
  • Deleted missing_mapping_file scenario as the scenario is contrived and should not happen in a real app

Tests

Relied on existing E2E test coverage. Verified that the upload tasks were shown as up-to-date when building an example app for the second time, and that altering the buildUuid in the manifest invalidated this.

@fractalwrench fractalwrench changed the title Organise inputs for upload tasks Make upload tasks support up-to-date checks Jul 22, 2020
@fractalwrench fractalwrench force-pushed the v5-upload-tasks branch 3 times, most recently from eb3537c to 780eae0 Compare July 22, 2020 14:00
@fractalwrench fractalwrench marked this pull request as ready for review July 22, 2020 14:28
@fractalwrench fractalwrench merged commit d5f3e6e into v5 Jul 22, 2020
@fractalwrench fractalwrench deleted the v5-upload-tasks branch July 22, 2020 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants