-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Labels
Description
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:
- Is there a way to bypass or resolve this issue?
- Would it be possible for us to host the dependency binaries ourselves to avoid this restriction?
- Has anyone encountered a similar situation and found a solution to it?
- 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.