From 32a77ac13ffd170296f70aa3c78b86236fbfdf22 Mon Sep 17 00:00:00 2001 From: "Mateus Felipe C. C. Pinto" Date: Thu, 29 Aug 2024 10:48:14 -0300 Subject: [PATCH] Add `compileOptions` to solve #43 Signed-off-by: Mateus Felipe C. C. Pinto --- update_available_android/android/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update_available_android/android/build.gradle b/update_available_android/android/build.gradle index 1c6898a..c164cce 100644 --- a/update_available_android/android/build.gradle +++ b/update_available_android/android/build.gradle @@ -27,6 +27,11 @@ apply plugin: 'kotlin-android' android { compileSdkVersion 34 + compileOptions { + sourceCompatibility = 17 + targetCompatibility = 17 + } + // Conditional for compatibility with AGP <4.2. if (project.android.hasProperty("namespace")) { namespace 'me.mateusfccp.update_available_android'