Skip to content

Commit 87945a8

Browse files
authored
Update before_plugin_install.js
The caret on the spec is optional. Without this change then engine name="android" spec="7.0.0" will not be detected as android 7.
1 parent 0e6f713 commit 87945a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/android/before_plugin_install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const writeIbgBuildGradle = (contents) => {
1919
const getAndroidVersion = () => {
2020
const target = path.join('config.xml');
2121
let file = fs.readFileSync(target, 'utf-8');
22-
const androidEngine = file.match(/engine name="android" spec="\^[1-9]+.[0-9]+.[0-9]+"/g);
22+
const androidEngine = file.match(/engine name="android" spec="\^?[1-9]+.[0-9]+.[0-9]+"/g);
2323
if (androidEngine) {
2424
const version = androidEngine[0].match(/[1-9]+.[0-9]+.[0-9]+/g);
2525
if (version) {

0 commit comments

Comments
 (0)