项目作者: DasserBasyouni

项目描述 :
An app with multiple flavors that uses multiple libraries and Google Cloud Endpoints.
高级语言: Java
项目地址: git://github.com/DasserBasyouni/JokesMultiModule.git
创建时间: 2018-06-30T02:31:13Z
项目社区:https://github.com/DasserBasyouni/JokesMultiModule

开源协议:

下载


Jokes Multi-Module

Codacy Badge

An app with multiple flavors that uses multiple libraries and Google Cloud Endpoints to show jokes.

Screenshots

What I have learnt from

  • Migrating to AndroidX
  • Add free and paid flavors to an app, and set up your build to share code between them
  • Factor reusable functionality into a Java library
  • Factor reusable Android functionality into an Android library
  • Configure a multi project build to compile your libraries and app
  • Use the Gradle App Engine plugin to deploy a backend
  • Configure an integration test suite that runs against the local App Engine development server

How does it work

Test it on emultors or you will have to change the emulator IP in EndpointsAsyncTask.class line 36

  1. Install the Cloud SDK
  2. Follow the instructions in the Setup Cloud SDK section
    Note: You do not need to follow the rest of steps in the migration guide, only the Setup Cloud SDK.
  3. Start or stop your local server by using the gradle tasks as shown in the following screenshot

  4. Once your local GCE server is started you should see the following at

localhost:8080