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

Feature/integrate project griffon #43

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ publish/src
publish/package
demo/report/report.html
demo/report/stats.json
!demo-vue/app/app.js
!demo-vue/app/app.js
src/package-lock.json
demo/package-lock.json
481 changes: 220 additions & 261 deletions demo/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/adobe-analytics.android.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ export declare class AdobeAnalytics extends AdobeAnalyticsCommon {
getExperienceCloudId(): Promise<string>;
getIdentityInfoVariables(): Promise<string>;
private convertToHashMap;
startAssuranceSession(url: any): void;
}
8 changes: 8 additions & 0 deletions src/adobe-analytics.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import Signal = com.adobe.marketing.mobile.Signal;
import Identity = com.adobe.marketing.mobile.Identity;
import Analytics = com.adobe.marketing.mobile.Analytics;
import UserProfile = com.adobe.marketing.mobile.UserProfile;
import Assurance = com.adobe.marketing.mobile.Assurance;
import Target = com.adobe.marketing.mobile.Target;
import MobilePrivacyStatus = com.adobe.marketing.mobile.MobilePrivacyStatus;
import AdobeCallbackWithError = com.adobe.marketing.mobile.AdobeCallbackWithError;
import AdobeCallback = com.adobe.marketing.mobile.AdobeCallback;
Expand All @@ -20,6 +22,8 @@ export class AdobeAnalytics extends AdobeAnalyticsCommon {
this.app = app;
MobileCore.setApplication(this.app);
MobileCore.setLogLevel(adobeAnalyticsSetting.debug ? LoggingMode.DEBUG : LoggingMode.ERROR);
Assurance.registerExtension();
Target.registerExtension();
UserProfile.registerExtension();
Identity.registerExtension();
Lifecycle.registerExtension();
Expand Down Expand Up @@ -95,4 +99,8 @@ export class AdobeAnalytics extends AdobeAnalyticsCommon {
}, new java.util.HashMap<string, string>());
}

public startAssuranceSession(url: any) {
//not applicable for Android
}

}
1 change: 1 addition & 0 deletions src/adobe-analytics.common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export declare abstract class AdobeAnalyticsCommon {
abstract optOut(): void;
abstract getExperienceCloudId(): Promise<string>;
abstract getIdentityInfoVariables(): Promise<string>;
abstract startAssuranceSession(url: any): any;
}
export interface AdobeAnalyticsSettings {
environmentId: string;
Expand Down
1 change: 1 addition & 0 deletions src/adobe-analytics.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export abstract class AdobeAnalyticsCommon {
public abstract optOut(): void;
public abstract getExperienceCloudId(): Promise<string>;
public abstract getIdentityInfoVariables(): Promise<string>;
public abstract startAssuranceSession(url: any);
}

export interface AdobeAnalyticsSettings {
Expand Down
1 change: 1 addition & 0 deletions src/adobe-analytics.ios.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export declare class AdobeAnalytics extends AdobeAnalyticsCommon {
getExperienceCloudId(): Promise<string>;
getIdentityInfoVariables(): Promise<string>;
resumeCollectingLifecycleData(): void;
startAssuranceSession(url: NSURL): void;
}
6 changes: 6 additions & 0 deletions src/adobe-analytics.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export class AdobeAnalytics extends AdobeAnalyticsCommon {
public initSdk(adobeAnalyticsSettings: AdobeAnalyticsSettings, app: UIApplication): void {
ACPCore.setLogLevel(adobeAnalyticsSettings.debug ? ACPMobileLogLevel.Debug : ACPMobileLogLevel.Error);
ACPCore.configureWithAppId(adobeAnalyticsSettings.environmentId);
AEPAssurance.registerExtension();
ACPTarget.registerExtension();
ACPUserProfile.registerExtension();
ACPIdentity.registerExtension();
ACPLifecycle.registerExtension();
Expand Down Expand Up @@ -76,4 +78,8 @@ export class AdobeAnalytics extends AdobeAnalyticsCommon {
public resumeCollectingLifecycleData(): void {
ACPCore.lifecycleStart(null);
}

public startAssuranceSession(url: NSURL): void {
AEPAssurance.startSession(url);
}
}
245 changes: 111 additions & 134 deletions src/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@essent/nativescript-adobe-experience-cloud",
"version": "2.0.0",
"version": "2.1.0",
"description": "Nativescript Adobe experience cloud integration plugin",
"main": "adobe-analytics",
"typings": "index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/platforms/android/include.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ android {
}

dependencies {
implementation 'com.adobe.marketing.mobile:assurance:1.+'
implementation 'com.adobe.marketing.mobile:target:1.+'
implementation 'com.adobe.marketing.mobile:userprofile:1.+'
implementation 'com.adobe.marketing.mobile:sdk-core:1.+'
implementation 'com.adobe.marketing.mobile:analytics:1.+'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module native { export class Array<T> { constructor(); length: number; [index: number]: T; } }

import globalAndroid = android;

Loading