From 1e709e1aa9dd0d11733a55b3407f001b0599256c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B6=E5=BC=80=E6=9D=B0?= Date: Sat, 17 Feb 2024 16:26:48 +0800 Subject: [PATCH] Compatible with AGP-8.0+ --- android/build.gradle | 9 +++++++++ .../kotlin/com/jarvan/fluwx/handlers/WXAPiHandler.kt | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 690fd734..ae0c34ae 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -32,6 +32,15 @@ android { namespace "com.jarvan.fluwx" compileSdk 31 + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + sourceSets { main.java.srcDirs += ['src/main/kotlin', "${buildDir}/generated/src/kotlin"] test.java.srcDirs += 'src/test/kotlin' diff --git a/android/src/main/kotlin/com/jarvan/fluwx/handlers/WXAPiHandler.kt b/android/src/main/kotlin/com/jarvan/fluwx/handlers/WXAPiHandler.kt index 5e4969de..700e29bd 100644 --- a/android/src/main/kotlin/com/jarvan/fluwx/handlers/WXAPiHandler.kt +++ b/android/src/main/kotlin/com/jarvan/fluwx/handlers/WXAPiHandler.kt @@ -21,7 +21,6 @@ package com.jarvan.fluwx.handlers import android.content.Context import android.content.pm.PackageManager import android.util.Log -import com.jarvan.fluwx.BuildConfig import com.jarvan.fluwx.FluwxPlugin import com.tencent.mm.opensdk.constants.Build import com.tencent.mm.opensdk.openapi.IWXAPI