Examples: Android: update to AGP 9.2.0 to support Gradle 9.6.0.

This commit is contained in:
ocornut 2026-07-02 14:26:46 +02:00
parent e9ea19086b
commit 6824e2c2e4
4 changed files with 8 additions and 10 deletions

View File

@ -654,10 +654,10 @@ jobs:
name: Build - Android name: Build - Android
steps: steps:
- name: Setup Gradle #- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6 # uses: gradle/actions/setup-gradle@v6
with: # with:
gradle-version: '8.14.5' # gradle-version: '8.14.5'
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- name: Build example_android_opengl3 - name: Build example_android_opengl3

View File

@ -140,10 +140,12 @@ Other Changes:
when available, fixing OpenGL DPI scaling issues as e.g. NVIDIA drivers tends when available, fixing OpenGL DPI scaling issues as e.g. NVIDIA drivers tends
to spawn multiple-thread to manage OpenGL. (#9403) to spawn multiple-thread to manage OpenGL. (#9403)
- Examples: - Examples:
- Android: update to AGP 9.2.0 to support Gradle 9.6.0.
- SDL2/SDL3: use `SDL_GetWindowSizeInPixels()` to create frame-buffers. Fixes issues - SDL2/SDL3: use `SDL_GetWindowSizeInPixels()` to create frame-buffers. Fixes issues
with non-fractional framebuffer size on Wayland. (#8761, #9124) [@billtran1632001] with non-fractional framebuffer size on Wayland. (#8761, #9124) [@billtran1632001]
- SDL3+Metal4: added new example. (#9458, #9451) [@AmelieHeinrich] - SDL3+Metal4: added new example. (#9458, #9451) [@AmelieHeinrich]
----------------------------------------------------------------------- -----------------------------------------------------------------------
VERSION 1.92.8 (Released 2026-05-12) VERSION 1.92.8 (Released 2026-05-12)
----------------------------------------------------------------------- -----------------------------------------------------------------------

View File

@ -1,6 +1,5 @@
plugins { plugins {
alias(libs.plugins.android.application) alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
} }
android { android {
@ -25,9 +24,6 @@ android {
sourceCompatibility JavaVersion.VERSION_11 sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11
} }
kotlinOptions {
jvmTarget = '11'
}
externalNativeBuild { externalNativeBuild {
cmake { cmake {
path file('../../CMakeLists.txt') path file('../../CMakeLists.txt')

View File

@ -1,6 +1,6 @@
[versions] [versions]
agp = "8.12.0" agp = "9.2.0"
kotlin = "2.0.21" kotlin = "2.3.21"
[plugins] [plugins]
android-application = { id = "com.android.application", version.ref = "agp" } android-application = { id = "com.android.application", version.ref = "agp" }