Advanced Setup
Additional configuration options when creating an ObjectBox database.
ObjectBox for Java - Advanced Setup
Manually Add Libraries
dependencies {
// All below added automatically by the plugin:
// Java library
implementation("io.objectbox:objectbox-java:$objectboxVersion")
// Kotlin extension functions
implementation("io.objectbox:objectbox-kotlin:$objectboxVersion")
// Annotation processor
kapt("io.objectbox:objectbox-processor:$objectboxVersion")
// Native library for Android
implementation("io.objectbox:objectbox-android:$objectboxVersion")
}
// Apply plugin after dependencies block so they are not overwritten.
apply plugin: 'io.objectbox'
// Or using Kotlin DSL:
apply(plugin = "io.objectbox")dependencies {
// All below added automatically by the plugin:
// Java library
implementation("io.objectbox:objectbox-java:$objectboxVersion")
// Annotation processor
annotationProcessor("io.objectbox:objectbox-processor:$objectboxVersion")
// Native library for Android
implementation("io.objectbox:objectbox-android:$objectboxVersion")
}
// Apply plugin after dependencies block so they are not overwritten.
apply plugin: 'io.objectbox'
// Or using Kotlin DSL:
apply(plugin = "io.objectbox")Add libraries for distribution
Processor Options
Change the Model File Path
Change the MyObjectBox package
Enable Debug Mode
Enable DaoCompat mode
ObjectBox for Flutter/Dart - Advanced Setup
Change the generated files directory
Last updated
Was this helpful?