@castleio/react-native-castle 2.0.13 → 2.1.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.
Files changed (151) hide show
  1. package/android/.gradle/7.5/checksums/checksums.lock +0 -0
  2. package/android/.gradle/7.5/checksums/md5-checksums.bin +0 -0
  3. package/android/.gradle/7.5/checksums/sha1-checksums.bin +0 -0
  4. package/android/bin/.gradle/7.5/checksums/checksums.lock +0 -0
  5. package/android/bin/.gradle/7.5/checksums/md5-checksums.bin +0 -0
  6. package/android/bin/.gradle/7.5/checksums/sha1-checksums.bin +0 -0
  7. package/android/bin/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  8. package/android/bin/.gradle/7.5/dependencies-accessors/gc.properties +0 -0
  9. package/android/bin/.gradle/7.5/executionHistory/executionHistory.bin +0 -0
  10. package/android/bin/.gradle/7.5/executionHistory/executionHistory.lock +0 -0
  11. package/android/bin/.gradle/7.5/fileChanges/last-build.bin +0 -0
  12. package/android/bin/.gradle/7.5/fileHashes/fileHashes.bin +0 -0
  13. package/android/bin/.gradle/7.5/fileHashes/fileHashes.lock +0 -0
  14. package/android/bin/.gradle/7.5/fileHashes/resourceHashesCache.bin +0 -0
  15. package/android/bin/.gradle/7.5/gc.properties +0 -0
  16. package/android/bin/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  17. package/android/bin/.gradle/buildOutputCleanup/cache.properties +2 -0
  18. package/android/bin/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  19. package/android/bin/.gradle/checksums/checksums.lock +0 -0
  20. package/android/bin/.gradle/checksums/md5-checksums.bin +0 -0
  21. package/android/bin/.gradle/checksums/sha1-checksums.bin +0 -0
  22. package/android/bin/.gradle/config.properties +2 -0
  23. package/android/bin/.gradle/file-system.probe +0 -0
  24. package/android/bin/.gradle/vcs-1/gc.properties +0 -0
  25. package/android/bin/.idea/compiler.xml +6 -0
  26. package/android/bin/.idea/gradle.xml +19 -0
  27. package/android/bin/.idea/jarRepositories.xml +35 -0
  28. package/android/bin/.idea/kotlinc.xml +6 -0
  29. package/android/bin/.idea/migrations.xml +10 -0
  30. package/android/bin/.idea/misc.xml +9 -0
  31. package/android/bin/.idea/vcs.xml +6 -0
  32. package/android/bin/build/.transforms/de816a344db11b000cbc83bfe879c7db/results.bin +1 -0
  33. package/android/bin/build/.transforms/de816a344db11b000cbc83bfe879c7db/transformed/classes/classes.dex +0 -0
  34. package/android/bin/build/generated/source/buildConfig/debug/com/reactnativecastle/BuildConfig.class +0 -0
  35. package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +9 -0
  36. package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
  37. package/android/bin/build/intermediates/aar_metadata/debug/aar-metadata.properties +4 -0
  38. package/android/bin/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
  39. package/android/bin/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  40. package/android/bin/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  41. package/android/bin/build/intermediates/compile_symbol_list/debug/R.txt +1974 -0
  42. package/android/bin/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
  43. package/android/bin/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  44. package/android/bin/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  45. package/android/bin/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  46. package/android/bin/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  47. package/android/bin/build/intermediates/library_java_res/debug/res.jar +0 -0
  48. package/android/bin/build/intermediates/local_only_symbol_list/debug/R-def.txt +2 -0
  49. package/android/bin/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +11 -0
  50. package/android/bin/build/intermediates/merged_manifest/debug/AndroidManifest.xml +9 -0
  51. package/android/bin/build/intermediates/navigation_json/debug/navigation.json +1 -0
  52. package/android/bin/build/intermediates/packaged_manifests/debug/output-metadata.json +18 -0
  53. package/android/bin/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  54. package/android/bin/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +1467 -0
  55. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  56. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  57. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  58. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  59. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  60. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  61. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  62. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  63. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  64. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  65. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  66. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  67. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  68. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  69. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  70. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  71. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  72. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  73. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  74. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  75. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  76. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  77. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  78. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  79. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  80. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  81. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  82. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  83. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  84. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  85. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  86. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  87. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  88. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  89. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  90. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  91. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  92. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  93. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  94. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  95. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  96. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  97. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  98. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  99. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  100. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  101. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  102. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  103. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  104. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  105. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  106. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  107. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  108. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  109. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  110. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  111. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  112. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  113. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  114. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  115. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  116. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  117. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  118. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  119. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  120. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  121. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  122. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  123. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  124. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  125. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  126. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  127. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  128. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  129. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  130. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  131. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  132. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  133. package/android/bin/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  134. package/android/bin/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  135. package/android/bin/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  136. package/android/bin/build/outputs/logs/manifest-merger-debug-report.txt +25 -0
  137. package/android/bin/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  138. package/android/bin/build/tmp/kotlin-classes/debug/META-INF/reactnativecastle_debug.kotlin_module +0 -0
  139. package/android/bin/local.properties +8 -0
  140. package/android/gradlew +174 -110
  141. package/android/gradlew.bat +23 -17
  142. package/lib/commonjs/index.js +1 -2
  143. package/lib/commonjs/index.js.map +1 -1
  144. package/lib/commonjs/package.json +1 -0
  145. package/lib/module/index.js +2 -0
  146. package/lib/module/index.js.map +1 -1
  147. package/lib/module/package.json +1 -0
  148. package/lib/typescript/index.d.ts +1 -0
  149. package/lib/typescript/index.d.ts.map +1 -0
  150. package/package.json +20 -21
  151. package/react-native-castle.podspec +1 -1
