Search in sources :

Example 1 with PatchConfigFactory

use of com.taobao.android.builder.extension.factory.PatchConfigFactory in project atlas by alibaba.

the class AtlasPlugin method createExtendsion.

/**
     * 设置插件的extension值
     */
protected void createExtendsion() {
    final NamedDomainObjectContainer<TBuildType> buildTypeContainer = project.container(TBuildType.class, new TBuildTypeFactory(instantiator, project, project.getLogger()));
    final NamedDomainObjectContainer<PatchConfig> patchConfigContainer = project.container(PatchConfig.class, new PatchConfigFactory(instantiator, project, project.getLogger()));
    atlasExtension = project.getExtensions().create("atlas", AtlasExtension.class, project, instantiator, buildTypeContainer, patchConfigContainer);
}
Also used : AtlasExtension(com.taobao.android.builder.extension.AtlasExtension) PatchConfig(com.taobao.android.builder.extension.PatchConfig) PatchConfigFactory(com.taobao.android.builder.extension.factory.PatchConfigFactory) TBuildTypeFactory(com.taobao.android.builder.extension.factory.TBuildTypeFactory) TBuildType(com.taobao.android.builder.extension.TBuildType)

Aggregations

AtlasExtension (com.taobao.android.builder.extension.AtlasExtension)1 PatchConfig (com.taobao.android.builder.extension.PatchConfig)1 TBuildType (com.taobao.android.builder.extension.TBuildType)1 PatchConfigFactory (com.taobao.android.builder.extension.factory.PatchConfigFactory)1 TBuildTypeFactory (com.taobao.android.builder.extension.factory.TBuildTypeFactory)1