Code Monkey home page Code Monkey logo

sdp_polybooks's Introduction

Build Status Maintainability Test Coverage

sdp_polyBooks

Build Variants

There are two build variants and source sets in this project: debug and release.

Debug

Debug run on the mocked databases and is used to run the tests, both locally or on the continuous-integration. To run the database emulator locally, you need to set-up as follows:

For Windows:

  • Download the Firebase CLI here: https://firebase.google.com/docs/cli#install-cli-windows
  • Put the .exe in the firebase folder to benefit from the parameters set-up.
  • Run the .exe, log in and execute:
  • firebase emulators:start --only auth,database,firestore &
  • Then you can run gradlew connectedCheck or individual tests.

For Linux: From the root of the project run the following commands:

$ cd firebase
$ curl -sL https://firebase.tools/bin/linux/latest -o firebase-tools
$ chmod u+x firebase-tools
$ ./firebase-tools emulators:start --only auth,database,firestore &

For MacOS: From the root of the project run the following commands:

$ cd firebase
$ curl -sL https://firebase.tools/bin/macos/latest -o firebase-tools
$ chmod u+x firebase-tools
$ ./firebase-tools emulators:start --only auth,database,firestore &

Release

Release is the real version for the user, using the real databases, and which could potentially be put on an app store.

However, release requires signing keys which are not pushed to the git repository for security concerns. To have access to them, please contact the developers of this project, which are able to send you a Key.jks and a keystore.properties files. After receiving those files you should copy-paste them to the root level of this project (at the same level as the app folder, gradle folder, or .cirrus.yml) Then you should be able to launch the release version.

If you're still facing problems with build variants, common troubleshooting on Android Studio include:

  • Build -> Clean Project -> Rebuild Project (usually after changing the build variant setting)
  • File -> Invalidate Caches/Restart (usually after changing the build variant setting)

How to use google services

To use the GPS:

Add this line to local.properties: GOOGLE_MAPS_API_KEY=AIzaSyD0oats_WZIcKRk8_BzxX7W6_S5yGIbzrk

To use Google Sign In:

You need to retrieve your SHA-1 key from android studio and give it to a member of the team to add it into Firebase.

Menu icons made by Freepik from www.flaticon.com

sdp_polybooks's People

Contributors

huntsekkern avatar snowflake8 avatar raulinn avatar laniakea1999 avatar sducouedic 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.