Skip to content

Commit

Permalink
fix a crash error in tv-app (#31362)
Browse files Browse the repository at this point in the history
* add Kotlin plugin

* import kotlin runtime lib
  • Loading branch information
nicelyjust authored Jan 12, 2024
1 parent 40599c4 commit eb7a27c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions examples/tv-app/android/App/build.gradle
Original file line number Diff line number Diff line change
@@ -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
}
Expand All @@ -22,4 +23,4 @@ allprojects {

task clean(type: Delete) {
delete rootProject.buildDir
}
}
3 changes: 2 additions & 1 deletion examples/tv-app/android/App/platform-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}

0 comments on commit eb7a27c

Please sign in to comment.