Skip to content

dev-v2.0.0 to staging for second 2.0.0-SNAPSHOT#36

Merged
kevinlind merged 5 commits intostagingfrom
dev-v2.0.0
Jan 25, 2023
Merged

dev-v2.0.0 to staging for second 2.0.0-SNAPSHOT#36
kevinlind merged 5 commits intostagingfrom
dev-v2.0.0

Conversation

@kevinlind
Copy link
Copy Markdown
Contributor

Description

Merge dev-v2.0.0 to Staging branch to create second 2.0.0-SNAPSHOT

  • Uses Core's MapUtils in replace of Edge's Utils to reduce duplicated code.
  • Clean up error handling and reporting in EdgeHitProcessor.processHit. Log exception stack trace for any exceptions thrown from EdgeCallback.onComplete.
  • Updates to issue templates
  • Updates test app's instructions for 2.0.0 and use MobileCore Log instead of Android Log.

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.

cacheung and others added 5 commits January 20, 2023 18:52
Some utils functions have been moved to Core.  Refactor to use the Core Utils.
* Update test app instructions and log

* Consolidate log tags in test app

* Apply lint formatting

* Add more context for report suite

Fix whitespace issues with headers

* Update core registration log text
* Refactor EdgeHitProcessor.processHit to improve error handling

* use DataReader when reading location hint scope from response

* Add additional unit tests to cover the added error handling.

* Add event type in log message when config id is not present

* Catch any exceptions thrown from EdgeCallback when completing send event requests

* Consolidate creation of EdgeEndpoint code to helper method

* Fix typo in test case comment

* Add stack trace to logs when an exception is caught in EdgeCallback.

* Specify onComplete method name in log warning

* use android.util.Log.getStackTrackeString to print stack trace to logs

* Check string length instead of catching IndexOutOfBoundsException when processing network response

* Pass null for configuration map to EdgeDataEntity in test cases where configuration is empty
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 25, 2023

Codecov Report

Merging #36 (8f074dc) into staging (31fe7e6) will increase coverage by 0.11%.
The diff coverage is 83.87%.

@@              Coverage Diff              @@
##             staging      #36      +/-   ##
=============================================
+ Coverage      83.17%   83.28%   +0.11%     
+ Complexity       380      367      -13     
=============================================
  Files             29       29              
  Lines           1545     1555      +10     
  Branches         219      219              
=============================================
+ Hits            1285     1295      +10     
  Misses           161      161              
  Partials          99       99              
Flag Coverage Δ
functional-tests 65.85% <56.99%> (-0.30%) ⬇️
unit-tests 79.16% <79.57%> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
...rc/main/java/com/adobe/marketing/mobile/Utils.java 93.55% <ø> (-1.69%) ⬇️
...adobe/marketing/mobile/NetworkResponseHandler.java 82.14% <37.50%> (ø)
...src/main/java/com/adobe/marketing/mobile/Edge.java 60.87% <50.00%> (ø)
...n/java/com/adobe/marketing/mobile/EdgeRequest.java 65.00% <66.67%> (-6.43%) ⬇️
.../com/adobe/marketing/mobile/EdgeConsentUpdate.java 81.48% <75.00%> (ø)
...ava/com/adobe/marketing/mobile/RequestBuilder.java 84.00% <80.00%> (ø)
...a/com/adobe/marketing/mobile/EdgeHitProcessor.java 85.59% <91.11%> (+3.78%) ⬆️
...e/marketing/mobile/CompletionCallbacksManager.java 96.88% <100.00%> (+0.45%) ⬆️
...java/com/adobe/marketing/mobile/EdgeExtension.java 85.26% <100.00%> (ø)
...com/adobe/marketing/mobile/EdgeNetworkService.java 73.82% <100.00%> (+0.42%) ⬆️
... and 6 more

@kevinlind kevinlind merged commit c38d514 into staging Jan 25, 2023
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.

4 participants