Giter VIP home page Giter VIP logo

covid-19-app-configuration-public's Introduction

Configuration for the mobile apps to use

This package contains configuration used by the mobile apps.

Please read the instructions below before changing any configurations.

Configuration Types

This package contains two sets of configurations:

  • Production, which is used both in the Production app, as well as the Scenarios app.
  • Scenarios, which are additional configuration only available in the Scenarios app.

When changing or adding new configurations, ensure that they are scoped correctly, as embedding internal configurations in the production app could lead to unwanted data disclosure.

Changing configurations (iOS)

To change configurations, update the configuration used by iOS in code in the relevant file:

Then, from the root of the root of the repository run

swift run config

This will update the json files that are used by Android. Unit tests on the CI will ensure iOS and Android configuration are in sync.

Changing configurations (Android)

The Android configuration has to be updated in code as well and can be found here:

Before the packages can be published, authentication details for uploading to GitHub packages have to be added to your global gradle.properties file:

  • gpr.user is your Github username
  • gpr.key is a personal access token issued by GitHub. For the scope, use at least read:packages and write:packages.

To publish the packages, run

gradlew publish

Now the updated packages uk.nhs.covid19.configuration-production and uk.nhs.covid19.configuration-scenarios are available in this project's package repository.

Why configurations work in this way?

In Xcode 11, SwiftPM doesn’t support embedded assets. This limitation is resolved in Xcode 12 that is currently in beta.

At the same time, this process also provides the security features we need out of the box. Namely, this way the configuration is not accessible by just looking inside the unzipped the ipa files. Rather, it will require analysis of the binary itself.

We will revisit the configuration changing process Xcode 12 release to see if we want to achieve the same result in a different way.

covid-19-app-configuration-public's People

Contributors

nhs-covid19 avatar

Watchers

 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.