@rusaint/react-native 0.13.2 → 0.13.4

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 (62) hide show
  1. package/android/build.gradle +1 -0
  2. package/android/cpp-adapter.cpp +5 -25
  3. package/android/generated/java/dev/eatsteak/rusaint/reactnative/NativeRusaintReactNativeSpec.java +41 -0
  4. package/android/generated/jni/CMakeLists.txt +36 -0
  5. package/android/generated/jni/RNRusaintSpec-generated.cpp +38 -0
  6. package/android/generated/jni/RNRusaintSpec.h +31 -0
  7. package/android/generated/jni/react/renderer/components/RNRusaintSpec/ComponentDescriptors.cpp +22 -0
  8. package/android/generated/jni/react/renderer/components/RNRusaintSpec/ComponentDescriptors.h +24 -0
  9. package/android/generated/jni/react/renderer/components/RNRusaintSpec/EventEmitters.cpp +16 -0
  10. package/android/generated/jni/react/renderer/components/RNRusaintSpec/EventEmitters.h +17 -0
  11. package/android/generated/jni/react/renderer/components/RNRusaintSpec/Props.cpp +19 -0
  12. package/android/generated/jni/react/renderer/components/RNRusaintSpec/Props.h +18 -0
  13. package/android/generated/jni/react/renderer/components/RNRusaintSpec/RNRusaintSpecJSI-generated.cpp +32 -0
  14. package/android/generated/jni/react/renderer/components/RNRusaintSpec/RNRusaintSpecJSI.h +80 -0
  15. package/android/generated/jni/react/renderer/components/RNRusaintSpec/ShadowNodes.cpp +17 -0
  16. package/android/generated/jni/react/renderer/components/RNRusaintSpec/ShadowNodes.h +23 -0
  17. package/android/generated/jni/react/renderer/components/RNRusaintSpec/States.cpp +16 -0
  18. package/android/generated/jni/react/renderer/components/RNRusaintSpec/States.h +19 -0
  19. package/android/proguard-rules.pro +4 -0
  20. package/android/src/main/jniLibs/arm64-v8a/librusaint_ffi.so +0 -0
  21. package/android/src/main/jniLibs/armeabi-v7a/librusaint_ffi.so +0 -0
  22. package/build/RusaintReactNative.xcframework/Info.plist +4 -4
  23. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeDirectory +0 -0
  24. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  25. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeResources +6 -6
  26. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeSignature +0 -0
  27. package/build/RusaintReactNative.xcframework/ios-arm64/librusaint_ffi.a +0 -0
  28. package/build/RusaintReactNative.xcframework/ios-arm64-simulator/librusaint_ffi.a +0 -0
  29. package/cpp/generated/rusaint_ffi.cpp +79 -0
  30. package/cpp/generated/rusaint_ffi.hpp +4 -0
  31. package/ios/generated/RNRusaintSpec/ComponentDescriptors.cpp +22 -0
  32. package/ios/generated/RNRusaintSpec/ComponentDescriptors.h +24 -0
  33. package/ios/generated/RNRusaintSpec/EventEmitters.cpp +16 -0
  34. package/ios/generated/RNRusaintSpec/EventEmitters.h +17 -0
  35. package/ios/generated/RNRusaintSpec/Props.cpp +19 -0
  36. package/ios/generated/RNRusaintSpec/Props.h +18 -0
  37. package/ios/generated/RNRusaintSpec/RCTComponentViewHelpers.h +18 -0
  38. package/ios/generated/RNRusaintSpec/RNRusaintSpec-generated.mm +46 -0
  39. package/ios/generated/RNRusaintSpec/RNRusaintSpec.h +63 -0
  40. package/ios/generated/RNRusaintSpec/ShadowNodes.cpp +17 -0
  41. package/ios/generated/RNRusaintSpec/ShadowNodes.h +23 -0
  42. package/ios/generated/RNRusaintSpec/States.cpp +16 -0
  43. package/ios/generated/RNRusaintSpec/States.h +19 -0
  44. package/ios/generated/RNRusaintSpecJSI-generated.cpp +32 -0
  45. package/ios/generated/RNRusaintSpecJSI.h +80 -0
  46. package/lib/commonjs/generated/rusaint_ffi-ffi.js.map +1 -1
  47. package/lib/commonjs/generated/rusaint_ffi.js +24 -0
  48. package/lib/commonjs/generated/rusaint_ffi.js.map +1 -1
  49. package/lib/module/generated/rusaint_ffi-ffi.js.map +1 -1
  50. package/lib/module/generated/rusaint_ffi.js +24 -0
  51. package/lib/module/generated/rusaint_ffi.js.map +1 -1
  52. package/lib/typescript/commonjs/src/generated/rusaint_ffi-ffi.d.ts +4 -0
  53. package/lib/typescript/commonjs/src/generated/rusaint_ffi-ffi.d.ts.map +1 -1
  54. package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts +16 -0
  55. package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts.map +1 -1
  56. package/lib/typescript/module/src/generated/rusaint_ffi-ffi.d.ts +4 -0
  57. package/lib/typescript/module/src/generated/rusaint_ffi-ffi.d.ts.map +1 -1
  58. package/lib/typescript/module/src/generated/rusaint_ffi.d.ts +16 -0
  59. package/lib/typescript/module/src/generated/rusaint_ffi.d.ts.map +1 -1
  60. package/package.json +2 -1
  61. package/src/generated/rusaint_ffi-ffi.ts +11 -0
  62. package/src/generated/rusaint_ffi.ts +67 -1
