@smile_identity/react-native 10.2.1 → 10.2.2

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 @@ import com.android.Version
3
3
  buildscript {
4
4
  // Buildscript is evaluated before everything else so we can't use getExtOrDefault
5
5
  def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["SmileId_kotlinVersion"]
6
- def smile_id_sdk_version = rootProject.ext.has("androidVersion") ? rootProject.ext.get("androidVersion") : project.properties["SmileId_androidVersion"]
7
6
 
8
7
  repositories {
9
8
  google()
@@ -14,7 +13,9 @@ buildscript {
14
13
  dependencies {
15
14
  classpath "com.android.tools.build:gradle:8.3.2"
16
15
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17
- classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:$kotlin_version"
16
+ if (kotlinVersion?.startsWith("2")) {
17
+ classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:$kotlin_version"
18
+ }
18
19
  classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
19
20
  classpath "org.jlleitschuh.gradle:ktlint-gradle:12.1.1"
20
21
  }
@@ -25,12 +26,16 @@ def reactNativeArchitectures() {
25
26
  return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
26
27
  }
27
28
 
29
+ def kotlinVersion = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["SmileId_kotlinVersion"]
30
+
28
31
  apply plugin: "com.android.library"
29
32
  apply plugin: "kotlin-android"
30
33
  apply plugin: 'kotlin-kapt'
31
34
  apply plugin: "org.jlleitschuh.gradle.ktlint"
32
35
  apply plugin: "org.jetbrains.kotlin.plugin.serialization"
33
- apply plugin: "org.jetbrains.kotlin.plugin.compose"
36
+ if (kotlinVersion?.startsWith("2")) {
37
+ apply plugin: "org.jetbrains.kotlin.plugin.compose"
38
+ }
34
39
 
35
40
  def getExtOrDefault(name) {
36
41
  return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["SmileId_" + name]
@@ -71,6 +76,7 @@ android {
71
76
  targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
72
77
 
73
78
  }
79
+
74
80
  buildTypes {
75
81
  release {
76
82
  minifyEnabled false
@@ -91,7 +97,7 @@ android {
91
97
  }
92
98
 
93
99
  composeOptions {
94
- kotlinCompilerExtensionVersion rootProject.ext.has("kotlinCompilerExtensionVersion") ? rootProject.ext.get("kotlinCompilerExtensionVersion") : '1.5.11'
100
+ kotlinCompilerExtensionVersion rootProject.ext.has("kotlinCompilerExtensionVersion") ? rootProject.ext.get("kotlinCompilerExtensionVersion") : project.properties["SmileId_kotlinCompilerExtensionVersion"]
95
101
  }
96
102
 
97
103
  compileOptions {
@@ -112,8 +118,8 @@ repositories {
112
118
  gradlePluginPortal()
113
119
  }
114
120
 
115
- def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : getExtOrDefault("kotlinVersion")
116
- def smile_id_sdk_version = rootProject.ext.has("androidVersion") ? rootProject.ext.get("androidVersion") : getExtOrDefault("androidVersion")
121
+ def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["SmileId_kotlinVersion"]
122
+ def smile_id_sdk_version = project.properties["SmileId_androidVersion"]
117
123
 
118
124
  dependencies {
119
125
  implementation "com.facebook.react:react-native:0.72"
@@ -4,3 +4,4 @@ SmileId_targetSdkVersion=34
4
4
  SmileId_compileSdkVersion=34
5
5
  SmileId_ndkversion=21.4.7075529
6
6
  SmileId_androidVersion=10.3.7
7
+ SmileId_kotlinCompilerExtensionVersion=1.5.11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smile_identity/react-native",
3
- "version": "10.2.1",
3
+ "version": "10.2.2",
4
4
  "description": "Official wrapper for the Smile ID <v10 android and iOS SDKs",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",