Skip to content

staging -> main for 2.0.0 release#43

Merged
emdobrin merged 41 commits intomainfrom
staging
Feb 1, 2023
Merged

staging -> main for 2.0.0 release#43
emdobrin merged 41 commits intomainfrom
staging

Conversation

@emdobrin
Copy link
Copy Markdown
Contributor

@emdobrin emdobrin commented Feb 1, 2023

Description

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 and others added 30 commits November 14, 2022 12:41
* Store lint report in CI

* Include Node.js in Android Docker image used to run unit tests.
Node.js is required to run Spotless.

* Add step to run 'sdkmanager --list' for debugging

* Clean build when creating 'ci' directory in Makefile steps

* Use Android 29 x86 system image for functional tests

* Fix coverage file location

* Specify specific codecov file to upload

* Add codecov.yml configuration

* Remove duplcate restore/save gradle cache tasks when running functional tests

* Try running CI functional tests with Android 33 x86_64 image

* Use 'system-images;android-29;default;x86' image for functional-tests.
A recent post by CircleCI suggests that higher API levels and/or system images with Google APIs 'have been observed to be less stable'. It is suggested to use a lower system image if failures are reported.

* Add comment and fix typo
* Update Gradle settings for :edge module to use Core 2.0

* First pass at updating EdgeExtension for 2.0

* Remove class EdgeExtensionListener

* Update EdgeState for Core 2.0

* Add readForEvent and remove event queue in EdgeExtension

* Update Edge public APIs to Core 2.0

* Remove unused EventUtils methods

* Set execute permission to pre-commit Git Hook

* Apply format fixes

* Update EdgeProperties for Core 2.0

* Fix log message

* Fix uses of Log and StringUtils to get code to compile

* Fix retrieval of assurance id to use new shared state and data reader apis

* Simplify EventUtils.getEdgeConfiguration

* Update version to 2.0.0 and dependent Core and Identity versions to 2.0.0

* Add javadoc for onRegistered

* Update :app build.gradle for core 2.0

* Update JavaDoc comments for EdgeSharedStateCallback

* Update ImplementationDetails for Core 2.0

* Move public variables above private variables

* Set public API timeout to 5 sec to match existing 1.0 timeout

* Clarify comment in bootupIfNeeded on use of Hub shared state

* Move API timeout variable to constants class

* Fix wording in sendEvent log messages

* Use public EventSource instead of constant

* Rename EdgeSharedStateCallback setSharedState to createSharedState

* Cleanup functions used to retrieve configuration and identity shared states

* Cleanup EventUtils by using NonNull annotation and using public EventType/EventSource

* Rename EdgeExtension method to processAndQueueEvent

* Fix wording in comment
* Use event type/source from core

* Remove getName, use base string value
* [MOB-17672] Update log usages for 2.x

* More log updates

Co-authored-by: Kevin Lind <40409666+kevinlind@users.noreply.github.com>
* More logging updates for 2.x - test code

* Finaling

* More logging and lambdas
* Implement new processHit, fix HitProcessor tests

* EdgeDataEntity consolidation

* Review impl, fixes
* Implement new processHit, fix HitProcessor tests

* EdgeDataEntity consolidation

* Migrate unit tests to mockito

* Migrate NetworkResponseHandlerTest to mockito

* never, never enough

* Update EdgePublicAPITests for mockito, use eventType/source from core

* Fix EdgeStateTests and add new tests for bootup

* Initial setup on EdgeExtensionTest

* Update log assertions to verify on the new services Log

* just mockitoVersion
* Implement new processHit, fix HitProcessor tests

* EdgeDataEntity consolidation

* Migrate unit tests to mockito

* Migrate NetworkResponseHandlerTest to mockito

* never, never enough

* Update EdgePublicAPITests for mockito, use eventType/source from core

* Fix EdgeStateTests and add new tests for bootup

* Initial setup on EdgeExtensionTest

* Update log assertions to verify on the new services Log

* Update EdgeExtension unit tests, fixes for empty event data handling and data unwrapping

* Update set/getLocationHint unit tests

* Update unit tests for bootup

* Remove MockHitQueue, using mockito

* docs on test utility methods
[MOB-17093] Part3 - re-enable functional tests
* Clean-up and DataReader usages

* Fix check for identityMap

* Increase coverage for RequestBuilder

* Format
* Use JSONUtils, StringUtils from core

* Revert changes

* Clean up the cleanup

* Utils cov++
* Update dependencies

* Update workflows to java 11
* Close hit queue on Edge extension onUnregistered
For restart tests, reset the ServiceProvider to create new instance of DataQueue. Clear database after functional tests.

* Reword method comment for FunctionalTestHelper.resetCoreHelper

* Rename ServiceProviderHelper resetServiceProvider to resetServices
dev-v2.0.0 -> staging for 2.0.0-SNAPSHOT
Some utils functions have been moved to Core.  Refactor to use the Core Utils.
emdobrin and others added 11 commits January 24, 2023 14:05
* 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
dev-v2.0.0 to staging for second 2.0.0-SNAPSHOT
* Update top level README with updated 2.0 instructions

* Update top level README with updated 2.0 instructions

* Update repo URL

* Update final test app to use 2.0 registration and log service

Update XML files to have xml as absolute first element
Update build dependencies to use 2.0 versions of extensions
Remove jetifier

* Update start test app to use 2.0 registration and log service

Update XML files to have xml as absolute first element
Update build dependencies to use 2.0 versions of extensions
Remove jetifier

* Update main readme with new doc links and updated instructions

* Add deprecated warning to registerExtension API

* Update styling

* Replace outdated doc link

* Update instruction to be theme agnostic

Add alternative gradle sync instructions

* Consolidate documentation links in main README

Update formatting

* Update styling

* Update readme and api reference

Replace all usages of acronym

* Remove link to lifecycle implementation in tutorial

* update tutorial app MainApp LOG_SOURCE

* Align main README with edgeconsent layout

* Update years for copyright and license

* Update both getting started guides

* Update assurance connection instructions

* Update tutorial app log statements

Remove api deeplink

* Update tutorial app logs

* Update api doc url

* Update getting started example registration

Update doc readme with test app getting started

* Fix swift syntax to java
* Edge test app kt

* create util lib to share common code across test apps

* Format files

* Review impl
* WIP kotlin api updates

* WIP kotlin api updates

* Remove kotlin converted class examples

* Group examples by language

Add kotlin example for Experience Event

* Remove interface required methods

* Update gitbook link to main core repo

* Align readme table with edgeconsents current wording

* Update api docs according to feedback
* Update to latest dependencies

* More dependencies cleanup
* Update header spacing

* Remove whitespace after headers
Copy link
Copy Markdown
Contributor

@timkimadobe timkimadobe left a comment

Choose a reason for hiding this comment

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

Looks great!

@emdobrin emdobrin merged commit 4501cc8 into main Feb 1, 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.

5 participants