-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[0.74] Stub com.facebook.react.settings on 0.74
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactSettingsPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.facebook.react | ||
|
||
import org.gradle.api.Plugin | ||
import org.gradle.api.initialization.Settings | ||
|
||
/** | ||
* This is a stub of the com.facebook.react.settings plugin. | ||
* | ||
* The plugin got added in 0.75, but to make it easier for 0.74 users to upgrade to 0.75, we're | ||
* creating a stub plugin that does nothing. This way, users can include a `id("com.facebook.react.settings")` | ||
* in their settings.gradle file without causing a build failure on 0.74. | ||
*/ | ||
class ReactSettingsPlugin : Plugin<Settings> { | ||
override fun apply(settings: Settings) { | ||
// Do nothing, just register the plugin. | ||
} | ||
} |