gradle-appstore-deploy-plugin


Source link: https://github.com/minakov/gradle-appstore-deploy-plugin

gradle-appstore-deploy-plugin

Gradle Plugin for upload Android applications and application details to the Google Play Store

Applying plugin

Gradle 2.1+

In whichever build.gradle file.

plugins {

id 'info.appsense.appstore' version '0.0.26' 
}

Note: exact version number must be specified, + cannot be used as wildcard.

All versions of Gradle

Add dependency to the top-level build.gradle file.

 buildscript {

  repositories {

jcenter()
  
}

  dependencies {

classpath 'info.appsense:gradle-appstore-deploy-plugin:0.0.26'
  
}
 
}

Note: mavenCentral() and/or jcenter() repository can be specified, + can be used as wildcard in version number.

Apply plugin and add configuration to build.gradle of the application, eg:

apply plugin: 'info.appsense.appstore'

Usage

Running the generateGooglePlayResources<Variant Name> task will fetch all existing data from the Google Play Store and generate the required files and folders.

[project root]/
  [sourceDir]/

[variantName]/

 [language]/

  fullDescription.txt

  shortDescription.txt

  video.txt

  title.txt

  recentChangesAlpha.txt

  recentChangesBeta.txt

  recentChangesProduction.txt

  images/

icon.png

featureGraphic.png

promoGraphic.png

tvBanner.png

screenshots/

 phone/

  1.png

  ..

  8.png

 sevenInch/

  1.png

  ..

  8.png

 tenInch/

  1.png

  ..

  8.png

 tv/

  1.png

  ..

  8.png 

Note: Currently the API not supports downloading the play store graphics. Task creates empty files for the image.

Running the publishGooglePlayAlphaApplication<Variant Name>, publishGooglePlayBetaApplication<Variant Name> or publishGooglePlayProductionApplication<Variant Name> task will upload an APKs to alpha, beta and production tracks.

Running the publishGooglePlayResources<Variant Name> task will upload the descriptions, recent changes and images for the Google Play Store listing.

Note: It is not recommended to upload builds to any track more than once a day. The production track should be updated even less frequently, and with extreme care. See Google Play Developer API Usage Instructions for more tips.

Note: debuggable build types are skipped by default.

Credentials

To use the publisher plugin you have to create a service account for your existing Google Play Account.

Grant at least the following permissions to that service account:

  • Edit store listing, pricing & distribution
  • Manage Production APKs
  • Manage Alpha & Beta APKs
  • Manage Alpha & Beta users

Once you finished the setup you have a so called service account email address and a p12 key file that we will use later on.

If you need to change the password on a p12 certificate the following simple steps will do it.

openssl pkcs12 -in key.p12 -out /tmp/cert.pem openssl pkcs12 -export -in /tmp/cert.pem -out /tmp/new.p12 rm -f key.p12 /tmp/cert.pem

Note: this is not the best security practice unless you can be absolutely 100% positive that there are no other copies of the cert with the old password.

Basic configuration

Add to your build.gradle

appStoreDeploy {

  googlePlay {

serviceAccount {

 clientEmail = 'your-service-account-client_id'

 privateKeyId = 'your-service-account-private_key_id'

 privateKeyPem = 'your-service-account-private_key'

}

  
}
 
}
appStoreDeploy {

  googlePlay {

serviceAccount {

 clientEmail = 'your-service-account-client_id'

 keyStoreFile file('key.p12')

}

  
}
 
}

Advanced configuration

Add to your build.gradle

appStoreDeploy {

  googlePlay {

serviceAccount {

 clientEmail = 'your-service-account-client_email'

 keyStore {

  file = file('key.p12')

  storePassword = 'notasecret'

  keyAlias = 'privatekey'

  keyPassword = 'notasecret'

 
}

}

tracks = ['alpha', 'beta', 'production']
  
}

  resources {

sourceDir = 'store-resources'
  
}
 
}

Dependencies

Needs the com.android.application plugin applied. Supports the Android Application Plugin as of version 1.0.0.

License

Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License. You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 

Resources

A RecyclerView with parallax folding effect.

This tool allows you to no longer worry about adapters. Now you will only create your ViewHolder. A simple tools to take in hand that should answer all your use cases.

Communication management between your Views & ViewHolders is possible. Creating sections is now very easily. Enjoy.

  • Now you do not need to implement adapters for RecyclerView;
  • You can easily use several types of cells in a single list;
  • You can reuse cells in different RecyclerView;
  • You can easily add a nested RecyclerView;
  • You can easily add the DiffUtil support;
  • You can easily save a state of a Item when scroll;
  • You can easily add a Load More Indicator;
  • Using this library will help you to follow SOLID principles.

Module supporting conversions between numbers and bytes.

Simple android library for drawing.

Android Library to show a beautiful Alert View.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes