From: Eugene Crosser Date: Mon, 30 Jan 2012 17:54:04 +0000 (+0400) Subject: prepare to use gapis X-Git-Url: http://www.average.org/gitweb/?p=WhereAmI.git;a=commitdiff_plain;h=a31985512603ab20577d7da88dc01ea0a3718742;hp=4e67198f228c17d21e071e7f89f67c42e213bc11 prepare to use gapis --- diff --git a/proguard.cfg b/proguard.cfg index b1cdf17..0c865e2 100644 --- a/proguard.cfg +++ b/proguard.cfg @@ -38,3 +38,15 @@ -keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; } + +# Needed by google-api-client to keep generic types and @Key annotations accessed via reflection + +-keepclassmembers class * { + @com.google.api.client.util.Key ; +} + +-keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault + +# Needed by Guava + +-dontwarn sun.misc.Unsafe diff --git a/src/org/average/whereami/ClientCredentials.java b/src/org/average/whereami/ClientCredentials.java new file mode 100644 index 0000000..e8a5969 --- /dev/null +++ b/src/org/average/whereami/ClientCredentials.java @@ -0,0 +1,15 @@ +package org.average.whereami; + +public class ClientCredentials { + + public static final String clientID = null; + public static final String clientSecret = null; + + public static void errorIfNotSpecified() { + if (clientID == null) { + System.err.println("Please enter your client ID in " + + ClientCredentials.class); + System.exit(1); + } + } +}