All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mobgen.halo.android.plugin.sdk.modules.ModuleContainer.groovy Maven / Gradle / Ivy

There is a newer version: 2.9.3
Show newest version
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)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy