pedro-stanaka / BandejaoAndroid

Android app that displays menus from different universities' cafeteria.
https://bandejao.gjhenrique.com/
0 stars 0 forks source link

Android client app that fetches, stores and displays the weekly meals provided by the Bandejao API.

This Android project follows the principle of creating multiple apps for the universities based on a single code. With the use of dynamic Product Flavors and custom generators, we can build and publish an app for a new university in a breeze.

Google Play

Features

Create an app for your own university

To accomplish the task of One code with multiple apps, an automated mechanism to include new universities resources and the correct URL is required. To add your university, follow these simple steps:

Include the university information

We will build a fake university called Programming University Add your university information in the universities.yml file

# The key is the university name.
# This name has to match the name of 
PU:
  # Used for the Play Store description
  long_name: Programming University
  # Color of the toolbar background
  primary_color: "000"
  # Color of status bar and other minor elements
  secondary_color: "dd00dd"
  # Default language 
  default_language: en-US

Generate the resources

Generates the strings, colors, generators. For text files, we use mustache for texts and gimp script-fu for adapting the colors of the image.

sudo apt-get install gimp
cd app/overlay/app/src/overlay/generator
bundle
./generate_overlay --uni=pu

Build and publish

# -Puni=<university name> creates the Product Flavor for the university
# Builds the code and publishes the apk and the resources to Play Store
./gradlew -Puni=pu publishPuRelease