@rusaint/react-native 0.12.0 → 0.13.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.
Files changed (42) hide show
  1. package/{rusaint-react-native.podspec → RusaintReactNative.podspec} +2 -2
  2. package/android/CMakeLists.txt +3 -4
  3. package/android/build.gradle +1 -0
  4. package/android/src/main/jniLibs/arm64-v8a/librusaint_ffi.a +0 -0
  5. package/android/src/main/jniLibs/armeabi-v7a/librusaint_ffi.a +0 -0
  6. package/android/src/main/jniLibs/x86/librusaint_ffi.a +0 -0
  7. package/android/src/main/jniLibs/x86_64/librusaint_ffi.a +0 -0
  8. package/build/RusaintReactNative.xcframework/Info.plist +4 -4
  9. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeDirectory +0 -0
  10. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  11. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeResources +6 -6
  12. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeSignature +0 -0
  13. package/build/RusaintReactNative.xcframework/ios-arm64/librusaint_ffi.a +0 -0
  14. package/build/RusaintReactNative.xcframework/ios-arm64-simulator/librusaint_ffi.a +0 -0
  15. package/lib/commonjs/generated/rusaint.js +39 -35
  16. package/lib/commonjs/generated/rusaint.js.map +1 -1
  17. package/lib/commonjs/generated/rusaint_ffi.js +598 -559
  18. package/lib/commonjs/generated/rusaint_ffi.js.map +1 -1
  19. package/lib/commonjs/index.js +11 -1
  20. package/lib/commonjs/index.js.map +1 -1
  21. package/lib/module/generated/rusaint.js +39 -35
  22. package/lib/module/generated/rusaint.js.map +1 -1
  23. package/lib/module/generated/rusaint_ffi.js +598 -559
  24. package/lib/module/generated/rusaint_ffi.js.map +1 -1
  25. package/lib/module/index.js +7 -0
  26. package/lib/module/index.js.map +1 -1
  27. package/lib/typescript/commonjs/src/generated/rusaint.d.ts +1 -1
  28. package/lib/typescript/commonjs/src/generated/rusaint.d.ts.map +1 -1
  29. package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts +89 -1
  30. package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts.map +1 -1
  31. package/lib/typescript/commonjs/src/index.d.ts +1 -0
  32. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  33. package/lib/typescript/module/src/generated/rusaint.d.ts +1 -1
  34. package/lib/typescript/module/src/generated/rusaint.d.ts.map +1 -1
  35. package/lib/typescript/module/src/generated/rusaint_ffi.d.ts +89 -1
  36. package/lib/typescript/module/src/generated/rusaint_ffi.d.ts.map +1 -1
  37. package/lib/typescript/module/src/index.d.ts +1 -0
  38. package/lib/typescript/module/src/index.d.ts.map +1 -1
  39. package/package.json +19 -19
  40. package/src/generated/rusaint.ts +68 -64
  41. package/src/generated/rusaint_ffi.ts +1186 -1133
  42. package/src/index.tsx +7 -0
@@ -1 +1 @@
1
- {"version":3,"names":["_NativeRusaintReactNative","_interopRequireDefault","require","rusaint","_interopRequireWildcard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","rusaint_ffi","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","rustInstalled","installer","installRustCrate","initialized","initialize","_default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;AACA,IAAAA,yBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAYA,IAAAC,OAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAA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,CAAAQ,CAAA,EAAAW,CAAA,SAAAC,CAAA,GAAAH,CAAA,GAAAvB,MAAA,CAAAwB,wBAAA,CAAAV,CAAA,EAAAW,CAAA,UAAAC,CAAA,KAAAA,CAAA,CAAAf,GAAA,IAAAe,CAAA,CAAAC,GAAA,IAAA3B,MAAA,CAAAS,cAAA,CAAAY,CAAA,EAAAI,CAAA,EAAAC,CAAA,IAAAL,CAAA,CAAAI,CAAA,IAAAX,CAAA,CAAAW,CAAA,YAAAJ,CAAA,CAAAF,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAU,GAAA,CAAAb,CAAA,EAAAO,CAAA,GAAAA,CAAA;AAAA,SAAAzB,uBAAAkB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAI,UAAA,GAAAJ,CAAA,KAAAK,OAAA,EAAAL,CAAA;AAdxC;;AAGA;AACA;AACA;AACA,IAAIc,aAAa,GAAG,KAAK;AACzB,IAAI,CAACA,aAAa,EAAE;EAClBC,iCAAS,CAACC,gBAAgB,CAAC,CAAC;EAC5BF,aAAa,GAAG,IAAI;AACtB;;AAEA;;AAIA;AACA;AACA;;AAIA;AACA;AACA;AACA,IAAIG,WAAW,GAAG,KAAK;AACvB,IAAI,CAACA,WAAW,EAAE;EAChBjC,OAAO,CAACqB,OAAO,CAACa,UAAU,CAAC,CAAC;EAC5BpB,WAAW,CAACO,OAAO,CAACa,UAAU,CAAC,CAAC;EAChCD,WAAW,GAAG,IAAI;AACpB;;AAEA;AAAA,IAAAE,QAAA,GAAAzB,OAAA,CAAAW,OAAA,GACe;EACbrB,OAAO;EACPc;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_NativeRusaintReactNative","_interopRequireDefault","require","rusaint","_interopRequireWildcard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","rusaint_ffi","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","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,WAAW,GAAG,KAAK;AACvB,IAAI,CAACA,WAAW,EAAE;EAChBjC,OAAO,CAACqB,OAAO,CAACa,UAAU,CAAC,CAAC;EAC5BpB,WAAW,CAACO,OAAO,CAACa,UAAU,CAAC,CAAC;EAChCD,WAAW,GAAG,IAAI;AACpB;;AAEA;AACA;AACA;AACO,eAAeE,eAAeA,CAAA,EAAG;EACtC;AAAA;;AAGF;AAAA,IAAAC,QAAA,GAAA1B,OAAA,CAAAW,OAAA,GACe;EACbrB,OAAO;EACPc;AACF,CAAC","ignoreList":[]}
@@ -6,7 +6,9 @@ import nativeModule from "./rusaint-ffi.js";
6
6
  import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterArrayBuffer, FfiConverterBool, FfiConverterFloat32, FfiConverterInt32, FfiConverterMap, FfiConverterObject, FfiConverterOptional, FfiConverterUInt32, FfiConverterUInt64, UniffiAbstractObject, UniffiEnum, UniffiInternalError, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
7
7
 
8
8
  // Get converters from the other files, if any.
9
- const uniffiCaller = new UniffiRustCaller();
9
+ const uniffiCaller = new UniffiRustCaller(() => ({
10
+ code: 0
11
+ }));
10
12
  const uniffiIsDebug =
11
13
  // @ts-ignore -- The process global might not be defined
12
14
  typeof process !== 'object' ||
@@ -461,7 +463,7 @@ const FfiConverterTypeGraduationRequirement = (() => {
461
463
  return {
462
464
  name: FfiConverterString.read(from),
463
465
  requirement: FfiConverterOptionalUInt32.read(from),
464
- calcuation: FfiConverterOptionalFloat32.read(from),
466
+ calculation: FfiConverterOptionalFloat32.read(from),
465
467
  difference: FfiConverterOptionalFloat32.read(from),
466
468
  result: FfiConverterBool.read(from),
467
469
  category: FfiConverterString.read(from),
@@ -471,14 +473,14 @@ const FfiConverterTypeGraduationRequirement = (() => {
471
473
  write(value, into) {
472
474
  FfiConverterString.write(value.name, into);
473
475
  FfiConverterOptionalUInt32.write(value.requirement, into);
474
- FfiConverterOptionalFloat32.write(value.calcuation, into);
476
+ FfiConverterOptionalFloat32.write(value.calculation, into);
475
477
  FfiConverterOptionalFloat32.write(value.difference, into);
476
478
  FfiConverterBool.write(value.result, into);
477
479
  FfiConverterString.write(value.category, into);
478
480
  FfiConverterArrayString.write(value.lectures, into);
479
481
  }
480
482
  allocationSize(value) {
481
- return FfiConverterString.allocationSize(value.name) + FfiConverterOptionalUInt32.allocationSize(value.requirement) + FfiConverterOptionalFloat32.allocationSize(value.calcuation) + FfiConverterOptionalFloat32.allocationSize(value.difference) + FfiConverterBool.allocationSize(value.result) + FfiConverterString.allocationSize(value.category) + FfiConverterArrayString.allocationSize(value.lectures);
483
+ return FfiConverterString.allocationSize(value.name) + FfiConverterOptionalUInt32.allocationSize(value.requirement) + FfiConverterOptionalFloat32.allocationSize(value.calculation) + FfiConverterOptionalFloat32.allocationSize(value.difference) + FfiConverterBool.allocationSize(value.result) + FfiConverterString.allocationSize(value.category) + FfiConverterArrayString.allocationSize(value.lectures);
482
484
  }
483
485
  }
484
486
  return new FFIConverter();
@@ -3038,37 +3040,39 @@ export class LectureCategoryBuilder extends UniffiAbstractObject {
3038
3040
  return uniffiTypeLectureCategoryBuilderObjectFactory.isConcreteType(obj);
3039
3041
  }
3040
3042
  }
3041
- const uniffiTypeLectureCategoryBuilderObjectFactory = {
3042
- create(pointer) {
3043
- const instance = Object.create(LectureCategoryBuilder.prototype);
3044
- instance[pointerLiteralSymbol] = pointer;
3045
- instance[destructorGuardSymbol] = this.bless(pointer);
3046
- instance[uniffiTypeNameSymbol] = 'LectureCategoryBuilder';
3047
- return instance;
3048
- },
3049
- bless(p) {
3050
- return uniffiCaller.rustCall(/*caller:*/status => nativeModule().ubrn_uniffi_internal_fn_method_lecturecategorybuilder_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
3051
- },
3052
- unbless(ptr) {
3053
- ptr.markDestroyed();
3054
- },
3055
- pointer(obj) {
3056
- if (obj[destructorGuardSymbol] === undefined) {
3057
- throw new UniffiInternalError.UnexpectedNullPointer();
3058
- }
3059
- return obj[pointerLiteralSymbol];
3060
- },
3061
- clonePointer(obj) {
3062
- const pointer = this.pointer(obj);
3063
- return uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_rusaint_fn_clone_lecturecategorybuilder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
3064
- },
3065
- freePointer(pointer) {
3066
- uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_rusaint_fn_free_lecturecategorybuilder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
3067
- },
3068
- isConcreteType(obj) {
3069
- return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'LectureCategoryBuilder';
3070
- }
3071
- };
3043
+ const uniffiTypeLectureCategoryBuilderObjectFactory = (() => {
3044
+ return {
3045
+ create(pointer) {
3046
+ const instance = Object.create(LectureCategoryBuilder.prototype);
3047
+ instance[pointerLiteralSymbol] = pointer;
3048
+ instance[destructorGuardSymbol] = this.bless(pointer);
3049
+ instance[uniffiTypeNameSymbol] = 'LectureCategoryBuilder';
3050
+ return instance;
3051
+ },
3052
+ bless(p) {
3053
+ return uniffiCaller.rustCall(/*caller:*/status => nativeModule().ubrn_uniffi_internal_fn_method_lecturecategorybuilder_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
3054
+ },
3055
+ unbless(ptr) {
3056
+ ptr.markDestroyed();
3057
+ },
3058
+ pointer(obj) {
3059
+ if (obj[destructorGuardSymbol] === undefined) {
3060
+ throw new UniffiInternalError.UnexpectedNullPointer();
3061
+ }
3062
+ return obj[pointerLiteralSymbol];
3063
+ },
3064
+ clonePointer(obj) {
3065
+ const pointer = this.pointer(obj);
3066
+ return uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_rusaint_fn_clone_lecturecategorybuilder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
3067
+ },
3068
+ freePointer(pointer) {
3069
+ uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_rusaint_fn_free_lecturecategorybuilder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
3070
+ },
3071
+ isConcreteType(obj) {
3072
+ return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === 'LectureCategoryBuilder';
3073
+ }
3074
+ };
3075
+ })();
3072
3076
  // FfiConverter for LectureCategoryBuilderInterface
3073
3077
  const FfiConverterTypeLectureCategoryBuilder = new FfiConverterObject(uniffiTypeLectureCategoryBuilderObjectFactory);
3074
3078