From e21188a85946a8218497d0725c2ba00ad76c3551 Mon Sep 17 00:00:00 2001 From: James Lau Date: Thu, 18 May 2017 08:56:09 -0700 Subject: [PATCH 1/2] Updated readme --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 18e90c7fa..089c45033 100644 --- a/README.md +++ b/README.md @@ -3,19 +3,19 @@ Google Santa Tracker for Android ## About -[Google Santa Tracker app for Android][play-store] is an educational and entertaining tradition that brings joy to millions of children (and children at heart) across the world over the December holiday period. The app is a companion to the [Google Santa Tracker][santa-web] website ([repository here](https://github.com/google/santa-tracker-web)), showcasing unique platform capabilities like Android Wear watchfaces, device notifications and more. -![Analytics](https://ga-beacon.appspot.com/UA-12846745-20/santa-tracker-android/readme?pixel) +This repo is a fork of the [Google Santa Tracker app for Android](https://github.com/google/santa-tracker-android). This for was created to as a companion sample to demonstrate some of the tips and tricks on how to speed up your Android Gradle builds. -Village Screenshot +## How to use this repo +Check out this repo and switch to the agp-2.2.0 branch. This branch contains the pre-optimized build configurations. See [Getting the first build working section](#firstbuild). + +Best way to observe the build performance in this branch is to use the [Gradle profiler] (https://github.com/gradle/gradle-profiler). You should familiarize yourself with the Gradle profiler before proceeding. Their repo contains excellent documentation. -## Features +Once you have observed the build performance of this branch in various scenarios (see `performance.scenarios`), you can switch to agp-3.0.0 branch to observe the optimized build performance by running the same set of build scenarios in `performance.scenarios` file. You can search throughout the project for "Tip" to find the build config tip to achieve the build time improvements. + +Village Screenshot -* A beautiful materially designed village -* Exciting games like Penguin Swim and Rocket Sleigh -* Interactive Android Wear watchfaces (with sound!) -* Videos, animations and more. -## Building the app +## Getting the first build working First up, Santa Tracker is powered by [Firebase][firebase], so you'll need to enable it on your Google account over at the [Firebase console][fire-console]. Once you're in the From ca8d27d0ed8104801fa39f4da1fe3105a9130d0f Mon Sep 17 00:00:00 2001 From: James Lau Date: Thu, 18 May 2017 08:58:47 -0700 Subject: [PATCH 2/2] Updated readme --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 089c45033..787eeb723 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,21 @@ Google Santa Tracker for Android ## About -This repo is a fork of the [Google Santa Tracker app for Android](https://github.com/google/santa-tracker-android). This for was created to as a companion sample to demonstrate some of the tips and tricks on how to speed up your Android Gradle builds. - +This repo is a fork of the [Google Santa Tracker app for Android](https://github.com/google/santa-tracker-android). This fork was created to demonstrate some of the tips and tricks on how to speed up your Android Gradle builds. + +## What are the build tips? +1. Use latest Android Gradle plugin +2. Avoid legacy multidex +3. Disable multi-APK +4. Include minimal resources +5. Disable png crunching +6. Use Instant Run +7. Avoid inadvertent changes +8. Don’t use dynamic versions +9. Watch the memory +10. Enable Gradle caching + +More details coming... ## How to use this repo Check out this repo and switch to the agp-2.2.0 branch. This branch contains the pre-optimized build configurations. See [Getting the first build working section](#firstbuild).