From c77f223dd78b18b53fcfd7651035d3d901290b65 Mon Sep 17 00:00:00 2001 From: Sashko Stubailo Date: Mon, 15 Sep 2014 15:04:09 -0700 Subject: [PATCH] Bump versions and add git links; add to README --- packages/mdg:camera/package.js | 4 +++- packages/mdg:geolocation/package.js | 3 ++- packages/mdg:reload-on-resume/README.md | 12 ++++++++++-- packages/mdg:reload-on-resume/package.js | 3 ++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/mdg:camera/package.js b/packages/mdg:camera/package.js index be82bbc..cb95eaf 100644 --- a/packages/mdg:camera/package.js +++ b/packages/mdg:camera/package.js @@ -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({ diff --git a/packages/mdg:geolocation/package.js b/packages/mdg:geolocation/package.js index cca7633..e72e0d3 100644 --- a/packages/mdg:geolocation/package.js +++ b/packages/mdg:geolocation/package.js @@ -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({ diff --git a/packages/mdg:reload-on-resume/README.md b/packages/mdg:reload-on-resume/README.md index 08d87da..932fefe 100644 --- a/packages/mdg:reload-on-resume/README.md +++ b/packages/mdg:reload-on-resume/README.md @@ -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"). \ No newline at end of file +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." \ No newline at end of file diff --git a/packages/mdg:reload-on-resume/package.js b/packages/mdg:reload-on-resume/package.js index 3ccfb5f..663526a 100644 --- a/packages/mdg:reload-on-resume/package.js +++ b/packages/mdg:reload-on-resume/package.js @@ -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) {