react-native-zolozkit 0.1.10 → 0.1.12

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.
@@ -3,7 +3,6 @@ buildscript {
3
3
  repositories {
4
4
  google()
5
5
  mavenCentral()
6
- jcenter()
7
6
  }
8
7
 
9
8
  dependencies {
@@ -15,14 +14,24 @@ buildscript {
15
14
  apply plugin: 'com.android.library'
16
15
 
17
16
  def safeExtGet(prop, fallback) {
18
- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
17
+ def a = rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
18
+
19
+ if (a instanceof String && !a.startsWith("2")) {
20
+ project.logger.error("this version of plugin only support zoloz sdk version of 2.+")
21
+ }
22
+
23
+ return a
19
24
  }
20
25
 
21
26
  android {
22
- compileSdkVersion safeExtGet('Zolozkit_compileSdkVersion', 29)
27
+ if (project.android.hasProperty("namespace")) {
28
+ namespace "com.zoloz.plugin.react_native_zolozkit"
29
+ }
30
+
31
+ compileSdkVersion safeExtGet('Zolozkit_compileSdkVersion', 35)
23
32
  defaultConfig {
24
33
  minSdkVersion safeExtGet('Zolozkit_minSdkVersion', 16)
25
- targetSdkVersion safeExtGet('Zolozkit_targetSdkVersion', 29)
34
+ targetSdkVersion safeExtGet('Zolozkit_targetSdkVersion', 35)
26
35
  versionCode 1
27
36
  versionName "1.0"
28
37
 
@@ -50,14 +59,18 @@ repositories {
50
59
  }
51
60
  google()
52
61
  mavenCentral()
53
- jcenter()
54
62
  }
55
63
 
56
64
  dependencies {
57
65
  //noinspection GradleDynamicVersion
58
66
  implementation "com.facebook.react:react-native:+" // From node_modules
59
67
  // zoloz library
60
- implementation "com.zoloz.android.build:zolozkit:${safeExtGet('Zolozkit_zolozVersion', '1.+')}"
68
+ implementation "com.zoloz.android.build:zolozcore:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
69
+ implementation "com.zoloz.android.build:doc:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
70
+ implementation "com.zoloz.android.build:face:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
71
+ implementation "com.zoloz.android.build:xnn:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
72
+ implementation "com.zoloz.android.build:faceguard:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
73
+ implementation "com.zoloz.android.build:apsecurity:${safeExtGet('Zolozkit_zolozVersion', '2.+')}"
61
74
  implementation 'com.squareup.okio:okio:1.17.4@jar'
62
75
  implementation 'com.alibaba:fastjson:1.2.83'
63
76
  implementation 'com.airbnb.android:lottie:2.7.0'
@@ -1,3 +1,2 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.zoloz.react">
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
2
  </manifest>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zolozkit",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "zolozkit for react native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",