Skip to content

Commit

Permalink
Remove CampaignClassic from migration doc and update assurance readme
Browse files Browse the repository at this point in the history
Remove CampaignClassic from migration doc and update assurance readme.
  • Loading branch information
cacheung committed Mar 9, 2023
1 parent 8018f56 commit a88ece3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ At this time, the following ACP-prefix libraries can be switched out with their
| @adobe/react-native-acpmedia | NA |
| @adobe/react-native-acpaudience | NA |
| @adobe/react-native-acptarget | @adobe/react-native-aeptarget |
| @adobe/react-native-acpcampaign | @adobe/react-native-aepcampaignclassic |
| @adobe/react-native-acpcampaign | NA |
| @adobe/react-native-aepassurance:2.x (compatible with ACP libraries) | @adobe/react-native-aepassurance:4.x (compatible with AEP libraries)|

<!--- TODO: add more descritions for Assurance library?? --->

## Update SDK initialization
Remove the deprecated registration code and the extensions that are not supported in AEP React Native libraries.

Expand All @@ -48,7 +46,6 @@ import com.adobe.marketing.mobile.Signal;
import com.adobe.marketing.mobile.UserProfile;
import com.adobe.marketing.mobile.Target;
import com.adobe.marketing.mobile.Places;
import com.adobe.marketing.mobile.CampaignClassic;
import com.adobe.marketing.mobile.Assurance;
...
import android.app.Application;
Expand Down Expand Up @@ -88,7 +85,6 @@ public class MainApplication extends Application implements ReactApplication {
Signal.EXTENSION,
Target.EXTENSION,
Places.EXTENSION,
CampaignClassic.EXTENSION,
Assurance.EXTENSION,
);
MobileCore.registerExtensions(extensions, o -> MobileCore.configureWithAppID("YourEnvironmentFileID"));
Expand Down Expand Up @@ -122,7 +118,6 @@ public class MainApplication extends Application implements ReactApplication {
@import AEPLifecycle;
@import AEPSignal;
@import AEPTarget;
@import AEPCampaignClassic;
@import AEPPlaces;
@import AEPAssurance;
// --- 2. end ----
Expand Down Expand Up @@ -163,7 +158,6 @@ public class MainApplication extends Application implements ReactApplication {
AEPMobileLifecycle.class,
AEPMobileSignal.class,
AEPMobileTarget.class,
AEPMobileCampaignClassic.class,
AEPMobilePlaces.class,
AEPMobileAssurance.class,
] completion:^{
Expand Down
4 changes: 2 additions & 2 deletions packages/assurance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ iOS
}
```

To connect to an Assurance session by scanning the QR code. Follow [Apple developer](https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app) documentation to set custom URL scheme for your application. Finally, implement the `openURL` delegate method and pass the deeplink URL to startSessionWithURL API.
To connect to an Assurance session by scanning the QR code, follow [Apple developer](https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app) documentation to set custom URL scheme for your application. Finally, implement the `openURL` delegate method and pass the deeplink URL to startSessionWithURL API.

```objective-c
-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
Expand Down Expand Up @@ -86,7 +86,7 @@ public class MainApplication extends Application implements ReactApplication {
}
```

To connect to an Assurance session by scanning the QR code. Follow the [Android documentation](https://developer.android.com/training/app-links/deep-linking) on information about how to setup a deeplink.
To connect to an Assurance session by scanning the QR code, follow the [Android documentation](https://developer.android.com/training/app-links/deep-linking) for more information about how to setup a deeplink.

##### Start Assurance session:

Expand Down

0 comments on commit a88ece3

Please sign in to comment.