Coder Social home page Coder Social logo

morristech / appgallery-publisher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yamilmedina/appgallery-publisher

0.0 1.0 0.0 118 KB

A Gradle plugin that allows the publication of an APK to Huawei's App Gallery

License: Apache License 2.0

Kotlin 98.93% Makefile 1.07%

appgallery-publisher's Introduction

Gallery Publisher Gradle Plugin

CircleCI

Gallery Publisher is a Gradle plugin that allows the publication of an artifact to Huawei's App Gallery store, inspired by AutoPlay plugin.

Assumptions and features

  • The plugin assumes that you previously assemble your APK.
  • You also have the com.android.application >= 3.0.1 plugin applied to your project.

Configuration and requirements

  1. Create an API Client: Please refer to Huawei's HMS Core API Documentation 'Creating an API Client' section.

  2. Add the repository to your buildscript block:

buildscript {
  repositories {
    maven {
        url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.yamilmedina:gallery-publisher:<version>"
  }
}
  1. Then, add your configuration accordingly in your app module build.gradle file:
apply plugin: 'com.android.application'
apply plugin: 'com.yamilmedina.gallery-publisher'

galleryPublisher {
    appId = "YOUR_APP_ID_FROM_CONSOLE"
    clientId = "YOUR_CLIENT_ID_FROM_CONSOLE"
    clientSecret = "YOUR_CLIENT_SECRET_FROM_CONSOLE"
    artifactPath = "PATH_TO_YOUR_APK_LOCATION"
}

Usage

When you execute ./gradlew tasks you will see a new publishing task appGalleryPublish<BuildVariant> in the list.

./gradlew appGalleryPublishProdRelease

License

Free use of Gallery Publisher Gradle is permitted under the guidelines and in accordance with the Apache License 2.0

appgallery-publisher's People

Contributors

yamilmedina avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.