Project wide handling of tested and used libraries. Also including some utility gradle tasks.
The idea is to have all projects being up-to-date just by updating the dependency submodule.
compileSdkVer
buildToolsVer
minSdkVer
targetSdkVer
kotlinVersion
supportLibVer
playServicesVer
firebaseVer
retrofitVersion
robolectricVersion
ext.plugin
ext.pluginLibrary
ext.libs
ext.testLibs
ext.androidTestLibs
ext.configs
Mind the : in front of wrapper to execute task in root project instead of subproject.
gradle :wrapper
Meant to write end-user non technical release notes for automated store publications.
Generates a file at ${project.rootDir}/app/src/main/assets/CHANGELOG.md including a list of all git commits with VSC hash link and commit user.
preBuild.dependsOn generateChangelogTask
Copies README.md to ${project.rootDir}/app/src/main/assets/
Meant to debug build environment issues, never bundle it into a release version, due it may include build environment secrets.
Generates a file at ${project.rootDir}/app/src/main/assets/ENVIRONMENT.md including System.getenv()
preBuild.dependsOn generateEnvironmentLogTask
Prints current commit hash.
Prints amount of commits based on current branch. (Caution when using it for versionCode: it's meant for release branches, due every branches can have a higher number.)
Creating release version name. Format: major.minor.build.
Creating release version name. Format: branch/major.minor.build-commithash
Getting build number from Jenkins, Travis or Bitrise.
Getting branch name from CI or from git directly.
Getting build number from Jenkins, Travis or Bitrise.
Basically calls:
git rev-parse --abbrev-ref HEAD
task('printEnvironmentTask') {
println(System.getenv())
}
task('generateEnvironmentLogTask') {
// generateEnvironmentLog() for debugging purposes
}
task('generateChangelogTask') {
generateChangelog()
}
task('generateReleaseNotesTask') {
generateReleaseNotes()
}
task copyReadme(type: Copy) {
from "${project.rootDir}/README.md"
into "${project.rootDir}/app/src/main/assets"
}
preBuild.dependsOn printEnvironmentTask
preBuild.dependsOn generateChangelogTask
preBuild.dependsOn generateReleaseNotesTask
preBuild.dependsOn copyReadme
apply from: "${project.rootDir}/Android-Dependencies/bintray.gradle"
bintray.properties
bintray.user=
bintray.apikey=
bintray.organization=
bintray.gpg.password=
binrtray.group =
binrtray.repo = 'maven'
binrtray.name =
bintray.licenses = 'MIT'
bintray.vcsUrl =
bintray.websiteUrl =
bintray.version.desc =
apply from: "${project.rootDir}/Android-Dependencies/javadoc.gradle"