Coder Social home page Coder Social logo

tafelnl / android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hedviginsurance/android

0.0 0.0 0.0 199.35 MB

Android app for Hedvig

Home Page: https://play.google.com/store/apps/details?id=com.hedvig.app

License: GNU Affero General Public License v3.0

Shell 0.04% Kotlin 99.96%

android's Introduction

Hedvig app for Android

Develop

  1. Acquire Lokalise credentials (you can find them in 1Password), place in the following file:
    • lokalise.properties
  2. Acquire gradle.properties which contain a token for Github Packages authentication. Generate your own at GitHub > Settings > Developer Settings > PAT > Tokens (Classic) > Generate New Token > Give the read:packages permission
    Append (or create) your global gradle.properties in:
  3. Download the schema (required to consume any changes in schema as well): ./gradlew downloadApolloSchemasFromIntrospection
  4. Download lokalise translations (required to consume latest translations as well): ./gradlew downloadStrings
  5. Build and install via Android Studio

Formatting

Formatting is handled with ktlint with extra configuration defined in .editorconfig run ./gradlew ktlintCheck to check that the files follow the rules run ./gradlew ktlintFormat to make ktlint to format all files according to the rules

Build Types

  • Release: com.hedvig.app Build for the customer on Play Store. Using production backend
  • Staging: com.hedvig.test.app Build for internal testing using Firebase App Distribution. Using staging backend
  • Develop: com.hedvig.dev.app Build for development. Using staging backend

Module structure

Module graph

Generated from ./gradlew :generateProjectDependencyGraph*
*Note that this requires dot from graphviz to be on your path. Run brew install graphviz

Renovate

renovate.json is a file which Renovate looks at in order to be able to suggest upgrading private artifacts to their latest version. The username used in there is the result of passing our jitpack username (from 1Password) through Renovate's website to get the hashed version of it.

Removing unused resources

The android-remove-unused-resources-plugin plugin is used to achieve this. This will run on CI using this task, but to run locally one can also just do ./gradlew :app:lintDebug -Prur.lint.onlyUnusedResources And then ./gradlew :app:removeUnusedResourcesDebug

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.