From f93311b36e75751dff61f13038f7e11072e42503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Wed, 10 Jun 2026 12:49:42 +0200 Subject: [PATCH 1/3] Do not set explicit kotlin version --- android/build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 48ed3ad775..4a3833e6be 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -20,9 +20,11 @@ buildscript { mavenCentral() } dependencies { - classpath('com.android.tools.build:gradle:8.2.1') - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', rnsDefaultKotlinVersion)}" - classpath "com.diffplug.spotless:spotless-plugin-gradle:6.25.0" + if (project == rootProject) { + classpath('com.android.tools.build:gradle:8.2.1') + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', rnsDefaultKotlinVersion)}" + classpath "com.diffplug.spotless:spotless-plugin-gradle:6.25.0" + } } } From 078e9a2fd4227423b8b948a576adb6ac38f53e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bert?= <63123542+m-bert@users.noreply.github.com> Date: Wed, 10 Jun 2026 13:08:25 +0200 Subject: [PATCH 2/3] Use existing function Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 4a3833e6be..6f227d60cd 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -20,7 +20,7 @@ buildscript { mavenCentral() } dependencies { - if (project == rootProject) { + if (isRunningInContextOfScreensRepo()) { classpath('com.android.tools.build:gradle:8.2.1') classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', rnsDefaultKotlinVersion)}" classpath "com.diffplug.spotless:spotless-plugin-gradle:6.25.0" From 3060f0514f7c32a067ddc9fce9c20b0f7e80e74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Wed, 10 Jun 2026 13:16:44 +0200 Subject: [PATCH 3/3] Revert "Use existing function" This reverts commit 078e9a2fd4227423b8b948a576adb6ac38f53e90. --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 6f227d60cd..4a3833e6be 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -20,7 +20,7 @@ buildscript { mavenCentral() } dependencies { - if (isRunningInContextOfScreensRepo()) { + if (project == rootProject) { classpath('com.android.tools.build:gradle:8.2.1') classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', rnsDefaultKotlinVersion)}" classpath "com.diffplug.spotless:spotless-plugin-gradle:6.25.0"