Git Product home page Git Product logo

santa-tracker-android's Introduction

Status: Archived

This repository has been archived and is no longer maintained.

Google Santa Tracker for Android 🎅🤶

About

Google Santa Tracker app for Android 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 website (repository here), showcasing unique platform capabilities like Android Wear watchfaces, device notifications and more.

Village Screenshot

Features

  • A beautiful designed village
  • Exciting games like Penguin Swim and Rocket Sleigh
  • Use of Dynamic Feature Modules (each game is a separate module, fetched dynamically on first run)
  • Interactive Android Wear watchfaces (with sound!)
  • Videos, animations and more.

Building the app

First up, Santa Tracker is powered by Firebase, so you'll need to enable it on your Google account over at the Firebase console. Once you're in the console, follow these steps:

  • Create a new project
  • Add Firebase to your Android app
  • Package name: com.google.android.apps.santatracker.debug
  • Debug signing certificate can be blank, or follow the instructions in the tooltip to find yours.
  • Save the google-services.json file to the santa-tracker/ directory

Now you should be able to plug your phone in (or fire up an emulator) and run:

./gradlew santa-tracker:installDebug

Alternatively, import the source code into Android Studio (File, Import Project).

Note: You'll need Android SDK version 28. If you're unsure about this, use Android Studio and tick the appropriate boxes in the SDK Manager.

License

All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav, *.ogg, *.m4a, *.webp) are licensed under the CC-BY license. All other files are licensed under the Apache 2 license. See the LICENSE file for details.

Copyright 2019 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

santa-tracker-android's People

Contributors

chrisbanes avatar jfschmakeit avatar markmcd avatar samthor avatar samtstern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

santa-tracker-android's Issues

raw file: map_style

Hi! Nice work, can you share the map style?
MapStyleOptions.loadRawResourceStyle(context, R.raw.map_style));

Can't launch application

when i had done all instructions, added to firebase, added google-services and builded project application crashed when started with Illegal ArgumentException: Invalid application ID: XXXXX

games_ids.xml missing from "playgames" module

Santa Tracker will not build successfully because there are resource strings missing from the "playgames" module.

Solution: Copy one of the "game_ids.xml" files that contains leaderboard_gumball and leaderboard_memory strings into the playgames module.

registerResGeneratingTask is deprecated

When running Santa Tracker, the build output window shows the following deprecation warning three times.

registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

Security Policy violation Binary Artifacts

This issue was automatically created by Allstar.

Security Policy Violation
Project is out of compliance with Binary Artifacts policy: binaries present in source code

Rule Description
Binary Artifacts are an increased security risk in your repository. Binary artifacts cannot be reviewed, allowing the introduction of possibly obsolete or maliciously subverted executables. For more information see the Security Scorecards Documentation for Binary Artifacts.

Remediation Steps
To remediate, remove the generated executable artifacts from the repository.

Artifacts Found

  • santa-tracker/libs/YouTubeAndroidPlayerApi.jar
  • third_party/jbox2d/jbox2d-library-2.2.1.1.jar

Additional Information
This policy is drawn from Security Scorecards, which is a tool that scores a project's adherence to security best practices. You may wish to run a Scorecards scan directly on this repository for more details.


Allstar has been installed on all Google managed GitHub orgs. Policies are gradually being rolled out and enforced by the GOSST and OSPO teams. Learn more at http://go/allstar

This issue will auto resolve when the policy is in compliance.

Issue created by Allstar. See https://github.com/ossf/allstar/ for more information. For questions specific to the repository, please contact the owner or maintainer.

Bugs in 2019 version - sound, scores etc

In the new 2019 version, it says "signed into Google Play Games" when the game is launched, but there's no scoreboard link within the app.

If I go to Google Play Games and look at "Achievements" it says no scores have been posted by anyone.

On the main "town" screen, the "sound" button does nothing when pressed.

Pixel3a, app and phone all up to date

API 'variant.getPreBuild()' is obsolete

When building Santa Tracker with Studio 3.4.2, a WARNING is produced citing "variant.getPreBuild()" as deprecated.

WARNING: API 'variant.getPreBuild()' is obsolete and has been replaced with 'variant.getPreBuildProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getPreBuild(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
Affected Modules: santa-tracker

Several games will not open

On my moto g6, the following games do not load:

  • Elf Maker
  • North Pole Airport
  • Gift Slingshot
  • Code Boogie
  • Penguin Dash
  • Present Drop
  • Reindeer Runner
  • Snowball Storm
  • Code a Snowflake
    I get to the candy cane loading bar, then I get a message at the bottom of the screen:
    Sorry, could not load the scene.

Broken link

The URL connecting the "Google Santa Tracker app for Android" from the markdown to the Play Store is broken.

Layout doesn't fit with the device size

Some of UI components are out of screen.
User unable to scroll or touch to the components.

Game
Memory, level 3

Device
SamSung Galaxy Note 4, OS: 6.0.1

Example:
screenshot_2019-02-04-17-27-23

2020?

Will this be updated for 2020?

"Sticky" shutters on Memory resolved by connecting to Bluetooth

Here's a weird one - on the Memory game, when using the phone's speakers, the windows "stick" - you can hear "double audio" being played when the shutters close, sometimes they respond slowly, sometimes opening the third window takes a long press. The whole thing seems "sticky".

Connect the audio output to a Bluetooth device and the whole game runs smoothly. Strange, eh?
Audio driver issue?

Android 7.0 NRD90M on a Xiaomi Redmi Note 4 (MIUI 9.2.2).

Can the fake "all time" high scores be removed?

When you've got a small person playing the game trying to beat other high scores, it's a bit dis-heartening to see old fake "top scores" from years ago still there. Have a look at the screenshots - the way it jumps from 36,000 (achievable, just!) to 702,601, and then the top two scores of a quite remarkable (and miraculously identical) 9,638,527!

screenshot_2018-03-23-08-01-52-095_com google android play games
screenshot_2018-03-23-08-02-00-719_com google android play games

Wo ist er?

Wann kommt der Weihnachtsmann nach Deutschland?

jbox2d

I do not have any experience in the game development, I just want to ask why you used jbox2d for games, what advantages this library has because I see it is not so popular as LibGDX for example..

Multiple errors: Unresolved reference

When building Santa Tracker, there are multiple exceptions reporting "Unresolved reference"

e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (46, 8): Unresolved reference: kotlinx
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (47, 8): Unresolved reference: kotlinx
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (48, 8): Unresolved reference: kotlinx
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (72, 17): Unresolved reference: progressbar
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (73, 17): Unresolved reference: progressbar
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (78, 21): Unresolved reference: progressbar
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (80, 21): Unresolved reference: progressbar
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (81, 21): Unresolved reference: progressbar
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (129, 9): Unresolved reference: splash_image
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (135, 28): Unresolved reference: splash_image
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (135, 75): Unresolved reference: splash_image
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (138, 24): Unresolved reference: splash_image
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (138, 72): Unresolved reference: splash_image
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (147, 9): Unresolved reference: progressbar
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (148, 13): Unresolved reference: progressTintList
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (150, 13): Unresolved reference: indeterminateTintList
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (156, 9): Unresolved reference: splash_title
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (195, 9): Unresolved reference: progressbar
e: C:\Projects\santa-tracker-android\santa-tracker\src\main\java\com\google\android\apps\santatracker\games\SplashActivity.kt: (196, 9): Unresolved reference: progressbar

No User table found

com.google.android.apps.santatracker.debug E/UncaughtException: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.apps.santatracker.debug/com.google.android.apps.santatracker.presentquest.MapsActivity}: android.database.sqlite.SQLiteException: no such table: USER (code 1): , while compiling: SELECT * FROM USER
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(no such table: USER (code 1): , while compiling: SELECT * FROM USER)
#################################################################
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3319)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)
at android.app.ActivityThread.access$1100(ActivityThread.java:229)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: android.database.sqlite.SQLiteException: no such table: USER (code 1): , while compiling: SELECT * FROM USER
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(no such table: USER (code 1): , while compiling: SELECT * FROM USER)
#################################################################
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1058)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:623)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:59)
at android.database.sqlite.SQLiteQuery.(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1471)
at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1318)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1189)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1395)
at com.orm.SugarRecord.find(SugarRecord.java:192)
at com.orm.SugarRecord.listAll(SugarRecord.java:94)
at com.google.android.apps.santatracker.presentquest.model.User.get(User.java:93)
at com.google.android.apps.santatracker.presentquest.MapsActivity.onCreate(MapsActivity.java:285)
at android.app.Activity.performCreate(Activity.java:6904)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)

santa-tracker:installDebug task not found

The instructions suggest running ./gradlew santa-tracker:installDebug but that's not a valid task as it doesn't include a flavor. Please update the documentation to suggest a task with a flavor.

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.