From 0d8f39fe850058a1d9b686114625592471d51402 Mon Sep 17 00:00:00 2001 From: szymonrybczak Date: Wed, 17 Jan 2024 14:40:24 +0100 Subject: [PATCH] feat: add support for Kotlin templates --- src/paths.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/paths.js b/src/paths.js index b4d0baf..e947725 100644 --- a/src/paths.js +++ b/src/paths.js @@ -198,6 +198,11 @@ export const getAndroidUpdateFilesContentOptions = ({ from: [`"${currentName}"`], to: `"${newName}"`, }, + { + files: [`android/app/src/main/java/${newBundleIDAsPath}/MainActivity.kt`], + from: [`= "${currentName}"`], + to: `= "${newName}"`, + }, { files: 'android/.idea/.name', from: currentName, @@ -248,6 +253,8 @@ export const getAndroidUpdateBundleIDOptions = ({ `android/app/src/release/java/${newBundleIDAsPath}/ReactNativeFlipper.java`, `android/app/src/main/java/${newBundleIDAsPath}/MainActivity.java`, `android/app/src/main/java/${newBundleIDAsPath}/MainApplication.java`, + `android/app/src/main/java/${newBundleIDAsPath}/MainActivity.kt`, + `android/app/src/main/java/${newBundleIDAsPath}/MainApplication.kt`, ], from: new RegExp(`${currentBundleID}`, 'g'), to: newBundleID,