@@ -4643,7 +4643,12 @@ const FfiConverterTypeStudentInformationApplicationBuilder =
4643
4643
  * u-saint에서 사용할 세션
4644
4644
  * [`USaintSessionBuilder`]를 이용해 생성합니다.
4645
4645
  */
4646
- export interface USaintSessionInterface {}
4646
+ export interface USaintSessionInterface {
4647
+ /**
4648
+ * 세션을 json 형식으로 변환합니다.
4649
+ */
4650
+ toJson() /*throws*/ : string;
4651
+ }
4647
4652
 
4648
4653
  /**
4649
4654
  * u-saint에서 사용할 세션
@@ -4664,6 +4669,26 @@ export class USaintSession
4664
4669
  uniffiTypeUSaintSessionObjectFactory.bless(pointer);
4665
4670
  }
4666
4671
 
4672
+ /**
4673
+ * 세션을 json 형식으로 변환합니다.
4674
+ */
4675
+ public toJson(): string /*throws*/ {
4676
+ return FfiConverterString.lift(
4677
+ uniffiCaller.rustCallWithError(
4678
+ /*liftError:*/ FfiConverterTypeRusaintError.lift.bind(
4679
+ FfiConverterTypeRusaintError
4680
+ ),
4681
+ /*caller:*/ (callStatus) => {
4682
+ return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_usaintsession_to_json(
4683
+ uniffiTypeUSaintSessionObjectFactory.clonePointer(this),
4684
+ callStatus
4685
+ );
4686
+ },
4687
+ /*liftString:*/ FfiConverterString.lift
4688
+ )
4689
+ );
4690
+ }
4691
+
4667
4692
  /**
4668
4693
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
4669
4694
  */
@@ -4765,6 +4790,10 @@ export interface USaintSessionBuilderInterface {
4765
4790
  * ```
4766
4791
  */
4767
4792
  anonymous(): USaintSessionInterface;
4793
+ /**
4794
+ * json 형식으로 저장된 세션을 읽어 세션을 생성합니다.
4795
+ */
4796
+ fromJson(json: string) /*throws*/ : USaintSessionInterface;
4768
4797
  /**
4769
4798
  * ID, 비밀번호로 세션을 만듭니다.
4770
4799
  * ## Kotlin
@@ -4844,6 +4873,27 @@ export class USaintSessionBuilder
4844
4873
  );
4845
4874
  }
4846
4875
 
4876
+ /**
4877
+ * json 형식으로 저장된 세션을 읽어 세션을 생성합니다.
4878
+ */
4879
+ public fromJson(json: string): USaintSessionInterface /*throws*/ {
4880
+ return FfiConverterTypeUSaintSession.lift(
4881
+ uniffiCaller.rustCallWithError(
4882
+ /*liftError:*/ FfiConverterTypeRusaintError.lift.bind(
4883
+ FfiConverterTypeRusaintError
4884
+ ),
4885
+ /*caller:*/ (callStatus) => {
4886
+ return nativeModule().ubrn_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_from_json(
4887
+ uniffiTypeUSaintSessionBuilderObjectFactory.clonePointer(this),
4888
+ FfiConverterString.lower(json),
4889
+ callStatus
4890
+ );
4891
+ },
4892
+ /*liftString:*/ FfiConverterString.lift
4893
+ )
4894
+ );
4895
+ }
4896
+
4847
4897
  /**
4848
4898
  * ID, 비밀번호로 세션을 만듭니다.
4849
4899
  * ## Kotlin
@@ -5447,6 +5497,14 @@ function uniffiEnsureInitialized() {
5447
5497
  'uniffi_rusaint_ffi_checksum_method_studentinformationapplicationbuilder_build'
5448
5498
  );
5449
5499
  }
5500
+ if (
5501
+ nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_usaintsession_to_json() !==
5502
+ 38077
5503
+ ) {
5504
+ throw new UniffiInternalError.ApiChecksumMismatch(
5505
+ 'uniffi_rusaint_ffi_checksum_method_usaintsession_to_json'
5506
+ );
5507
+ }
5450
5508
  if (
5451
5509
  nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_anonymous() !==
5452
5510
  59232
@@ -5455,6 +5513,14 @@ function uniffiEnsureInitialized() {
5455
5513
  'uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_anonymous'
5456
5514
  );
5457
5515
  }
5516
+ if (
5517
+ nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_from_json() !==
5518
+ 55018
5519
+ ) {
5520
+ throw new UniffiInternalError.ApiChecksumMismatch(
5521
+ 'uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_from_json'
5522
+ );
5523
+ }
5458
5524
  if (
5459
5525
  nativeModule().ubrn_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_with_password() !==
5460
5526
  35896