Skip to content

Update documentation and tutorial for 2.0#35

Merged
timkimadobe merged 25 commits intoadobe:dev-v2.0.0from
timkimadobe:update-tutorial-2.0
Jan 30, 2023
Merged

Update documentation and tutorial for 2.0#35
timkimadobe merged 25 commits intoadobe:dev-v2.0.0from
timkimadobe:update-tutorial-2.0

Conversation

@timkimadobe
Copy link
Copy Markdown
Contributor

@timkimadobe timkimadobe commented Jan 24, 2023

Description

This PR updates both documentation and tutorial apps to reflect the new Core 2.0 dependencies.
Start/Final app:

  1. Update dependencies to production 2.0.0 versions (will be broken until production versions are available)
  2. Update logs to use Core Services Log
    • public LOG_TAG defined in MainApp and static imported into other tutorial app files where needed
  3. res/xml files updated to move the xml definition to the very top (above the generated license), which was causing build errors
  4. Remove jetifier from gradle.properties (assurance 2.0)

Edge Tutorial:

  1. Replace all gitbook docs with updated doc links

API reference:

  1. Add deprecation warning to registerExtension API

Main README:

  1. Update dependencies to latest 2.0.0 version with link to latest extension versions
  2. Replace outdated doc links
  3. Update mobile property instructions to refer to more comprehensive tutorial instructions
  4. Misc. doc cleanup

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 24, 2023

Codecov Report

Merging #35 (4503009) into dev-v2.0.0 (ad623ab) will not change coverage.
The diff coverage is n/a.

❗ Current head 4503009 differs from pull request most recent head 5b979c7. Consider uploading reports for the commit 5b979c7 to get more accurate results

@@              Coverage Diff              @@
##             dev-v2.0.0      #35   +/-   ##
=============================================
  Coverage         83.05%   83.05%           
  Complexity          361      361           
=============================================
  Files                29       29           
  Lines              1534     1534           
  Branches            217      217           
=============================================
  Hits               1274     1274           
  Misses              161      161           
  Partials             99       99           
Flag Coverage Δ
functional-tests 66.17% <ø> (ø)
unit-tests 79.07% <ø> (ø)

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

Update XML files to have xml as absolute first element
Update build dependencies to use 2.0 versions of extensions
Remove jetifier
Update XML files to have xml as absolute first element
Update build dependencies to use 2.0 versions of extensions
Remove jetifier
@timkimadobe timkimadobe marked this pull request as ready for review January 24, 2023 23:38
@timkimadobe timkimadobe changed the title Update tutorial 2.0 Update documentation and tutorial for 2.0 Jan 25, 2023
Add alternative gradle sync instructions
@emdobrin emdobrin linked an issue Jan 25, 2023 that may be closed by this pull request
README.md Outdated
To open and run the project, open the `code/settings.gradle` file in Android Studio.

**Data Collection mobile property prerequisites**
#### **Adobe Experience Platform mobile property prerequisites**
Copy link
Copy Markdown
Contributor

@addb addb Jan 25, 2023

Choose a reason for hiding this comment

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

nit: Do we require bold here since its already a header?

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.

Thanks for catching this! Updated to remove bold style

README.md Outdated
The Adobe Experience Platform Edge Network mobile extension allows you to send data to the Adobe Edge Network from a mobile application. This extension allows you to implement Adobe Experience Cloud capabilities in a more robust way, serve multiple Adobe solutions though one network call, and simultaneously forward this information to the Adobe Experience Platform.

