com.faker.android.gradle.FakerBaseAppModuleExtension Maven / Gradle / Ivy
The newest version!
package com.faker.android.gradle;
import com.android.build.gradle.api.BaseVariantOutput;
import com.android.build.gradle.internal.ExtraModelInfo;
import com.android.build.gradle.internal.SdkHandler;
import com.android.build.gradle.internal.dependency.SourceSetManager;
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension;
import com.android.build.gradle.internal.dsl.BuildType;
import com.android.build.gradle.internal.dsl.PackagingOptions;
import com.android.build.gradle.internal.dsl.ProductFlavor;
import com.android.build.gradle.internal.dsl.SigningConfig;
import com.android.build.gradle.internal.scope.GlobalScope;
import com.android.build.gradle.options.ProjectOptions;
import org.gradle.api.Action;
import org.gradle.api.NamedDomainObjectContainer;
import org.gradle.api.Project;
import org.gradle.api.model.ObjectFactory;
import org.jetbrains.annotations.NotNull;
public class FakerBaseAppModuleExtension extends BaseAppModuleExtension {
private final SensitiveOptions sensitiveOptions;
public SensitiveOptions getSensitiveOptions() {
return sensitiveOptions;
}
ObjectFactory objectFactory = project.getObjects();
public FakerBaseAppModuleExtension(@NotNull Project project, @NotNull ProjectOptions projectOptions, @NotNull GlobalScope globalScope, @NotNull SdkHandler sdkHandler, @NotNull NamedDomainObjectContainer buildTypes, @NotNull NamedDomainObjectContainer productFlavors, @NotNull NamedDomainObjectContainer signingConfigs, @NotNull NamedDomainObjectContainer buildOutputs, @NotNull SourceSetManager sourceSetManager, @NotNull ExtraModelInfo extraModelInfo, boolean isBaseModule) {
super(project, projectOptions, globalScope, sdkHandler, buildTypes, productFlavors, signingConfigs, buildOutputs, sourceSetManager, extraModelInfo, isBaseModule);
sensitiveOptions = objectFactory.newInstance(SensitiveOptions.class);
}
public void sensitiveOptions(Action action) {
checkWritability();
action.execute(sensitiveOptions);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy