com.mobgen.halo.android.plugin.sdk.HaloModule.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of halo-plugin Show documentation
Show all versions of halo-plugin Show documentation
This plugin helps on the configuration of the SDK.
package com.mobgen.halo.android.plugin.sdk
import com.mobgen.halo.android.plugin.sdk.modules.CoreModule.CoreBuilder
import groovy.json.JsonBuilder
/**
* The halo extension to configure the plugin.
*/
public abstract class HaloModule {
CoreBuilder coreBuilder
private def configure() {
println "-- Enabling ${moduleName()} module ---"
}
public def build(CoreBuilder builder) {
this.coreBuilder = builder
configure()
}
abstract String moduleName()
abstract JsonBuilder buildConfig(JsonBuilder builder)
}