Skip to content

Commit

Permalink
Update Identity FAQ with correct Android setup instructions (#670)
Browse files Browse the repository at this point in the history
* Update Identity FAQ with correct Android setup instructions when using both Identity extensions.

* Add blank lines around code blocks.

* Change order of list of extensions to make consistent with Kotlin and Java examples.
  • Loading branch information
kevinlind authored Aug 29, 2024
1 parent 2084a0a commit 597a1db
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions src/pages/edge/identity-for-edge-network/tabs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,33 @@ import Alerts from '/src/pages/resources/alerts.md'

1. Add the Mobile Core and Edge extensions to your project using the app's Gradle file.

**Kotlin**

```kotlin
implementation(platform("com.adobe.marketing.mobile:sdk-bom:3.+"))
implementation("com.adobe.marketing.mobile:core")
implementation("com.adobe.marketing.mobile:identity")
implementation("com.adobe.marketing.mobile:edge")
implementation("com.adobe.marketing.mobile:edgeidentity")
```

**Groovy**

```java
implementation platform('com.adobe.marketing.mobile:sdk-bom:3.+')
implementation 'com.adobe.marketing.mobile:core'
implementation 'com.adobe.marketing.mobile:identity'
implementation 'com.adobe.marketing.mobile:edge'
implementation 'com.adobe.marketing.mobile:edgeidentity'
```

<Alerts query="platform=android-gradle&componentClass=InlineNestedAlert"/>

2. Import the Mobile Core and Edge extensions in your application class.
2. Import the Mobile Core and Edge extensions in your application class but do not include the Identity or Identity for Edge Network extensions. Instead, use their fully qualified names during registration and when calling their APIs.

```java
import com.adobe.marketing.mobile.MobileCore;
import com.adobe.marketing.mobile.Edge;
import com.adobe.marketing.mobile.edge.identity.Identity;
```

<Variant platform="ios" task="download" repeat="7"/>
Expand Down Expand Up @@ -78,7 +90,11 @@ public class MobileApp extends Application {

// Register Adobe Experience Platform SDK extensions
MobileCore.registerExtensions(
Arrays.asList(Edge.EXTENSION, Identity.EXTENSION),
Arrays.asList(
Edge.EXTENSION,
com.adobe.marketing.mobile.edge.identity.Identity.EXTENSION,
com.adobe.marketing.mobile.Identity.EXTENSION
),
o -> Log.debug("MobileApp", "MobileApp", "Adobe Experience Platform Mobile SDK initialized.")
);
}
Expand All @@ -97,7 +113,11 @@ class MobileApp : Application() {
MobileCore.configureWithAppID(ENVIRONMENT_FILE_ID)
// Register Adobe Experience Platform SDK extensions
MobileCore.registerExtensions(
listOf(Edge.EXTENSION, Identity.EXTENSION)
listOf(
Edge.EXTENSION,
com.adobe.marketing.mobile.edge.identity.Identity.EXTENSION,
com.adobe.marketing.mobile.Identity.EXTENSION
)
) {
Log.debug("MobileApp", "MobileApp", "Adobe Experience Platform Mobile SDK initialized.")
}
Expand Down

0 comments on commit 597a1db

Please sign in to comment.