2.0.0 To 2.1.0, realm_core.dart Function _createConfig changed

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      What happened?

      Attempt to execute code removed by Dart AOT compiler (TFA)

      Repro steps

      await Realm.open(config). then Attempt to execute code removed by Dart AOT compiler (TFA)

      Version

      2.1.0

      What Atlas Services are you using?

      Local Database only

      What type of application is this?

      Flutter Application

      Client OS and version

      iOS 17.2

      Code snippets

      2.1.0 code
      // final schemaVersion = switch (config)

      { // (LocalConfiguration lc) => lc.schemaVersion, // (FlexibleSyncConfiguration fsc) => fsc.schemaVersion, // _ => 0, // }

      ;
      // _realmLib.realm_config_set_schema_version(configHandle._pointer, schemaVersion);

      2.0.0 code
      _realmLib.realm_config_set_schema_version(configHandle._pointer, config is LocalConfiguration ? config.schemaVersion : 0);

      Stacktrace of the exception/crash you're getting

      No response

      Relevant log output

      No response

              Assignee:
              Kasper Nielsen (Inactive)
              Reporter:
              Unito Sync Bot
              Archiver:
              Marc Greenfield

                Created:
                Updated:
                Resolved:
                Archived: