@metrixorg/react-native-plugin 2.0.2 → 2.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.
@@ -1,5 +1,11 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
+ def Properties gradleProperties = new Properties()
4
+ gradleProperties.load(rootProject.rootProject.file("gradle.properties").newDataInputStream())
5
+
6
+ project.ext {
7
+ notificationEnabled = gradleProperties.getProperty("metrix.notificatoin.enable", "false").toBoolean()
8
+ }
3
9
 
4
10
  android {
5
11
  compileSdkVersion 31
@@ -7,8 +13,8 @@ android {
7
13
  defaultConfig {
8
14
  minSdkVersion 16
9
15
  targetSdkVersion 31
10
- versionCode 200000058
11
- versionName "2.0.0.beta8"
16
+ versionCode 200001099
17
+ versionName "2.1.0"
12
18
  }
13
19
 
14
20
  buildTypes {
@@ -32,7 +38,9 @@ rootProject.allprojects {
32
38
  dependencies {
33
39
  implementation 'com.facebook.react:react-native:+'
34
40
 
35
- implementation 'ir.metrix.analytics:metrix-reactnative:2.0.0.beta8'
36
- implementation 'ir.metrix.attribution:metrix-reactnative:2.0.0.beta8'
37
- api 'ir.metrix.notification:metrix-reactnative:2.0.0.beta8'
41
+ implementation 'ir.metrix.analytics:metrix-reactnative:2.1.0'
42
+ implementation 'ir.metrix.attribution:metrix-reactnative:2.1.0'
43
+ if (project.ext.notificationEnabled) {
44
+ api 'ir.metrix.notification:metrix-reactnative:2.1.0'
45
+ }
38
46
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@metrixorg/react-native-plugin",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "Metrix React native plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
8
  "deploy": "git checkout master && git pull && git merge develop",
9
9
  "major": "2",
10
- "minor": "0",
11
- "patch": "2"
10
+ "minor": "1",
11
+ "patch": "0"
12
12
  },
13
13
  "author": "Metrix",
14
14
  "license": "Apache 2.0",