From c5071e1526a27a977aa0ee7dddb85ab10e6a4599 Mon Sep 17 00:00:00 2001 From: Hamdi Jomaa Date: Fri, 19 Jan 2024 16:32:06 +0100 Subject: [PATCH 1/2] Update codepush.gradle: fix Could not find matching constructor for: java.io.File(File) --- android/codepush.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/codepush.gradle b/android/codepush.gradle index f70156435..165b54b30 100644 --- a/android/codepush.gradle +++ b/android/codepush.gradle @@ -60,8 +60,8 @@ gradle.projectsEvaluated { jsBundleDir = reactBundleTask.property('jsBundleDir').asFile.get() resourcesDir = reactBundleTask.property('resourcesDir').asFile.get() - new File(jsBundleDir).mkdirs() - new File(resourcesDir).mkdirs() + new File(jsBundleDir.toString()).mkdirs() + new File(resourcesDir.toString()).mkdirs() jsBundleFile = file("$jsBundleDir/$bundleAssetName") From 89d3ea6938ebb75ddd39122e95fd62dcfcb34f35 Mon Sep 17 00:00:00 2001 From: Hamdi Jomaa Date: Fri, 19 Jan 2024 18:00:25 +0100 Subject: [PATCH 2/2] Update android/codepush.gradle Co-authored-by: Artem Mizinin --- android/codepush.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/codepush.gradle b/android/codepush.gradle index 165b54b30..4faf49f2f 100644 --- a/android/codepush.gradle +++ b/android/codepush.gradle @@ -60,8 +60,8 @@ gradle.projectsEvaluated { jsBundleDir = reactBundleTask.property('jsBundleDir').asFile.get() resourcesDir = reactBundleTask.property('resourcesDir').asFile.get() - new File(jsBundleDir.toString()).mkdirs() - new File(resourcesDir.toString()).mkdirs() + jsBundleDir.mkdirs() + resourcesDir.mkdirs() jsBundleFile = file("$jsBundleDir/$bundleAssetName")