Giter VIP home page Giter VIP logo

finwise's Introduction

android-app-template

A template Android Application Project.

After cloning the template

Altering the project name and namespace

Several project files refer to the "Android App Template", and each Kotlin file declares itself part of the com.finwise package. Update these files to suit the client's new application.

  • In app/build.gradle, modify android.namespace and android.defaultConfig.applicationId.
  • Change the rootProject.name variable in settings.gradle.
  • Rename the app's themes in Theme.kt and themes.xml.
  • In strings.xml, set the app_name string resource.
  • Update the package declarations in all Kotlin files by performing a project-wide find and replace of com.finwise.
  • Update the package name com.finwise in continuous-deployment.yml.

Generate Keystore

  • See Generate keystore for instructions
  • Make a note of the alias and password being used as this is required for github secrets

Github Actions

  • Configure Github secrets for IBA_GOOGLEPLAY_KEYSTORE, IBA_GOOGLEPLAY_KEYSTORE_PASSWORD, IBA_GOOGLEPLAY_KEYSTORE_KEY_ALIAS, IBA_GOOGLEPLAY_KEYSTORE_KEY_PASSWORD and GOOGLEPLAY_SERVICE_ACCOUNT.
  • This is done via your github repo -> settings -> security -> secrets & variables -> actions
  • For IBA_GOOGLEPLAY_KEYSTORE, you need to convert your keystore file to base64 encoding, use a tool like this the output is your secret for IBA_GOOGLEPLAY_KEYSTORE

Deploy -> Automate creating a release and deploying it to Google Play

  • You can configure the deploy section of the .yml section to automatically create a new test track on google play
  • In order for CI/CD environment to be able to upload .apk or .aab via API, you need to generate Service Account JSON (GOOGLEPLAY_SERVICE_ACCOUNT private key) and add it to Github Secrets.
    • Create or get access to the Google Cloud Project
    • Enable the Google Play Developer API for this project
    • Create a service account for the project
    • Copy the email that was generated for the service account, it will look something like this: [email protected], save this in github secrets as GOOGLEPLAY_SERVICE_ACCOUNT

See continuous-deployment.yml for more information.

If the deployment workflow is not yet required, you can disable the action manually in Github.

Building and testing

Build and run

./gradlew assembleDebug
./gradlew installDebug

Unit test

./gradlew testDebugUnitTest

Instrumentation test

./gradlew connectedandroidtest

finwise's People

Contributors

nimaiwalsh 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.