Method 1: For running the application alone
Method 2: For running the application and testing
Please Note: This method requires having a local.properties file to access the API keys as well as a google-services.json file to connect to the Firestore.
When running the app, all the dependencies will automatically be installed.
To use BookLens users might have an Android device that is version 9 or higher with a camera and internet access.
Users must create an account with an email address and password to use the app. Upon signing in they will be able to see the camera view on the scanning activity.
To capture a book cover, hold it centered so it fills the frame. Make sure the background is clear of writing and that there is appropriate lighting. BookLens works best with large fonts and regular typefaces. If scanning takes more than 15 seconds try resetting the activity by clicking off onto History or Favourites and back onto Scan a Book.
Each button on the overlay connects to a detailed activity. The ratings activity will take you to a page with the book’s rating, gathered from Google Books and Open Library. Clicking the See Reviews button will take you to an activity where you can view the New York Times description and link to the review of the book if it is available.
The price comparison page shows the MSRP and Google Books prices if they are available and specifies which one has the lowest price. A link on the Google Books field will take you to the store page to purchase the book.
The recommendations activity shows a list of recommended books by genre. Clicking on one of the recommended books will take you to a page with the book’s rating and description.
The related media page will show any adaptations of the book. Below will be the sites it is available to be purchased or streamed on, these can be clicked on to link to the store or streaming page.
The fan communities activity will show Reddit, Fandom, and Archive of Our Own links. Clicking Read More will take you to the webpage (note that this content is unmoderated.)
The history button in the bottom menu will take you to an activity with a history of all the books you’ve previously scanned. By clicking the heart next to a book it will be added to your favourites list.
The favourites list can be accessed through the button on the bottom menu and will show the books you’ve favourited. They can be unliked from the favourites list or history.
The users can click on the exit sign on the right hand side of the top bar next to the BookLens logo. This will open a dialog prompt asking the users whether they would like to log out. Once the users click yes, the app will sign them out and redirect them back to the login page.
To run tests, click into those directories mentioned above, select a test class and right click, selecting Run ‘Testname’.