Skip to content

Commit 322cbe8

Browse files
author
Ben Newman
committed
Cherry-pick crosswalk fix for cordova-android@6.4.0.
meteor#9274 (comment) cc @menelike
1 parent 8decd67 commit 322cbe8

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

History.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@
5151
```
5252
[PR #9343](https://github.com/meteor/meteor/pull/9343)
5353

54+
* The [`cordova-lib`](https://github.com/apache/cordova-cli) package has
55+
been updated to version 7.1.0,
56+
[`cordova-android`](https://github.com/apache/cordova-android/) has been
57+
updated to version 6.4.0 (plus one additional
58+
[commit](https://github.com/meteor/cordova-android/commit/317db7df0f7a054444197bc6d28453cf4ab23280)),
59+
and [`cordova-ios`](https://github.com/apache/cordova-ios/) has been
60+
updated to version 4.5.4. The cordova plugins `cordova-plugin-console`,
61+
`cordova-plugin-device-motion`, and `cordova-plugin-device-orientation`
62+
have been [deprecated](https://cordova.apache.org/news/2017/09/22/plugins-release.html)
63+
and will likely be removed in a future Meteor release.
64+
[Feature Request #196](https://github.com/meteor/meteor-feature-requests/issues/196)
65+
[PR #9213](https://github.com/meteor/meteor/pull/9213)
66+
[Issue #9447](https://github.com/meteor/meteor/issues/9447)
67+
[PR #9448](https://github.com/meteor/meteor/pull/9448)
68+
5469
* The previously-served `/manifest.json` application metadata file is now
5570
served from `/__browser/manifest.json` for web browsers, to avoid
5671
confusion with other kinds of `manifest.json` files. Cordova clients
@@ -224,18 +239,6 @@
224239
[Issue #6912](https://github.com/meteor/meteor/issues/6912)
225240
[PR #9515](https://github.com/meteor/meteor/pull/9515)
226241

227-
* [`cordova-lib`](https://github.com/apache/cordova-cli) has been updated to
228-
version 7.1.0, [`cordova-android`](https://github.com/apache/cordova-android/)
229-
has been updated to version 6.3.0, and [`cordova-ios`](https://github.com/apache/cordova-ios/)
230-
has been updated to version 4.5.4. The cordova-plugins `cordova-plugin-console`,
231-
`cordova-plugin-device-motion`, and `cordova-plugin-device-orientation` have been
232-
[deprecated](https://cordova.apache.org/news/2017/09/22/plugins-release.html)
233-
and will likely be removed in a future Meteor release.
234-
[Feature Request #196](https://github.com/meteor/meteor-feature-requests/issues/196)
235-
[PR #9213](https://github.com/meteor/meteor/pull/9213)
236-
[Issue #9447](https://github.com/meteor/meteor/issues/9447)
237-
[PR #9448](https://github.com/meteor/meteor/pull/9448)
238-
239242
* Provide basic support for [iPhone X](https://developer.apple.com/ios/update-apps-for-iphone-x/)
240243
status bar and launch screens, which includes updates to
241244
[`cordova-plugin-statusbar@2.3.0`](https://github.com/apache/cordova-plugin-statusbar/blob/master/RELEASENOTES.md#230-nov-06-2017)

tools/cordova/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export const CORDOVA_DEV_BUNDLE_VERSIONS = {
1414
};
1515

1616
export const CORDOVA_PLATFORM_VERSIONS = {
17-
'android': '6.4.0',
17+
// This commit represents cordova-android@6.4.0 plus
18+
// https://github.com/apache/cordova-android/pull/417, aka
19+
// https://github.com/meteor/cordova-android/tree/v6.4.0-with-pr-417:
20+
'android': 'https://github.com/meteor/cordova-android/tarball/317db7df0f7a054444197bc6d28453cf4ab23280',
1821
'ios': '4.5.4'
1922
};
2023

tools/cordova/project.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ export class CordovaProject {
109109
return true;
110110
}
111111

112+
if (! semver.valid(pinnedVersion)) {
113+
// If pinnedVersion is not a semantic version but instead
114+
// something like a GitHub tarball URL, assume not outdated.
115+
return false;
116+
}
117+
112118
return semver.lt(installedVersion, pinnedVersion);
113119
});
114120

0 commit comments

Comments
 (0)