com.mobgen.halo.android.plugin.sdk.modules.ModuleContainer.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.modules
import com.mobgen.halo.android.plugin.sdk.modules.user.PushModule
import org.gradle.api.Project
/**
* The core module is in charge of the main configuration stuff of halo. It provides
* comon stuff to the rest of the modules.
*/
public class ModuleContainer {
/**
* The project reference
*/
private Project project
/**
* The push module.
*/
public PushModule pushModule
/**
* Module closure constructor.
*/
public ModuleContainer(Project project){
this.project = project
pushModule = new PushModule()
}
/**
* The push notification configuration.
* @param actionClosure The action closure.
*/
def push(Closure actionClosure){
project.configure(pushModule, actionClosure)
}
}