@@ -14,7 +14,7 @@
14
14
  @rem limitations under the License.
15
15
  @rem
16
16
 
17
- @if "%DEBUG%" == "" @echo off
17
+ @if "%DEBUG%"=="" @echo off
18
18
  @rem ##########################################################################
19
19
  @rem
20
20
  @rem Gradle startup script for Windows
@@ -25,10 +25,14 @@
25
25
  if "%OS%"=="Windows_NT" setlocal
26
26
 
27
27
  set DIRNAME=%~dp0
28
- if "%DIRNAME%" == "" set DIRNAME=.
28
+ if "%DIRNAME%"=="" set DIRNAME=.
29
+ @rem This is normally unused
29
30
  set APP_BASE_NAME=%~n0
30
31
  set APP_HOME=%DIRNAME%
31
32
 
33
+ @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34
+ for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35
+
32
36
  @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
33
37
  set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
34
38
 
@@ -37,13 +41,13 @@ if defined JAVA_HOME goto findJavaFromJavaHome
37
41
 
38
42
  set JAVA_EXE=java.exe
39
43
  %JAVA_EXE% -version >NUL 2>&1
40
- if "%ERRORLEVEL%" == "0" goto execute
44
+ if %ERRORLEVEL% equ 0 goto execute
41
45
 
42
- echo.
43
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
44
- echo.
45
- echo Please set the JAVA_HOME variable in your environment to match the
46
- echo location of your Java installation.
46
+ echo. 1>&2
47
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48
+ echo. 1>&2
49
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50
+ echo location of your Java installation. 1>&2
47
51
 
48
52
  goto fail
49
53
 
@@ -53,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
53
57
 
54
58
  if exist "%JAVA_EXE%" goto execute
55
59
 
56
- echo.
57
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
58
- echo.
59
- echo Please set the JAVA_HOME variable in your environment to match the
60
- echo location of your Java installation.
60
+ echo. 1>&2
61
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62
+ echo. 1>&2
63
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64
+ echo location of your Java installation. 1>&2
61
65
 
62
66
  goto fail
63
67
 
@@ -72,15 +76,17 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72
76
 
73
77
  :end
74
78
  @rem End local scope for the variables with windows NT shell
