This example is a minimal demonstration of how to connect to and use the Realm Object Server to synchronize changes between devices.
The example assumes that the Object Server is running on the machine that built the application: The build machine IP address is automatically injected into the build configuration.
To use a different ObjectServer, simply put the server IP Address into
the build.gradle, as indicated in the comments, on the lines like this:
def rosUrl = "<INSERT_REALM_OBJECT_SERVER_URL>"
For instance:
def rosUrl = "https://myinstance.us1.cloud.realm.io"
or:
def rosUrl = "http://127.0.0.1:9080"
To read more about the Realm Object Server and how to deploy it, see https://realm.io/news/introducing-realm-mobile-platform/