@24i/smartapps-bigscreen-rnv-build-engine 0.17.2-alpha.2158 → 0.17.2-alpha.2159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -88,6 +88,7 @@ const handleAndroidTVSdk = async (c) => {
|
|
|
88
88
|
const installPath = `${os.homedir()}/Android`;
|
|
89
89
|
const rnvSdkKey = 'ANDROID_SDK';
|
|
90
90
|
const sdkName = 'android';
|
|
91
|
+
const sdksToInstall = '"build-tools;30.0.2" "emulator" "patcher;v4" "platform-tools" "platforms;android-30"';
|
|
91
92
|
const isInstalledSDK = ANDROID_SDK ? fs.existsSync(ANDROID_SDK) : false;
|
|
92
93
|
if (!isInstalledSDK) {
|
|
93
94
|
if (fs.existsSync(installPath)) {
|
|
@@ -105,6 +106,11 @@ const handleAndroidTVSdk = async (c) => {
|
|
|
105
106
|
(0, services_1.unzip)(downloadedFilePath, unzippedDirPath);
|
|
106
107
|
fs.mkdirSync(`${installPath}/cmdline-tools/latest`, { recursive: true });
|
|
107
108
|
(0, child_process_1.execSync)(`cp -r ${unzippedDirPath}/cmdline-tools/. ${installPath}/cmdline-tools/latest`);
|
|
109
|
+
rnv_1.Logger.logInfo(`Installing...`);
|
|
110
|
+
rnv_1.Logger.logDebug(`Accepting licenses`);
|
|
111
|
+
(0, child_process_1.execSync)(`yes | ${installPath}/cmdline-tools/latest/bin/sdkmanager --licenses`);
|
|
112
|
+
rnv_1.Logger.logDebug(`Installing SDKs ${sdksToInstall}`);
|
|
113
|
+
(0, child_process_1.execSync)(`${installPath}/cmdline-tools/latest/bin/sdkmanager ${sdksToInstall}`);
|
|
108
114
|
}
|
|
109
115
|
}
|
|
110
116
|
};
|
package/package.json
CHANGED