Skip to content

Commit

Permalink
Android: bump default javac build versions to 8
Browse files Browse the repository at this point in the history
Use -source 8 and -target 8 for javac by default.

Task-number: QTBUG-86282
Change-Id: I291beab4df166468972138822ca26f01c9666985
Reviewed-by: Alexandru Croitor <[email protected]>
Reviewed-by: Andy Shaw <[email protected]>
  • Loading branch information
Issam-b committed Sep 16, 2020
1 parent 675805e commit 581ac9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config_help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ Build environment:
[$ANDROID_NDK_HOST]
-android-abis ....... Comma separated Android abis, default is:
armeabi-v7a,arm64-v8a,x86,x86_64
-android-javac-target Set the javac build target version [7]
-android-javac-source Set the javac build source version [7]
-android-javac-target Set the javac build target version [8]
-android-javac-source Set the javac build source version [8]
-android-style-assets Automatically extract style assets from the device at
run time. This option makes the Android style behave
correctly, but also makes the Android platform plugin
Expand Down
4 changes: 2 additions & 2 deletions mkspecs/features/java.prf
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ javac.CONFIG += combine

# Check for user defined javac build version
javac_target_version = $$ANDROID_JAVAC_TARGET_VERSION
isEmpty(javac_target_version): javac_target_version = 7
isEmpty(javac_target_version): javac_target_version = 8

javac_source_version = $$ANDROID_JAVAC_SOURCE_VERSION
isEmpty(javac_source_version): javac_source_version = 7
isEmpty(javac_source_version): javac_source_version = 8

javac.commands = javac -source $$javac_source_version -target $$javac_target_version -Xlint:unchecked -bootclasspath $$ANDROID_JAR_FILE -cp $$shell_quote($$system_path($$join(JAVACLASSPATH, $$DIRLIST_SEPARATOR))) -d $$shell_quote($$CLASS_DIR) ${QMAKE_FILE_IN}

Expand Down

0 comments on commit 581ac9a

Please sign in to comment.