prepare to use gapis
authorEugene Crosser <Eugene.Crosser@ru.ibm.com>
Mon, 30 Jan 2012 17:54:04 +0000 (21:54 +0400)
committerEugene Crosser <Eugene.Crosser@ru.ibm.com>
Mon, 30 Jan 2012 17:54:04 +0000 (21:54 +0400)
proguard.cfg
src/org/average/whereami/ClientCredentials.java [new file with mode: 0644]

index b1cdf17b5bb40b4839cfc80f7e91bbcf7b94f798..0c865e22375cb14158c84baf0d6778773c58ffe3 100644 (file)
 -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 <fields>;
+}
+
+-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 (file)
index 0000000..e8a5969
--- /dev/null
@@ -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);
+    }
+  }
+}