From 4fcb689e550194bfd348a8f79d88bd293a55d071 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Tue, 23 Mar 2021 07:10:56 +0800 Subject: [PATCH] Use Java 11 (#398) --- build.gradle.kts | 8 ++++---- core/build.gradle.kts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 92276cae..99625ac2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,8 +26,8 @@ buildscript { maven("https://storage.googleapis.com/r8-releases/raw") } dependencies { - classpath("com.android.tools:r8:3.0.27-dev") - classpath("com.android.tools.build:gradle:7.0.0-alpha10") + classpath("com.android.tools:r8:3.0.28-dev") + classpath("com.android.tools.build:gradle:7.0.0-alpha11") classpath("org.eclipse.jgit:org.eclipse.jgit:5.10.0.202012080955-r") classpath(kotlin("gradle-plugin", version = "1.4.31")) } @@ -45,8 +45,8 @@ val androidMinSdkVersion by extra(27) val androidBuildToolsVersion by extra("30.0.3") val androidCompileSdkVersion by extra(30) val androidCompileNdkVersion by extra("22.0.7026061") -val androidSourceCompatibility by extra(JavaVersion.VERSION_1_8) -val androidTargetCompatibility by extra(JavaVersion.VERSION_1_8) +val androidSourceCompatibility by extra(JavaVersion.VERSION_11) +val androidTargetCompatibility by extra(JavaVersion.VERSION_11) val apiCode by extra(93) val zipPathMagiskReleasePath by extra(project(":core").projectDir.path + "/build/tmp/release/magisk/") diff --git a/core/build.gradle.kts b/core/build.gradle.kts index ee819989..c6be5611 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -65,7 +65,7 @@ val verName: String by rootProject.extra dependencies { implementation("dev.rikka.ndk:riru:${moduleMinRiruVersionName}") implementation(files("libs/dobby_prefab.aar")) - implementation("com.android.tools.build:apksig:4.1.2") + implementation("com.android.tools.build:apksig:4.1.3") compileOnly(project(":hiddenapi-stubs")) compileOnly("androidx.annotation:annotation:1.1.0") implementation(project(":interface"))