Skip to content

Commit

Permalink
Android: bump Android target API level to 34
Browse files Browse the repository at this point in the history
Bumped on network related .gradle files too.

Fixes: QTBUG-119145
Change-Id: I95f70e6cda1aad7a6bd7246c623eb6f143a829cb
Reviewed-by: Assam Boudjelthia <[email protected]>
  • Loading branch information
Rami Potinkara committed Nov 30, 2023
1 parent 321718a commit 7b84cd6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion mkspecs/android-clang/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ isEmpty(ALL_ANDROID_ABIS): ALL_ANDROID_ABIS = arm64-v8a armeabi-v7a x86_64 x86
CONFIG += $$ANDROID_PLATFORM

ANDROID_MIN_SDK_VERSION = $$replace(ANDROID_PLATFORM, "android-", "")
ANDROID_TARGET_SDK_VERSION = 33
ANDROID_TARGET_SDK_VERSION = 34

NDK_LLVM_PATH = $$NDK_ROOT/toolchains/llvm/prebuilt/$$NDK_HOST
QMAKE_CC = $$NDK_LLVM_PATH/bin/clang
Expand Down
2 changes: 1 addition & 1 deletion qmake/doc/src/qmake-manual.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@
\note This variable applies only to Android targets.

Specifies the target Android API level for the project. By default, this
variable is set to API level 33.
variable is set to API level 34.

\section1 ANDROID_VERSION_CODE

Expand Down
2 changes: 1 addition & 1 deletion src/android/jar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repositories {
}

android {
compileSdk 33
compileSdk 34
namespace "org.qtproject.qt.android"

defaultConfig {
Expand Down
6 changes: 2 additions & 4 deletions src/network/android/jar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath 'com.android.tools.build:gradle:8.0.2'
}
}

Expand All @@ -23,12 +23,10 @@ repositories {
}

android {
compileSdkVersion 33
buildToolsVersion "33.0.3"
compileSdk 34

defaultConfig {
minSdkVersion 23
targetSdkVersion 33
}

sourceSets {
Expand Down
6 changes: 2 additions & 4 deletions src/plugins/networkinformation/android/jar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath 'com.android.tools.build:gradle:8.0.2'
}
}

Expand All @@ -23,12 +23,10 @@ repositories {
}

android {
compileSdkVersion 33
buildToolsVersion "33.0.3"
compileSdk 34

defaultConfig {
minSdkVersion 23
targetSdkVersion 33
}

sourceSets {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/androiddeployqt/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ struct Options
QString versionName;
QString versionCode;
QByteArray minSdkVersion{"23"};
QByteArray targetSdkVersion{"33"};
QByteArray targetSdkVersion{"34"};

// lib c++ path
QString stdCppPath;
Expand Down

0 comments on commit 7b84cd6

Please sign in to comment.