https://kotlinlang.org logo
#amper
Title
# amper
r

rudolf.hladik

02/26/2024, 9:29 AM
Hi, does Amper support custom dsl configuration that lot of plugins use for setup? like Skie, SQLDelight... I didn't find it in docs 😕
Copy code
build.gradle.kts

skie {
    analytics {
        disableUpload.set(true) // This is explicitly disabled, consider supporting authors by enabling.
    }
    features {
        group {
            DefaultArgumentInterop.Enabled(false)
            SuspendInterop.Enabled(true)
            FlowInterop.Enabled(true)
            EnumInterop.Enabled(true)
            SealedInterop.Enabled(true)
        }
    }
}

multiplatformResources {
    // This module uses the plugin just to export resources to iOS.
    // Visibility is set to Internal in order to prevent :androidApp
    // module to see duplicate resources from this module and :shared:resources module.
    multiplatformResourcesVisibility = MRVisibility.Internal

    multiplatformResourcesClassName = "MR"
    iosBaseLocalizationRegion = ProjectSettings.IOS.MokoBaseLocalizationRegion
}
j

John O'Reilly

02/26/2024, 9:41 AM
Yes, through interop right now..... away for laptop but there is actually sqldelight example in the docs
z

zsmb

02/26/2024, 9:52 AM
This is described under Gradle interop, specifically in Using Gradle plugins
❤️ 1
r

rudolf.hladik

02/26/2024, 9:53 AM
Thank you very much
so you just specify the config in separete
build.gradle.kts
file next to
module.yaml
👍 2
2 Views