Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mojo.shared: Share the Shortcut creation process #942

Open
afandria opened this issue Nov 24, 2015 · 0 comments
Open

mojo.shared: Share the Shortcut creation process #942

afandria opened this issue Nov 24, 2015 · 0 comments
Assignees

Comments

@afandria
Copy link

For apps like Croupier and Syncslides, it will be very worthwhile to share the shortcut creation code.

mojo.shared's macro will need to take 5 variables:

  • Target device ID Flag (optional)
  • Shortcut Name (required)
  • Shortcut Mojo Url (required)
  • Shortcut Icon Url (optional)
  • Shell command path (required)
@afandria afandria self-assigned this Nov 24, 2015
afandria added a commit to vanadium-archive/croupier that referenced this issue Nov 25, 2015
This adds a way to create shortcuts to the Makefile.
While this does belong in mojo.shared, this is here because of the
recent refactoring done there. The next CL will MultiPart the relevant
repositories.

mojo.shared's macro will need to take 5 variables:
* Target device ID Flag (optional)
* Shortcut Name (required)
* Shortcut Mojo Url (required)
* Shortcut Icon Url (optional)
* Shell command path (required)

vanadium/issues#942

The Shortcut also requires some assets to be loaded onto a public and
secure location, like storage.googleapis.com. For now, I have manually
put a few of our binaries up there, though in the future we will also
want to version them.

vanadium/issues#834

The related files are:
* Makefile
* shortcut_template
* .gitignore

=========================

The other files are actually part of a related change.

This other half modifies the Hearts and Croupier Game implementations.
A new signal called startGameSignal is called at the start of a game.
This allows Hearts to send a Ready command when the button is pressed.
This allows Deal to occur independently of the other players, since the
owner is known, and we can let them deal.
The tests were updated to correspond with this change.

Change-Id: I1acf494c45d7d3d9dda3acba815a3fe63a13e966
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant