react-native-incognia 6.16.0 → 6.17.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/build.gradle +2 -2
- package/lib/commonjs/index.js +0 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/package.json +1 -1
- package/android/.gradle/8.1.1/checksums/checksums.lock +0 -0
- package/android/.gradle/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/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.1.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.1.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
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.22.+'
|
|
61
|
+
api 'com.incognia:incognia-trial-br:6.22.+'
|
|
62
62
|
}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
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
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
const {
|
|
11
9
|
IncogniaModule
|
|
12
10
|
} = _reactNative.NativeModules;
|
|
@@ -30,13 +28,11 @@ const fetchInstallationId = IncogniaModule.fetchInstallationId;
|
|
|
30
28
|
exports.fetchInstallationId = fetchInstallationId;
|
|
31
29
|
const setLocationEnabled = IncogniaModule.setLocationEnabled;
|
|
32
30
|
exports.setLocationEnabled = setLocationEnabled;
|
|
33
|
-
|
|
34
31
|
const notifyAppInForeground = () => {
|
|
35
32
|
if (_reactNative.Platform.OS === 'android') {
|
|
36
33
|
IncogniaModule.notifyAppInForeground();
|
|
37
34
|
}
|
|
38
35
|
};
|
|
39
|
-
|
|
40
36
|
exports.notifyAppInForeground = notifyAppInForeground;
|
|
41
37
|
const ConsentTypes = {
|
|
42
38
|
ADDRESS_VALIDATION: IncogniaModule.CONSENT_TYPE_ADDRESS_VALIDATION,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_reactNative","require","IncogniaModule","NativeModules","setAccountId","exports","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","_default","default"],"sources":["index.tsx"],"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"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AA6FA,MAAM;EAAEC;AAAe,CAAC,GAAGC,0BAAa;AAEjC,MAAMC,YAAY,GAAGF,cAAc,CAACE,YAAY;AAACC,OAAA,CAAAD,YAAA,GAAAA,YAAA;AACjD,MAAME,cAAc,GAAGJ,cAAc,CAACI,cAAc;AAACD,OAAA,CAAAC,cAAA,GAAAA,cAAA;AACrD,MAAMC,UAAU,GAAGL,cAAc,CAACK,UAAU;AAACF,OAAA,CAAAE,UAAA,GAAAA,UAAA;AAC7C,MAAMC,mBAAmB,GAAGN,cAAc,CAACM,mBAAmB;AAACH,OAAA,CAAAG,mBAAA,GAAAA,mBAAA;AAC/D,MAAMC,qBAAqB,GAAGP,cAAc,CAACO,qBAAqB;AAACJ,OAAA,CAAAI,qBAAA,GAAAA,qBAAA;AACnE,MAAMC,YAAY,GAAGR,cAAc,CAACQ,YAAY;AAACL,OAAA,CAAAK,YAAA,GAAAA,YAAA;AACjD,MAAMC,iBAAiB,GAAGT,cAAc,CAACS,iBAAiB;AAACN,OAAA,CAAAM,iBAAA,GAAAA,iBAAA;AAC3D,MAAMC,gBAAgB,GAAGV,cAAc,CAACU,gBAAgB;AAACP,OAAA,CAAAO,gBAAA,GAAAA,gBAAA;AACzD,MAAMC,mBAAmB,GAAGX,cAAc,CAACW,mBAAmB;AAACR,OAAA,CAAAQ,mBAAA,GAAAA,mBAAA;AAC/D,MAAMC,kBAAkB,GAAGZ,cAAc,CAACY,kBAAkB;AAACT,OAAA,CAAAS,kBAAA,GAAAA,kBAAA;AAC7D,MAAMC,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|
-
{"version":3,"
|
|
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"],"sources":["index.tsx"],"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"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AA6FtD,MAAM;EAAEC;AAAe,CAAC,GAAGF,aAAa;AAExC,OAAO,MAAMG,YAAY,GAAGD,cAAc,CAACC,YAAY;AACvD,OAAO,MAAMC,cAAc,GAAGF,cAAc,CAACE,cAAc;AAC3D,OAAO,MAAMC,UAAU,GAAGH,cAAc,CAACG,UAAU;AACnD,OAAO,MAAMC,mBAAmB,GAAGJ,cAAc,CAACI,mBAAmB;AACrE,OAAO,MAAMC,qBAAqB,GAAGL,cAAc,CAACK,qBAAqB;AACzE,OAAO,MAAMC,YAAY,GAAGN,cAAc,CAACM,YAAY;AACvD,OAAO,MAAMC,iBAAiB,GAAGP,cAAc,CAACO,iBAAiB;AACjE,OAAO,MAAMC,gBAAgB,GAAGR,cAAc,CAACQ,gBAAgB;AAC/D,OAAO,MAAMC,mBAAmB,GAAGT,cAAc,CAACS,mBAAmB;AACrE,OAAO,MAAMC,kBAAkB,GAAGV,cAAc,CAACU,kBAAkB;AACnE,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KAAM;EACzC,IAAIZ,QAAQ,CAACa,EAAE,KAAK,SAAS,EAAE;IAC7BZ,cAAc,CAACW,qBAAqB,CAAC,CAAC;EACxC;AACF,CAAC;AAED,OAAO,MAAME,YAA8B,GAAG;EAC5CC,kBAAkB,EAAEd,cAAc,CAACe,+BAA+B;EAClEC,aAAa,EAAEhB,cAAc,CAACiB,0BAA0B;EACxDC,MAAM,EAAElB,cAAc,CAACmB,mBAAmB;EAC1CC,MAAM,EAAEpB,cAAc,CAACqB,mBAAmB;EAC1CC,QAAQ,EAAEtB,cAAc,CAACuB,qBAAqB;EAC9CC,gBAAgB,EAAExB,cAAc,CAACyB,6BAA6B;EAC9DC,GAAG,EAAE1B,cAAc,CAAC2B,iBAAiB;EACrCC,IAAI,EAAE5B,cAAc,CAAC6B;AACvB,CAAC;AAED,OAAO,MAAMC,KAAwB,GAAG;EACtCC,eAAe,EAAE/B,cAAc,CAAC+B,eAAe;EAC/CC,mBAAmB,EAAEhC,cAAc,CAACgC,mBAAmB;EACvDC,gBAAgB,EAAEjC,cAAc,CAACiC,gBAAgB;EACjDC,uBAAuB,EAAE;IACvBC,OAAO,EAAE,SAAS;IAClBC,IAAI,EAAE,MAAM;IACZC,QAAQ,EAAE;EACZ;AACF,CAAC;AAED,eAAe;EACbpC,YAAY;EACZC,cAAc;EACdC,UAAU;EACVC,mBAAmB;EACnBC,qBAAqB;EACrBC,YAAY;EACZC,iBAAiB;EACjBC,gBAAgB;EAChBC,mBAAmB;EACnBC,kBAAkB;EAClBC,qBAAqB;EACrBmB,KAAK;EACLjB;AACF,CAAC"}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|