@convivainc/conviva-react-native-appanalytics 0.0.1 → 0.1.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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
# Changelog
|
|
3
|
+
## 0.1.0 (23/APR/2023)
|
|
4
|
+
* Production version of Conviva React Native Sensor
|
|
5
|
+
* Fixes the issue of optional Network Config argument being mandatory
|
|
6
|
+
|
|
3
7
|
## 0.0.1 (02/APR/2023)
|
|
4
|
-
* Initial version of the Conviva React Native Sensor
|
|
8
|
+
* Initial version of the Conviva React Native Sensor
|
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# conviva-react-native-appanalytics
|
|
2
2
|
## Application Analytics for Conviva React Native Sensor
|
|
3
|
-
Use Application Analytics to autocollect events, track application specific events and state changes, and track users anonymously.
|
|
3
|
+
Use Application Analytics to autocollect events, track application specific events and state changes, and track users anonymously. Please refer to [Android](https://github.com/Conviva/conviva-react-native-appanalytics-android-bridge) and [iOS](https://github.com/Conviva/conviva-react-native-appanalytics-ios-bridge) Bridge Sensors for more details.
|
|
4
|
+
They are internally built on top of the [Android](https://github.com/Conviva/conviva-android-appanalytics) and [iOS](https://github.com/Conviva/conviva-ios-appanalytics) Native Sensors.
|
|
4
5
|
|
|
5
6
|
## Installation
|
|
6
7
|
|
|
@@ -9,16 +10,19 @@ Use Application Analytics to autocollect events, track application specific even
|
|
|
9
10
|
npm install @convivainc/conviva-react-native-appanalytics --save
|
|
10
11
|
npx pod-install
|
|
11
12
|
```
|
|
12
|
-
### Install the Android React Native
|
|
13
|
+
### Install the Android React Native Bridge via Maven:
|
|
14
|
+
Add below mentioned line in gradle file(supported from 0.1.0 onwards):
|
|
13
15
|
```
|
|
14
16
|
dependencies {
|
|
15
17
|
...
|
|
16
18
|
implementation 'com.conviva.sdk:conviva-react-native-tracker:<version>'
|
|
19
|
+
implementation 'com.conviva.sdk:conviva-android-tracker:<version>'
|
|
17
20
|
}
|
|
18
21
|
```
|
|
19
|
-
### Install the iOS React Native
|
|
22
|
+
### Install the iOS React Native Bridge via Cocoapods:
|
|
23
|
+
Add below mentioned line in pod file(supported from 0.1.0 onwards):
|
|
20
24
|
```
|
|
21
|
-
pod 'RNConvivaAppAnalytics', 'version'
|
|
25
|
+
pod 'RNConvivaAppAnalytics', '<version>'
|
|
22
26
|
```
|
|
23
27
|
## Initialize the tracker
|
|
24
28
|
```js
|
|
@@ -677,8 +677,8 @@ function initValidate(init) {
|
|
|
677
677
|
if (typeof init.appName !== 'string' || !init.appName || init.appName === "") {
|
|
678
678
|
return Promise.reject(new Error(logMessages.appName));
|
|
679
679
|
}
|
|
680
|
-
if (
|
|
681
|
-
|
|
680
|
+
if (Object.prototype.hasOwnProperty.call(init, 'networkConfig')
|
|
681
|
+
&& !isValidNetworkConf(init.networkConfig)) {
|
|
682
682
|
return Promise.reject(new Error(logMessages.network));
|
|
683
683
|
}
|
|
684
684
|
if (Object.prototype.hasOwnProperty.call(init, 'trackerConfig')
|
|
@@ -1857,4 +1857,4 @@ function removeAllTrackers() {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
|
|
1859
1859
|
export { createTracker, getWebViewCallback, removeAllTrackers, removeTracker };
|
|
1860
|
-
//# sourceMappingURL=
|
|
1860
|
+
//# sourceMappingURL=conviva-react-native-appanalytics.js.map
|
package/package.json
CHANGED
|
File without changes
|