Skip to content

Add Kotlin DSL (build.gradle.kts) example for enabling ObjectBox Admin in Flutter Android projects #778

@albinpk

Description

@albinpk

Is there an existing issue?

Use case

The current documentation for enabling ObjectBox Admin / ObjectBrowser in Flutter Android projects provides examples using Gradle Groovy DSL (build.gradle), which still works correctly.

However, recent versions of Flutter create Android projects using Gradle Kotlin DSL (build.gradle.kts) by default. Copying the documented Groovy snippet into a .kts file leads to Gradle script compilation errors due to DSL syntax differences.

Proposed solution

Including a Kotlin DSL example would improve the developer experience for new Flutter projects.

configurations {
    named("debugImplementation") {
        exclude(group = "io.objectbox", module = "objectbox-android")
    }
}

dependencies {
    debugImplementation("io.objectbox:objectbox-android-objectbrowser:<version>")
}

Additional context

Current Doc: https://docs.objectbox.io/data-browser#admin-for-android

Metadata

Metadata

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions