Giter VIP home page Giter VIP logo

covid-19-app-android-ag-public's Introduction

Covid-19 exposure app

Setup

To access the private GitHubPackages repository that hosts the remote configurations for all environments, your Github username has to be set in your global gradle.properties file:

  • gpr.user is your Github username

Furthermore, you have to create a personal access token issued by GitHub. For the scope, use at least read:packages and write:packages. This token has to be stored in the Keychain for MacOS users or the Credential Manager for Windows users.

Add your personal access token to the Keychain (MacOS)

  1. Open Keychain Access
  2. Select login from Default Keychain from the left panel
  3. Go to File > New Password Item…
    1. Service (Keychain Item Name) should be ukhsa-collaboration
    2. Account is your Github username
    3. As Password enter your personal access token

Add your personal access token to the Credential Manager (Windows)

First the token has to be stored.

  1. Open Credential Manager
  2. Go to Add a generic credential
    1. Internet or work address should be ukhsa-collaboration
    2. User name is your Github username
    3. As Password enter your personal access token

To enable PowerShell to read from the Credential Manager, the CredentialManager module needs to be installed.

  1. Open a PowerShell instance with Administrator privileges
  2. Enter Install-Module -Name CredentialManager
  3. (optional) Troubleshooting
    1. Install-Module uses NuGet. If NuGet is not pre-installed, install it with Install-PackageProvider -Name NuGet from PowerShell
    2. Installing NuGet might fail due to inappropriate TLS settings. Enforcing TLS 1.2 to install NuGet fixes this potential issue: Enter [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 into PowerShell to enforce usage of TLS 1.2

Optional: Setup path to isolation model in global gradle.properties

In order to get a direct link to the related isolation rule in case of a failing isolation test, you need to add the path to the repo hosting the rules in the global gradle.properties file:

  • isolationModel.repo = https://<insert path to repo here>

Dev actions

  1. Device setup

    Make sure all animations are turned off on the device (not an emulator) that is running the tests. https://developer.android.com/training/testing/espresso/setup#set-up-environment

  2. Run linter:

    ./gradlew ktlintFormat
  3. Run build and tests:

    ./gradlew

covid-19-app-android-ag-public's People

Contributors

nhs-covid19 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.