From b6197b599215bcf94aab6236c0cd1dc2f1777bbb Mon Sep 17 00:00:00 2001 From: johan12345 Date: Sun, 12 May 2024 16:58:34 +0200 Subject: [PATCH] update SDK --- .github/workflows/screenshots.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml index b9c4d15a4..28ef785c1 100644 --- a/.github/workflows/screenshots.yml +++ b/.github/workflows/screenshots.yml @@ -17,7 +17,7 @@ jobs: api-level: 34 display_size: 1080x2336 # subtracted the 64px bottom navigation bar type: phone - - profile: Pixel Tablet + - profile: pixel_tablet api-level: 34 display_size: 2560x1488 # subtracted the 64px navigation bar and 48px status bar type: tenInch @@ -38,6 +38,22 @@ jobs: mkdir ~/.config/.android echo $DEBUG_KEYSTORE_BASE64 | base64 --decode > ~/.config/.android/debug.keystore + - name: Set up Java environment + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: 'zulu' + cache: 'gradle' + + - name: Setup Android SDK + run: | + $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "cmdline-tools;latest" + rm -r $ANDROID_HOME/cmdline-tools/latest + mv $ANDROID_HOME/cmdline-tools/latest-2 $ANDROID_HOME/cmdline-tools/latest + $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --version + $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd --force -n test --abi 'google_atd/x86_64' --package 'system-images;android-34;google_atd;x86_64' --device 'pixel_tablet' + ls ~/.android/avd + - name: AVD cache uses: actions/cache@v3 id: avd-cache @@ -62,13 +78,6 @@ jobs: disable-animations: true script: echo "Generated AVD snapshot for caching." - - name: Set up Java environment - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: 'zulu' - cache: 'gradle' - - name: Build app run: ./gradlew assembleGoogleNormalDebug assembleGoogleNormalAndroidTest env: