Skip to content

Commit

Permalink
fix(android): remove root argument (#2164)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak authored Nov 30, 2023
1 parent ce94e8c commit ac284e2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/cli-platform-android/native_modules.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -507,19 +507,11 @@ def reactNativeVersionRequireNewArchEnabled(autoModules) {
* Exported Extensions
* ------------------------ */

ext.applyNativeModulesSettingsGradle = { DefaultSettings defaultSettings, String root = null ->
if (root != null) {
logger.warn("${ReactNativeModules.LOG_PREFIX}Passing custom root is deprecated. CLI detects root automatically now.");
logger.warn("${ReactNativeModules.LOG_PREFIX}Please remove second argument to `applyNativeModulesSettingsGradle`.");
}
ext.applyNativeModulesSettingsGradle = { DefaultSettings defaultSettings ->
autoModules.addReactNativeModuleProjects(defaultSettings)
}

ext.applyNativeModulesAppBuildGradle = { Project project, String root = null ->
if (root != null) {
logger.warn("${ReactNativeModules.LOG_PREFIX}Passing custom root is deprecated. CLI detects root automatically now");
logger.warn("${ReactNativeModules.LOG_PREFIX}Please remove second argument to `applyNativeModulesAppBuildGradle`.");
}
ext.applyNativeModulesAppBuildGradle = { Project project ->
autoModules.addReactNativeModuleDependencies(project)

def generatedSrcDir = new File(buildDir, "generated/rncli/src/main/java")
Expand Down

0 comments on commit ac284e2

Please sign in to comment.