nanogiants / android-versioning Goto Github PK
View Code? Open in Web Editor NEWGradle plugin to automatically rename your artifacts and generate Android versionName and versionCode using Git.
License: Apache License 2.0
Gradle plugin to automatically rename your artifacts and generate Android versionName and versionCode using Git.
License: Apache License 2.0
Currently there is no way to provide the artefact basename. Therefore one has to override it by accessing the artefact, which is a hassle. As far as I see the artefact name is build by the following rule
basename-versionname.versioncode-stage.apk
It would be nice to set the basename and the stage (or the option of the stage should be used to begin with) by providing variables in the default config of the android block in the app/build.gradle file. Example:
android {
defaultConfig {
...
versioningBasename "myproject"
versioningUseStage false
}
}
if universalApk false
and there's a list with
"armeabi-v7a", "x86", "arm64-v8a", "x86_64"
we want to generate, then
a single apk file is generated instead of 4, without a specific architecture in it's name.
There are API changes in future Android Gradle Plugin (4.1+) releases which should allow properly referencing the Bundle outputs: https://issuetracker.google.com/u/0/issues/79951839
Edit: Also check code from here https://github.com/android/gradle-recipes
Add an option to disable the VersionCode xx
message or simply make getCommitCount()
public
Hei,
I have a question regarding (1) usage of tags on a single master branch vs (2) using multiple branches where tags doesn't have a meaning at all.
I'm in the context of 2, where i have a repo with 3 branches dev, staging and master. So keeping both branch merging + tag releasing it's a bit complex.
The question so far, can getVersionName()
fallback to latest branch commit hash name?
git describe --tags --always
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.