altosuilib: Add google maps API key, configured with -with-google-key
[fw/altos] / altosuilib / AltosUIVersion.java.in
index 3f6295609514e88f2eb2c5bc1200b347afda8d0a..0edb5c04b3ae2fd7d58fea4452a23bf57e7a1ced 100644 (file)
@@ -19,4 +19,10 @@ package org.altusmetrum.altosuilib_2;
 
 public class AltosUIVersion {
        public final static String version = "@VERSION@";
+
+       public final static String google_maps_api_key = @GOOGLEKEY@;
+
+       static boolean has_google_maps_api_key() {
+               return google_maps_api_key != null && google_maps_api_key.length() > 1;
+       }
 }