cordova-android/bin/templates/cordova
Norman Breau 16a88ec631
fix: ANDROID_SDK_ROOT variable (#951)
This commit does the following:
- Makes ANDROID_SDK_ROOT the primary variable to look for the Android SDK location.
- Makes ANDROID_HOME the fallback variable, if ANDROID_SDK_ROOT is not present/valid.

Gradle updates:
Note that the following gradle updates were required, otherwise the android gradle plugin did not honour the ANDROID_SDK_ROOT variable.

- Updates the framework's android studio's gradle plugin from version 3.3.0 to 3.5.3.
	Not only this is required for android's gradle to obey ANDROID_SDK_ROOT, it is now in sync with the Android test project/
- Updates the Androidx test project to use gralde plugin from version 3.3.0 to 3.5.3, to match Android Test & framework.
	- Consequentially, this required to also upgrade AndroidX test project to use Gradle 6.1, which also matches both the Android test project & framework

These changes above fixes #949

Additionally, since we update the environment variables dynamically, the environment variable printout produced misleading information.
The environment variable printout will now print out the variable as defined by the user (before the tooling messes with them). An additional log
is printed that tells the user exactly what Cordova is going to use for the Android SDK path. This should fix #670
2020-04-15 23:43:17 -03:00
..
lib fix: ANDROID_SDK_ROOT variable (#951) 2020-04-15 23:43:17 -03:00
Api.js fix: test failure with shebang interpreter in rewired files (#939) 2020-04-01 12:04:35 +09:00
build refactor (eslint): use cordova-eslint (#910) 2020-01-31 22:02:48 +09:00
build.bat CB-5209 Win: Cannot build Android app if project path contains spaces 2013-10-29 16:29:19 -04:00
clean refactor (eslint): use cordova-eslint (#910) 2020-01-31 22:02:48 +09:00
clean.bat CB-5209 Win: Cannot build Android app if project path contains spaces 2013-10-29 16:29:19 -04:00
defaults.xml Move registration of App plugin from config.xml -> code 2014-07-08 11:47:26 -04:00
log chore: drop q module (#833) 2020-01-07 21:22:59 +09:00
log.bat CB-5209 Win: Cannot build Android app if project path contains spaces 2013-10-29 16:29:19 -04:00
loggingHelper.js CB-10749 Use cordova-common.CordovaLogger in cordova-android 2016-03-09 18:54:05 +03:00
run refactor (eslint): use cordova-eslint (#910) 2020-01-31 22:02:48 +09:00
run.bat CB-5209 Win: Cannot build Android app if project path contains spaces 2013-10-29 16:29:19 -04:00
version fix: test failure with shebang interpreter in rewired files (#939) 2020-04-01 12:04:35 +09:00
version.bat CB-5209 Win: Cannot build Android app if project path contains spaces 2013-10-29 16:29:19 -04:00