react-native-incognia 6.14.0 → 6.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/.gradle/8.1.1/checksums/checksums.lock +0 -0
- package/android/.gradle/{7.4.2 → 8.1.1}/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.1.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/build.gradle +2 -2
- package/lib/commonjs/index.js +31 -14
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/package.json +1 -1
- package/react-native-incognia.podspec +3 -3
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/ios/Incognia.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/Incognia.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/Incognia.xcodeproj/xcuserdata/mateus.loureiro.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- /package/android/.gradle/{7.4.2 → 8.1.1}/dependencies-accessors/gc.properties +0 -0
- /package/android/.gradle/{7.4.2 → 8.1.1}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{7.4.2 → 8.1.1}/gc.properties +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Tue
|
|
2
|
-
gradle.version=
|
|
1
|
+
#Tue Feb 20 15:18:08 BRT 2024
|
|
2
|
+
gradle.version=8.1.1
|
package/android/build.gradle
CHANGED
|
@@ -57,6 +57,6 @@ dependencies {
|
|
|
57
57
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
58
58
|
implementation "com.google.android.gms:play-services-ads-identifier:${safeExtGet('googlePlayServicesAdsIdentifierVersion', '17.0.0')}"
|
|
59
59
|
implementation "com.google.android.gms:play-services-location:${safeExtGet('googlePlayServicesLocationVersion', '17.0.0')}"
|
|
60
|
-
api 'com.incognia:incognia-br:6.
|
|
61
|
-
api 'com.incognia:incognia-trial-br:6.
|
|
60
|
+
api 'com.incognia:incognia-br:6.21.+'
|
|
61
|
+
api 'com.incognia:incognia-trial-br:6.21.+'
|
|
62
62
|
}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -3,28 +3,42 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.default = exports.Trial = exports.ConsentTypes = exports.notifyAppInForeground = exports.setLocationEnabled = exports.fetchInstallationId = exports.denyConsentTypes = exports.allowConsentTypes = exports.checkConsent = exports.requestPrivacyConsent = exports.trackLocalizedEvent = exports.trackEvent = exports.clearAccountId = exports.setAccountId = void 0;
|
|
7
|
+
|
|
7
8
|
var _reactNative = require("react-native");
|
|
9
|
+
|
|
8
10
|
const {
|
|
9
11
|
IncogniaModule
|
|
10
12
|
} = _reactNative.NativeModules;
|
|
11
|
-
const setAccountId =
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
13
|
+
const setAccountId = IncogniaModule.setAccountId;
|
|
14
|
+
exports.setAccountId = setAccountId;
|
|
15
|
+
const clearAccountId = IncogniaModule.clearAccountId;
|
|
16
|
+
exports.clearAccountId = clearAccountId;
|
|
17
|
+
const trackEvent = IncogniaModule.trackEvent;
|
|
18
|
+
exports.trackEvent = trackEvent;
|
|
19
|
+
const trackLocalizedEvent = IncogniaModule.trackLocalizedEvent;
|
|
20
|
+
exports.trackLocalizedEvent = trackLocalizedEvent;
|
|
21
|
+
const requestPrivacyConsent = IncogniaModule.requestPrivacyConsent;
|
|
22
|
+
exports.requestPrivacyConsent = requestPrivacyConsent;
|
|
23
|
+
const checkConsent = IncogniaModule.checkConsent;
|
|
24
|
+
exports.checkConsent = checkConsent;
|
|
25
|
+
const allowConsentTypes = IncogniaModule.allowConsentTypes;
|
|
26
|
+
exports.allowConsentTypes = allowConsentTypes;
|
|
27
|
+
const denyConsentTypes = IncogniaModule.denyConsentTypes;
|
|
28
|
+
exports.denyConsentTypes = denyConsentTypes;
|
|
29
|
+
const fetchInstallationId = IncogniaModule.fetchInstallationId;
|
|
30
|
+
exports.fetchInstallationId = fetchInstallationId;
|
|
31
|
+
const setLocationEnabled = IncogniaModule.setLocationEnabled;
|
|
32
|
+
exports.setLocationEnabled = setLocationEnabled;
|
|
33
|
+
|
|
21
34
|
const notifyAppInForeground = () => {
|
|
22
35
|
if (_reactNative.Platform.OS === 'android') {
|
|
23
36
|
IncogniaModule.notifyAppInForeground();
|
|
24
37
|
}
|
|
25
38
|
};
|
|
39
|
+
|
|
26
40
|
exports.notifyAppInForeground = notifyAppInForeground;
|
|
27
|
-
const ConsentTypes =
|
|
41
|
+
const ConsentTypes = {
|
|
28
42
|
ADDRESS_VALIDATION: IncogniaModule.CONSENT_TYPE_ADDRESS_VALIDATION,
|
|
29
43
|
ADVERTISEMENT: IncogniaModule.CONSENT_TYPE_ADVERTISEMENT,
|
|
30
44
|
ENGAGE: IncogniaModule.CONSENT_TYPE_ENGAGE,
|
|
@@ -34,7 +48,8 @@ const ConsentTypes = exports.ConsentTypes = {
|
|
|
34
48
|
ALL: IncogniaModule.CONSENT_TYPES_ALL,
|
|
35
49
|
NONE: IncogniaModule.CONSENT_TYPES_NONE
|
|
36
50
|
};
|
|
37
|
-
|
|
51
|
+
exports.ConsentTypes = ConsentTypes;
|
|
52
|
+
const Trial = {
|
|
38
53
|
trackSignupSent: IncogniaModule.trackSignupSent,
|
|
39
54
|
trackLoginSucceeded: IncogniaModule.trackLoginSucceeded,
|
|
40
55
|
trackPaymentSent: IncogniaModule.trackPaymentSent,
|
|
@@ -44,7 +59,8 @@ const Trial = exports.Trial = {
|
|
|
44
59
|
SHIPPING: 'shipping'
|
|
45
60
|
}
|
|
46
61
|
};
|
|
47
|
-
|
|
62
|
+
exports.Trial = Trial;
|
|
63
|
+
var _default = {
|
|
48
64
|
setAccountId,
|
|
49
65
|
clearAccountId,
|
|
50
66
|
trackEvent,
|
|
@@ -59,4 +75,5 @@ var _default = exports.default = {
|
|
|
59
75
|
Trial,
|
|
60
76
|
ConsentTypes
|
|
61
77
|
};
|
|
78
|
+
exports.default = _default;
|
|
62
79
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":["IncogniaModule","NativeModules","setAccountId","clearAccountId","trackEvent","trackLocalizedEvent","requestPrivacyConsent","checkConsent","allowConsentTypes","denyConsentTypes","fetchInstallationId","setLocationEnabled","notifyAppInForeground","Platform","OS","ConsentTypes","ADDRESS_VALIDATION","CONSENT_TYPE_ADDRESS_VALIDATION","ADVERTISEMENT","CONSENT_TYPE_ADVERTISEMENT","ENGAGE","CONSENT_TYPE_ENGAGE","EVENTS","CONSENT_TYPE_EVENTS","LOCATION","CONSENT_TYPE_LOCATION","CONTEXT_PROVIDER","CONSENT_TYPE_CONTEXT_PROVIDER","ALL","CONSENT_TYPES_ALL","NONE","CONSENT_TYPES_NONE","Trial","trackSignupSent","trackLoginSucceeded","trackPaymentSent","TransactionAddressTypes","BILLING","HOME","SHIPPING"],"mappings":";;;;;;;AAAA;;AA6FA,MAAM;AAAEA,EAAAA;AAAF,IAAqBC,0BAA3B;AAEO,MAAMC,YAAY,GAAGF,cAAc,CAACE,YAApC;;AACA,MAAMC,cAAc,GAAGH,cAAc,CAACG,cAAtC;;AACA,MAAMC,UAAU,GAAGJ,cAAc,CAACI,UAAlC;;AACA,MAAMC,mBAAmB,GAAGL,cAAc,CAACK,mBAA3C;;AACA,MAAMC,qBAAqB,GAAGN,cAAc,CAACM,qBAA7C;;AACA,MAAMC,YAAY,GAAGP,cAAc,CAACO,YAApC;;AACA,MAAMC,iBAAiB,GAAGR,cAAc,CAACQ,iBAAzC;;AACA,MAAMC,gBAAgB,GAAGT,cAAc,CAACS,gBAAxC;;AACA,MAAMC,mBAAmB,GAAGV,cAAc,CAACU,mBAA3C;;AACA,MAAMC,kBAAkB,GAAGX,cAAc,CAACW,kBAA1C;;;AACA,MAAMC,qBAAqB,GAAG,MAAM;AACzC,MAAIC,sBAASC,EAAT,KAAgB,SAApB,EAA+B;AAC7Bd,IAAAA,cAAc,CAACY,qBAAf;AACD;AACF,CAJM;;;AAMA,MAAMG,YAA8B,GAAG;AAC5CC,EAAAA,kBAAkB,EAAEhB,cAAc,CAACiB,+BADS;AAE5CC,EAAAA,aAAa,EAAElB,cAAc,CAACmB,0BAFc;AAG5CC,EAAAA,MAAM,EAAEpB,cAAc,CAACqB,mBAHqB;AAI5CC,EAAAA,MAAM,EAAEtB,cAAc,CAACuB,mBAJqB;AAK5CC,EAAAA,QAAQ,EAAExB,cAAc,CAACyB,qBALmB;AAM5CC,EAAAA,gBAAgB,EAAE1B,cAAc,CAAC2B,6BANW;AAO5CC,EAAAA,GAAG,EAAE5B,cAAc,CAAC6B,iBAPwB;AAQ5CC,EAAAA,IAAI,EAAE9B,cAAc,CAAC+B;AARuB,CAAvC;;AAWA,MAAMC,KAAwB,GAAG;AACtCC,EAAAA,eAAe,EAAEjC,cAAc,CAACiC,eADM;AAEtCC,EAAAA,mBAAmB,EAAElC,cAAc,CAACkC,mBAFE;AAGtCC,EAAAA,gBAAgB,EAAEnC,cAAc,CAACmC,gBAHK;AAItCC,EAAAA,uBAAuB,EAAE;AACvBC,IAAAA,OAAO,EAAE,SADc;AAEvBC,IAAAA,IAAI,EAAE,MAFiB;AAGvBC,IAAAA,QAAQ,EAAE;AAHa;AAJa,CAAjC;;eAWQ;AACbrC,EAAAA,YADa;AAEbC,EAAAA,cAFa;AAGbC,EAAAA,UAHa;AAIbC,EAAAA,mBAJa;AAKbC,EAAAA,qBALa;AAMbC,EAAAA,YANa;AAObC,EAAAA,iBAPa;AAQbC,EAAAA,gBARa;AASbC,EAAAA,mBATa;AAUbC,EAAAA,kBAVa;AAWbC,EAAAA,qBAXa;AAYboB,EAAAA,KAZa;AAabjB,EAAAA;AAba,C","sourcesContent":["import { NativeModules, Platform } from 'react-native';\n\ntype IncogniaType = {\n setAccountId(accountId: string): void;\n clearAccountId(): void;\n trackEvent(params: TrackEventParamsType): void;\n trackLocalizedEvent(params: TrackEventParamsType): void;\n requestPrivacyConsent(params: ConsentRequestParamsType): Promise<any>;\n checkConsent(consentTypes: Array<string>): Promise<any>;\n allowConsentTypes(consentTypes: Array<string>): void;\n denyConsentTypes(consentTypes: Array<string>): void;\n fetchInstallationId(): Promise<string>;\n setLocationEnabled(enabled: boolean): void;\n notifyAppInForeground(): void;\n ConsentTypes: ConsentTypesType;\n Trial: IncogniaTrialType;\n};\n\ntype IncogniaTrialType = {\n trackSignupSent(params: TrackSignupParamsType): void;\n trackLoginSucceeded(params: TrackLoginSucceededParamsType): void;\n trackPaymentSent(params: TrackPaymentParamsType): void;\n TransactionAddressTypes: TranscationAddressTypesType;\n};\n\ntype ConsentTypesType = {\n readonly ADDRESS_VALIDATION: string;\n readonly ADVERTISEMENT: string;\n readonly ENGAGE: string;\n readonly EVENTS: string;\n readonly LOCATION: string;\n readonly CONTEXT_PROVIDER: string;\n readonly ALL: Array<string>;\n readonly NONE: Array<string>;\n};\n\ntype TranscationAddressTypesType = {\n readonly BILLING: string;\n readonly SHIPPING: string;\n readonly HOME: string;\n};\n\ntype TrackEventParamsType = {\n eventName: string;\n eventProperties?: Object;\n};\n\ntype TrackSignupParamsType = {\n signupId?: string;\n signupAddress?: UserAddressType;\n properties?: Object;\n};\n\ntype TrackLoginSucceededParamsType = {\n loginId?: string;\n accountId?: string;\n properties?: Object;\n};\n\ntype TrackPaymentParamsType = {\n transactionId?: string;\n transactionAddresses?: Array<TransactionAddressType>;\n properties?: Object;\n};\n\ntype UserAddressType = {\n locale?: string;\n countryName?: string;\n countryCode?: string;\n adminArea?: string;\n subAdminArea?: string;\n locality?: string;\n subLocality?: string;\n thoroughfare?: string;\n subThoroughfare?: string;\n postalCode?: string;\n latitude?: number;\n longitude?: number;\n addressLine?: string;\n};\n\ntype TransactionAddressType = UserAddressType & {\n type: string;\n};\n\ntype ConsentRequestParamsType = {\n dialogTitle: string;\n dialogMessage: string;\n dialogAcceptText: string;\n dialogDenyText: string;\n consentTypes: Array<string>;\n};\n\nconst { IncogniaModule } = NativeModules;\n\nexport const setAccountId = IncogniaModule.setAccountId;\nexport const clearAccountId = IncogniaModule.clearAccountId;\nexport const trackEvent = IncogniaModule.trackEvent;\nexport const trackLocalizedEvent = IncogniaModule.trackLocalizedEvent;\nexport const requestPrivacyConsent = IncogniaModule.requestPrivacyConsent;\nexport const checkConsent = IncogniaModule.checkConsent;\nexport const allowConsentTypes = IncogniaModule.allowConsentTypes;\nexport const denyConsentTypes = IncogniaModule.denyConsentTypes;\nexport const fetchInstallationId = IncogniaModule.fetchInstallationId;\nexport const setLocationEnabled = IncogniaModule.setLocationEnabled;\nexport const notifyAppInForeground = () => {\n if (Platform.OS === 'android') {\n IncogniaModule.notifyAppInForeground();\n }\n};\n\nexport const ConsentTypes: ConsentTypesType = {\n ADDRESS_VALIDATION: IncogniaModule.CONSENT_TYPE_ADDRESS_VALIDATION,\n ADVERTISEMENT: IncogniaModule.CONSENT_TYPE_ADVERTISEMENT,\n ENGAGE: IncogniaModule.CONSENT_TYPE_ENGAGE,\n EVENTS: IncogniaModule.CONSENT_TYPE_EVENTS,\n LOCATION: IncogniaModule.CONSENT_TYPE_LOCATION,\n CONTEXT_PROVIDER: IncogniaModule.CONSENT_TYPE_CONTEXT_PROVIDER,\n ALL: IncogniaModule.CONSENT_TYPES_ALL,\n NONE: IncogniaModule.CONSENT_TYPES_NONE,\n};\n\nexport const Trial: IncogniaTrialType = {\n trackSignupSent: IncogniaModule.trackSignupSent,\n trackLoginSucceeded: IncogniaModule.trackLoginSucceeded,\n trackPaymentSent: IncogniaModule.trackPaymentSent,\n TransactionAddressTypes: {\n BILLING: 'billing',\n HOME: 'home',\n SHIPPING: 'shipping',\n },\n};\n\nexport default {\n setAccountId,\n clearAccountId,\n trackEvent,\n trackLocalizedEvent,\n requestPrivacyConsent,\n checkConsent,\n allowConsentTypes,\n denyConsentTypes,\n fetchInstallationId,\n setLocationEnabled,\n notifyAppInForeground,\n Trial,\n ConsentTypes,\n} as IncogniaType;\n"]}
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","IncogniaModule","setAccountId","clearAccountId","trackEvent","trackLocalizedEvent","requestPrivacyConsent","checkConsent","allowConsentTypes","denyConsentTypes","fetchInstallationId","setLocationEnabled","notifyAppInForeground","OS","ConsentTypes","ADDRESS_VALIDATION","CONSENT_TYPE_ADDRESS_VALIDATION","ADVERTISEMENT","CONSENT_TYPE_ADVERTISEMENT","ENGAGE","CONSENT_TYPE_ENGAGE","EVENTS","CONSENT_TYPE_EVENTS","LOCATION","CONSENT_TYPE_LOCATION","CONTEXT_PROVIDER","CONSENT_TYPE_CONTEXT_PROVIDER","ALL","CONSENT_TYPES_ALL","NONE","CONSENT_TYPES_NONE","Trial","trackSignupSent","trackLoginSucceeded","trackPaymentSent","TransactionAddressTypes","BILLING","HOME","SHIPPING"],"
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":["NativeModules","Platform","IncogniaModule","setAccountId","clearAccountId","trackEvent","trackLocalizedEvent","requestPrivacyConsent","checkConsent","allowConsentTypes","denyConsentTypes","fetchInstallationId","setLocationEnabled","notifyAppInForeground","OS","ConsentTypes","ADDRESS_VALIDATION","CONSENT_TYPE_ADDRESS_VALIDATION","ADVERTISEMENT","CONSENT_TYPE_ADVERTISEMENT","ENGAGE","CONSENT_TYPE_ENGAGE","EVENTS","CONSENT_TYPE_EVENTS","LOCATION","CONSENT_TYPE_LOCATION","CONTEXT_PROVIDER","CONSENT_TYPE_CONTEXT_PROVIDER","ALL","CONSENT_TYPES_ALL","NONE","CONSENT_TYPES_NONE","Trial","trackSignupSent","trackLoginSucceeded","trackPaymentSent","TransactionAddressTypes","BILLING","HOME","SHIPPING"],"mappings":"AAAA,SAASA,aAAT,EAAwBC,QAAxB,QAAwC,cAAxC;AA6FA,MAAM;AAAEC,EAAAA;AAAF,IAAqBF,aAA3B;AAEA,OAAO,MAAMG,YAAY,GAAGD,cAAc,CAACC,YAApC;AACP,OAAO,MAAMC,cAAc,GAAGF,cAAc,CAACE,cAAtC;AACP,OAAO,MAAMC,UAAU,GAAGH,cAAc,CAACG,UAAlC;AACP,OAAO,MAAMC,mBAAmB,GAAGJ,cAAc,CAACI,mBAA3C;AACP,OAAO,MAAMC,qBAAqB,GAAGL,cAAc,CAACK,qBAA7C;AACP,OAAO,MAAMC,YAAY,GAAGN,cAAc,CAACM,YAApC;AACP,OAAO,MAAMC,iBAAiB,GAAGP,cAAc,CAACO,iBAAzC;AACP,OAAO,MAAMC,gBAAgB,GAAGR,cAAc,CAACQ,gBAAxC;AACP,OAAO,MAAMC,mBAAmB,GAAGT,cAAc,CAACS,mBAA3C;AACP,OAAO,MAAMC,kBAAkB,GAAGV,cAAc,CAACU,kBAA1C;AACP,OAAO,MAAMC,qBAAqB,GAAG,MAAM;AACzC,MAAIZ,QAAQ,CAACa,EAAT,KAAgB,SAApB,EAA+B;AAC7BZ,IAAAA,cAAc,CAACW,qBAAf;AACD;AACF,CAJM;AAMP,OAAO,MAAME,YAA8B,GAAG;AAC5CC,EAAAA,kBAAkB,EAAEd,cAAc,CAACe,+BADS;AAE5CC,EAAAA,aAAa,EAAEhB,cAAc,CAACiB,0BAFc;AAG5CC,EAAAA,MAAM,EAAElB,cAAc,CAACmB,mBAHqB;AAI5CC,EAAAA,MAAM,EAAEpB,cAAc,CAACqB,mBAJqB;AAK5CC,EAAAA,QAAQ,EAAEtB,cAAc,CAACuB,qBALmB;AAM5CC,EAAAA,gBAAgB,EAAExB,cAAc,CAACyB,6BANW;AAO5CC,EAAAA,GAAG,EAAE1B,cAAc,CAAC2B,iBAPwB;AAQ5CC,EAAAA,IAAI,EAAE5B,cAAc,CAAC6B;AARuB,CAAvC;AAWP,OAAO,MAAMC,KAAwB,GAAG;AACtCC,EAAAA,eAAe,EAAE/B,cAAc,CAAC+B,eADM;AAEtCC,EAAAA,mBAAmB,EAAEhC,cAAc,CAACgC,mBAFE;AAGtCC,EAAAA,gBAAgB,EAAEjC,cAAc,CAACiC,gBAHK;AAItCC,EAAAA,uBAAuB,EAAE;AACvBC,IAAAA,OAAO,EAAE,SADc;AAEvBC,IAAAA,IAAI,EAAE,MAFiB;AAGvBC,IAAAA,QAAQ,EAAE;AAHa;AAJa,CAAjC;AAWP,eAAe;AACbpC,EAAAA,YADa;AAEbC,EAAAA,cAFa;AAGbC,EAAAA,UAHa;AAIbC,EAAAA,mBAJa;AAKbC,EAAAA,qBALa;AAMbC,EAAAA,YANa;AAObC,EAAAA,iBAPa;AAQbC,EAAAA,gBARa;AASbC,EAAAA,mBATa;AAUbC,EAAAA,kBAVa;AAWbC,EAAAA,qBAXa;AAYbmB,EAAAA,KAZa;AAabjB,EAAAA;AAba,CAAf","sourcesContent":["import { NativeModules, Platform } from 'react-native';\n\ntype IncogniaType = {\n setAccountId(accountId: string): void;\n clearAccountId(): void;\n trackEvent(params: TrackEventParamsType): void;\n trackLocalizedEvent(params: TrackEventParamsType): void;\n requestPrivacyConsent(params: ConsentRequestParamsType): Promise<any>;\n checkConsent(consentTypes: Array<string>): Promise<any>;\n allowConsentTypes(consentTypes: Array<string>): void;\n denyConsentTypes(consentTypes: Array<string>): void;\n fetchInstallationId(): Promise<string>;\n setLocationEnabled(enabled: boolean): void;\n notifyAppInForeground(): void;\n ConsentTypes: ConsentTypesType;\n Trial: IncogniaTrialType;\n};\n\ntype IncogniaTrialType = {\n trackSignupSent(params: TrackSignupParamsType): void;\n trackLoginSucceeded(params: TrackLoginSucceededParamsType): void;\n trackPaymentSent(params: TrackPaymentParamsType): void;\n TransactionAddressTypes: TranscationAddressTypesType;\n};\n\ntype ConsentTypesType = {\n readonly ADDRESS_VALIDATION: string;\n readonly ADVERTISEMENT: string;\n readonly ENGAGE: string;\n readonly EVENTS: string;\n readonly LOCATION: string;\n readonly CONTEXT_PROVIDER: string;\n readonly ALL: Array<string>;\n readonly NONE: Array<string>;\n};\n\ntype TranscationAddressTypesType = {\n readonly BILLING: string;\n readonly SHIPPING: string;\n readonly HOME: string;\n};\n\ntype TrackEventParamsType = {\n eventName: string;\n eventProperties?: Object;\n};\n\ntype TrackSignupParamsType = {\n signupId?: string;\n signupAddress?: UserAddressType;\n properties?: Object;\n};\n\ntype TrackLoginSucceededParamsType = {\n loginId?: string;\n accountId?: string;\n properties?: Object;\n};\n\ntype TrackPaymentParamsType = {\n transactionId?: string;\n transactionAddresses?: Array<TransactionAddressType>;\n properties?: Object;\n};\n\ntype UserAddressType = {\n locale?: string;\n countryName?: string;\n countryCode?: string;\n adminArea?: string;\n subAdminArea?: string;\n locality?: string;\n subLocality?: string;\n thoroughfare?: string;\n subThoroughfare?: string;\n postalCode?: string;\n latitude?: number;\n longitude?: number;\n addressLine?: string;\n};\n\ntype TransactionAddressType = UserAddressType & {\n type: string;\n};\n\ntype ConsentRequestParamsType = {\n dialogTitle: string;\n dialogMessage: string;\n dialogAcceptText: string;\n dialogDenyText: string;\n consentTypes: Array<string>;\n};\n\nconst { IncogniaModule } = NativeModules;\n\nexport const setAccountId = IncogniaModule.setAccountId;\nexport const clearAccountId = IncogniaModule.clearAccountId;\nexport const trackEvent = IncogniaModule.trackEvent;\nexport const trackLocalizedEvent = IncogniaModule.trackLocalizedEvent;\nexport const requestPrivacyConsent = IncogniaModule.requestPrivacyConsent;\nexport const checkConsent = IncogniaModule.checkConsent;\nexport const allowConsentTypes = IncogniaModule.allowConsentTypes;\nexport const denyConsentTypes = IncogniaModule.denyConsentTypes;\nexport const fetchInstallationId = IncogniaModule.fetchInstallationId;\nexport const setLocationEnabled = IncogniaModule.setLocationEnabled;\nexport const notifyAppInForeground = () => {\n if (Platform.OS === 'android') {\n IncogniaModule.notifyAppInForeground();\n }\n};\n\nexport const ConsentTypes: ConsentTypesType = {\n ADDRESS_VALIDATION: IncogniaModule.CONSENT_TYPE_ADDRESS_VALIDATION,\n ADVERTISEMENT: IncogniaModule.CONSENT_TYPE_ADVERTISEMENT,\n ENGAGE: IncogniaModule.CONSENT_TYPE_ENGAGE,\n EVENTS: IncogniaModule.CONSENT_TYPE_EVENTS,\n LOCATION: IncogniaModule.CONSENT_TYPE_LOCATION,\n CONTEXT_PROVIDER: IncogniaModule.CONSENT_TYPE_CONTEXT_PROVIDER,\n ALL: IncogniaModule.CONSENT_TYPES_ALL,\n NONE: IncogniaModule.CONSENT_TYPES_NONE,\n};\n\nexport const Trial: IncogniaTrialType = {\n trackSignupSent: IncogniaModule.trackSignupSent,\n trackLoginSucceeded: IncogniaModule.trackLoginSucceeded,\n trackPaymentSent: IncogniaModule.trackPaymentSent,\n TransactionAddressTypes: {\n BILLING: 'billing',\n HOME: 'home',\n SHIPPING: 'shipping',\n },\n};\n\nexport default {\n setAccountId,\n clearAccountId,\n trackEvent,\n trackLocalizedEvent,\n requestPrivacyConsent,\n checkConsent,\n allowConsentTypes,\n denyConsentTypes,\n fetchInstallationId,\n setLocationEnabled,\n notifyAppInForeground,\n Trial,\n ConsentTypes,\n} as IncogniaType;\n"]}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.source_files = "ios/**/*.{h,m,mm}"
|
|
17
17
|
|
|
18
18
|
s.dependency "React-Core"
|
|
19
|
-
s.dependency 'IncogniaTrialBR', '~> 6.
|
|
20
|
-
s.dependency 'IncogniaBR', '~> 6.
|
|
21
|
-
s.dependency 'IncogniaCoreBR', '~> 6.
|
|
19
|
+
s.dependency 'IncogniaTrialBR', '~> 6.14.1'
|
|
20
|
+
s.dependency 'IncogniaBR', '~> 6.14.1'
|
|
21
|
+
s.dependency 'IncogniaCoreBR', '~> 6.14.1'
|
|
22
22
|
end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>Incognia.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>0</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|