From: Alexander Abraham <a.abraham@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Alexander Abraham <a.abraham@proxmox.com>
Subject: [pve-devel] [PATCH pve_flutter_frontend] Updated Gradle version and some build dependencies.
Date: Thu, 20 Feb 2025 15:37:45 +0100 [thread overview]
Message-ID: <20250220143745.135908-1-a.abraham@proxmox.com> (raw)
The Flutter frontend of PVE was not compilable for Android
with the versions of different tools set in the project files.
The versions of the tools causing this problem was updated
and the app compiles for Android.
Signed-off-by: Alexander Abraham <a.abraham@proxmox.com>
---
android/app/build.gradle | 10 +++++++++-
android/gradle/wrapper/gradle-wrapper.properties | 2 +-
android/settings.gradle | 4 ++--
3 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 4f827a5..59c318d 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -45,6 +45,7 @@ def keystoreSecret = System.getenv('PROXMOX_APP_KEYSTORE_SECRET')
android {
compileSdkVersion 34
+ namespace = "com.proxmox.app.pve_flutter_frontend"
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
@@ -52,7 +53,7 @@ android {
defaultConfig {
- applicationId "com.proxmox.app.pve_flutter_frontend"
+ applicationId namespace
minSdkVersion 23
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
@@ -74,9 +75,16 @@ android {
signingConfig signingConfigs.release
}
}
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_17
+ targetCompatibility JavaVersion.VERSION_17
+ }
lint {
disable 'InvalidPackage'
}
+ kotlinOptions{
+ jvmTarget = '17'
+ }
}
flutter {
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index 0732d12..90d1364 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
#Mon Apr 24 14:18:06 CEST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/android/settings.gradle b/android/settings.gradle
index 4fc86fd..1da49ad 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 "7.4.2" apply false
- id "org.jetbrains.kotlin.android" version "1.7.20" apply false
+ id "com.android.application" version "8.7.0" apply false
+ id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}
include ':app'
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next reply other threads:[~2025-02-20 14:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 14:37 Alexander Abraham [this message]
2025-02-21 14:45 ` Shannon Sterz
2025-03-03 9:38 ` Alexander Abraham
2025-03-03 9:50 ` Thomas Lamprecht
2025-03-03 12:42 ` Alexander Abraham
2025-03-03 9:28 ` [pve-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250220143745.135908-1-a.abraham@proxmox.com \
--to=a.abraham@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal