From 3755a07c253c78f35904a674df4d252825539fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Wed, 29 Apr 2026 22:21:09 +0300 Subject: [PATCH] feat: initialize Android build configuration with custom Gradle settings and Flutter integration --- android/app/build.gradle.kts | 12 +++++++++--- android/build.gradle.kts | 23 +++++++++++++---------- android/gradle.properties | Bin 192 -> 163 bytes 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 688faab..8fbbeb5 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -11,12 +11,12 @@ android { ndkVersion = flutter.ndkVersion compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { - jvmTarget = "17" + jvmTarget = "1.8" } @@ -26,6 +26,12 @@ android { + + + + + + defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "com.truncgil.fastwatcher" diff --git a/android/build.gradle.kts b/android/build.gradle.kts index 7494516..1bf24c7 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -12,18 +12,21 @@ val newBuildDir: Directory = rootProject.layout.buildDirectory.value(newBuildDir) subprojects { - val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name) - project.layout.buildDirectory.value(newSubprojectBuildDir) -} + val rootPath = rootProject.projectDir.absolutePath + if (project.projectDir.absolutePath.startsWith(rootPath.substring(0, 3))) { + val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name) + project.layout.buildDirectory.value(newSubprojectBuildDir) + } -subprojects { - project.evaluationDependsOn(":app") -} + // Java ve Kotlin'i 1.8'e zorla + tasks.withType().configureEach { + sourceCompatibility = "1.8" + targetCompatibility = "1.8" + } -subprojects { - plugins.withId("org.jetbrains.kotlin.android") { - configure { - jvmToolchain(17) + tasks.withType().configureEach { + compilerOptions { + jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8) } } } diff --git a/android/gradle.properties b/android/gradle.properties index 0fcfafccf43c8f7492b02d585fe76e83d222d57c..23bd6e3421e2703cbd468336de181bd90ac2f9ed 100644 GIT binary patch delta 36 rcmX@WxR`N5!NfvIDX#4NlAO#uz0ADiqSV~fypqHm+qA@-;#4jG_eu>& delta 66 zcmZ3?cz|(20VD6k0!cGou55;Uh7yJxhD?S$20bvD%uvLT%8(1hc|e&&pqwp38kjBy Kit#dVF#rGqi4BVY