Skip to content

Update test app logging service and instruction text#29

Merged
timkimadobe merged 5 commits intoadobe:dev-v2.0.0from
timkimadobe:update-test-app-2.0
Jan 24, 2023
Merged

Update test app logging service and instruction text#29
timkimadobe merged 5 commits intoadobe:dev-v2.0.0from
timkimadobe:update-test-app-2.0

Conversation

@timkimadobe
Copy link
Copy Markdown
Contributor

Description

This PR updates the Edge test app to use the Core 2.0 logging service and some instruction/comment text

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 Jan 18, 2023

Codecov Report

Merging #29 (adc7a2f) into dev-v2.0.0 (31fe7e6) will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             dev-v2.0.0      #29   +/-   ##
=============================================
  Coverage         83.17%   83.17%           
  Complexity          380      380           
=============================================
  Files                29       29           
  Lines              1545     1545           
  Branches            219      219           
=============================================
  Hits               1285     1285           
  Misses              161      161           
  Partials             99       99           
Flag Coverage Δ
functional-tests 66.15% <ø> (ø)
unit-tests 79.22% <ø> (ø)

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

public class TestApplication extends Application {

private static final String LOG_TAG = "TestApplication";
private static final String LOG_TAG = "EdgeTestApplication";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

MainActivity is using LOG_TAG = "TestApp". Can you consolidate the two? Maybe rename to "EdgeTestApp", make public static final and then static import this LOG_TAG into MainActivity?

@timkimadobe
Copy link
Copy Markdown
Contributor Author

Thanks for the review @kevinlind! I've updated the test app log tags accordingly

@emdobrin emdobrin requested a review from kevinlind January 24, 2023 02:10
MobileCore.registerExtensions(
Arrays.asList(Edge.EXTENSION, Identity.EXTENSION, Consent.EXTENSION, Assurance.EXTENSION),
o -> Log.d(LOG_TAG, "Mobile SDK was initialized")
o -> Log.debug(LOG_TAG, LOG_SOURCE, "Mobile SDK was initialized")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Should we reword it to something like AEP Mobile SDK initialized

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you! I think that sounds good, I've updated the log text to the suggested version

@timkimadobe timkimadobe merged commit ad623ab into adobe:dev-v2.0.0 Jan 24, 2023
@timkimadobe timkimadobe deleted the update-test-app-2.0 branch January 24, 2023 22:40
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