Skip to content

Commit 6faebe7

Browse files
committed
Chore : debugging
1 parent 6cc10eb commit 6faebe7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

dist/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -3283,8 +3283,6 @@ function setupAndroid(version) {
32833283
core.addPath('$ANDROID_HOME/tools');
32843284
core.addPath('$ANDROID_HOME/tools/bin');
32853285
core.addPath('$ANDROID_HOME/platform-tools');
3286-
yield exec.exec(`bash -c "echo $PATH" `);
3287-
yield exec.exec(`bash -c "echo $ANDROID_HOME" `);
32883286
console.log('=== installing android SDK ===');
32893287
// await io.mkdirP(`${homeDirectory}/.android`);
32903288
// await exec.exec(`bash -c "sudo echo '### User Sources for Android SDK Manager' | sudo tee -a ${homeDirectory}/.android/repositories.cfg"`);

src/setup.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export async function setupAndroid(version: string): Promise<void>{
5151

5252
//download android sdk
5353
await io.mkdirP(`${homeDirectory}/android/sdk`);
54-
5554
core.exportVariable('ANDROID_HOME',`${homeDirectory}/android/sdk`);
5655
core.exportVariable('SDK_VERSION','sdk-tools-linux-4333796.zip');
5756
core.exportVariable('ADB_INSTALL_TIMEOUT','120');
@@ -66,17 +65,18 @@ export async function setupAndroid(version: string): Promise<void>{
6665
core.addPath('$ANDROID_HOME/tools/bin');
6766
core.addPath('$ANDROID_HOME/platform-tools');
6867

69-
await exec.exec(`bash -c "echo $PATH" `);
70-
await exec.exec(`bash -c "echo $ANDROID_HOME" `);
7168

7269
console.log('=== installing android SDK ===');
7370

7471
// await io.mkdirP(`${homeDirectory}/.android`);
7572
// await exec.exec(`bash -c "sudo echo '### User Sources for Android SDK Manager' | sudo tee -a ${homeDirectory}/.android/repositories.cfg"`);
73+
7674
await exec.exec(`bash -c "mkdir ~/.android && echo '### User Sources for Android SDK Manager' > ~/.android/repositories.cfg"`);
7775
await exec.exec(`bash -c "sudo ln -s $ANDROID_HOME/tools/bin/sdkmanager /usr/lib/sdkmanager"`);
7876
await exec.exec(`bash -c "yes | sudo sdkmanager --list"`);
7977
await exec.exec(`bash -c "yes | sudo sdkmanager --licenses"`);
78+
79+
8080
// await exec.exec(`sudo chown -R ${user}:${user} ${homeDirectory}/android`);
8181
// await exec.exec(`sudo chown -R ${user}:${user} ${homeDirectory}/.android`);
8282
// await exec.exec(`bash -c " ls -la ${homeDirectory}/android/sdk/tools/"`);

0 commit comments

Comments
 (0)