@convivainc/conviva-react-native-appanalytics 0.2.2 → 0.2.3
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/CHANGELOG.md +3 -0
- package/RNConvivaAppAnalytics.podspec +1 -1
- package/android/src/main/java/com/conviva/react/apptracker/RNConvivaTrackerModule.java +10 -0
- package/android/src/main/java/com/conviva/react/apptracker/util/TrackerVersion.java +1 -1
- package/conviva-react-native-appanalytics.d.ts +13 -1
- package/conviva-react-native-appanalytics.js +18 -1
- package/ios/RNConvivaAppAnalytics.m +5 -0
- package/ios/Util/RNTrackerVersion.m +1 -1
- package/package.json +1 -1
- package/android/.gradle/7.5/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.5/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.5/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.5/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.5/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/nb-cache/android-1900075016/project-info.ser +0 -0
- package/android/.gradle/nb-cache/subprojects.ser +0 -0
- package/android/.gradle/nb-cache/trust/0EEA391318025D65F0CC2D47FDCFCF01C5BB445C840A6A5AD77F1DA0701FE0AD +0 -1
- package/android/.gradle/vcs-1/gc.properties +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -188,6 +188,16 @@ public class RNConvivaTrackerModule extends ReactContextBaseJavaModule {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
@ReactMethod
|
|
192
|
+
public void cleanup(Promise promise) {
|
|
193
|
+
try {
|
|
194
|
+
// commented out deprecated methods
|
|
195
|
+
promise.resolve(true);
|
|
196
|
+
|
|
197
|
+
} catch (Throwable t) {
|
|
198
|
+
promise.reject("ERROR", t.getMessage());
|
|
199
|
+
}
|
|
200
|
+
}
|
|
191
201
|
@ReactMethod
|
|
192
202
|
public void removeAllTrackers(Promise promise) {
|
|
193
203
|
try {
|
|
@@ -71,6 +71,11 @@ interface NetworkConfiguration {
|
|
|
71
71
|
*/
|
|
72
72
|
requestHeaders?: Record<string, string>;
|
|
73
73
|
}
|
|
74
|
+
interface TraceparentConfiguration {
|
|
75
|
+
force: Boolean;
|
|
76
|
+
enabled: Boolean;
|
|
77
|
+
targetUrl: string[];
|
|
78
|
+
}
|
|
74
79
|
/**
|
|
75
80
|
* TrackerConfiguration
|
|
76
81
|
*/
|
|
@@ -304,6 +309,7 @@ interface RemoteConfiguration {
|
|
|
304
309
|
*/
|
|
305
310
|
interface TrackerControllerConfiguration {
|
|
306
311
|
networkConfig?: NetworkConfiguration;
|
|
312
|
+
traceparentConfig?: TraceparentConfiguration;
|
|
307
313
|
trackerConfig?: TrackerConfiguration;
|
|
308
314
|
sessionConfig?: SessionConfiguration;
|
|
309
315
|
emitterConfig?: EmitterConfiguration;
|
|
@@ -848,6 +854,12 @@ declare function removeTracker(trackerNamespace: string): Promise<boolean>;
|
|
|
848
854
|
* @returns - A boolean promise
|
|
849
855
|
*/
|
|
850
856
|
declare function removeAllTrackers(): Promise<boolean>;
|
|
857
|
+
/**
|
|
858
|
+
* Cleanup
|
|
859
|
+
*
|
|
860
|
+
* @returns - A boolean promise
|
|
861
|
+
*/
|
|
862
|
+
declare function cleanup(): Promise<boolean>;
|
|
851
863
|
/**
|
|
852
864
|
* Gets the cliend id
|
|
853
865
|
*
|
|
@@ -868,4 +880,4 @@ declare const _default: {
|
|
|
868
880
|
withReactNavigationAutotrack: (AppContainer: any) => react.ForwardRefExoticComponent<react.RefAttributes<any>>;
|
|
869
881
|
};
|
|
870
882
|
|
|
871
|
-
export { Basis, BufferOption, ConsentDocument, ConsentGrantedProps, ConsentWithdrawnProps, DeepLinkReceivedProps, DevicePlatform, EcommerceItem, EcommerceTransactionProps, EmitterConfiguration, EventContext, GCConfiguration, GdprConfiguration, GlobalContext, HttpMethod, LogLevel, MessageNotificationProps, NetworkConfiguration, PageViewProps, ReactNativeTracker, ScreenSize, ScreenViewProps, SelfDescribing, SessionConfiguration, StructuredProps, SubjectConfiguration, TimingProps, TrackerConfiguration, TrackerControllerConfiguration, Trigger, autocaptureNavigationTrack, createTracker, _default as default, getWebViewCallback, removeAllTrackers, removeTracker, withReactNavigationAutotrack, getClientId, setClientId};
|
|
883
|
+
export { Basis, BufferOption, ConsentDocument, ConsentGrantedProps, ConsentWithdrawnProps, DeepLinkReceivedProps, DevicePlatform, EcommerceItem, EcommerceTransactionProps, EmitterConfiguration, EventContext, GCConfiguration, GdprConfiguration, GlobalContext, HttpMethod, LogLevel, MessageNotificationProps, NetworkConfiguration, PageViewProps, ReactNativeTracker, ScreenSize, ScreenViewProps, SelfDescribing, SessionConfiguration, StructuredProps, SubjectConfiguration, TimingProps, TrackerConfiguration, TrackerControllerConfiguration, Trigger, autocaptureNavigationTrack, createTracker, cleanup, _default as default, getWebViewCallback, removeAllTrackers, removeTracker, withReactNavigationAutotrack, getClientId, setClientId};
|
|
@@ -1330,6 +1330,14 @@ function removeAllTrackers$1() {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
return Promise.resolve(RNConvivaTracker.removeAllTrackers());
|
|
1332
1332
|
}
|
|
1333
|
+
/**
|
|
1334
|
+
* Cleanup
|
|
1335
|
+
*
|
|
1336
|
+
* @returns - A void promise
|
|
1337
|
+
*/
|
|
1338
|
+
function cleanup$1() {
|
|
1339
|
+
return Promise.resolve(RNConvivaTracker.cleanup());
|
|
1340
|
+
}
|
|
1333
1341
|
/**
|
|
1334
1342
|
* Get the client id which is in prescribed format.
|
|
1335
1343
|
*
|
|
@@ -2274,6 +2282,15 @@ function removeAllTrackers() {
|
|
|
2274
2282
|
return removeAllTrackers$1()
|
|
2275
2283
|
.catch((e) => errorHandler(e));
|
|
2276
2284
|
}
|
|
2285
|
+
/**
|
|
2286
|
+
* Cleanup
|
|
2287
|
+
*
|
|
2288
|
+
* @returns - A boolean promise
|
|
2289
|
+
*/
|
|
2290
|
+
function cleanup() {
|
|
2291
|
+
return cleanup$1()
|
|
2292
|
+
.catch((e) => errorHandler(e));
|
|
2293
|
+
}
|
|
2277
2294
|
/**
|
|
2278
2295
|
* Gets the cliend id
|
|
2279
2296
|
*
|
|
@@ -2306,5 +2323,5 @@ var index = {
|
|
|
2306
2323
|
withReactNavigationAutotrack: withReactNavigationAutotrack(autocaptureNavigationTrack)
|
|
2307
2324
|
};
|
|
2308
2325
|
|
|
2309
|
-
export { autocaptureNavigationTrack, createTracker, index as default, getClientId, getWebViewCallback, removeAllTrackers, removeTracker, setClientId, withReactNavigationAutotrack };
|
|
2326
|
+
export { autocaptureNavigationTrack, cleanup, createTracker, index as default, getClientId, getWebViewCallback, removeAllTrackers, removeTracker, setClientId, withReactNavigationAutotrack };
|
|
2310
2327
|
//# sourceMappingURL=conviva-react-native-appanalytics.js.map
|
|
@@ -173,6 +173,11 @@ RCT_EXPORT_METHOD(removeAllTrackers: (RCTPromiseResolveBlock)resolve rejecter:(R
|
|
|
173
173
|
resolve(@YES);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
RCT_EXPORT_METHOD(cleanup: (RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
|
|
177
|
+
[CATAppAnalytics cleanup];
|
|
178
|
+
resolve(@YES);
|
|
179
|
+
}
|
|
180
|
+
|
|
176
181
|
RCT_EXPORT_METHOD(trackSelfDescribingEvent:
|
|
177
182
|
(NSDictionary *)details
|
|
178
183
|
resolver:(RCTPromiseResolveBlock)resolve
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
A5DCEA87E4EC7534EE29407C4918798519892DBE0A7FC151FD07F40CD82C3233
|
|
File without changes
|