expo-template-bare-minimum 51.0.53 → 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
|
+
}
|
package/android/settings.gradle
CHANGED
|
@@ -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
|
-
|
|
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 {
|
|
@@ -17,8 +24,23 @@ def getRNMinorVersion() {
|
|
|
17
24
|
}
|
|
18
25
|
|
|
19
26
|
if (getRNMinorVersion() >= 75) {
|
|
20
|
-
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex ->
|
|
21
|
-
|
|
27
|
+
extensions.configure(com.facebook.react.ReactSettingsExtension) { ex ->
|
|
28
|
+
if (System.getenv('EXPO_UNSTABLE_CORE_AUTOLINKING') == '1') {
|
|
29
|
+
println('\u001B[32mUsing expo-modules-autolinking as core autolinking source\u001B[0m')
|
|
30
|
+
def command = [
|
|
31
|
+
'node',
|
|
32
|
+
'--no-warnings',
|
|
33
|
+
'--eval',
|
|
34
|
+
'require(require.resolve(\'expo-modules-autolinking\', { paths: [require.resolve(\'expo/package.json\')] }))(process.argv.slice(1))',
|
|
35
|
+
'react-native-config',
|
|
36
|
+
'--json',
|
|
37
|
+
'--platform',
|
|
38
|
+
'android'
|
|
39
|
+
].toList()
|
|
40
|
+
ex.autolinkLibrariesFromCommand(command)
|
|
41
|
+
} else {
|
|
42
|
+
ex.autolinkLibrariesFromCommand()
|
|
43
|
+
}
|
|
22
44
|
}
|
|
23
45
|
}
|
|
24
46
|
|
package/ios/Podfile
CHANGED
|
@@ -15,7 +15,23 @@ prepare_react_native_project!
|
|
|
15
15
|
|
|
16
16
|
target 'HelloWorld' do
|
|
17
17
|
use_expo_modules!
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
if ENV['EXPO_UNSTABLE_CORE_AUTOLINKING'] == '1'
|
|
20
|
+
Pod::UI.puts('Using expo-modules-autolinking as core autolinking source'.green)
|
|
21
|
+
config_command = [
|
|
22
|
+
'node',
|
|
23
|
+
'--no-warnings',
|
|
24
|
+
'--eval',
|
|
25
|
+
'require(require.resolve(\'expo-modules-autolinking\', { paths: [require.resolve(\'expo/package.json\')] }))(process.argv.slice(1))',
|
|
26
|
+
'react-native-config',
|
|
27
|
+
'--json',
|
|
28
|
+
'--platform',
|
|
29
|
+
'ios'
|
|
30
|
+
]
|
|
31
|
+
config = use_native_modules!(config_command)
|
|
32
|
+
else
|
|
33
|
+
config = use_native_modules!
|
|
34
|
+
end
|
|
19
35
|
|
|
20
36
|
use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
|
|
21
37
|
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.
|
|
4
|
+
"version": "51.0.55",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "expo start --dev-client",
|