Skip to content

Commit

Permalink
Bump versions and add git links; add to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashko Stubailo committed Sep 15, 2014
1 parent 999ff27 commit c77f223
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
4 changes: 3 additions & 1 deletion packages/mdg:camera/package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Package.describe({
name: "mdg:camera",
summary: "Photos with one function call on desktop and mobile.",
version: "1.0.0"
version: "1.0.2",
git: "https://github.com/meteor/mobile-packages"
});

Cordova.depends({
Expand Down
3 changes: 2 additions & 1 deletion packages/mdg:geolocation/package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Package.describe({
name: "mdg:geolocation",
summary: "Provides reactive geolocation on desktop and mobile.",
version: "1.0.0"
version: "1.0.1",
git: "https://github.com/meteor/mobile-packages"
});

Cordova.depends({
Expand Down
12 changes: 10 additions & 2 deletions packages/mdg:reload-on-resume/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Meteor reload-on-resume Package

Add it to your [Meteor](http://meteor.com) app with `meteor add mdg:reload-on-resume`. There is no API - this package changes the behavior of Meteor's hot code push feature on mobile devices only.
Add it to your [Meteor](http://meteor.com) app with `meteor add mdg:reload-on-resume`. This package changes the behavior of Meteor's hot code push feature on mobile devices only.

Normally, your app will update on the user's device as soon as you push a new version. This process is always smooth in a desktop web browser, but might momentarily interrupt the user's experience if they are on a mobile device.

With this package, the app will only update itself to the newest version if the user closes and re-opens the app (hence, it "reloads on resume").
With this package, the app will only update itself to the newest version if the user closes and re-opens the app (hence, it "reloads on resume").

## API

In addition to changing the behavior of hot code push, this package provides a method to check if the app is waiting to be reloaded.

### Reload.isWaitingForResume()

A reactive function that returns `true` if a new version of the app has been downloading and the framework is waiting until the app is closed and reopened. Can be used to display a message to the user that says "new version available, restart the app to update."
3 changes: 2 additions & 1 deletion packages/mdg:reload-on-resume/package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Package.describe({
name: "mdg:reload-on-resume",
summary: "On Cordova, only allow the app to reload when the app is resumed.",
version: '1.0.0'
version: '1.0.1',
git: "https://github.com/meteor/mobile-packages"
});

Package.on_use(function (api) {
Expand Down

0 comments on commit c77f223

Please sign in to comment.