@didomi/react-native 2.10.0 → 2.12.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/android/build.gradle +1 -1
- package/android/src/main/java/io/didomi/reactnative/DidomiModule.kt +2 -4
- package/lib/commonjs/Constants.js +1 -1
- package/lib/module/Constants.js +1 -1
- package/lib/typescript/Constants.d.ts +1 -1
- package/lib/typescript/CurrentUserStatusTransaction.d.ts.map +1 -1
- package/package.json +1 -1
- package/react-native-didomi.podspec +1 -1
- package/src/Constants.ts +1 -1
package/android/build.gradle
CHANGED
|
@@ -268,7 +268,7 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
268
268
|
val set = mutableSetOf<String>()
|
|
269
269
|
|
|
270
270
|
for (i in 0 until size()) {
|
|
271
|
-
set.add(
|
|
271
|
+
getString(i)?.also { set.add(it) }
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
return set
|
|
@@ -1178,9 +1178,7 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
1180
|
// Required to transform from array to variadic.
|
|
1181
|
-
private fun readableArrayToStringArray(readableArray: ReadableArray)
|
|
1182
|
-
return Array(readableArray.size()) { i -> readableArray.getString(i) }
|
|
1183
|
-
}
|
|
1181
|
+
private fun readableArrayToStringArray(readableArray: ReadableArray) = readableArray.toSet().toTypedArray()
|
|
1184
1182
|
|
|
1185
1183
|
private fun buildDidomiInitializeParameters(jsonParameters: String): DidomiInitializeParameters {
|
|
1186
1184
|
val jsonObject = JSONObject(jsonParameters)
|
|
@@ -7,5 +7,5 @@ exports.DIDOMI_VERSION = exports.DIDOMI_USER_AGENT_NAME = void 0;
|
|
|
7
7
|
// User agent name
|
|
8
8
|
const DIDOMI_USER_AGENT_NAME = exports.DIDOMI_USER_AGENT_NAME = "Didomi React-Native SDK";
|
|
9
9
|
// User agent version
|
|
10
|
-
const DIDOMI_VERSION = exports.DIDOMI_VERSION = "2.
|
|
10
|
+
const DIDOMI_VERSION = exports.DIDOMI_VERSION = "2.12.0";
|
|
11
11
|
//# sourceMappingURL=Constants.js.map
|
package/lib/module/Constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrentUserStatusTransaction.d.ts","sourceRoot":"","sources":["../../src/CurrentUserStatusTransaction.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,4BAA4B;IAE3C,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,4BAA4B,CAAC;IAGxD,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC;IAG5D,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,4BAA4B,CAAC;IAGvD,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC;IAG3D,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,4BAA4B,CAAC;IAGzD,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC;IAG7D,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,4BAA4B,CAAC;IAGxD,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC;IAI5D,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5B;AASD,KAAK,cAAc,GAAG,CACpB,eAAe,EAAE,MAAM,EAAE,EACzB,gBAAgB,EAAE,MAAM,EAAE,EAC1B,cAAc,EAAE,MAAM,EAAE,EACxB,eAAe,EAAE,MAAM,EAAE,KACpB,OAAO,CAAC,OAAO,CAAC,CAAC;AAIxB,eAAO,MAAM,kCAAkC,
|
|
1
|
+
{"version":3,"file":"CurrentUserStatusTransaction.d.ts","sourceRoot":"","sources":["../../src/CurrentUserStatusTransaction.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,4BAA4B;IAE3C,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,4BAA4B,CAAC;IAGxD,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC;IAG5D,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,4BAA4B,CAAC;IAGvD,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC;IAG3D,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,4BAA4B,CAAC;IAGzD,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC;IAG7D,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,4BAA4B,CAAC;IAGxD,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC;IAI5D,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5B;AASD,KAAK,cAAc,GAAG,CACpB,eAAe,EAAE,MAAM,EAAE,EACzB,gBAAgB,EAAE,MAAM,EAAE,EAC1B,cAAc,EAAE,MAAM,EAAE,EACxB,eAAe,EAAE,MAAM,EAAE,KACpB,OAAO,CAAC,OAAO,CAAC,CAAC;AAIxB,eAAO,MAAM,kCAAkC,GAAI,gBAAgB,cAAc,KAAG,4BAyEnF,CAAA"}
|
package/package.json
CHANGED
package/src/Constants.ts
CHANGED