From 3b8e74d16ff8d212b08280b91914075df04c28a6 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Thu, 18 Aug 2022 05:16:38 -0700 Subject: [PATCH] Add kotlin support Summary: ^ changelog: Add kotlin support for the android library Reviewed By: LukeDefeo Differential Revision: D38746572 fbshipit-source-id: f49534072eee3854368ea6f725e726560c03d76e --- android/build.gradle | 3 +++ build.gradle | 2 ++ 2 files changed, 5 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index b2169f2f7..a056c32a1 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,6 +6,7 @@ */ apply plugin: 'com.android.library' +apply plugin: 'kotlin-android' android { compileSdkVersion rootProject.compileSdkVersion @@ -62,6 +63,8 @@ android { dependencies { compileOnly deps.proguardAnnotations + implementation deps.kotlinStdLibrary + implementation deps.openssl implementation deps.fbjni implementation deps.soloader diff --git a/build.gradle b/build.gradle index f73a3a758..87f574ba8 100644 --- a/build.gradle +++ b/build.gradle @@ -52,6 +52,8 @@ ext { } ext.deps = [ + // Kotlin support + kotlinStdLibrary : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$KOTLIN_VERSION", // Android support supportAnnotations : "androidx.annotation:annotation:$ANDROIDX_VERSION", supportAppCompat : "androidx.appcompat:appcompat:$ANDROIDX_VERSION",