Skip to content

Commit b8349bd

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

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

.github/workflows/android.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,22 @@ 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"
22+
# FIX → generate Gradle wrapper compatible with Android
23+
- name: Generate Gradle Wrapper (Gradle 8.7)
24+
uses: gradle/gradle-build-action@v2
25+
with:
26+
gradle-version: 8.7
27+
arguments: wrapper
3028

3129
- name: Make gradlew executable
3230
run: chmod +x gradlew
3331

34-
# ✅ Build Debug + Release with logs
35-
- name: Build APKs
36-
run: ./gradlew assembleDebug assembleRelease --stacktrace --info
32+
- name: Build Debug APK
33+
run: ./gradlew assembleDebug
3734

38-
# Upload Debug APK
39-
- name: Upload Debug APK
35+
- name: Upload APK
4036
uses: actions/upload-artifact@v4
4137
with:
42-
name: DisableFlagSecure-debug
38+
name: DISABLE_FLAG_SECURE-next.apk
4339
path: app/build/outputs/apk/debug/*.apk
44-
if-no-files-found: error
45-
46-
# Upload Release APK
47-
- name: Upload Release APK
48-
uses: actions/upload-artifact@v4
49-
with:
50-
name: DisableFlagSecure-release
51-
path: app/build/outputs/apk/release/*.apk
52-
if-no-files-found: error
40+
if-no-files-found: warn

0 commit comments

Comments
 (0)