cordova-android/bin/templates/cordova/lib
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
..
builders chore(eslint): bump package & apply eslint fix (#955) 2020-04-15 12:36:40 +09:00
config refactor (eslint): use cordova-eslint (#910) 2020-01-31 22:02:48 +09:00
Adb.js fix (adb): shell to return expected stdout (#904) 2020-01-21 23:37:22 +09:00
android_sdk.js refactor (eslint): use cordova-eslint (#910) 2020-01-31 22:02:48 +09:00
AndroidManifest.js chore(eslint): bump package & apply eslint fix (#955) 2020-04-15 12:36:40 +09:00
AndroidProject.js refactor: use es6 class (#911) 2020-02-01 17:34:51 +09:00
build.js fix: test failure with shebang interpreter in rewired files (#939) 2020-04-01 12:04:35 +09:00
check_reqs.js fix: ANDROID_SDK_ROOT variable (#951) 2020-04-15 23:43:17 -03:00
device.js fix: test failure with shebang interpreter in rewired files (#939) 2020-04-01 12:04:35 +09:00
emulator.js chore(eslint): bump package & apply eslint fix (#955) 2020-04-15 12:36:40 +09:00
getASPath.bat CB-12605 In Windows get Android studio path from the registry 2017-06-22 10:55:39 -07:00
install-device CB-14158: Refactor device to remove Q 2018-07-03 10:43:30 +09:00
install-device.bat CB-12453: Remove unnecessary double quotes from .bat files which are the causes of crash if project path contains spaces 2017-07-28 14:23:53 +03:00
install-emulator CB-14158: Refactor emulator to remove Q 2018-07-03 11:19:17 +09:00
install-emulator.bat CB-12453: Remove unnecessary double quotes from .bat files which are the causes of crash if project path contains spaces 2017-07-28 14:23:53 +03:00
list-devices CB-14158: Refactor device to remove Q 2018-07-03 10:43:30 +09:00
list-devices.bat CB-12453: Remove unnecessary double quotes from .bat files which are the causes of crash if project path contains spaces 2017-07-28 14:23:53 +03:00
list-emulator-images CB-14158: Refactor emulator to remove Q 2018-07-03 11:19:17 +09:00
list-emulator-images.bat CB-12453: Remove unnecessary double quotes from .bat files which are the causes of crash if project path contains spaces 2017-07-28 14:23:53 +03:00
list-started-emulators CB-14158: Refactor emulator to remove Q 2018-07-03 11:19:17 +09:00
list-started-emulators.bat CB-12453: Remove unnecessary double quotes from .bat files which are the causes of crash if project path contains spaces 2017-07-28 14:23:53 +03:00
log.js fix: test failure with shebang interpreter in rewired files (#939) 2020-04-01 12:04:35 +09:00
PackageType.js feat: Build app bundles (.aab files) (#764) 2019-08-08 12:53:10 -04:00
plugin-build.gradle Updates for latest gradle/build tools 2018-11-20 21:12:59 -08:00
pluginHandlers.js refactor (eslint): use cordova-eslint (#910) 2020-01-31 22:02:48 +09:00
prepare.js chore(eslint): bump package & apply eslint fix (#955) 2020-04-15 12:36:40 +09:00
retry.js fix: test failure with shebang interpreter in rewired files (#939) 2020-04-01 12:04:35 +09:00
run.js fix: test failure with shebang interpreter in rewired files (#939) 2020-04-01 12:04:35 +09:00
start-emulator CB-14158: Refactor emulator to remove Q 2018-07-03 11:19:17 +09:00
start-emulator.bat CB-12453: Remove unnecessary double quotes from .bat files which are the causes of crash if project path contains spaces 2017-07-28 14:23:53 +03:00
utils.js refactor (eslint): use cordova-eslint (#910) 2020-01-31 22:02:48 +09:00