Unofficial Foursquare glassware
Java Groovy
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
code
screens
.gitattributes
.gitignore
LICENSE.md
README.md

README.md

Glasquare

Unofficial Foursquare glassware

Features

  • 3 voice commands: Check me in, Find nearby places and Search places for ...
  • super-fast check-ins with a possibility to add photos
  • 10 best venues around you/matching your search with details
  • directions towards a selected venue
  • read tips of the selected venue

How to install

  1. Download latest APK
  2. adb install (read this if you don't know what that means)

How does it look

Check the website

Future plans

  • report bugs and feature requests as issues here
  • pull requests are welcomed!

How to build the code

  1. setup your release certificate with these values in ~/.gradle/gradle.properties: RELEASE_STORE_FILE, RELEASE_STORE_PASSWORD, RELEASE_KEY_ALIAS, RELEASE_KEY_PASSWORD
  2. create a class Hidden.java inside package api, add two constants into it: CLIENT_ID and CLIENT_SECRET. Obtain these values from Foursquare developers.
  3. go to code folder in terminal
  4. launch ./gradlew assembleDebug or ./gradlew assembleRelease
  • You can also import the code into Android Studio if you select top-level build.gradle file and Gradle wrapper during import.

API

You can open venue detail from any GDK app like this:

  try {
    Intent i = new Intent("cz.destil.glasquare.VENUE_DETAIL");
    i.putExtra("id", "41059b00f964a520850b1fe3");
    startActivity(i);
  } catch (ActivityNotFoundException e) {
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://destil.github.io/glasquare")));
  }

You can also open venue detail from any Mirror API app:

"menuItems" : [
    {
      "action": "OPEN_URI",
      "payload": "glasquare://venue/4b055110f964a520b75722e3"
    }
]

Author