@castleio/react-native-castle 2.1.1 → 2.2.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/README.md +4 -4
- package/android/.gradle/8.10.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.10.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.10.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.10.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{7.5 → 8.10.2}/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.10.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/{7.5 → 8.10.2}/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.idea/AndroidProjectSystem.xml +6 -0
- package/android/.idea/caches/deviceStreaming.xml +835 -0
- package/android/.idea/compiler.xml +1 -1
- package/android/.idea/gradle.xml +1 -1
- package/android/.idea/misc.xml +2 -1
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/build.gradle +16 -4
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/gradle.properties +3 -3
- package/android/gradlew +4 -1
- package/android/gradlew.bat +2 -0
- package/android/src/main/java/com/reactnativecastle/CastleModule.kt +3 -0
- package/ios/RCTCastle.m +24 -20
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +10 -7
- package/react-native-castle.podspec +1 -1
- package/src/index.tsx +1 -0
- package/android/.gradle/7.5/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.5/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.5/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- /package/android/.gradle/{7.5 → 8.10.2}/dependencies-accessors/gc.properties +0 -0
- /package/android/.gradle/{7.5 → 8.10.2}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{7.5 → 8.10.2}/gc.properties +0 -0
package/android/.idea/gradle.xml
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<component name="GradleSettings">
|
|
5
5
|
<option name="linkedExternalProjectsSettings">
|
|
6
6
|
<GradleProjectSettings>
|
|
7
|
+
<option name="testRunner" value="CHOOSE_PER_TEST" />
|
|
7
8
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
8
9
|
<option name="gradleHome" value="/usr/local/Cellar/gradle/7.3.3/libexec" />
|
|
9
10
|
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
|
@@ -12,7 +13,6 @@
|
|
|
12
13
|
<option value="$PROJECT_DIR$" />
|
|
13
14
|
</set>
|
|
14
15
|
</option>
|
|
15
|
-
<option name="resolveExternalAnnotations" value="false" />
|
|
16
16
|
</GradleProjectSettings>
|
|
17
17
|
</option>
|
|
18
18
|
</component>
|
package/android/.idea/misc.xml
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
1
2
|
<project version="4">
|
|
2
3
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
3
|
-
<component name="ProjectRootManager" version="2" languageLevel="
|
|
4
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
|
|
4
5
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
5
6
|
</component>
|
|
6
7
|
<component name="ProjectType">
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="RunConfigurationProducerService">
|
|
4
|
+
<option name="ignoredProducers">
|
|
5
|
+
<set>
|
|
6
|
+
<option value="com.intellij.execution.junit.AbstractAllInDirectoryConfigurationProducer" />
|
|
7
|
+
<option value="com.intellij.execution.junit.AllInPackageConfigurationProducer" />
|
|
8
|
+
<option value="com.intellij.execution.junit.PatternConfigurationProducer" />
|
|
9
|
+
<option value="com.intellij.execution.junit.TestInClassConfigurationProducer" />
|
|
10
|
+
<option value="com.intellij.execution.junit.UniqueIdConfigurationProducer" />
|
|
11
|
+
<option value="com.intellij.execution.junit.testDiscovery.JUnitTestDiscoveryConfigurationProducer" />
|
|
12
|
+
<option value="org.jetbrains.kotlin.idea.junit.KotlinJUnitRunConfigurationProducer" />
|
|
13
|
+
<option value="org.jetbrains.kotlin.idea.junit.KotlinPatternConfigurationProducer" />
|
|
14
|
+
</set>
|
|
15
|
+
</option>
|
|
16
|
+
</component>
|
|
17
|
+
</project>
|
package/android/build.gradle
CHANGED
|
@@ -9,14 +9,14 @@ buildscript {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
dependencies {
|
|
12
|
-
classpath 'com.android.tools.build:gradle:
|
|
12
|
+
classpath 'com.android.tools.build:gradle:8.2.2'
|
|
13
13
|
// noinspection DifferentKotlinGradleVersion
|
|
14
14
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
apply plugin: 'com.android.library'
|
|
19
|
-
apply plugin: 'kotlin
|
|
19
|
+
apply plugin: 'org.jetbrains.kotlin.android'
|
|
20
20
|
|
|
21
21
|
def getExtOrDefault(name) {
|
|
22
22
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['Castle_' + name]
|
|
@@ -27,10 +27,11 @@ def getExtOrIntegerDefault(name) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
android {
|
|
30
|
+
namespace = "com.reactnativecastle"
|
|
30
31
|
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
|
|
31
32
|
buildToolsVersion getExtOrDefault('buildToolsVersion')
|
|
32
33
|
defaultConfig {
|
|
33
|
-
minSdkVersion
|
|
34
|
+
minSdkVersion 24
|
|
34
35
|
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -119,11 +120,22 @@ repositories {
|
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
|
|
123
|
+
subprojects {
|
|
124
|
+
configurations.all {
|
|
125
|
+
resolutionStrategy.eachDependency {
|
|
126
|
+
if (requested.group == "org.jetbrains.kotlin") {
|
|
127
|
+
useVersion("$kotlin_version")
|
|
128
|
+
because("Align all Kotlin versions to avoid metadata issues")
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
122
134
|
def kotlin_version = getExtOrDefault('kotlinVersion')
|
|
123
135
|
|
|
124
136
|
dependencies {
|
|
125
137
|
// noinspection GradleDynamicVersion
|
|
126
138
|
api 'com.facebook.react:react-native:+'
|
|
127
139
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
128
|
-
api 'io.castle.android:castle:3.0
|
|
140
|
+
api 'io.castle.android:castle:3.1.0'
|
|
129
141
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
|
|
4
4
|
zipStoreBase=GRADLE_USER_HOME
|
|
5
5
|
zipStorePath=wrapper/dists
|
package/android/gradlew
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
# See the License for the specific language governing permissions and
|
|
16
16
|
# limitations under the License.
|
|
17
17
|
#
|
|
18
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
19
|
+
#
|
|
18
20
|
|
|
19
21
|
##############################################################################
|
|
20
22
|
#
|
|
@@ -84,7 +86,8 @@ done
|
|
|
84
86
|
# shellcheck disable=SC2034
|
|
85
87
|
APP_BASE_NAME=${0##*/}
|
|
86
88
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
|
87
|
-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null &&
|
|
89
|
+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
|
90
|
+
' "$PWD" ) || exit
|
|
88
91
|
|
|
89
92
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
90
93
|
MAX_FD=maximum
|
package/android/gradlew.bat
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
@rem See the License for the specific language governing permissions and
|
|
14
14
|
@rem limitations under the License.
|
|
15
15
|
@rem
|
|
16
|
+
@rem SPDX-License-Identifier: Apache-2.0
|
|
17
|
+
@rem
|
|
16
18
|
|
|
17
19
|
@if "%DEBUG%"=="" @echo off
|
|
18
20
|
@rem ##########################################################################
|
|
@@ -43,6 +43,9 @@ class CastleModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
43
43
|
builder.baseURLAllowList(baseURLAllowList)
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
if (options.hasKey("lifeCycleEventsEnabled")) {
|
|
47
|
+
builder.applicationLifecycleTrackingEnabled(options.getBoolean("lifeCycleEventsEnabled"))
|
|
48
|
+
}
|
|
46
49
|
|
|
47
50
|
Castle.configure(reactApplicationContext.applicationContext as Application, builder.build())
|
|
48
51
|
|
package/ios/RCTCastle.m
CHANGED
|
@@ -29,7 +29,7 @@ RCT_EXPORT_METHOD(requestTokenHeaderName
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
Configure Castle using the provided configuration
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
@param configuration CastleConfiguration instance
|
|
34
34
|
*/
|
|
35
35
|
RCT_EXPORT_METHOD(configure:(nonnull NSDictionary *)options
|
|
@@ -44,31 +44,35 @@ RCT_EXPORT_METHOD(configure:(nonnull NSDictionary *)options
|
|
|
44
44
|
[configuration setAdSupportBlock:^NSString* {
|
|
45
45
|
return self.idfa;
|
|
46
46
|
}];
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
if (options[@"debugLoggingEnabled"]) {
|
|
49
49
|
configuration.debugLoggingEnabled = [options[@"debugLoggingEnabled"] boolValue];
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
if (options[@"maxQueueLimit"]) {
|
|
53
53
|
configuration.maxQueueLimit = [options[@"maxQueueLimit"] integerValue];
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
|
|
56
56
|
if (options[@"flushLimit"]) {
|
|
57
57
|
configuration.flushLimit = [options[@"flushLimit"] integerValue];
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
if (options[@"baseURLAllowList"]) {
|
|
61
61
|
configuration.baseURLAllowList = options[@"baseURLAllowList"];
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
|
|
64
|
+
if (options[@"lifeCycleEventsEnabled"]) {
|
|
65
|
+
configuration.enableApplicationLifecycleTracking = options[@"lifeCycleEventsEnabled"];
|
|
66
|
+
}
|
|
67
|
+
|
|
64
68
|
[Castle configure:configuration];
|
|
65
|
-
|
|
69
|
+
|
|
66
70
|
return resolver(nil);
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
/**
|
|
70
74
|
Configure Castle with default configuration using publishable key
|
|
71
|
-
|
|
75
|
+
|
|
72
76
|
@param publishableKey Castle publishable key
|
|
73
77
|
*/
|
|
74
78
|
RCT_EXPORT_METHOD(configureWithPublishableKey:(nonnull NSString *)publishableKey
|
|
@@ -80,9 +84,9 @@ RCT_EXPORT_METHOD(configureWithPublishableKey:(nonnull NSString *)publishableKey
|
|
|
80
84
|
CastleConfiguration *configuration = [CastleConfiguration configurationWithPublishableKey:publishableKey];
|
|
81
85
|
configuration.screenTrackingEnabled = NO;
|
|
82
86
|
configuration.deviceIDAutoForwardingEnabled = NO;
|
|
83
|
-
|
|
87
|
+
|
|
84
88
|
[Castle configureWithPublishableKey:publishableKey];
|
|
85
|
-
|
|
89
|
+
|
|
86
90
|
return resolver(nil);
|
|
87
91
|
}
|
|
88
92
|
|
|
@@ -102,7 +106,7 @@ RCT_EXPORT_METHOD(resetConfiguration
|
|
|
102
106
|
|
|
103
107
|
/**
|
|
104
108
|
Set user jwt, will be persisted. A call to userJwt or reset will clear the stored user identity.
|
|
105
|
-
|
|
109
|
+
|
|
106
110
|
@param userJwt user jwt
|
|
107
111
|
*/
|
|
108
112
|
RCT_EXPORT_METHOD(userJwt:(NSString *)userJwt)
|
|
@@ -112,7 +116,7 @@ RCT_EXPORT_METHOD(userJwt:(NSString *)userJwt)
|
|
|
112
116
|
|
|
113
117
|
/**
|
|
114
118
|
Track custom event with a specified name
|
|
115
|
-
|
|
119
|
+
|
|
116
120
|
@param name Event name
|
|
117
121
|
*/
|
|
118
122
|
RCT_EXPORT_METHOD(custom:(NSString *)name)
|
|
@@ -122,7 +126,7 @@ RCT_EXPORT_METHOD(custom:(NSString *)name)
|
|
|
122
126
|
|
|
123
127
|
/**
|
|
124
128
|
Track custom event with a specified name and properties
|
|
125
|
-
|
|
129
|
+
|
|
126
130
|
@param name Event name
|
|
127
131
|
@param properties Properties
|
|
128
132
|
*/
|
|
@@ -133,7 +137,7 @@ RCT_EXPORT_METHOD(customWithProperties:(NSString *)name properties:(NSDictionary
|
|
|
133
137
|
|
|
134
138
|
/**
|
|
135
139
|
Track screen event with a specified name
|
|
136
|
-
|
|
140
|
+
|
|
137
141
|
@param screenName Screen name
|
|
138
142
|
*/
|
|
139
143
|
RCT_EXPORT_METHOD(screen:(NSString *)screenName)
|
|
@@ -151,7 +155,7 @@ RCT_EXPORT_METHOD(flush)
|
|
|
151
155
|
|
|
152
156
|
/**
|
|
153
157
|
Force a flush if needed for a specific url, flushes if url is whitelisted
|
|
154
|
-
|
|
158
|
+
|
|
155
159
|
@param url Whitelist url
|
|
156
160
|
*/
|
|
157
161
|
RCT_EXPORT_METHOD(flushIfNeeded:(NSURL *)url)
|
|
@@ -169,7 +173,7 @@ RCT_EXPORT_METHOD(reset)
|
|
|
169
173
|
|
|
170
174
|
/**
|
|
171
175
|
Get base url
|
|
172
|
-
|
|
176
|
+
|
|
173
177
|
@return return Base URL
|
|
174
178
|
*/
|
|
175
179
|
RCT_EXPORT_METHOD(baseUrl
|
|
@@ -182,7 +186,7 @@ RCT_EXPORT_METHOD(baseUrl
|
|
|
182
186
|
|
|
183
187
|
/**
|
|
184
188
|
Set advertising identifier (IDFA)
|
|
185
|
-
|
|
189
|
+
|
|
186
190
|
@param baseUrl Base URL
|
|
187
191
|
*/
|
|
188
192
|
RCT_EXPORT_METHOD(setAdvertisingIdentifier:(NSString *)identifier)
|
|
@@ -194,7 +198,7 @@ RCT_EXPORT_METHOD(setAdvertisingIdentifier:(NSString *)identifier)
|
|
|
194
198
|
|
|
195
199
|
/**
|
|
196
200
|
Create request token
|
|
197
|
-
|
|
201
|
+
|
|
198
202
|
@return request token
|
|
199
203
|
*/
|
|
200
204
|
RCT_EXPORT_METHOD(createRequestToken
|
|
@@ -208,7 +212,7 @@ RCT_EXPORT_METHOD(createRequestToken
|
|
|
208
212
|
/**
|
|
209
213
|
Get the User Agent for used in all requests to the Castle API.
|
|
210
214
|
User agent will have the following format: App Name/x.x (xxxx) (iPhone XR; iOS xx.x; Castle x.x.x)
|
|
211
|
-
|
|
215
|
+
|
|
212
216
|
@return User Agent
|
|
213
217
|
*/
|
|
214
218
|
RCT_EXPORT_METHOD(userAgent
|
|
@@ -221,7 +225,7 @@ RCT_EXPORT_METHOD(userAgent
|
|
|
221
225
|
|
|
222
226
|
/**
|
|
223
227
|
Get the current size of the event queue
|
|
224
|
-
|
|
228
|
+
|
|
225
229
|
@return return The current size of the event queue
|
|
226
230
|
*/
|
|
227
231
|
RCT_EXPORT_METHOD(queueSize
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","Castle","NativeModules","exports","Error","_default","default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","Castle","NativeModules","exports","Error","_default","default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAuCO,MAAM;EAAEC;AAAO,CAAC,GAAGC,0BAAa;AAACC,OAAA,CAAAF,MAAA,GAAAA,MAAA;AAExC,IAAI,CAACA,MAAM,EAAE;EACX,MAAM,IAAIG,KAAK,CAAC,sCAAsC,CAAC;AACzD;AAAC,IAAAC,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAEcL,MAAM","ignoreList":[]}
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Castle","Error"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,cAAc;
|
|
1
|
+
{"version":3,"names":["NativeModules","Castle","Error"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,cAAc;AAuC5C,OAAO,MAAM;EAAEC;AAAO,CAAC,GAAGD,aAAa;AAEvC,IAAI,CAACC,MAAM,EAAE;EACX,MAAM,IAAIC,KAAK,CAAC,sCAAsC,CAAC;AACzD;AAEA,eAAeD,MAAM","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC9E,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AACD,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,SAAS,CAAC;CAAG;AAErD,KAAK,UAAU,GAAG;IAChB,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,2BAA2B,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3B,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACtC,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1C,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAQ,MAAM,KAAkB,CAAC;wBAMf,UAAU;AAAnC,wBAAoC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@castleio/react-native-castle",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Castle SDK for React Native",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@commitlint/config-conventional": "^11.0.0",
|
|
53
|
-
"@react-native
|
|
53
|
+
"@react-native/eslint-config": "^0.77.0",
|
|
54
54
|
"@release-it/conventional-changelog": "^10.0.0",
|
|
55
|
-
"@types/jest": "^
|
|
55
|
+
"@types/jest": "^29.5.13",
|
|
56
56
|
"@types/react": "^18.2.6",
|
|
57
57
|
"@types/react-native": "^0.70.7",
|
|
58
58
|
"commitlint": "^17.0.0",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"eslint-config-prettier": "^7.2.0",
|
|
61
61
|
"eslint-plugin-prettier": "^3.4.1",
|
|
62
62
|
"husky": "^4.2.5",
|
|
63
|
-
"jest": "^29.
|
|
64
|
-
"
|
|
63
|
+
"jest": "^29.2.1",
|
|
64
|
+
"@react-native/babel-preset": "^0.77.0",
|
|
65
65
|
"pod-install": "^0.1.0",
|
|
66
66
|
"prettier": "^2.8.0",
|
|
67
67
|
"react": "^18.3.1",
|
|
68
|
-
"react-native": "^0.
|
|
68
|
+
"react-native": "^0.77.0",
|
|
69
69
|
"react-native-builder-bob": "^0.35.2",
|
|
70
70
|
"release-it": "^18.1.2",
|
|
71
71
|
"typescript": "^5.0.4"
|
|
@@ -105,7 +105,10 @@
|
|
|
105
105
|
"eslintConfig": {
|
|
106
106
|
"root": true,
|
|
107
107
|
"extends": [
|
|
108
|
-
"@react-native
|
|
108
|
+
"@react-native",
|
|
109
|
+
"prettier"
|
|
110
|
+
],
|
|
111
|
+
"plugins": [
|
|
109
112
|
"prettier"
|
|
110
113
|
],
|
|
111
114
|
"rules": {
|
package/src/index.tsx
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|