From a307311f2bf34a5d6be522b31b6601e543decc53 Mon Sep 17 00:00:00 2001 From: Juchan Roh Date: Sat, 4 Feb 2023 22:59:56 +0900 Subject: [PATCH] fix: build fail --- android/app/build.gradle | 4 ++++ .../debug/java/tk/nulldori/eamemu/ReactNativeFlipper.java | 2 +- android/build.gradle | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index ccc4a00..390aeaf 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -167,6 +167,10 @@ dependencies { } else { implementation jscFlavor } + + // for react-native-fs + implementation project(':react-native-fs') + implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion") } apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) diff --git a/android/app/src/debug/java/tk/nulldori/eamemu/ReactNativeFlipper.java b/android/app/src/debug/java/tk/nulldori/eamemu/ReactNativeFlipper.java index c00c7a5..e270212 100644 --- a/android/app/src/debug/java/tk/nulldori/eamemu/ReactNativeFlipper.java +++ b/android/app/src/debug/java/tk/nulldori/eamemu/ReactNativeFlipper.java @@ -4,7 +4,7 @@ *

This source code is licensed under the MIT license found in the LICENSE file in the root * directory of this source tree. */ -package com.rndiffapp; +package tk.nulldori.eamemu; import android.content.Context; import com.facebook.flipper.android.AndroidFlipperClient; import com.facebook.flipper.android.utils.FlipperUtils; diff --git a/android/build.gradle b/android/build.gradle index 65113f1..7d847a1 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -9,6 +9,7 @@ buildscript { // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP. ndkVersion = "23.1.7779620" + kotlinVersion = "1.8.0" } repositories { google() @@ -18,7 +19,7 @@ buildscript { classpath("com.android.tools.build:gradle:7.3.1") classpath("com.facebook.react:react-native-gradle-plugin") - // for react-native-fs - implementation project(':react-native-fs') + // for kotlin + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${project.ext.kotlinVersion}" } }