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

com.jdroid.android.googleplay.publisher.GooglePlayPublisherPlugin Maven / Gradle / Ivy

There is a newer version: 3.9.1
Show newest version
package com.jdroid.android.googleplay.publisher;

import com.jdroid.android.googleplay.publisher.task.CompleteStagedRollout;
import com.jdroid.android.googleplay.publisher.task.HaltStagedRolloutTask;
import com.jdroid.android.googleplay.publisher.task.IncreaseStagedRolloutTask;
import com.jdroid.android.googleplay.publisher.task.ListApksTask;
import com.jdroid.android.googleplay.publisher.task.ListBundlesTask;
import com.jdroid.android.googleplay.publisher.task.ListTracksTask;
import com.jdroid.android.googleplay.publisher.task.MetadataVerificationTask;
import com.jdroid.android.googleplay.publisher.task.PromoteFromAlphaToBetaTask;
import com.jdroid.android.googleplay.publisher.task.PromoteFromAlphaToProductionTask;
import com.jdroid.android.googleplay.publisher.task.PromoteFromBetaToProductionTask;
import com.jdroid.android.googleplay.publisher.task.PromoteFromInternalToAlphaTask;
import com.jdroid.android.googleplay.publisher.task.PromoteFromInternalToBetaTask;
import com.jdroid.android.googleplay.publisher.task.PromoteFromInternalToProductionTask;
import com.jdroid.android.googleplay.publisher.task.PublishApkTask;
import com.jdroid.android.googleplay.publisher.task.PublishBundleTask;
import com.jdroid.android.googleplay.publisher.task.PublishMetadataTask;
import com.jdroid.android.googleplay.publisher.task.ResumeStagedRolloutTask;
import com.jdroid.android.googleplay.publisher.task.UploadBundleToInternalAppSharingTask;

import org.gradle.api.Plugin;
import org.gradle.api.Project;

public class GooglePlayPublisherPlugin implements Plugin {
	
	public static final String EXTENSION_NAME = "jdroidGooglePlayPublisher";
	
	@Override
	public void apply(Project project) {
		
		project.getExtensions().create(EXTENSION_NAME, GooglePlayPublisherPluginExtension.class, project);
		
		
		project.getTasks().create("googlePlayVerifyMetadata", MetadataVerificationTask.class);
		project.getTasks().create("googlePlayPublishMetadata", PublishMetadataTask.class);
		project.getTasks().create("googlePlayListAPKs", ListApksTask.class);
		project.getTasks().create("googlePlayListBundles", ListBundlesTask.class);
		project.getTasks().create("googlePlayPublishAPK", PublishApkTask.class);
		project.getTasks().create("googlePlayPublishBundle", PublishBundleTask.class);
		project.getTasks().create("googlePlayUploadBundleToInternalAppSharing", UploadBundleToInternalAppSharingTask.class);
		project.getTasks().create("googlePlayPromoteFromInternalToAlpha", PromoteFromInternalToAlphaTask.class);
		project.getTasks().create("googlePlayPromoteFromInternalToBeta", PromoteFromInternalToBetaTask.class);
		project.getTasks().create("googlePlayPromoteFromInternalToProduction", PromoteFromInternalToProductionTask.class);
		project.getTasks().create("googlePlayPromoteFromAlphaToBeta", PromoteFromAlphaToBetaTask.class);
		project.getTasks().create("googlePlayPromoteFromAlphaToProduction", PromoteFromAlphaToProductionTask.class);
		project.getTasks().create("googlePlayPromoteFromBetaToProduction", PromoteFromBetaToProductionTask.class);
		project.getTasks().create("googlePlayIncreaseStagedRollout", IncreaseStagedRolloutTask.class);
		project.getTasks().create("googlePlayHaltStagedRollout", HaltStagedRolloutTask.class);
		project.getTasks().create("googlePlayResumeStagedRollout", ResumeStagedRolloutTask.class);
		project.getTasks().create("googlePlayCompleteStagedRollout", CompleteStagedRollout.class);
		project.getTasks().create("googlePlayListTracks", ListTracksTask.class);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy