Skip to content

Commit 62cedb1

Browse files
committed
Pull in new XCFramework built from convex-mobile
Includes new initConvexLogging method for surfacing Convex client logs in OSLog.
1 parent 8930e29 commit 62cedb1

File tree

8 files changed

+53
-7
lines changed

8 files changed

+53
-7
lines changed

Sources/UniFFI/convexmobile.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,13 @@ private func uniffiFutureContinuationCallback(handle: UInt64, pollResult: Int8)
10781078
print("uniffiFutureContinuationCallback invalid handle")
10791079
}
10801080
}
1081+
public func initConvexLogging() {
1082+
try! rustCall {
1083+
uniffi_convexmobile_fn_func_init_convex_logging(
1084+
$0
1085+
)
1086+
}
1087+
}
10811088

10821089
private enum InitializationResult {
10831090
case ok
@@ -1094,6 +1101,9 @@ private var initializationResult: InitializationResult = {
10941101
if bindings_contract_version != scaffolding_contract_version {
10951102
return InitializationResult.contractVersionMismatch
10961103
}
1104+
if uniffi_convexmobile_checksum_func_init_convex_logging() != 16099 {
1105+
return InitializationResult.apiChecksumMismatch
1106+
}
10971107
if uniffi_convexmobile_checksum_method_mobileconvexclient_action() != 2118 {
10981108
return InitializationResult.apiChecksumMismatch
10991109
}

libconvexmobile-rs.xcframework/Info.plist

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<key>HeadersPath</key>
1111
<string>Headers</string>
1212
<key>LibraryIdentifier</key>
13-
<string>ios-arm64</string>
13+
<string>ios-arm64-simulator</string>
1414
<key>LibraryPath</key>
1515
<string>libconvexmobile.a</string>
1616
<key>SupportedArchitectures</key>
@@ -19,40 +19,40 @@
1919
</array>
2020
<key>SupportedPlatform</key>
2121
<string>ios</string>
22+
<key>SupportedPlatformVariant</key>
23+
<string>simulator</string>
2224
</dict>
2325
<dict>
2426
<key>BinaryPath</key>
2527
<string>libconvexmobile.a</string>
2628
<key>HeadersPath</key>
2729
<string>Headers</string>
2830
<key>LibraryIdentifier</key>
29-
<string>ios-arm64-simulator</string>
31+
<string>macos-arm64</string>
3032
<key>LibraryPath</key>
3133
<string>libconvexmobile.a</string>
3234
<key>SupportedArchitectures</key>
3335
<array>
3436
<string>arm64</string>
3537
</array>
3638
<key>SupportedPlatform</key>
37-
<string>ios</string>
38-
<key>SupportedPlatformVariant</key>
39-
<string>simulator</string>
39+
<string>macos</string>
4040
</dict>
4141
<dict>
4242
<key>BinaryPath</key>
4343
<string>libconvexmobile.a</string>
4444
<key>HeadersPath</key>
4545
<string>Headers</string>
4646
<key>LibraryIdentifier</key>
47-
<string>macos-arm64</string>
47+
<string>ios-arm64</string>
4848
<key>LibraryPath</key>
4949
<string>libconvexmobile.a</string>
5050
<key>SupportedArchitectures</key>
5151
<array>
5252
<string>arm64</string>
5353
</array>
5454
<key>SupportedPlatform</key>
55-
<string>macos</string>
55+
<string>ios</string>
5656
</dict>
5757
</array>
5858
<key>CFBundlePackageType</key>

libconvexmobile-rs.xcframework/ios-arm64-simulator/Headers/convexmobileFFI.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ void uniffi_convexmobile_fn_free_subscriptionhandle(void*_Nonnull ptr, RustCallS
352352
#ifndef UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_FN_METHOD_SUBSCRIPTIONHANDLE_CANCEL
353353
#define UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_FN_METHOD_SUBSCRIPTIONHANDLE_CANCEL
354354
void uniffi_convexmobile_fn_method_subscriptionhandle_cancel(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
355+
);
356+
#endif
357+
#ifndef UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_FN_FUNC_INIT_CONVEX_LOGGING
358+
#define UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_FN_FUNC_INIT_CONVEX_LOGGING
359+
void uniffi_convexmobile_fn_func_init_convex_logging(RustCallStatus *_Nonnull out_status
360+
355361
);
356362
#endif
357363
#ifndef UNIFFI_FFIDEF_FFI_CONVEXMOBILE_RUSTBUFFER_ALLOC
@@ -632,6 +638,12 @@ void ffi_convexmobile_rust_future_free_void(uint64_t handle
632638
#ifndef UNIFFI_FFIDEF_FFI_CONVEXMOBILE_RUST_FUTURE_COMPLETE_VOID
633639
#define UNIFFI_FFIDEF_FFI_CONVEXMOBILE_RUST_FUTURE_COMPLETE_VOID
634640
void ffi_convexmobile_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
641+
);
642+
#endif
643+
#ifndef UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_CHECKSUM_FUNC_INIT_CONVEX_LOGGING
644+
#define UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_CHECKSUM_FUNC_INIT_CONVEX_LOGGING
645+
uint16_t uniffi_convexmobile_checksum_func_init_convex_logging(void
646+
635647
);
636648
#endif
637649
#ifndef UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_CHECKSUM_METHOD_MOBILECONVEXCLIENT_ACTION
Binary file not shown.

libconvexmobile-rs.xcframework/ios-arm64/Headers/convexmobileFFI.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ void uniffi_convexmobile_fn_free_subscriptionhandle(void*_Nonnull ptr, RustCallS
352352
#ifndef UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_FN_METHOD_SUBSCRIPTIONHANDLE_CANCEL
353353
#define UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_FN_METHOD_SUBSCRIPTIONHANDLE_CANCEL
354354
void uniffi_convexmobile_fn_method_subscriptionhandle_cancel(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
355+
);
356+
#endif
357+
#ifndef UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_FN_FUNC_INIT_CONVEX_LOGGING
358+
#define UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_FN_FUNC_INIT_CONVEX_LOGGING
359+
void uniffi_convexmobile_fn_func_init_convex_logging(RustCallStatus *_Nonnull out_status
360+
355361
);
356362
#endif
357363
#ifndef UNIFFI_FFIDEF_FFI_CONVEXMOBILE_RUSTBUFFER_ALLOC
@@ -632,6 +638,12 @@ void ffi_convexmobile_rust_future_free_void(uint64_t handle
632638
#ifndef UNIFFI_FFIDEF_FFI_CONVEXMOBILE_RUST_FUTURE_COMPLETE_VOID
633639
#define UNIFFI_FFIDEF_FFI_CONVEXMOBILE_RUST_FUTURE_COMPLETE_VOID
634640
void ffi_convexmobile_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
641+
);
642+
#endif
643+
#ifndef UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_CHECKSUM_FUNC_INIT_CONVEX_LOGGING
644+
#define UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_CHECKSUM_FUNC_INIT_CONVEX_LOGGING
645+
uint16_t uniffi_convexmobile_checksum_func_init_convex_logging(void
646+
635647
);
636648
#endif
637649
#ifndef UNIFFI_FFIDEF_UNIFFI_CONVEXMOBILE_CHECKSUM_METHOD_MOBILECONVEXCLIENT_ACTION

0 commit comments

Comments
 (0)