Skip to content

Commit 9db7b2b

Browse files
committed
chore: upgrade Qt to 6.10.0
1 parent adb25f2 commit 9db7b2b

8 files changed

Lines changed: 20 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ on:
1313
- crowdin
1414

1515
env:
16-
QT_VERSION: 6.9.1
16+
QT_VERSION: 6.10.0
1717
QT_MODULES: qtmultimedia qtimageformats qtnetworkauth qtshadertools
1818
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}
1919
IS_NIGHTLY: ${{ !startsWith(github.ref, 'refs/tags/v') }}
2020
CMAKE_BUILD_PARALLEL_LEVEL: 2
2121
QSCINTILLA_VERSION: 2.14.1
2222
QSCINTILLA_DIR: QScintilla_src-2.14.1
23-
ANDROID_NDK_VERSION: 25.1.8937393
23+
ANDROID_NDK_VERSION: 27.2.12479018
2424

2525
jobs:
2626
# Gatekeeper job to skip build for Crowdin PRs
@@ -370,7 +370,7 @@ jobs:
370370
env:
371371
GRABBER_VERSION: ${{ needs.version.outputs.version }}
372372
GRABBER_IS_NIGHTLY: ${{ needs.version.outputs.nightly }}
373-
MYSQL_DRIVER_URL: https://github.com/thecodemonkey86/qt_mysql_driver/releases/download/qmysql_6.9.1/qsqlmysql.dll_Qt_SQL_driver_6.9.1_MSVC2022_64-bit.zip
373+
MYSQL_DRIVER_URL: https://github.com/thecodemonkey86/qt_mysql_driver/releases/download/qmysql_6.10.0/qsqlmysql.dll_Qt_SQL_driver_6.10.0_MSVC2022_64-bit.zip
374374
OPENSSL_ROOT_DIR: ${{ github.workspace }}\vendor\OpenSSL
375375
MYSQL_DRIVER_DIR: ${{ github.workspace }}\vendor\MySQL_driver
376376
VCINSTALLDIR: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC

scripts/package-appimage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ popd
1414

1515
# See https://github.com/probonopd/linuxdeployqt
1616
export VERSION=$GRABBER_VERSION
17-
./vendor/linuxdeployqt.AppImage "$APP_DIR/usr/share/applications/org.bionus.Grabber.desktop" -appimage -extra-plugins=platforms/libqoffscreen.so -updateinformation="gh-releases-zsync|Bionus|imgbrd-grabber|latest|Grabber_*-x86_64.AppImage.zsync"
17+
./vendor/linuxdeployqt.AppImage "$APP_DIR/usr/share/applications/org.bionus.Grabber.desktop" -appimage -extra-plugins=platforms/libqoffscreen.so -exclude-libs=libclntsh -updateinformation="gh-releases-zsync|Bionus|imgbrd-grabber|latest|Grabber_*-x86_64.AppImage.zsync"
1818
mv "Grabber-$VERSION-x86_64.AppImage" "Grabber_$VERSION-x86_64.AppImage"
1919
mv "Grabber-$VERSION-x86_64.AppImage.zsync" "Grabber_$VERSION-x86_64.AppImage.zsync"
2020

src/dist/android/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
android:hardwareAccelerated="true"
2424
android:label="Grabber"
2525
android:requestLegacyExternalStorage="true"
26-
android:allowNativeHeapPointerTagging="false"
2726
android:allowBackup="true"
2827
android:fullBackupOnly="false"
2928
android:icon="@mipmap/ic_launcher"

src/dist/android/build.gradle

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:7.4.1'
8+
//noinspection AndroidGradlePluginVersion
9+
classpath 'com.android.tools.build:gradle:8.10.1'
910
}
1011
}
1112

@@ -14,11 +15,12 @@ repositories {
1415
mavenCentral()
1516
}
1617

17-
apply plugin: 'com.android.application'
18+
apply plugin: qtGradlePluginType
1819

1920
dependencies {
2021
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
21-
implementation 'androidx.core:core:1.10.1'
22+
//noinspection GradleDependency
23+
implementation 'androidx.core:core:1.16.0'
2224
}
2325

2426
android {
@@ -29,15 +31,17 @@ android {
2931
* - qtAndroidDir - holds the path to qt android files
3032
* needed to build any Qt application
3133
* on Android.
34+
* - qtGradlePluginType - whether to build an app or a library
3235
*
3336
* are defined in gradle.properties file. This file is
3437
* updated by QtCreator and androiddeployqt tools.
3538
* Changing them manually might break the compilation!
3639
*******************************************************/
3740

38-
compileSdkVersion 33
41+
namespace = androidPackageName
42+
compileSdkVersion androidCompileSdkVersion
3943
buildToolsVersion androidBuildToolsVersion
40-
ndkVersion androidNdkVersion
44+
ndkVersion = androidNdkVersion
4145

4246
// Extract native libraries from the APK
4347
packagingOptions.jniLibs.useLegacyPackaging true
@@ -57,6 +61,7 @@ android {
5761

5862
tasks.withType(JavaCompile) {
5963
options.incremental = true
64+
options.compilerArgs += ['-Xlint:all']
6065
}
6166

6267
compileOptions {
@@ -65,7 +70,7 @@ android {
6570
}
6671

6772
lintOptions {
68-
abortOnError false
73+
abortOnError = false
6974
}
7075

7176
// Do not compress Qt binary resources file

src/gui-qml/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ set(QT_LIBRARIES Qt6::Core Qt6::Quick Qt6::Multimedia Qt6::Network Qt6::Sql)
99

1010
# Android specials
1111
if(ANDROID)
12+
find_package(Qt6 COMPONENTS Core CorePrivate REQUIRED)
1213
set(QT_LIBRARIES ${QT_LIBRARIES} Qt6::CorePrivate)
1314
endif()
1415

src/gui/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ endif()
4646

4747
# Android specials
4848
if(ANDROID)
49+
find_package(Qt6 COMPONENTS Core CorePrivate REQUIRED)
4950
set(QT_LIBRARIES ${QT_LIBRARIES} Qt6::CorePrivate)
5051
endif()
5152

src/lib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ endif()
1515

1616
# Android specials
1717
if(ANDROID)
18+
find_package(Qt6 COMPONENTS Core CorePrivate REQUIRED)
1819
set(QT_LIBRARIES ${QT_LIBRARIES} Qt6::CorePrivate)
1920
endif()
2021

src/lib/tests/src/functions-test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,8 @@ TEST_CASE("Functions")
570570
REQUIRE(getKeySequence(settings, "not-found", QKeySequence::Open, Qt::Key_D).toString() == QString("Ctrl+O"));
571571

572572
#ifndef Q_OS_MAC
573-
// On macOS, QKeySequence::Preferences is defined, so it would return "Ctrl+," rather than "D"
574-
REQUIRE(getKeySequence(settings, "not-found", QKeySequence::Preferences, Qt::Key_D).toString() == QString("D"));
573+
// QKeySequence::SelectStartOfBlock is only defined on macOS (see src/gui/kernel/qplatformtheme.cpp)
574+
REQUIRE(getKeySequence(settings, "not-found", QKeySequence::SelectStartOfBlock, Qt::Key_D).toString() == QString("D"));
575575
#endif
576576
}
577577

0 commit comments

Comments
 (0)