Skip to content

Fixed build package version - generator depends (Page Size 16KB) #1871

@olek96

Description

@olek96

What happened?

After updating to the latest version of realm 20.2.0, I am having problems with other dependencies in the project.

Resolving dependencies... 
Because no versions of retrofit_generator match >9.7.0 <10.0.0 and retrofit_generator 9.7.0 depends on build ^2.5.4, retrofit_generator ^9.7.0 requires build ^2.5.4.
And because realm_generator >=20.2.0 depends on build 2.4.2, retrofit_generator ^9.7.0 is incompatible with realm_generator >=20.2.0.
And because realm >=20.2.0 depends on realm_dart ^20.2.0 which depends on realm_generator ^20.2.0, retrofit_generator ^9.7.0 is incompatible with realm >=20.2.0.
So, because app depends on both realm ^20.2.0 and retrofit_generator ^9.7.0, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on realm: dart pub add realm:^20.1.1

I found a problem in this PR. Why was the build version hardcoded?

https://github.com/realm/realm-dart/pull/1867

This is quite a pressing issue because I cannot update the project to work on a page size of 16KB.

On 20.1.1 everything works fine. (without 16KB Page Size)

Version

3.35.5

What Atlas Services are you using?

Local Database only

What type of application is this?

Flutter Application

Client OS and version

Pixel 8, Android 15

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions