Skip to content

Replace hardcoded event source with EventSource.CONTENT_COMPLETE#89

Merged
emdobrin merged 3 commits intoadobe:dev-v2.3.0from
kevinlind:update-core
Aug 31, 2023
Merged

Replace hardcoded event source with EventSource.CONTENT_COMPLETE#89
emdobrin merged 3 commits intoadobe:dev-v2.3.0from
kevinlind:update-core

Conversation

@kevinlind
Copy link
Copy Markdown
Contributor

Description

  • Update Core dependency to 2.4.0
  • Replace hardcoded "com.adobe.eventSource.contentComplete" with Core's EventSource.CONTENT_COMPLETE
  • Fix failing Utils deep copy test after Core's fix to ignore invalid objects in maps

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.

@kevinlind kevinlind requested a review from timkimadobe August 30, 2023 23:12
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 30, 2023

Codecov Report

Merging #89 (2d5287a) into dev-v2.3.0 (2773a7d) will decrease coverage by 0.25%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             dev-v2.3.0      #89      +/-   ##
================================================
- Coverage         83.84%   83.59%   -0.25%     
  Complexity          385      385              
================================================
  Files                29       29              
  Lines              1578     1578              
  Branches            223      223              
================================================
- Hits               1323     1319       -4     
- Misses              161      165       +4     
  Partials             94       94              
Flag Coverage Δ
functional-tests 66.48% <ø> (ø)
unit-tests 79.53% <ø> (-0.25%) ⬇️

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

Files Changed Coverage Δ
...adobe/marketing/mobile/NetworkResponseHandler.java 84.62% <ø> (ø)

... and 1 file with indirect coverage changes

@emdobrin emdobrin merged commit 4488f3d into adobe:dev-v2.3.0 Aug 31, 2023
@kevinlind kevinlind deleted the update-core branch August 31, 2023 20:29
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.

3 participants