From ac664b6b0fec938e059107ead90cba4d83e14880 Mon Sep 17 00:00:00 2001 From: Nguyen Quang Minh Date: Fri, 6 Dec 2024 11:17:49 +0700 Subject: [PATCH] chore: enableFeaturePreview --- app/build.gradle.kts | 2 +- settings.gradle.kts | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 0633de73..bb12430a 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -100,7 +100,7 @@ dependencies { implementation(libs.play.services.ads) - implementation(project(":compose-cardstack")) + implementation(projects.composeCardstack) implementation(libs.lottie.compose) // Compose diff --git a/settings.gradle.kts b/settings.gradle.kts index 43d0f96f..7f7f2285 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -21,6 +21,16 @@ dependencyResolutionManagement { } rootProject.name = "QuickMem" + +enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") include(":app") include(":compose-cardstack") + +check(JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) { + """ + Quickmem requires JDK 17+ but it is currently using JDK ${JavaVersion.current()}. + Java Home: [${System.getProperty("java.home")}] + https://developer.android.com/build/jdks#jdk-config-in-studio + """.trimIndent() +} \ No newline at end of file