Skip to content

Commit

Permalink
Review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
praveek committed Nov 28, 2023
1 parent 821f9f9 commit de2b9b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/resources/migration/ios/tabs/migrate-to-3x.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
@import AEPIdentity;
@import AEPUserProfile;
@import AEPServices;
@import AEPAssurance;
...

// AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
const UIApplicationState appState = application.applicationState;
[AEPMobileCore setLogLevel: AEPLogLevelDebug];
[AEPMobileCore registerExtensions:@[AEPMobileSignal.class, AEPMobileLifecycle.class, AEPMobileUserProfile.class, AEPMobileIdentity.class, AEPMobileAssurance.class] completion:^{
[AEPMobileCore registerExtensions:@[AEPMobileSignal.class, AEPMobileLifecycle.class, AEPMobileUserProfile.class, AEPMobileIdentity.class] completion:^{
[AEPMobileCore configureWithAppId: @"<your_environment_file_id>"];
if (appState != UIApplicationStateBackground) {
// only start lifecycle if the application is not in the background
Expand All @@ -29,7 +28,6 @@

```swift
// AppDelegate.swift
import AEPAssurance
import AEPCore
import AEPIdentity
import AEPLifecycle
Expand All @@ -38,7 +36,7 @@ import AEPUserProfile

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let appState = application.applicationState
MobileCore.registerExtensions([Signal.self, Lifecycle.self, UserProfile.self, Identity.self, Assurance.self], {
MobileCore.registerExtensions([Signal.self, Lifecycle.self, UserProfile.self, Identity.self], {
MobileCore.configureWith(appId: "<your_environment_file_id>")
if appState != .background {
// only start lifecycle if the application is not in the background
Expand Down

0 comments on commit de2b9b1

Please sign in to comment.