Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge Identity setAdvertisingIdentitfier API Doc Update #775

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update installation and registration steps with optional edge consent…
… instructions

Create new Kotlin section and consolidate Gradle instructions
  • Loading branch information
timkimadobe committed Jun 6, 2022
commit 5734221d4ec9ef1c52af8134197808a06c294994
34 changes: 25 additions & 9 deletions foundation-extensions/identity-for-edge-network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,35 @@ The following instructions are for configuring an application using Adobe Experi

{% tabs %}
{% tab title="Android" %}
### Java

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

```java
implementation 'com.adobe.marketing.mobile:core:1.+'
implementation 'com.adobe.marketing.mobile:edge:1.+'
implementation 'com.adobe.marketing.mobile:edgeidentity:1.+'
implementation 'com.adobe.marketing.mobile:edgeconsent:1.+' // Recommended when using the setAdvertisingIdentifier API
```

2. Import the Mobile Core and Edge extensions in your Application class.

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

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

### Kotlin

```kotlin
import com.adobe.marketing.mobile.MobileCore
import com.adobe.marketing.mobile.Edge
import com.adobe.marketing.mobile.edge.identity.Identity
import com.adobe.marketing.mobile.edge.consent.Consent
```

{% endtab %}

Expand All @@ -52,6 +64,7 @@ The following instructions are for configuring an application using Adobe Experi
pod 'AEPCore'
pod 'AEPEdge'
pod 'AEPEdgeIdentity'
pod 'AEPEdgeConsent' // Recommended when using the setAdvertisingIdentifier API
end
```

Expand All @@ -64,6 +77,7 @@ The following instructions are for configuring an application using Adobe Experi
import AEPCore
import AEPEdge
import AEPEdgeIdentity
import AEPEdgeConsent
```

### Objective-C
Expand All @@ -73,6 +87,7 @@ import AEPEdgeIdentity
@import AEPCore;
@import AEPEdge;
@import AEPEdgeIdentity;
@import AEPEdgeConsent;
```
{% endtab %}

Expand Down Expand Up @@ -100,7 +115,8 @@ public class MobileApp extends Application {
try {
Edge.registerExtension();
Identity.registerExtension();
// register other extensions
Consent.registerExtension();
// Register other extensions here
MobileCore.start(new AdobeCallback () {
@Override
public void call(Object o) {
Expand All @@ -124,7 +140,7 @@ public class MobileApp extends Application {
```swift
// AppDelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
MobileCore.registerExtensions([Identity.self, Edge.self], {
MobileCore.registerExtensions([Identity.self, Consent.self, Edge.self], {
MobileCore.configureWith(appId: "yourLaunchEnvironmentID")
})
...
Expand All @@ -136,7 +152,7 @@ func application(_ application: UIApplication, didFinishLaunchingWithOptions lau
```objectivec
// AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[AEPMobileCore registerExtensions:@[AEPMobileEdgeIdentity.class, AEPMobileEdge.class] completion:^{
[AEPMobileCore registerExtensions:@[AEPMobileEdgeIdentity.class, AEPMobileEdgeConsent.class, AEPMobileEdge.class] completion:^{
...
}];
[AEPMobileCore configureWithAppId: @"yourLaunchEnvironmentID"];
Expand Down