Skip to content

govuk-one-login/mobile-android-one-login-app

Repository files navigation

One Login - Android

This repository hosts the Android Mobile app for GOV.UK's One Login.

Branching strategy and releases

This project uses a git-flow branching strategy, briefly:

  • Create a new branch from develop
  • Merge pull requests into develop
  • At the point of preparing a new release create a release/ branch from the specified commit in develop
  • Name the branch using the appropriate semantic version for the release; for example release/1.0.0
    • The initial version number for the release is taken from the branch name; v1.0.0
  • Any required fixes for the release should be pull requested into the release branch
  • Once approval has been granted for the release to be published the release branch should be merged into main
  • The new tag will be pushed on the merge to main with the default merge title
  • main should then be merged back into develop

Getting started

A number of how-to documents are provided to get a new developer up to speed with:

Developer setup

Developer how-to guides

Updating gradle-wrapper

Gradle secure hash algorithm (SHA) pinning is in place through the distributionSha256Sum attribute in gradle-wrapper.properties. This means the gradle-wrapper must upgrade through the ./gradlew wrapper command. Example gradle-wrapper.properties

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=2db75c40782f5e8ba1fc278a5574bab070adccb2d21ca5a6e5ed840888448046
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true

Use the following command to update the gradle wrapper. Run the same command twice, reason.

./gradlew wrapper --gradle-version=8.10.2 --distribution-type=bin --gradle-distribution-sha256-sum=31c55713e40233a8303827ceb42ca48a47267a0ad4bab9177123121e71524c26

Flags:

  • gradle-version self explanatory
  • distribution-type set to bin short for binary refers to the gradle bin, often in this format gradle-8.10.2-bin.zip
  • gradle-distribution-sha256-sum the SHA 256 checksum from this page, pick the binary checksum for the version used

The gradle wrapper update can include:

  • gradle-wrapper.jar
  • gradle-wrapper.properties
  • gradlew
  • gradlew.bat

You can use the following command to check the SHA 256 checksum of a file

shasum -a 256 gradle-8.10.2-bin.zip

About

The GOV.UK One Login app for Android.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 24