Beta app distribution tools

use

Developers package daily to test, automatically package the program.

Usage scenarios

  • Test found a bug!
  • After the development changes, a command is uploaded to the PGYER server
  • The technical team’s pin group received a message and fixed the XXX bug
  • After the test, open the test app. The app has the function of beta update, and the test updates the APP
  • The test repeatedly tests the bug, does not recur, and marks the bug as resolved
  • Develop a good mood, continue to drink coffee, chew the fat

Support feature

  • pgyer
  • Automated script
  • Read git commit records as update logs
  • Nailing notice

Why share this tool

This is a script I wrote in my own work to help myself develop, because in the interview of some development students, some people think this is good, so I want to share it, I hope it will be helpful to everyone.

Why not write in Java or gradle plug-ins instead of Python scripts

Because I think python is very convenient to write some small tools, if you feel the need to write gradle plug-ins later, I will try.

How to use it?

Simple steps

  • Download the entire Python project or integrate it into your Android project using git subModule
  • Copy the config_temp.yml file and name it config.yml and modify the parameter Settings to suit your project (note that config.yml was added to the.gitignore file)
  • Run start.sh to debug and use the start.sh command

Introduction to project Documents

  • Unit Tests
  • Pipfile and pipfile. lock Python virtual environment configuration files, similar to Java dependency configuration files pom. XML or build.gradle
  • Sh Start script
  • Upload.py Main script
  • Config_temp. yml configuration file template

Related technical points

  • python3
  • Pipenv PYTHon3 virtual environment library
  • Simple shell syntax
  • Yaml configuration files (better for configuration files than JSON, XML,properties)
  • Gradle package command
  • Git log –since command

It is recommended to ignore the technical points, just use it and play with it

Senior play

Please refer to the demo at https://github.com/pokercc/debug_app_updater_demo

other

  • Pgyer access to the apikey
  • Dingding robot access token acquisition

I am currently researching continuous integration of Android, Jenkins, Docker, Gradle and other technologies. If you are interested, you can discuss with me on QQ 729368896,email [email protected]