mirror of
https://github.com/barkeser2002/BarisKeser-ByeDPI.git
synced 2026-09-25 01:39:51 +03:00
Google Play requires apps to target API 36 to keep publishing updates. - compileSdk/targetSdk 35 -> 36 - AGP 8.6.1 -> 8.9.1, Gradle 8.7 -> 8.11.1, Kotlin 1.9.22 -> 1.9.25 (minimum toolchain that supports compileSdk 36) - Pin ndkVersion 27.2.12479018 (r27c) so both native build systems align shared libraries to 16 KB pages by default; add explicit -Wl,-z,max-page-size=16384 to CMake and ndk-build as insurance - CI: install platforms;android-36, build-tools;36.0.0, ndk r27, cmake 3.22.1 - Edge-to-edge: windowOptOutEdgeToEdgeEnforcement is ignored on API 36, so add fitsSystemWindows to the main/settings roots to keep content clear of the status and navigation bars
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: Build APK
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout with submodules
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: '17'
|
|
|
|
- name: Set up Android SDK
|
|
uses: android-actions/setup-android@v3
|
|
|
|
- name: Install NDK r27, CMake and SDK 36
|
|
run: |
|
|
yes | sdkmanager --licenses >/dev/null 2>&1 || true
|
|
sdkmanager "platforms;android-36" "build-tools;36.0.0" "ndk;27.2.12479018" "cmake;3.22.1"
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x ./gradlew
|
|
|
|
- name: Build debug APK
|
|
run: ./gradlew assembleDebug --stacktrace
|
|
|
|
- name: Upload APK
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: byedpi-debug-apk
|
|
path: app/build/outputs/apk/debug/*.apk
|