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 Classes
    Modifier and Type
    Class
    Description
    static class 
    The extension class for the Amazon Update Plugin.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.gradle.api.Project project)
    The main method that applies the plugin to the project.
    void
    Commit the current edit to finalize the changes in the Amazon Appstore.
    void
    Delete the APK from the current edit in the Amazon Appstore.
    void
    Fetches the access token for Amazon API authentication.
    void
    Retrieve the current edit or create a new one if none exists.
    void
    Retrieve the file ID of the APK from the edit.
    void
    Get the app listing details for the current edit.
    void
    Parse the update parameters such as APK path, release notes, and other necessary details for the update.
    void
    Replace the APK in the current edit in the Amazon Appstore.
    void
    Set up the Amazon update plugin by loading project properties and configuring tasks.
    void
    Get the app listing details for the current edit.
    void
    Upload the APK to the current edit in the Amazon Appstore.
    void
    Validate the current edit before committing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      apply in interface org.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