react-native-incognia 6.18.0 → 6.20.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.
@@ -1,2 +1,2 @@
1
- #Fri Jul 19 10:07:47 BRT 2024
2
- gradle.version=8.1.1
1
+ #Thu Dec 05 17:25:46 BRT 2024
2
+ gradle.version=8.9
@@ -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.25.+'
61
- api 'com.incognia:incognia-trial-br:6.25.+'
60
+ api 'com.incognia:incognia-br:6.28.+'
61
+ api 'com.incognia:incognia-trial-br:6.28.+'
62
62
  }
@@ -126,6 +126,21 @@ public class IncogniaModule extends ReactContextBaseJavaModule {
126
126
  });
127
127
  }
128
128
 
129
+ @ReactMethod
130
+ public void generateRequestToken(final Promise promise) {
131
+ Incognia.generateRequestToken(new IncogniaListener<String>() {
132
+ @Override
133
+ public void onResult(Result<String> result) {
134
+ if (result.isSuccessful()) {
135
+ String requestToken = result.getResult();
136
+ promise.resolve(requestToken);
137
+ } else {
138
+ promise.reject(new Exception("Error while generating a request token."));
139
+ }
140
+ }
141
+ });
142
+ }
143
+
129
144
  @ReactMethod
130
145
  public void requestPrivacyConsent(final ReadableMap consentDialogOptionsMap, final Promise promise) {
131
146
  ConsentDialogOptions.Builder consentDialogOptions = new ConsentDialogOptions.Builder(getCurrentActivity());
@@ -175,6 +175,16 @@ RCT_EXPORT_METHOD(trackPaymentSent:(NSDictionary *)parameters) {
175
175
  [ICGIncogniaTrial trackPaymentSentWithId:transactionId eventProperties:properties transactionAddresses:transactionAddresses];
176
176
  }
177
177
 
178
+ RCT_EXPORT_METHOD(generateRequestToken:(RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject) {
179
+ [ICGIncognia generateRequestToken:^(NSString *requestToken) {
180
+ if (resolve && requestToken) {
181
+ resolve(requestToken);
182
+ } else {
183
+ reject(nil, @"Incognia: error while generating a request token", nil);
184
+ }
185
+ }];
186
+ }
187
+
178
188
  - (NSDictionary *)constantsToExport {
179
189
  NSMutableDictionary *constants = [[NSMutableDictionary alloc] init];
180
190
 
@@ -3,42 +3,29 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
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
-
6
+ exports.trackLocalizedEvent = exports.trackEvent = exports.setLocationEnabled = exports.setAccountId = exports.requestPrivacyConsent = exports.notifyAppInForeground = exports.generateRequestToken = exports.fetchInstallationId = exports.denyConsentTypes = exports.default = exports.clearAccountId = exports.checkConsent = exports.allowConsentTypes = exports.Trial = exports.ConsentTypes = void 0;
8
7
  var _reactNative = require("react-native");
9
-
10
8
  const {
11
9
  IncogniaModule
12
10
  } = _reactNative.NativeModules;
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
-
11
+ const setAccountId = exports.setAccountId = IncogniaModule.setAccountId;
12
+ const clearAccountId = exports.clearAccountId = IncogniaModule.clearAccountId;
13
+ const trackEvent = exports.trackEvent = IncogniaModule.trackEvent;
14
+ const trackLocalizedEvent = exports.trackLocalizedEvent = IncogniaModule.trackLocalizedEvent;
15
+ const requestPrivacyConsent = exports.requestPrivacyConsent = IncogniaModule.requestPrivacyConsent;
16
+ const checkConsent = exports.checkConsent = IncogniaModule.checkConsent;
17
+ const allowConsentTypes = exports.allowConsentTypes = IncogniaModule.allowConsentTypes;
18
+ const denyConsentTypes = exports.denyConsentTypes = IncogniaModule.denyConsentTypes;
19
+ const fetchInstallationId = exports.fetchInstallationId = IncogniaModule.fetchInstallationId;
20
+ const setLocationEnabled = exports.setLocationEnabled = IncogniaModule.setLocationEnabled;
21
+ const generateRequestToken = exports.generateRequestToken = IncogniaModule.generateRequestToken;
34
22
  const notifyAppInForeground = () => {
35
23
  if (_reactNative.Platform.OS === 'android') {
36
24
  IncogniaModule.notifyAppInForeground();
37
25
  }
38
26
  };
39
-
40
27
  exports.notifyAppInForeground = notifyAppInForeground;
41
- const ConsentTypes = {
28
+ const ConsentTypes = exports.ConsentTypes = {
42
29
  ADDRESS_VALIDATION: IncogniaModule.CONSENT_TYPE_ADDRESS_VALIDATION,
43
30
  ADVERTISEMENT: IncogniaModule.CONSENT_TYPE_ADVERTISEMENT,
44
31
  ENGAGE: IncogniaModule.CONSENT_TYPE_ENGAGE,
@@ -48,8 +35,7 @@ const ConsentTypes = {
48
35
  ALL: IncogniaModule.CONSENT_TYPES_ALL,
49
36
  NONE: IncogniaModule.CONSENT_TYPES_NONE
50
37
  };
51
- exports.ConsentTypes = ConsentTypes;
52
- const Trial = {
38
+ const Trial = exports.Trial = {
53
39
  trackSignupSent: IncogniaModule.trackSignupSent,
54
40
  trackLoginSucceeded: IncogniaModule.trackLoginSucceeded,
55
41
  trackPaymentSent: IncogniaModule.trackPaymentSent,
@@ -59,8 +45,7 @@ const Trial = {
59
45
  SHIPPING: 'shipping'
60
46
  }
61
47
  };
62
- exports.Trial = Trial;
63
- var _default = {
48
+ var _default = exports.default = {
64
49
  setAccountId,
65
50
  clearAccountId,
66
51
  trackEvent,
@@ -72,8 +57,8 @@ var _default = {
72
57
  fetchInstallationId,
73
58
  setLocationEnabled,
74
59
  notifyAppInForeground,
60
+ generateRequestToken,
75
61
  Trial,
76
62
  ConsentTypes
77
63
  };
78
- exports.default = _default;
79
64
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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,M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AFiB;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"]}
1
+ {"version":3,"names":["_reactNative","require","IncogniaModule","NativeModules","setAccountId","exports","clearAccountId","trackEvent","trackLocalizedEvent","requestPrivacyConsent","checkConsent","allowConsentTypes","denyConsentTypes","fetchInstallationId","setLocationEnabled","generateRequestToken","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"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AA8FA,MAAM;EAAEC;AAAe,CAAC,GAAGC,0BAAa;AAEjC,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAGF,cAAc,CAACE,YAAY;AAChD,MAAME,cAAc,GAAAD,OAAA,CAAAC,cAA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A6B;EAC9DC,GAAG,EAAE9B,cAAc,CAAC+B,iBAAiB;EACrCC,IAAI,EAAEhC,cAAc,CAACiC;AACvB,CAAC;AAEM,MAAMC,KAAwB,GAAA/B,OAAA,CAAA+B,KAAA,GAAG;EACtCC,eAAe,EAAEnC,cAAc,CAACmC,eAAe;EAC/CC,mBAAmB,EAAEpC,cAAc,CAACoC,mBAAmB;EACvDC,gBAAgB,EAAErC,cAAc,CAACqC,gBAAgB;EACjDC,uBAAuB,EAAE;IACvBC,OAAO,EAAE,SAAS;IAClBC,IAAI,EAAE,MAAM;IACZC,QAAQ,EAAE;EACZ;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAvC,OAAA,CAAAwC,OAAA,GAEa;EACbzC,YAAY;EACZE,cAAc;EACdC,UAAU;EACVC,mBAAmB;EACnBC,qBAAqB;EACrBC,YAAY;EACZC,iBAAiB;EACjBC,gBAAgB;EAChBC,mBAAmB;EACnBC,kBAAkB;EAClBE,qBAAqB;EACrBD,oBAAoB;EACpBqB,KAAK;EACLjB;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import { NativeModules, Platform } from 'react-native';
2
4
  const {
3
5
  IncogniaModule
@@ -12,6 +14,7 @@ export const allowConsentTypes = IncogniaModule.allowConsentTypes;
12
14
  export const denyConsentTypes = IncogniaModule.denyConsentTypes;
13
15
  export const fetchInstallationId = IncogniaModule.fetchInstallationId;
14
16
  export const setLocationEnabled = IncogniaModule.setLocationEnabled;
17
+ export const generateRequestToken = IncogniaModule.generateRequestToken;
15
18
  export const notifyAppInForeground = () => {
16
19
  if (Platform.OS === 'android') {
17
20
  IncogniaModule.notifyAppInForeground();
@@ -49,6 +52,7 @@ export default {
49
52
  fetchInstallationId,
50
53
  setLocationEnabled,
51
54
  notifyAppInForeground,
55
+ generateRequestToken,
52
56
  Trial,
53
57
  ConsentTypes
54
58
  };
@@ -1 +1 @@
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"]}
1
+ {"version":3,"names":["NativeModules","Platform","IncogniaModule","setAccountId","clearAccountId","trackEvent","trackLocalizedEvent","requestPrivacyConsent","checkConsent","allowConsentTypes","denyConsentTypes","fetchInstallationId","setLocationEnabled","generateRequestToken","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"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AA8FtD,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,oBAAoB,GAAGX,cAAc,CAACW,oBAAoB;AACvE,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KAAM;EACzC,IAAIb,QAAQ,CAACc,EAAE,KAAK,SAAS,EAAE;IAC7Bb,cAAc,CAACY,qBAAqB,CAAC,CAAC;EACxC;AACF,CAAC;AAED,OAAO,MAAME,YAA8B,GAAG;EAC5CC,kBAAkB,EAAEf,cAAc,CAACgB,+BAA+B;EAClEC,aAAa,EAAEjB,cAAc,CAACkB,0BAA0B;EACxDC,MAAM,EAAEnB,cAAc,CAACoB,mBAAmB;EAC1CC,MAAM,EAAErB,cAAc,CAACsB,mBAAmB;EAC1CC,QAAQ,EAAEvB,cAAc,CAACwB,qBAAqB;EAC9CC,gBAAgB,EAAEzB,cAAc,CAAC0B,6BAA6B;EAC9DC,GAAG,EAAE3B,cAAc,CAAC4B,iBAAiB;EACrCC,IAAI,EAAE7B,cAAc,CAAC8B;AACvB,CAAC;AAED,OAAO,MAAMC,KAAwB,GAAG;EACtCC,eAAe,EAAEhC,cAAc,CAACgC,eAAe;EAC/CC,mBAAmB,EAAEjC,cAAc,CAACiC,mBAAmB;EACvDC,gBAAgB,EAAElC,cAAc,CAACkC,gBAAgB;EACjDC,uBAAuB,EAAE;IACvBC,OAAO,EAAE,SAAS;IAClBC,IAAI,EAAE,MAAM;IACZC,QAAQ,EAAE;EACZ;AACF,CAAC;AAED,eAAe;EACbrC,YAAY;EACZC,cAAc;EACdC,UAAU;EACVC,mBAAmB;EACnBC,qBAAqB;EACrBC,YAAY;EACZC,iBAAiB;EACjBC,gBAAgB;EAChBC,mBAAmB;EACnBC,kBAAkB;EAClBE,qBAAqB;EACrBD,oBAAoB;EACpBoB,KAAK;EACLjB;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -10,6 +10,7 @@ declare type IncogniaType = {
10
10
  fetchInstallationId(): Promise<string>;
11
11
  setLocationEnabled(enabled: boolean): void;
12
12
  notifyAppInForeground(): void;
13
+ generateRequestToken(): Promise<string>;
13
14
  ConsentTypes: ConsentTypesType;
14
15
  Trial: IncogniaTrialType;
15
16
  };
@@ -88,8 +89,10 @@ export declare const allowConsentTypes: any;
88
89
  export declare const denyConsentTypes: any;
89
90
  export declare const fetchInstallationId: any;
90
91
  export declare const setLocationEnabled: any;
92
+ export declare const generateRequestToken: any;
91
93
  export declare const notifyAppInForeground: () => void;
92
94
  export declare const ConsentTypes: ConsentTypesType;
93
95
  export declare const Trial: IncogniaTrialType;
94
96
  declare const _default: IncogniaType;
95
97
  export default _default;
98
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAEA,aAAK,YAAY,GAAG;IAClB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,cAAc,IAAI,IAAI,CAAC;IACvB,UAAU,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC/C,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACxD,qBAAqB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACtE,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACxD,iBAAiB,CAAC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IACrD,gBAAgB,CAAC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IACpD,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACvC,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3C,qBAAqB,IAAI,IAAI,CAAC;IAC9B,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,KAAK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,MAAM,YAAY,KAA8B,CAAC;AACxD,eAAO,MAAM,iBAAiB,KAAmC,CAAC;AAClE,eAAO,MAAM,gBAAgB,KAAkC,CAAC;AAChE,eAAO,MAAM,mBAAmB,KAAqC,CAAC;AACtE,eAAO,MAAM,kBAAkB,KAAoC,CAAC;AACpE,eAAO,MAAM,oBAAoB,KAAsC,CAAC;AACxE,eAAO,MAAM,qBAAqB,YAIjC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,gBAS1B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,iBASnB,CAAC;;AAEF,wBAekB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-incognia",
3
- "version": "6.18.0",
3
+ "version": "6.20.0",
4
4
  "description": "Incognia React Native Library",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -27,7 +27,7 @@
27
27
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
28
28
  "prepare": "bob build",
29
29
  "release": "release-it --no-increment",
30
- "example": "yarn --cwd example",
30
+ "example": "export SET NODE_OPTIONS=--openssl-legacy-provider && yarn --cwd example",
31
31
  "pods": "cd example && pod-install --quiet",
32
32
  "bootstrap": "yarn example && yarn && yarn pods"
33
33
  },
@@ -63,7 +63,7 @@
63
63
  "prettier": "^2.0.5",
64
64
  "react": "16.13.1",
65
65
  "react-native": "0.63.4",
66
- "react-native-builder-bob": "^0.18.1",
66
+ "react-native-builder-bob": "^0.34.0",
67
67
  "release-it": "^14.2.2",
68
68
  "typescript": "^4.1.3"
69
69
  },
@@ -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.14.1'
20
- s.dependency 'IncogniaBR', '~> 6.14.1'
21
- s.dependency 'IncogniaCoreBR', '~> 6.14.1'
19
+ s.dependency 'IncogniaTrialBR', '~> 6.17.0'
20
+ s.dependency 'IncogniaBR', '~> 6.17.0'
21
+ s.dependency 'IncogniaCoreBR', '~> 6.17.0'
22
22
  end
package/src/index.tsx CHANGED
@@ -12,6 +12,7 @@ type IncogniaType = {
12
12
  fetchInstallationId(): Promise<string>;
13
13
  setLocationEnabled(enabled: boolean): void;
14
14
  notifyAppInForeground(): void;
15
+ generateRequestToken(): Promise<string>;
15
16
  ConsentTypes: ConsentTypesType;
16
17
  Trial: IncogniaTrialType;
17
18
  };
@@ -103,6 +104,7 @@ export const allowConsentTypes = IncogniaModule.allowConsentTypes;
103
104
  export const denyConsentTypes = IncogniaModule.denyConsentTypes;
104
105
  export const fetchInstallationId = IncogniaModule.fetchInstallationId;
105
106
  export const setLocationEnabled = IncogniaModule.setLocationEnabled;
107
+ export const generateRequestToken = IncogniaModule.generateRequestToken;
106
108
  export const notifyAppInForeground = () => {
107
109
  if (Platform.OS === 'android') {
108
110
  IncogniaModule.notifyAppInForeground();
@@ -143,6 +145,7 @@ export default {
143
145
  fetchInstallationId,
144
146
  setLocationEnabled,
145
147
  notifyAppInForeground,
148
+ generateRequestToken,
146
149
  Trial,
147
150
  ConsentTypes,
148
151
  } as IncogniaType;
File without changes