expo-template-bare-minimum 51.0.54 → 51.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
+
3
+ plugins {
4
+ kotlin("jvm") version "1.9.24"
5
+ id("java-gradle-plugin")
6
+ }
7
+
8
+ repositories {
9
+ mavenCentral()
10
+ }
11
+
12
+ gradlePlugin {
13
+ plugins {
14
+ create("reactSettingsPlugin") {
15
+ id = "com.facebook.react.settings"
16
+ implementationClass = "expo.plugins.ReactSettingsPlugin"
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,10 @@
1
+ package expo.plugins
2
+
3
+ import org.gradle.api.Plugin
4
+ import org.gradle.api.initialization.Settings
5
+
6
+ class ReactSettingsPlugin : Plugin<Settings> {
7
+ override fun apply(settings: Settings) {
8
+ // Do nothing, just register the plugin.
9
+ }
10
+ }
@@ -1,9 +1,16 @@
1
1
  pluginManagement {
2
+ def version = providers.exec {
3
+ commandLine("node", "-e", "console.log(require('react-native/package.json').version);")
4
+ }.standardOutput.asText.get().trim()
5
+ def (_, reactNativeMinor, reactNativePatch) = version.split("-")[0].tokenize('.').collect { it.toInteger() }
6
+
2
7
  includeBuild(new File(["node", "--print", "require.resolve('@react-native/gradle-plugin/package.json')"].execute(null, rootDir).text.trim()).getParentFile().toString())
8
+ if(reactNativeMinor == 74 && reactNativePatch <= 3){
9
+ includeBuild("react-settings-plugin")
10
+ }
3
11
  }
4
12
 
5
- // Uncomment this to use React Native 0.75
6
- // plugins { id("com.facebook.react.settings") }
13
+ plugins { id("com.facebook.react.settings") }
7
14
 
8
15
  def getRNMinorVersion() {
9
16
  def version = providers.exec {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-template-bare-minimum",
3
3
  "description": "This bare project template includes a minimal setup for using unimodules with React Native.",
4
- "version": "51.0.54",
4
+ "version": "51.0.55",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "start": "expo start --dev-client",