Package com.brightdata
Class AmazonUpdatePlugin
java.lang.Object
com.brightdata.AmazonUpdatePlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
public class AmazonUpdatePlugin
extends Object
implements org.gradle.api.Plugin<org.gradle.api.Project>
Amazon Update Plugin
This plugin automates the process of submitting your apk to Amazon Appstore.
For detailed setup instructions, see the Amazon Update Plugin Integration Guide.
- Since:
- 1.0.0 author Vladislav S
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe extension class for the Amazon Update Plugin. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.gradle.api.Project project) The main method that applies the plugin to the project.voidCommit the current edit to finalize the changes in the Amazon Appstore.voidDelete the APK from the current edit in the Amazon Appstore.voidFetches the access token for Amazon API authentication.voidgetEdit()Retrieve the current edit or create a new one if none exists.voidRetrieve the file ID of the APK from the edit.voidGet the app listing details for the current edit.voidParse the update parameters such as APK path, release notes, and other necessary details for the update.voidReplace the APK in the current edit in the Amazon Appstore.voidSet up the Amazon update plugin by loading project properties and configuring tasks.voidGet the app listing details for the current edit.voidUpload the APK to the current edit in the Amazon Appstore.voidValidate the current edit before committing.
-
Constructor Details
-
AmazonUpdatePlugin
public AmazonUpdatePlugin()
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project project) The main method that applies the plugin to the project. It initializes the extension, sets up tasks, and prints the current version of the plugin.- Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>- Parameters:
project- The project to which the plugin is applied.
-
setupAmazonUpdatePlugin
public void setupAmazonUpdatePlugin()Set up the Amazon update plugin by loading project properties and configuring tasks. Configures tasks like uploading APKs and releasing them to Amazon. -
parseUpdateParams
public void parseUpdateParams()Parse the update parameters such as APK path, release notes, and other necessary details for the update. -
getEdit
public void getEdit()Retrieve the current edit or create a new one if none exists. -
getFileId
public void getFileId()Retrieve the file ID of the APK from the edit. -
deleteApk
public void deleteApk()Delete the APK from the current edit in the Amazon Appstore. -
replaceApk
public void replaceApk()Replace the APK in the current edit in the Amazon Appstore. -
uploadApk
public void uploadApk()Upload the APK to the current edit in the Amazon Appstore. -
getListing
public void getListing()Get the app listing details for the current edit. -
updateListing
public void updateListing()Get the app listing details for the current edit. -
validateEdit
public void validateEdit()Validate the current edit before committing. Prints the validation response to the console. -
commitEdit
public void commitEdit()Commit the current edit to finalize the changes in the Amazon Appstore. Prints the commit response to the console. -
getAccessToken
public void getAccessToken()Fetches the access token for Amazon API authentication.- Throws:
RuntimeException- if the request or file operation fails
-