Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 25238ff

Browse files
author
Dimitar Tachev
authored
Merge pull request #1125 from NativeScript/tachev/fix-ndk-warning
fix: `The provided Android NDK is vnull while the recommended one is v21.0.6113669` error in some cases
2 parents 8e47184 + 45ef004 commit 25238ff

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-dev-webpack",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"main": "index",
55
"description": "",
66
"homepage": "http://www.telerik.com",
@@ -100,4 +100,4 @@
100100
"tns-core-modules": "next",
101101
"typescript": "~3.5.3"
102102
}
103-
}
103+
}

snapshot/android/snapshot-generator.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,11 @@ SnapshotGenerator.prototype.buildCSource = function (androidArch, blobInputDir,
400400
}
401401

402402
SnapshotGenerator.prototype.getRecommendedNdkWarning = function (localNdkRevision, recommendedAndroidNdkRevision) {
403-
return `The provided Android NDK is v${localNdkRevision} while the recommended one is v${recommendedAndroidNdkRevision}`;
403+
if (localNdkRevision) {
404+
return `The provided Android NDK is v${localNdkRevision} while the required one is v${recommendedAndroidNdkRevision}`;
405+
} else {
406+
return `The provided Android NDK version is different than the required one - v${recommendedAndroidNdkRevision}`;
407+
}
404408
}
405409

406410
SnapshotGenerator.prototype.runMksnapshotTool = function (tool, mksnapshotParams, inputFile, snapshotInDocker, snapshotToolsPath, buildCSource) {

0 commit comments

Comments
 (0)