@@ -253,11 +253,11 @@ exports.detect = function detect(config, opts, finished) {
253253 }
254254
255255 var archs = { } ;
256- run ( dpkg , '--print-architecture' , function ( code , stdout , stderr ) {
256+ run ( dpkg , '--print-architecture' , function ( code , stdout , _stderr ) {
257257 stdout . split ( '\n' ) . forEach ( function ( line ) {
258258 ( line = line . trim ( ) ) && ( archs [ line ] = 1 ) ;
259259 } ) ;
260- run ( dpkg , '--print-foreign-architectures' , function ( code , stdout , stderr ) {
260+ run ( dpkg , '--print-foreign-architectures' , function ( code , stdout , _stderr ) {
261261 stdout . split ( '\n' ) . forEach ( function ( line ) {
262262 ( line = line . trim ( ) ) && ( archs [ line ] = 1 ) ;
263263 } ) ;
@@ -278,7 +278,7 @@ exports.detect = function detect(config, opts, finished) {
278278 async . each (
279279 [ 'libc6:i386' , 'libncurses5:i386' , 'libstdc++6:i386' , 'zlib1g:i386' ] ,
280280 function ( pkg , next ) {
281- run ( dpkgquery , [ '-l' , pkg ] , function ( code , out , err ) {
281+ run ( dpkgquery , [ '-l' , pkg ] , function ( code , out , _err ) {
282282 result [ pkg ] = false ;
283283 if ( ! code ) {
284284 var lines = out . split ( '\n' ) ,
@@ -310,7 +310,7 @@ exports.detect = function detect(config, opts, finished) {
310310 return cb ( ) ;
311311 }
312312
313- run ( rpm , '-qa' , function ( code , stdout , stderr ) {
313+ run ( rpm , '-qa' , function ( code , stdout , _stderr ) {
314314 stdout . split ( '\n' ) . forEach ( function ( line ) {
315315 if ( / ^ g l i b c - / . test ( line ) ) {
316316 if ( / \. i [ 3 6 ] 8 6 $ / . test ( line ) ) {
@@ -362,7 +362,8 @@ exports.detect = function detect(config, opts, finished) {
362362 type : 'error' ,
363363 message : __ ( 'JDK (Java Development Kit) not found.' ) + '\n'
364364 + __ ( 'If you already have installed the JDK, verify your __JAVA_HOME__ environment variable is correctly set.' ) + '\n'
365- + __ ( 'The JDK can be downloaded and installed from %s.' , '__https://www.oracle.com/technetwork/java/javase/downloads/index.html__' )
365+ + __ ( 'The JDK can be downloaded and installed from %s' , '__https://www.oracle.com/java/technologies/downloads/__' ) + '\n'
366+ + __ ( 'or %s.' , '__https://jdk.java.net/archive/__' )
366367 } ) ;
367368 results . sdk = null ;
368369 return finalize ( ) ;
@@ -391,19 +392,6 @@ exports.detect = function detect(config, opts, finished) {
391392 }
392393 }
393394
394- if ( ! results . ndk ) {
395- results . issues . push ( {
396- id : 'ANDROID_NDK_NOT_FOUND' ,
397- type : 'warning' ,
398- message : __ ( 'Unable to locate an Android NDK.' ) + '\n'
399- + __ ( 'Without the NDK, you will not be able to build native Android Titanium modules.' ) + '\n'
400- + __ ( 'If you have already downloaded and installed the Android NDK, you can tell Titanium where the Android NDK is located by running \'%s\', otherwise you can install it by running \'%s\' or manually downloading from %s.' ,
401- '__' + commandPrefix + 'titanium config android.ndkPath /path/to/android-ndk__' ,
402- '__' + commandPrefix + 'titanium setup android__' ,
403- '__https://developer.android.com/ndk__' )
404- } ) ;
405- }
406-
407395 // if we don't have an android sdk, then nothing else to do
408396 if ( ! results . sdk ) {
409397 results . issues . push ( {
@@ -714,8 +702,7 @@ exports.detect = function detect(config, opts, finished) {
714702 } else if ( message . length > 0 ) {
715703 message += '\n' ;
716704 }
717- message +=
718- __ ( 'Current installed Android SDK tools:' ) + '\n'
705+ message += __ ( 'Current installed Android SDK tools:' ) + '\n'
719706 + ' Android SDK Tools: ' + ( results . sdk . tools . version || 'not installed' ) + ' (Supported: ' + androidPackageJson . vendorDependencies [ 'android tools' ] + ')\n'
720707 + ' Android SDK Platform Tools: ' + ( results . sdk . platformTools . version || 'not installed' ) + ' (Supported: ' + androidPackageJson . vendorDependencies [ 'android platform tools' ] + ')\n'
721708 + ' Android SDK Build Tools: ' + ( results . sdk . buildTools . version || 'not installed' ) + ' (Supported: ' + androidPackageJson . vendorDependencies [ 'android build tools' ] + ')\n\n'
@@ -1033,7 +1020,7 @@ function loadPlatform(dir, systemImages) {
10331020 } ;
10341021}
10351022
1036- function loadAddon ( dir , platforms , systemImages ) {
1023+ function loadAddon ( dir , platforms , _systemImages ) {
10371024 // read in the properties
10381025 const sourceProps = readProps ( path . join ( dir , 'source.properties' ) ) ;
10391026 const apiLevel = sourceProps ? ~ ~ sourceProps [ 'AndroidVersion.ApiLevel' ] : null ;
0 commit comments