Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 0f027ea

Browse files
author
Will Anderson
committed
Use configuration to get appVersion when checking for updates
1 parent 866bd7e commit 0f027ea

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

HybridMobileDeploy.ios.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@ function getSdk(callback) {
4040
}
4141

4242
function queryUpdate(callback) {
43-
getSdk(function(err, sdk) {
44-
var pkg = {appVersion: "1.2.3"};
45-
sdk.queryUpdateWithCurrentPackage(pkg, callback);
43+
getConfiguration(function(err, configuration) {
44+
if (err) callback(err);
45+
getSdk(function(err, sdk) {
46+
if (err) callback(err);
47+
var pkg = {appVersion: configuration.appVersion};
48+
sdk.queryUpdateWithCurrentPackage(pkg, callback);
49+
});
4650
});
4751
}
4852

0 commit comments

Comments
 (0)