This example shows how to use ObjectBox Sync in an Android task list app written in Kotlin.
- See
ObjectBox
on how to configure a Sync client. - See
Task
on how to define a simple entity. - See
TasksActivity
for basic box operations.
-
Open this directory in Android Studio. The Gradle project should sync automatically.
-
Once the project is synced, to build the project, from the menu click Build > Build Project or Assemble 'app' Run Configuration.
-
To run the app on an emulator or device, click Run 'app' in the toolbar.
-
Open this directory.
-
To build the application, run the following command:
./gradlew assembleDebug
- To install the application on an emulator or device, run the following command:
./gradlew installDebug