react-native-zolozkit 0.1.9 → 0.1.11

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.
@@ -15,10 +15,20 @@ buildscript {
15
15
  apply plugin: 'com.android.library'
16
16
 
17
17
  def safeExtGet(prop, fallback) {
18
- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
18
+ def a = rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
19
+
20
+ if (a instanceof String && !a.startsWith("2")) {
21
+ project.logger.error("this version of plugin only support zoloz sdk version of 2.+")
22
+ }
23
+
24
+ return a
19
25
  }
20
26
 
21
27
  android {
28
+ if (project.android.hasProperty("namespace")) {
29
+ namespace "com.zoloz.plugin.react_native_zolozkit"
30
+ }
31
+
22
32
  compileSdkVersion safeExtGet('Zolozkit_compileSdkVersion', 29)
23
33
  defaultConfig {
24
34
  minSdkVersion safeExtGet('Zolozkit_minSdkVersion', 16)
@@ -57,7 +67,12 @@ dependencies {
57
67
  //noinspection GradleDynamicVersion
58
68
  implementation "com.facebook.react:react-native:+" // From node_modules
59
69
  // zoloz library
60
- implementation 'com.zoloz.android.build:zolozkit:1.+'
70
+ implementation "com.zoloz.android.build:zolozcore:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
71
+ implementation "com.zoloz.android.build:doc:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
72
+ implementation "com.zoloz.android.build:face:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
73
+ implementation "com.zoloz.android.build:xnn:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
74
+ implementation "com.zoloz.android.build:faceguard:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
75
+ implementation "com.zoloz.android.build:apsecurity:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
61
76
  implementation 'com.squareup.okio:okio:1.17.4@jar'
62
77
  implementation 'com.alibaba:fastjson:1.2.83'
63
78
  implementation 'com.airbnb.android:lottie:2.7.0'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zolozkit",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "zolozkit for react native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",