75
- if "%ERRORLEVEL%"=="0" goto mainEnd
79
+ if %ERRORLEVEL% equ 0 goto mainEnd
76
80
 
77
81
  :fail
78
82
  rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
79
83
  rem the _cmd.exe /c_ return code!
80
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
81
- exit /b 1
84
+ set EXIT_CODE=%ERRORLEVEL%
85
+ if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
+ if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
+ exit /b %EXIT_CODE%
82
88
 
83
89
  :mainEnd
84
90
  if "%OS%"=="Windows_NT" endlocal
85
91
 
86
- :omega
92
+ :omega
@@ -12,6 +12,5 @@ exports.Castle = Castle;
12
12
  if (!Castle) {
13
13
  throw new Error('Failed to load Castle native module.');
14
14
  }
15
- var _default = Castle;
16
- exports.default = _default;
15
+ var _default = exports.default = Castle;
17
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","Castle","NativeModules","exports","Error","_default","default"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\nexport interface Configuration {\n publishableKey: string;\n debugLoggingEnabled?: boolean;\n maxQueueLimit?: number;\n flushLimit?: number;\n useCloudflareApp?: boolean;\n apiDomain?: string;\n apiPath?: string;\n baseURLAllowList?: string[];\n}\n\nexport type JsonValue = boolean | number | string | null | JsonList | JsonMap;\nexport interface JsonMap {\n [key: string]: JsonValue;\n [index: number]: JsonValue;\n}\nexport interface JsonList extends Array<JsonValue> {}\n\ntype CastleType = {\n configure(configuration: Configuration): Promise<void>;\n configureWithPublishableKey(publishableKey: string): Promise<void>;\n userJwt(userJwt: string): Promise<void>;\n screen(name: string): Promise<void>;\n custom(name: string): Promise<void>;\n customWithProperties(name: string, properties: JsonMap): Promise<void>;\n flush(): Promise<void>;\n flushIfNeeded(url: string): Promise<boolean>;\n reset(): Promise<void>;\n baseUrl(): Promise<string>;\n setAdvertisingIdentifier(identifier: string): Promise<void>;\n createRequestToken(): Promise<string>;\n requestTokenHeaderName(): Promise<string>;\n userAgent(): Promise<string>;\n queueSize(): Promise<number>;\n};\n\nexport const { Castle } = NativeModules;\n\nif (!Castle) {\n throw new Error('Failed to load Castle native module.');\n}\n\nexport default Castle as CastleType;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAsCO,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,GAEcJ,MAAM;AAAAE,OAAA,CAAAG,OAAA,GAAAD,QAAA"}
1
+ {"version":3,"names":["_reactNative","require","Castle","NativeModules","exports","Error","_default","default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAsCO,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":[]}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import { NativeModules } from 'react-native';
2
4
  export const {
3
5
  Castle
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","Castle","Error"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\nexport interface Configuration {\n publishableKey: string;\n debugLoggingEnabled?: boolean;\n maxQueueLimit?: number;\n flushLimit?: number;\n useCloudflareApp?: boolean;\n apiDomain?: string;\n apiPath?: string;\n baseURLAllowList?: string[];\n}\n\nexport type JsonValue = boolean | number | string | null | JsonList | JsonMap;\nexport interface JsonMap {\n [key: string]: JsonValue;\n [index: number]: JsonValue;\n}\nexport interface JsonList extends Array<JsonValue> {}\n\ntype CastleType = {\n configure(configuration: Configuration): Promise<void>;\n configureWithPublishableKey(publishableKey: string): Promise<void>;\n userJwt(userJwt: string): Promise<void>;\n screen(name: string): Promise<void>;\n custom(name: string): Promise<void>;\n customWithProperties(name: string, properties: JsonMap): Promise<void>;\n flush(): Promise<void>;\n flushIfNeeded(url: string): Promise<boolean>;\n reset(): Promise<void>;\n baseUrl(): Promise<string>;\n setAdvertisingIdentifier(identifier: string): Promise<void>;\n createRequestToken(): Promise<string>;\n requestTokenHeaderName(): Promise<string>;\n userAgent(): Promise<string>;\n queueSize(): Promise<number>;\n};\n\nexport const { Castle } = NativeModules;\n\nif (!Castle) {\n throw new Error('Failed to load Castle native module.');\n}\n\nexport default Castle as CastleType;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAsC5C,OAAO,MAAM;EAAEC;AAAO,CAAC,GAAGD,aAAa;AAEvC,IAAI,CAACC,MAAM,EAAE;EACX,MAAM,IAAIC,KAAK,CAAC,sCAAsC,CAAC;AACzD;AAEA,eAAeD,MAAM"}
1
+ {"version":3,"names":["NativeModules","Castle","Error"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,cAAc;AAsC5C,OAAO,MAAM;EAAEC;AAAO,CAAC,GAAGD,aAAa;AAEvC,IAAI,CAACC,MAAM,EAAE;EACX,MAAM,IAAIC,KAAK,CAAC,sCAAsC,CAAC;AACzD;AAEA,eAAeD,MAAM","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -35,3 +35,4 @@ type CastleType = {
35
35
  export declare const Castle: any;
36
36
  declare const _default: CastleType;
37
37
  export default _default;
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;CAC7B;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.0.13",
3
+ "version": "2.1.0",
4
4
  "description": "Castle SDK for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -50,37 +50,30 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@commitlint/config-conventional": "^11.0.0",
53
- "@react-native-community/eslint-config": "^2.0.0",
54
- "@release-it/conventional-changelog": "^7.0.1",
53
+ "@react-native-community/eslint-config": "^3.2.0",
54
+ "@release-it/conventional-changelog": "^10.0.0",
55
55
  "@types/jest": "^26.0.0",
56
- "@types/react": "^16.9.19",
56
+ "@types/react": "^18.2.6",
57
57
  "@types/react-native": "^0.70.7",
58
58
  "commitlint": "^17.0.0",
59
- "eslint": "^7.32.0",
60
- "eslint-config-prettier": "^7.0.0",
61
- "eslint-plugin-prettier": "^3.1.3",
59
+ "eslint": "^8.19.0",
60
+ "eslint-config-prettier": "^7.2.0",
61
+ "eslint-plugin-prettier": "^3.4.1",
62
62
  "husky": "^4.2.5",
63
- "jest": "^26.6.3",
63
+ "jest": "^29.6.3",
64
64
  "metro-react-native-babel-preset": "^0.67.0",
65
65
  "pod-install": "^0.1.0",
66
- "prettier": "^2.0.5",
67
- "react": "17.0.2",
68
- "react-native": "^0.68.0",
69
- "react-native-builder-bob": "^0.18.3",
70
- "release-it": "^16.1.3",
71
- "typescript": "^4.1.0"
66
+ "prettier": "^2.8.0",
67
+ "react": "^18.3.1",
68
+ "react-native": "^0.75.0",
69
+ "react-native-builder-bob": "^0.35.2",
70
+ "release-it": "^18.1.2",
71
+ "typescript": "^5.0.4"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "react": "*",
75
75
  "react-native": "*"
76
76
  },
77
- "jest": {
78
- "preset": "react-native",
79
- "modulePathIgnorePatterns": [
80
- "<rootDir>/example/node_modules",
81
- "<rootDir>/lib/"
82
- ]
83
- },
84
77
  "husky": {
85
78
  "hooks": {
86
79
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
@@ -154,6 +147,12 @@
154
147
  ]
155
148
  },
156
149
  "dependencies": {
150
+ "@babel/core": "^7.26.0",
151
+ "@babel/preset-env": "^7.1.6",
152
+ "@types/node": ">=18",
157
153
  "codecov": "^3.8.1"
154
+ },
155
+ "engines": {
156
+ "node": ">=18"
158
157
  }
159
158
  }
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
 
18
18
  s.dependency "React-Core"
19
- s.dependency "Castle", "3.0.10"
19
+ s.dependency "Castle", "3.0.13"
20
20
  end