Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ dist
.tern-port

build/
## User settings
xcuserdata/
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
Copyright 2021 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
package com.aepsampleapp;

import com.facebook.react.ReactActivity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
Copyright 2021 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
package com.aepsampleapp;

import android.app.Application;
Expand Down Expand Up @@ -61,6 +72,7 @@ public void onCreate() {
Identity.registerExtension();
Lifecycle.registerExtension();
Signal.registerExtension();
MobileCore.configureWithAppID("yourAppID");
MobileCore.start(new AdobeCallback() {
@Override
public void call(Object o) {
Expand Down
1 change: 1 addition & 0 deletions apps/AEPSampleApp/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ allprojects {
google()
jcenter()
maven { url 'https://www.jitpack.io' }
mavenCentral()
}
}
12 changes: 12 additions & 0 deletions apps/AEPSampleApp/ios/AEPSampleApp/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
Copyright 2021 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>
@import AEPCore;
Expand Down
15 changes: 14 additions & 1 deletion apps/AEPSampleApp/ios/AEPSampleApp/AppDelegate.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
Copyright 2021 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

#import "AppDelegate.h"

#import <React/RCTBridge.h>
Expand Down Expand Up @@ -48,7 +60,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
[AEPMobileCore setLogLevel: AEPLogLevelTrace];
[AEPMobileCore setLogLevel: AEPLogLevelDebug];
[AEPMobileCore configureWithAppId:@"yourAppID"];
[AEPMobileCore registerExtensions: @[AEPMobileIdentity.class, AEPMobileLifecycle.class, AEPMobileSignal.class, AEPMobileUserProfile.class] completion:^{
[AEPMobileCore lifecycleStart:@{@"contextDataKey": @"contextDataVal"}];
}
Expand Down
7 changes: 0 additions & 7 deletions apps/AEPSampleApp/ios/AEPSampleApp/Empty.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
//
// Empty.swift
// AEPSampleApp
//
// Created by Yansong Yang on 6/29/21.
//

import Foundation
12 changes: 12 additions & 0 deletions apps/AEPSampleApp/ios/AEPSampleApp/main.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
Copyright 2021 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

#import <UIKit/UIKit.h>

#import "AppDelegate.h"
Expand Down
12 changes: 12 additions & 0 deletions apps/AEPSampleApp/ios/AEPSampleAppTests/AEPSampleAppTests.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
Copyright 2021 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>

Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion packages/userprofile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"name": "Adobe Experience Platform SDK Team"
},
"peerDependencies": {
"@adobe/react-native-aepcore": "1.0.0",
"@adobe/react-native-aepcore": "^1.0.0",
"react-native": ">=0.60.0"
}
}