expo-template-bare-minimum 51.0.54 → 51.0.56

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/ios/Podfile CHANGED
@@ -7,15 +7,9 @@ podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties
7
7
  ENV['RCT_NEW_ARCH_ENABLED'] = podfile_properties['newArchEnabled'] == 'true' ? '1' : '0'
8
8
  ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']
9
9
 
10
- platform :ios, podfile_properties['ios.deploymentTarget'] || '13.4'
11
- install! 'cocoapods',
12
- :deterministic_uuids => false
13
-
14
- prepare_react_native_project!
15
-
16
- target 'HelloWorld' do
17
- use_expo_modules!
18
-
10
+ use_autolinking_method_symbol = ('use' + '_native' + '_modules!').to_sym
11
+ origin_autolinking_method = self.method(use_autolinking_method_symbol)
12
+ self.define_singleton_method(use_autolinking_method_symbol) do |*args|
19
13
  if ENV['EXPO_UNSTABLE_CORE_AUTOLINKING'] == '1'
20
14
  Pod::UI.puts('Using expo-modules-autolinking as core autolinking source'.green)
21
15
  config_command = [
@@ -28,10 +22,21 @@ target 'HelloWorld' do
28
22
  '--platform',
29
23
  'ios'
30
24
  ]
31
- config = use_native_modules!(config_command)
25
+ origin_autolinking_method.call(config_command)
32
26
  else
33
- config = use_native_modules!
27
+ origin_autolinking_method.call()
34
28
  end
29
+ end
30
+
31
+ platform :ios, podfile_properties['ios.deploymentTarget'] || '13.4'
32
+ install! 'cocoapods',
33
+ :deterministic_uuids => false
34
+
35
+ prepare_react_native_project!
36
+
37
+ target 'HelloWorld' do
38
+ use_expo_modules!
39
+ config = use_native_modules!
35
40
 
36
41
  use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
37
42
  use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']
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.56",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "start": "expo start --dev-client",