Skip to content

Commit 6b3e949

Browse files
authored
Update android.yml
1 parent 397a5ba commit 6b3e949

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/android.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,31 @@ jobs:
1919
distribution: temurin
2020
java-version: 17
2121

22+
# ✅ Install Android SDK
23+
- name: Install Android SDK
24+
uses: android-actions/setup-android@v3
25+
26+
# ✅ Install required SDK packages for compileSdk 34
27+
- name: Install required SDK components
28+
run: |
29+
sdkmanager "platforms;android-34" "build-tools;34.0.0"
30+
2231
- name: Make gradlew executable
2332
run: chmod +x gradlew
2433

25-
- name: Build Debug + Release APKs
26-
run: ./gradlew assembleDebug assembleRelease
34+
# ✅ Build Debug + Release with logs
35+
- name: Build APKs
36+
run: ./gradlew assembleDebug assembleRelease --stacktrace --info
2737

38+
# Upload Debug APK
2839
- name: Upload Debug APK
2940
uses: actions/upload-artifact@v4
3041
with:
3142
name: DisableFlagSecure-debug
3243
path: app/build/outputs/apk/debug/*.apk
3344
if-no-files-found: error
3445

46+
# Upload Release APK
3547
- name: Upload Release APK
3648
uses: actions/upload-artifact@v4
3749
with:

0 commit comments

Comments
 (0)