The AEP Edge Network mobile extension is an extension for the [Adobe Experience Platform SDK](https://aep-sdks.gitbook.io) and requires the `AEPCore` and `AEPServices` extensions for event handling, as well as the `AEPEdgeIdentity` extension for retrieving the identities, such as ECID.
The AEP Edge Network mobile extension is an extension for the [Adobe Experience Platform SDK](https://developer.adobe.com/client-sdks/documentation/) and requires the `AEPCore` and `AEPServices` extensions for event handling, as well as the `AEPEdgeIdentity` extension for handling identities, such as `ECID`.
Copy link
Copy Markdown
Contributor

@addb addb Jan 25, 2023

Choose a reason for hiding this comment

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

Let's move all non-internal links to one section on Readme and reference that section.

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.

Ok, I consolidated the documentation links and moved its placement to make it more prominent; let me know what you think of the changes!

README.md Outdated
To learn more about this extension, see the [Adobe Experience Platform Edge Network](https://developer.adobe.com/client-sdks/documentation/edge-network/) documentation.

Additional information about SDK usage and architecture can be found in the [Documentation](Documentation) directory.

Copy link
Copy Markdown
Contributor

@addb addb Jan 26, 2023

Choose a reason for hiding this comment

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

Can we reword to something on these lines:

Information regarding AEP Edge Network extension implementation, API usage and architecture can be found in Documentation directory

Learn more about AEP Edge Network extension along with all the other AEP Mobile extensions on the official AEP Mobile documentation.

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! Made some adjustments to the wording, please let me know what you think!

Copy link
Copy Markdown
Contributor

@cacheung cacheung left a comment

Choose a reason for hiding this comment

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

getting-started.md still have two links pointing to
aep-sdks.gitbook doc

README.md Outdated

Additional documentation for usage and SDK architecture can be found under the [Documentation](Documentation) directory.
| [AEP Core Extensions](https://github.com/adobe/aepsdk-core-android) | The AEPCore and AEPServices represent the foundation of the Adobe Experience Platform SDK. |
| [AEP onsent Extension](https://github.com/adobe/aepsdk-edgeconsent-android) | The AEPConsent extension enables consent preferences collection from your mobile app when using the AEP Mobile SDK and the Edge Network extension. |
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.

AEP Consent

README.md Outdated
implementation 'com.adobe.marketing.mobile:edgeidentity:1.+'
implementation 'com.adobe.marketing.mobile:edge:1.+'
implementation 'com.adobe.marketing.mobile:core:1.+'
implementation 'com.adobe.marketing.mobile:core:2.0.0'
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.

We will point this to getting started page.

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.

Integrate the Edge Network extension into your app by including the following the getting started guide.

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.

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.

You can wait for edgeIdentity doc PR reviewed then change.

Registers the Edge Network extension with the Mobile Core extension.

> **Warning**
> Deprecated as of 2.0.0. Use the [MobileCore.registerExtensions API](https://developer.adobe.com/client-sdks/documentation/mobile-core/api-reference) instead.
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.

Replace all usages of acronym
@emdobrin emdobrin added the documentation Improvements or additions to documentation label Jan 27, 2023
Copy link
Copy Markdown
Contributor

@emdobrin emdobrin left a comment

Choose a reason for hiding this comment

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

@timkimadobe your changes look great
left small cleanup comments, aside from the README that needs few more updates

## Documentation

Additional documentation for usage and SDK architecture can be found under the [Documentation](Documentation) directory.
Information about Adobe Experience Platform Edge Network's implementation, API usage, and architecture can be found in the [Documentation](Documentation) directory.
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.

can you include Getting started with the test app in the Documentation/README.md contents table?

class MainApp : Application() {

1. Add the Mobile Core, Identity for Edge Network, and Edge Network extensions to your project using the app's Gradle file:
private var ENVIRONMENT_FILE_ID: String = ""
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: you can use ENVIRONMENT_FILE_ID: String = "YOUR_APP_ENVIRONMENT_ID" similar to java code

MobileCore.configureWithAppID(ENVIRONMENT_FILE_ID);

MobileCore.registerExtensions(
Arrays.asList(Consent.EXTENSION, Edge.EXTENSION, Identity.EXTENSION),
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.

consent is not installed/imported, maybe we can remove from these two examples

.setXdmSchema(eventData)
.build();
Log.d(LOG_TAG, "Sending event");
Log.debug(LOG_TAG, LOG_SOURCE, "Sending event");
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: "Sending ProductView Edge event"

@Override
public void onComplete(final List<EdgeEventHandle> handles) {
Log.d(LOG_TAG, "Edge event callback called");
Log.debug(LOG_TAG, LOG_SOURCE, "Edge event callback called");
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: "Callback called for ProductAdd Edge event"

Registers the Edge Network extension with the Mobile Core extension.

> **Warning**
> Deprecated as of 2.0.0. Use the [MobileCore.registerExtensions API](https://github.com/adobe/aepsdk-core-android) instead.
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.

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.

Copy link
Copy Markdown
Contributor Author

@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.

Thanks for the reviews @addb and @emdobrin! Updated based on feedback and ready for followup review

README.md Outdated
To learn more about this extension, see the [Adobe Experience Platform Edge Network](https://developer.adobe.com/client-sdks/documentation/edge-network/) documentation.

Additional information about SDK usage and architecture can be found in the [Documentation](Documentation) directory.

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! Made some adjustments to the wording, please let me know what you think!

Copy link
Copy Markdown
Contributor

@addb addb left a comment

Choose a reason for hiding this comment

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

looks good!

@timkimadobe timkimadobe merged commit 8939775 into adobe:dev-v2.0.0 Jan 30, 2023
@timkimadobe timkimadobe deleted the update-tutorial-2.0 branch January 30, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update tutorial app and docs for 2.0.0

4 participants