@castleio/react-native-castle 2.1.0 → 2.1.1
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.
|
@@ -36,7 +36,7 @@ class CastleModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
36
36
|
array?.let {
|
|
37
37
|
val baseURLAllowList = mutableListOf<String>()
|
|
38
38
|
for (i in 0 until array.size()) {
|
|
39
|
-
array.getString(i)
|
|
39
|
+
array.getString(i)?.let {
|
|
40
40
|
s -> baseURLAllowList.add(s)
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -112,11 +112,6 @@ class CastleModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
112
112
|
// Do nothing, setting IDFA is not applicable on Android
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
@ReactMethod
|
|
116
|
-
fun userJwt(promise: Promise) {
|
|
117
|
-
promise.resolve(Castle.userJwt())
|
|
118
|
-
}
|
|
119
|
-
|
|
120
115
|
@ReactMethod
|
|
121
116
|
fun userAgent(promise: Promise) {
|
|
122
117
|
promise.resolve(Castle.userAgent())
|
|
Binary file
|