Skip to content

Fix warnings in Gradle files#80

Merged
kevinlind merged 2 commits intoadobe:dev-v2.2.1from
kevinlind:fix-gradle-warnings
Aug 17, 2023
Merged

Fix warnings in Gradle files#80
kevinlind merged 2 commits intoadobe:dev-v2.2.1from
kevinlind:fix-gradle-warnings

Conversation

@kevinlind
Copy link
Copy Markdown
Contributor

@kevinlind kevinlind commented Aug 14, 2023

Description

Fix warnings listed in Gradle files by Android Studio when running Inspect Code.

  • Fix use of deprecated flavorDimensions
  • Use tasks.register instead of task to reduce configuration time.
  • Use configureEach instead of all to reduce configuration time.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 14, 2023

Codecov Report

Merging #80 (90fbbfc) into dev-v2.2.1 (d390fd1) will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             dev-v2.2.1      #80   +/-   ##
=============================================
  Coverage         83.63%   83.63%           
+ Complexity          381      380    -1     
=============================================
  Files                29       29           
  Lines              1582     1582           
  Branches            225      225           
=============================================
  Hits               1323     1323           
  Misses              162      162           
  Partials             97       97           
Flag Coverage Δ
functional-tests 66.18% <ø> (ø)
unit-tests 79.65% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@kevinlind kevinlind requested review from cacheung and emdobrin August 14, 2023 21:39
@kevinlind kevinlind merged commit 7689f2f into adobe:dev-v2.2.1 Aug 17, 2023
@kevinlind kevinlind deleted the fix-gradle-warnings branch August 17, 2023 01:09
timkimadobe added a commit that referenced this pull request Sep 18, 2023
* Fix warnings in Gradle files (#80)

* Fix deprecated use of

* Fix Groovy warnings in build files

* Dispatch 'complete' event when streaming connection closed (#83)

* Send 'complete' event after all response handles are recieved when requested

* Update event source variable names to match source name 'CONTENT_COMPLETE'

* Reword method description for sendCompletionRequested

* Add more tests to bump coverage numbers

* Add Content Complete event to event-reference documentation

* Update event-reference with sendCompletion property and response content definition.

* Capitalize 'Defined' in table for completion event description

* Bump version to 2.3.0

* Add content complete event to toc, update response content description

* Revert 'asNode(null)' to 'asNode()'.
Using 'asNode()' gives warning about implicit null value, however passing 'asNode(null)' fails to build publish step.

* Replace hardcoded event source with EventSource.CONTENT_COMPLETE (#89)

* Set Core dependency to 2.4.0

* Replace hardcoded event source with EventSource.CONTENT_COMPLETE

* Fix failing deep copy test after Core changes to ignore invalid objects.

* Initial setup of integration test class and dependencies

* Enable passing test suite preset values via command line and IDE

Update integration test setup steps

* Add convenience method setExpectationForNetworkRequest that accepts a testable network request

First integration test case

* Add new test constants for edge integration testing, alphabetized

* Add integration test cases and helpers

* Update integration test core dependency version to 2.4.0

* Add more test cases

* Apply lint formatting

* Create helper resetTestExpectations() and update TestHelper.resetTestExpectations call

* Remove unused methods

* Refactor networkResponses to store list of all responses for given request

Refactor usages
Update documentation

* Revert makefile changes for followup PR

* Add back junit Assert import lost after merge resolution

* Fix other merge issues

* Rename setResponseConnectionFor to setResponseFor to match iOS naming

---------

Co-authored-by: Kevin Lind <40409666+kevinlind@users.noreply.github.com>
Co-authored-by: Kevin Lind <lind@adobe.com>
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.

2 participants