From ce510f34bd8861306fa28f20ef153320b6f9c8a8 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Sat, 3 Oct 2026 14:45:49 +0200 Subject: [PATCH] Bump gradle versions and config --- android/app/build.gradle | 15 ++++++++----- android/gradle.properties | 22 ++++++++++++++++--- .../gradle/wrapper/gradle-wrapper.properties | 2 +- android/settings.gradle | 4 ++-- macos/Runner.xcodeproj/project.pbxproj | 6 ++--- 5 files changed, 35 insertions(+), 14 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index db37fc7a0..d99bb142c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,6 +1,5 @@ plugins { id "com.android.application" - id "kotlin-android" id "dev.flutter.flutter-gradle-plugin" } @@ -27,15 +26,15 @@ android { compileSdkMinor = 0 ndkVersion "28.2.13676358" + buildFeatures { + resValues = true + } + compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } - kotlinOptions { - jvmTarget = '11' - } - defaultConfig { // Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). @@ -72,6 +71,12 @@ android { } } +kotlin { + compilerOptions { + jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11 + } +} + flutter { source '../..' } diff --git a/android/gradle.properties b/android/gradle.properties index efd388da4..25bc9fc38 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,7 +1,23 @@ +# +# This file is part of wger Workout Manager . +# Copyright (c) 2026 wger Team +# +# wger Workout Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# + org.gradle.jvmargs=-Xmx4096M android.useAndroidX=true android.enableJetifier=false -# This builtInKotlin flag was added automatically by Flutter migrator -android.builtInKotlin=false -# This newDsl flag was added automatically by Flutter migrator +android.builtInKotlin=true android.newDsl=false diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 472e5d511..9a58b3ac4 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-all.zip \ No newline at end of file diff --git a/android/settings.gradle b/android/settings.gradle index d7f1a0449..c51989f1a 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -18,8 +18,8 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.13.1" apply false - id "org.jetbrains.kotlin.android" version "2.2.21" apply false + id "com.android.application" version "9.2.1" apply false + id "org.jetbrains.kotlin.android" version "2.3.20" apply false } include ":app" diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index 156baf450..2dc8739b8 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -347,7 +347,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -426,7 +426,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -473,7 +473,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule;