From 1ee6c6f8a95db8a6fe149105480189fdb0377eaf Mon Sep 17 00:00:00 2001 From: Boris Date: Thu, 11 Jan 2024 18:51:41 +0800 Subject: [PATCH 1/2] add Kotlin plugin --- examples/tv-app/android/App/build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/tv-app/android/App/build.gradle b/examples/tv-app/android/App/build.gradle index 79c656c2ab4cc1..42bb88d287a3d1 100644 --- a/examples/tv-app/android/App/build.gradle +++ b/examples/tv-app/android/App/build.gradle @@ -1,12 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { + ext.kotlin_version = '1.9.20' repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:4.2.2' - + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -22,4 +23,4 @@ allprojects { task clean(type: Delete) { delete rootProject.buildDir -} \ No newline at end of file +} From c8da4da6802535c583a4b79acfad623de0fcd6c6 Mon Sep 17 00:00:00 2001 From: Boris Date: Thu, 11 Jan 2024 18:55:50 +0800 Subject: [PATCH 2/2] import kotlin runtime lib --- examples/tv-app/android/App/platform-app/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/tv-app/android/App/platform-app/build.gradle b/examples/tv-app/android/App/platform-app/build.gradle index 5d9b8e32a4a9f1..967d697c488304 100644 --- a/examples/tv-app/android/App/platform-app/build.gradle +++ b/examples/tv-app/android/App/platform-app/build.gradle @@ -68,4 +68,5 @@ dependencies { androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation 'com.google.zxing:core:3.3.0' -} \ No newline at end of file + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" +}