Skip to content

Issues with HostedDependency in GitLab Pipeline Using Realm 20.0.1 #1838

@lokalathlet

Description

@lokalathlet

Hello everyone,

We are currently using Realm (Dart) in version 20.0.1 and setting up a CI/CD pipeline in GitLab. We have a custom PUB_HOSTED_URL configured, pointing to our own Artifactory instance.

However, when running the command fvm flutter build apk, the process tries to fetch a HostedDependency: ^20.0.1, which results in the following error due to restrictions:

HostedDependency: ^20.0.1
Directory: '/Users/admin/.pub-cache/hosted/myHub.com%47artifactory%47api%47pub%47pub-remote%47/realm-20.0.1/android/src/main/cpp/lib'
Downloading Realm binaries for 20.0.1 to /var/folders/cp/j2_0cyr95090tmf6wc711cym0000gn/T/realm-binary-5d3hRn/android.tar.gz
ERROR: ERROR: Unhandled exception:
SocketException: Network is unreachable (OS Error: Network is unreachable, errno = 51), address = static.realm.io, port = 49665

It appears to be trying to download binaries from static.realm.io, but fails due to network restrictions.

My Questions:

  1. Is there a way to bypass or resolve this issue?
  2. Would it be possible for us to host the dependency binaries ourselves to avoid this restriction?
  3. Has anyone encountered a similar situation and found a solution to it?
  4. Due to the deprecation of Device Sync, versions 20 and higher of the Realm SDKs are considered community releases. As of September 30, 2025, Device Sync and the Realm SDKs will reach their end-of-life. Will it still be possible to access the hosted dependencies from static.realm.io after this date? Furthermore, is the maintenance of this repository something the community will rely on?

Any guidance or suggestions would be greatly appreciated!

Thank you in advance.

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