Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Initial open source release of Google Santa Tracker.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfschmakeit committed Mar 25, 2015
0 parents commit 2c4a620
Show file tree
Hide file tree
Showing 1,358 changed files with 45,095 additions and 0 deletions.
35 changes: 35 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# How to become a contributor and submit your own code

## Contributor License Agreements

We'd love to accept your sample apps and patches! Before we can take them, we
have to jump a couple of legal hurdles.

Please fill out either the individual or corporate Contributor License Agreement (CLA).

* If you are an individual writing original source code and you're sure you
own the intellectual property, then you'll need to sign an [individual CLA]
(https://developers.google.com/open-source/cla/individual).
* If you work for a company that wants to allow you to contribute your work,
then you'll need to sign a [corporate CLA]
(https://developers.google.com/open-source/cla/corporate).

Follow either of the two links above to access the appropriate CLA and
instructions for how to sign and return it. Once we receive it, we'll be able to
accept your pull requests.

## Contributing A Patch

1. Submit an issue describing your proposed change to the repo in question.
1. The repo owner will respond to your issue promptly.
1. If your proposed change is accepted, and you haven't already done so, sign a
Contributor License Agreement (see details above).
1. Fork the desired repo, develop and test your code changes.
1. Ensure that your code adheres to the existing style in the sample to which
you are contributing. Refer to the
[Android Code Style Guide]
(https://source.android.com/source/code-style.html) for the
recommended coding standards for this organization.
1. Ensure that your code has an appropriate set of unit tests which all pass.
1. Submit a pull request.

649 changes: 649 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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, 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)

![Village Screenshot][res/village.png]

## Features

* A beautiful parallax-scrolling village
* 3 exciting games
* 2 Android Wear watchfaces
* Hidden Easter Eggs!

## Building the app

It's simple. Plug your phone in (or fire up an emulator) and run:

./gradlew installDebug

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

## License

Copyright 2015 Google Inc. All rights reserved.

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

http://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.


[play-store]: https://play.google.com/store/apps/details?id=com.google.android.apps.santatracker
[santa-web]: http://g.co/santatracker

24 changes: 24 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (C) 2015 Google Inc. All Rights Reserved.
*
* 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
*
* http://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.
*/

buildscript {
repositories {
jcenter()
}
dependencies {
classpath androidToolsDependency
}
}
1 change: 1 addition & 0 deletions app/common/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
36 changes: 36 additions & 0 deletions app/common/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (C) 2015 Google Inc. All Rights Reserved.
*
* 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
*
* http://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.
*/

apply plugin: 'com.android.library'

android {
compileSdkVersion 21
buildToolsVersion toolsVersion

defaultConfig {
minSdkVersion 15
targetSdkVersion 21
}
}

repositories {
jcenter()
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile playServices
}
17 changes: 17 additions & 0 deletions app/common/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/lwray/Desktop/Stuff/adt-bundle-mac-x86_64-20131030/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
26 changes: 26 additions & 0 deletions app/common/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--
Copyright (C) 2015 Google Inc. All Rights Reserved.
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
http://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.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.apps.santatracker.common">

<application android:allowBackup="true"
android:label="@string/app_name"
>

</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/*
* Copyright (C) 2015 Google Inc. All Rights Reserved.
*
* 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
*
* http://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.
*/

package com.google.android.apps.santatracker.common;

/**
* Constants that define notifications for the application and wearable.
*/
public final class NotificationConstants {

public static final String KEY_LOCATION = "location";

private NotificationConstants() {
}

;

// Only one ID because we only show one notification at a time.

/**
* ID that identifies all notifications from Santa Tracker.
* Reusing the same ID ensures that only one notification is shown at a time.
*/
public static final int NOTIFICATION_ID = 4672682; // GOSANTA

/**
* Take-off notification.
*/
public static final int NOTIFICATION_TAKEOFF = 1;

/**
* Santa status update or factoid notification.
*/
public static final int NOTIFICATION_INFO = 2;

/**
* Path to identify take-off notifications on wear.
*/
public static final String TAKEOFF_PATH = "/takeoff";

/**
* Key for notification ID.
*
* @see #NOTIFICATION_ID
*/
public static final String KEY_NOTIFICATION_ID = "notification-id";

/**
* Key for the type of notification.
*
* @see #NOTIFICATION_TAKEOFF
* @see #NOTIFICATION_INFO
*/
public static final String KEY_NOTIFICATION_TYPE = "notification-type";

/**
* Key for the title in a notification.
*/
public static final String KEY_TITLE = "title";

/**
* Key for the content text in a notification.
*/
public static final String KEY_CONTENT = "content";

/**
* Key for the timestamp of a notification.
*/
public static final String KEY_TIMESTAMP = "timestap";

/**
* Key for Santa's final arrival (after which the notification should not be displayed.)
*/
public static final String KEY_FINAL_ARRIVAL = "finalArrival";

/**
* Key for the fact text in a notification.
*/
public static final String KEY_FACT = "fact";

/**
* Key for Santa's status in a notification.
*/
public static final String KEY_STATUS = "status";

/**
* Key for the image in a notification.
*/
public static final String KEY_IMAGEURL = "imageurl";

/**
* Action string that identifies a dismiss action.
*/
public static final String ACTION_DISMISS
= "com.google.android.apps.santatracker.DISMISS";
}
Loading

0 comments on commit 2c4a620

Please sign in to comment.