Skip to content

Commit

Permalink
Fix realm_core.dart after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed May 24, 2023
1 parent d7ddeee commit 3e6e979
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/src/native/realm_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1472,14 +1472,11 @@ class _RealmCore {
final app_id = configuration.appId.toCharPtr(arena);
final handle = AppConfigHandle._(_realmLib.realm_app_config_new(app_id, httpTransport._pointer));

_realmLib.realm_app_config_set_platform(handle._pointer, Platform.operatingSystem.toCharPtr(arena));
_realmLib.realm_app_config_set_platform_version(handle._pointer, Platform.operatingSystemVersion.toCharPtr(arena));

_realmLib.realm_app_config_set_sdk(handle._pointer, 'Dart'.toCharPtr(arena));
_realmLib.realm_app_config_set_sdk_version(handle._pointer, libraryVersion.toCharPtr(arena));

_realmLib.realm_app_config_set_cpu_arch(handle._pointer, getRealmLibraryCpuArchitecture().toCharPtr(arena));

final deviceName = getDeviceName();
_realmLib.realm_app_config_set_device_name(handle._pointer, deviceName.toCharPtr(arena));

Expand Down Expand Up @@ -2473,6 +2470,7 @@ class _RealmCore {
user.handle._pointer,
functionName.toCharPtr(arena),
argsAsJSON?.toCharPtr(arena) ?? nullptr,
nullptr,
Pointer.fromFunction(_call_app_function_callback),
completer.toPersistentHandle(),
_realmLib.addresses.realm_dart_delete_persistent_handle,
Expand Down

0 comments on commit 3e6e979

Please sign in to comment.