react-native 0.68.0-rc.0 → 0.68.0-rc.3
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.
- package/Libraries/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Components/Switch/Switch.js +2 -1
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +1 -29
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +2 -0
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +4 -7
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +4 -2
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +4 -2
- package/React/React-RCTFabric.podspec +1 -1
- package/ReactAndroid/build.gradle +7 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/proguard-rules.pro +4 -6
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +7 -3
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +0 -12
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +5 -5
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +5 -3
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +7 -5
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +1 -1
- package/android/com/facebook/react/react-native/{0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar → 0.68.0-rc.3/react-native-0.68.0-rc.3-sources.jar} +0 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3-sources.jar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3-sources.jar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3-sources.jar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3-sources.jar.sha512 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.aar +0 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.aar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.aar.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.68.0-rc.0/react-native-0.68.0-rc.0.module → 0.68.0-rc.3/react-native-0.68.0-rc.3.module} +15 -15
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.module.md5 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.module.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.module.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.module.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.68.0-rc.0/react-native-0.68.0-rc.0.pom → 0.68.0-rc.3/react-native-0.68.0-rc.3.pom} +1 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.pom.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.pom.sha512 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
- package/package.json +5 -4
- package/react.gradle +52 -15
- package/scripts/react_native_pods.rb +12 -9
- package/template/Gemfile.lock +5 -5
- package/template/_flowconfig +2 -0
- package/template/android/app/build.gradle +28 -13
- package/template/android/gradle.properties +2 -2
- package/template/ios/Podfile +2 -2
- package/template/package.json +1 -5
- package/third-party-podspecs/RCT-Folly.podspec +5 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar +0 -0
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.md5 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.sha512 +0 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>com.facebook.react</groupId>
|
|
11
11
|
<artifactId>react-native</artifactId>
|
|
12
|
-
<version>0.68.0-rc.
|
|
12
|
+
<version>0.68.0-rc.3</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>ReactNative</name>
|
|
15
15
|
<description>A framework for building native apps with React</description>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c9ec02e0ebab2ff5145ef45189b695ef
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
404f6b92fc9cb5fcb260ec295c71c51b3471f125
|
package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f2341daae502c4a5e5c331cd5f9d6b83e8e1fd9de7b07fa18aa79bdbe0f0a134
|
package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c750d6a1f17a95b26021926dfe5d8a473dfa92e04ddda77106a8a32553127a4042fe7e421794f434ad35e2fda6e660dd4b1ad2188dd44c9048b15a3c40cef991
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>com.facebook.react</groupId>
|
|
4
4
|
<artifactId>react-native</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>0.68.0-rc.
|
|
7
|
-
<release>0.68.0-rc.
|
|
6
|
+
<latest>0.68.0-rc.3</latest>
|
|
7
|
+
<release>0.68.0-rc.3</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>0.68.0-rc.
|
|
9
|
+
<version>0.68.0-rc.3</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20220317130835</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1f962d9f97c011638f2e8fbece96f653
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5c041a9349b5eef4146725efcc1c06495bf6ce97
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
82ecc2d7c6b571a55bc8c6077353307b1b6d58f4dc8d161b3f593c2e761aff43
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
80df3500fce9108fe02e366d8c97f8a7a86f8094930e2d983def08133c8dcffe460f3c8003b427a19bacc88d240b2753ebc75c0e0fb44d75b24587ea50c2c0bb
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.68.0-rc.
|
|
3
|
+
"version": "0.68.0-rc.3",
|
|
4
4
|
"bin": "./cli.js",
|
|
5
5
|
"description": "A framework for building native apps using React",
|
|
6
6
|
"license": "MIT",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"@jest/create-cache-key-function": "^27.0.1",
|
|
90
|
-
"@react-native-community/cli": "^
|
|
91
|
-
"@react-native-community/cli-platform-android": "^
|
|
92
|
-
"@react-native-community/cli-platform-ios": "^
|
|
90
|
+
"@react-native-community/cli": "^7.0.3",
|
|
91
|
+
"@react-native-community/cli-platform-android": "^7.0.1",
|
|
92
|
+
"@react-native-community/cli-platform-ios": "^7.0.1",
|
|
93
93
|
"@react-native/assets": "1.0.0",
|
|
94
94
|
"@react-native/normalize-color": "2.0.0",
|
|
95
95
|
"@react-native/polyfills": "2.0.0",
|
|
@@ -108,6 +108,7 @@
|
|
|
108
108
|
"pretty-format": "^26.5.2",
|
|
109
109
|
"promise": "^8.0.3",
|
|
110
110
|
"react-devtools-core": "^4.23.0",
|
|
111
|
+
"react-native-gradle-plugin": "^0.0.5",
|
|
111
112
|
"react-refresh": "^0.4.0",
|
|
112
113
|
"react-shallow-renderer": "16.14.1",
|
|
113
114
|
"regenerator-runtime": "^0.13.2",
|
package/react.gradle
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import org.apache.tools.ant.taskdefs.condition.Os
|
|
9
|
+
import org.gradle.internal.jvm.Jvm
|
|
9
10
|
|
|
10
11
|
def config = project.hasProperty("react") ? project.react : [:];
|
|
11
12
|
|
|
@@ -21,20 +22,6 @@ def detectEntryFile(config) {
|
|
|
21
22
|
return "index.js";
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
/**
|
|
25
|
-
* Detects CLI location in a similar fashion to the React Native CLI
|
|
26
|
-
*/
|
|
27
|
-
def detectCliPath(config) {
|
|
28
|
-
if (config.cliPath) {
|
|
29
|
-
return "${projectDir}/${config.cliPath}"
|
|
30
|
-
}
|
|
31
|
-
if (new File("${projectDir}/../../node_modules/react-native/cli.js").exists()) {
|
|
32
|
-
return "${projectDir}/../../node_modules/react-native/cli.js"
|
|
33
|
-
}
|
|
34
|
-
throw new Exception("Couldn't determine CLI location. " +
|
|
35
|
-
"Please set `project.ext.react.cliPath` to the path of the react-native cli.js file. This file typically resides in `node_modules/react-native/cli.js`");
|
|
36
|
-
}
|
|
37
|
-
|
|
38
25
|
def composeSourceMapsPath = config.composeSourceMapsPath ?: "node_modules/react-native/scripts/compose-source-maps.js"
|
|
39
26
|
def bundleAssetName = config.bundleAssetName ?: "index.android.bundle"
|
|
40
27
|
def entryFile = detectEntryFile(config)
|
|
@@ -45,6 +32,43 @@ def bundleConfig = config.bundleConfig ? "${reactRoot}/${config.bundleConfig}" :
|
|
|
45
32
|
def enableVmCleanup = config.enableVmCleanup == null ? true : config.enableVmCleanup
|
|
46
33
|
def hermesCommand = config.hermesCommand ?: "../../node_modules/hermes-engine/%OS-BIN%/hermesc"
|
|
47
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Detects CLI location in a similar fashion to the React Native CLI
|
|
37
|
+
*/
|
|
38
|
+
def detectCliPath(config, reactRoot) {
|
|
39
|
+
// 1. preconfigured path
|
|
40
|
+
if (config.cliPath) {
|
|
41
|
+
def cliJsAbsolute = new File(config.cliPath)
|
|
42
|
+
if (cliJsAbsolute.exists()) {
|
|
43
|
+
return cliJsAbsolute.getAbsolutePath()
|
|
44
|
+
}
|
|
45
|
+
def cliJsRelativeToRoot = new File("${rootDir}/${config.cliPath}")
|
|
46
|
+
if (cliJsRelativeToRoot.exists()) {
|
|
47
|
+
return cliJsRelativeToRoot.getAbsolutePath()
|
|
48
|
+
}
|
|
49
|
+
def cliJsRelativeToProject = new File("${projectDir}/${config.cliPath}")
|
|
50
|
+
if (cliJsRelativeToProject.exists()) {
|
|
51
|
+
return cliJsRelativeToProject.getAbsolutePath()
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// 2. node module path
|
|
56
|
+
def cliJsFromNode = new File(["node", "--print", "require.resolve('react-native/cli').bin"].execute(null, rootDir).text.trim())
|
|
57
|
+
if (cliJsFromNode.exists()) {
|
|
58
|
+
return cliJsFromNode.getAbsolutePath()
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// 3. cli.js in the root folder
|
|
62
|
+
def rootCliJs = new File(reactRoot, "node_modules/react-native/cli.js")
|
|
63
|
+
if (rootCliJs.exists()) {
|
|
64
|
+
return rootCliJs.getAbsolutePath()
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
throw new Exception("Couldn't determine CLI location. " +
|
|
68
|
+
"Please set `project.ext.react.cliPath` to the path of the react-native cli.js file. " +
|
|
69
|
+
"This file typically resides in `node_modules/react-native/cli.js`");
|
|
70
|
+
}
|
|
71
|
+
|
|
48
72
|
def reactNativeDevServerPort() {
|
|
49
73
|
def value = project.getProperties().get("reactNativeDevServerPort")
|
|
50
74
|
return value != null ? value : "8081"
|
|
@@ -129,6 +153,19 @@ android {
|
|
|
129
153
|
}
|
|
130
154
|
}
|
|
131
155
|
|
|
156
|
+
def jvmVersion = Jvm.current().javaVersion.majorVersion
|
|
157
|
+
if (jvmVersion.toInteger() <= 8) {
|
|
158
|
+
println "\n\n\n"
|
|
159
|
+
println "**************************************************************************************************************"
|
|
160
|
+
println "\n\n"
|
|
161
|
+
println "ERROR: requires JDK11 or higher."
|
|
162
|
+
println "Incompatible major version detected: '" + jvmVersion + "'"
|
|
163
|
+
println "\n\n"
|
|
164
|
+
println "**************************************************************************************************************"
|
|
165
|
+
println "\n\n\n"
|
|
166
|
+
System.exit(1)
|
|
167
|
+
}
|
|
168
|
+
|
|
132
169
|
afterEvaluate {
|
|
133
170
|
def isAndroidLibrary = plugins.hasPlugin("com.android.library")
|
|
134
171
|
def variants = isAndroidLibrary ? android.libraryVariants : android.applicationVariants
|
|
@@ -150,7 +187,7 @@ afterEvaluate {
|
|
|
150
187
|
|
|
151
188
|
// Additional node and packager commandline arguments
|
|
152
189
|
def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["node"]
|
|
153
|
-
def cliPath = detectCliPath(config)
|
|
190
|
+
def cliPath = detectCliPath(config, reactRoot)
|
|
154
191
|
|
|
155
192
|
def execCommand = []
|
|
156
193
|
|
|
@@ -131,10 +131,10 @@ end
|
|
|
131
131
|
def use_flipper!(versions = {}, configurations: ['Debug'])
|
|
132
132
|
versions['Flipper'] ||= '0.125.0'
|
|
133
133
|
versions['Flipper-Boost-iOSX'] ||= '1.76.0.1.11'
|
|
134
|
-
versions['Flipper-DoubleConversion'] ||= '3.
|
|
134
|
+
versions['Flipper-DoubleConversion'] ||= '3.2.0'
|
|
135
135
|
versions['Flipper-Fmt'] ||= '7.1.7'
|
|
136
136
|
versions['Flipper-Folly'] ||= '2.6.10'
|
|
137
|
-
versions['Flipper-Glog'] ||= '0.
|
|
137
|
+
versions['Flipper-Glog'] ||= '0.5.0.4'
|
|
138
138
|
versions['Flipper-PeerTalk'] ||= '0.0.4'
|
|
139
139
|
versions['Flipper-RSocket'] ||= '1.4.3'
|
|
140
140
|
versions['OpenSSL-Universal'] ||= '1.1.1100'
|
|
@@ -271,8 +271,9 @@ def modify_flags_for_new_architecture(installer, cpp_flags)
|
|
|
271
271
|
end
|
|
272
272
|
|
|
273
273
|
def build_codegen!(react_native_path)
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
relative_installation_root = Pod::Config.instance.installation_root.relative_path_from(Pathname.pwd)
|
|
275
|
+
codegen_repo_path = "#{relative_installation_root}/#{react_native_path}/packages/react-native-codegen";
|
|
276
|
+
codegen_npm_path = "#{relative_installation_root}/#{react_native_path}/../react-native-codegen";
|
|
276
277
|
codegen_cli_path = ""
|
|
277
278
|
if Dir.exist?(codegen_repo_path)
|
|
278
279
|
codegen_cli_path = codegen_repo_path
|
|
@@ -313,7 +314,7 @@ def checkAndGenerateEmptyThirdPartyProvider!(react_native_path)
|
|
|
313
314
|
Pod::Executable.execute_command(
|
|
314
315
|
'node',
|
|
315
316
|
[
|
|
316
|
-
"#{react_native_path}/scripts/generate-provider-cli.js",
|
|
317
|
+
"#{relative_installation_root}/#{react_native_path}/scripts/generate-provider-cli.js",
|
|
317
318
|
"--platform", 'ios',
|
|
318
319
|
"--schemaListPath", temp_schema_list_path,
|
|
319
320
|
"--outputDir", "#{output_dir}"
|
|
@@ -503,6 +504,7 @@ def use_react_native_codegen_discovery!(options={})
|
|
|
503
504
|
app_path = options[:app_path]
|
|
504
505
|
fabric_enabled = options[:fabric_enabled] ||= false
|
|
505
506
|
config_file_dir = options[:config_file_dir] ||= ''
|
|
507
|
+
relative_installation_root = Pod::Config.instance.installation_root.relative_path_from(Pathname.pwd)
|
|
506
508
|
|
|
507
509
|
if !app_path
|
|
508
510
|
Pod::UI.warn '[Codegen] Error: app_path is required for use_react_native_codegen_discovery.'
|
|
@@ -518,7 +520,7 @@ def use_react_native_codegen_discovery!(options={})
|
|
|
518
520
|
out = Pod::Executable.execute_command(
|
|
519
521
|
'node',
|
|
520
522
|
[
|
|
521
|
-
"#{react_native_path}/scripts/generate-artifacts.js",
|
|
523
|
+
"#{relative_installation_root}/#{react_native_path}/scripts/generate-artifacts.js",
|
|
522
524
|
"-p", "#{app_path}",
|
|
523
525
|
"-o", Pod::Config.instance.installation_root,
|
|
524
526
|
"-e", "#{fabric_enabled}",
|
|
@@ -540,6 +542,7 @@ def use_react_native_codegen!(spec, options={})
|
|
|
540
542
|
library_name = options[:library_name] ||= "#{spec.name.gsub('_','-').split('-').collect(&:capitalize).join}Spec"
|
|
541
543
|
Pod::UI.puts "[Codegen] Found #{library_name}"
|
|
542
544
|
|
|
545
|
+
relative_installation_root = Pod::Config.instance.installation_root.relative_path_from(Pathname.pwd)
|
|
543
546
|
output_dir = options[:output_dir] ||= $CODEGEN_OUTPUT_DIR
|
|
544
547
|
output_dir_module = "#{output_dir}/#{$CODEGEN_MODULE_DIR}"
|
|
545
548
|
output_dir_component = "#{output_dir}/#{$CODEGEN_COMPONENT_DIR}"
|
|
@@ -547,7 +550,7 @@ def use_react_native_codegen!(spec, options={})
|
|
|
547
550
|
codegen_config = {
|
|
548
551
|
"modules" => {
|
|
549
552
|
:js_srcs_pattern => "Native*.js",
|
|
550
|
-
:generated_dir => "#{
|
|
553
|
+
:generated_dir => "#{relative_installation_root}/#{output_dir_module}/#{library_name}",
|
|
551
554
|
:generated_files => [
|
|
552
555
|
"#{library_name}.h",
|
|
553
556
|
"#{library_name}-generated.mm"
|
|
@@ -555,7 +558,7 @@ def use_react_native_codegen!(spec, options={})
|
|
|
555
558
|
},
|
|
556
559
|
"components" => {
|
|
557
560
|
:js_srcs_pattern => "*NativeComponent.js",
|
|
558
|
-
:generated_dir => "#{
|
|
561
|
+
:generated_dir => "#{relative_installation_root}/#{output_dir_component}/#{library_name}",
|
|
559
562
|
:generated_files => [
|
|
560
563
|
"ComponentDescriptors.h",
|
|
561
564
|
"EventEmitters.cpp",
|
|
@@ -604,7 +607,7 @@ def use_react_native_codegen!(spec, options={})
|
|
|
604
607
|
spec.script_phase = {
|
|
605
608
|
:name => 'Generate Specs',
|
|
606
609
|
:input_files => input_files, # This also needs to be relative to Xcode
|
|
607
|
-
:output_files => ["${DERIVED_FILE_DIR}/codegen-#{library_name}.log"].concat(generated_files.map { |filename| "
|
|
610
|
+
:output_files => ["${DERIVED_FILE_DIR}/codegen-#{library_name}.log"].concat(generated_files.map { |filename| "${PODS_TARGET_SRCROOT}/#{filename}"} ),
|
|
608
611
|
# The final generated files will be created when this script is invoked at Xcode build time.
|
|
609
612
|
:script => get_script_phases_no_codegen_discovery(
|
|
610
613
|
react_native_path: react_native_path,
|
package/template/Gemfile.lock
CHANGED
|
@@ -3,7 +3,7 @@ GEM
|
|
|
3
3
|
specs:
|
|
4
4
|
CFPropertyList (3.0.5)
|
|
5
5
|
rexml
|
|
6
|
-
activesupport (6.1.
|
|
6
|
+
activesupport (6.1.5)
|
|
7
7
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
8
8
|
i18n (>= 1.6, < 2)
|
|
9
9
|
minitest (>= 5.1)
|
|
@@ -16,10 +16,10 @@ GEM
|
|
|
16
16
|
json (>= 1.5.1)
|
|
17
17
|
atomos (0.1.3)
|
|
18
18
|
claide (1.1.0)
|
|
19
|
-
cocoapods (1.11.
|
|
19
|
+
cocoapods (1.11.3)
|
|
20
20
|
addressable (~> 2.8)
|
|
21
21
|
claide (>= 1.0.2, < 2.0)
|
|
22
|
-
cocoapods-core (= 1.11.
|
|
22
|
+
cocoapods-core (= 1.11.3)
|
|
23
23
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
|
24
24
|
cocoapods-downloader (>= 1.4.0, < 2.0)
|
|
25
25
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
|
@@ -34,7 +34,7 @@ GEM
|
|
|
34
34
|
nap (~> 1.0)
|
|
35
35
|
ruby-macho (>= 1.0, < 3.0)
|
|
36
36
|
xcodeproj (>= 1.21.0, < 2.0)
|
|
37
|
-
cocoapods-core (1.11.
|
|
37
|
+
cocoapods-core (1.11.3)
|
|
38
38
|
activesupport (>= 5.0, < 7)
|
|
39
39
|
addressable (~> 2.8)
|
|
40
40
|
algoliasearch (~> 1.0)
|
|
@@ -63,7 +63,7 @@ GEM
|
|
|
63
63
|
fuzzy_match (2.0.4)
|
|
64
64
|
gh_inspector (1.1.3)
|
|
65
65
|
httpclient (2.8.3)
|
|
66
|
-
i18n (1.
|
|
66
|
+
i18n (1.10.0)
|
|
67
67
|
concurrent-ruby (~> 1.0)
|
|
68
68
|
json (2.6.1)
|
|
69
69
|
minitest (5.15.0)
|
package/template/_flowconfig
CHANGED
|
@@ -11,6 +11,8 @@ node_modules/react-native/Libraries/polyfills/.*
|
|
|
11
11
|
; Flow doesn't support platforms
|
|
12
12
|
.*/Libraries/Utilities/LoadingView.js
|
|
13
13
|
|
|
14
|
+
.*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$
|
|
15
|
+
|
|
14
16
|
[untyped]
|
|
15
17
|
.*/node_modules/@react-native-community/cli/.*/.*
|
|
16
18
|
|
|
@@ -186,6 +186,20 @@ android {
|
|
|
186
186
|
// preBuild.dependsOn("generateCodegenArtifactsFromSchema")
|
|
187
187
|
preDebugBuild.dependsOn(packageReactNdkDebugLibs)
|
|
188
188
|
preReleaseBuild.dependsOn(packageReactNdkReleaseLibs)
|
|
189
|
+
|
|
190
|
+
// Due to a bug inside AGP, we have to explicitly set a dependency
|
|
191
|
+
// between configureNdkBuild* tasks and the preBuild tasks.
|
|
192
|
+
// This can be removed once this is solved: https://issuetracker.google.com/issues/207403732
|
|
193
|
+
configureNdkBuildRelease.dependsOn(preReleaseBuild)
|
|
194
|
+
configureNdkBuildDebug.dependsOn(preDebugBuild)
|
|
195
|
+
reactNativeArchitectures().each { architecture ->
|
|
196
|
+
tasks.findByName("configureNdkBuildDebug[${architecture}]")?.configure {
|
|
197
|
+
dependsOn("preDebugBuild")
|
|
198
|
+
}
|
|
199
|
+
tasks.findByName("configureNdkBuildRelease[${architecture}]")?.configure {
|
|
200
|
+
dependsOn("preReleaseBuild")
|
|
201
|
+
}
|
|
202
|
+
}
|
|
189
203
|
}
|
|
190
204
|
}
|
|
191
205
|
|
|
@@ -233,24 +247,13 @@ android {
|
|
|
233
247
|
|
|
234
248
|
}
|
|
235
249
|
}
|
|
236
|
-
|
|
237
|
-
packagingOptions {
|
|
238
|
-
pickFirst '**/libhermes.so'
|
|
239
|
-
pickFirst '**/libjsc.so'
|
|
240
|
-
}
|
|
241
250
|
}
|
|
242
251
|
|
|
243
252
|
dependencies {
|
|
244
253
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
245
254
|
|
|
246
|
-
//
|
|
247
|
-
|
|
248
|
-
if (isNewArchitectureEnabled()) {
|
|
249
|
-
implementation project(":ReactAndroid")
|
|
250
|
-
} else {
|
|
251
|
-
//noinspection GradleDynamicVersion
|
|
252
|
-
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
253
|
-
}
|
|
255
|
+
//noinspection GradleDynamicVersion
|
|
256
|
+
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
254
257
|
|
|
255
258
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
|
|
256
259
|
|
|
@@ -276,6 +279,18 @@ dependencies {
|
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
281
|
|
|
282
|
+
if (isNewArchitectureEnabled()) {
|
|
283
|
+
// If new architecture is enabled, we let you build RN from source
|
|
284
|
+
// Otherwise we fallback to a prebuilt .aar bundled in the NPM package.
|
|
285
|
+
// This will be applied to all the imported transtitive dependency.
|
|
286
|
+
configurations.all {
|
|
287
|
+
resolutionStrategy.dependencySubstitution {
|
|
288
|
+
substitute(module("com.facebook.react:react-native"))
|
|
289
|
+
.using(project(":ReactAndroid")).because("On New Architecture we're building React Native from source")
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
279
294
|
// Run this once to be able to run the application with BUCK
|
|
280
295
|
// puts all compile dependencies into folder libs for BUCK to use
|
|
281
296
|
task copyDownloadableDepsToLibs(type: Copy) {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
# Specifies the JVM arguments used for the daemon process.
|
|
11
11
|
# The setting is particularly useful for tweaking memory settings.
|
|
12
|
-
# Default value: -
|
|
13
|
-
|
|
12
|
+
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
|
|
13
|
+
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
|
|
14
14
|
|
|
15
15
|
# When configured, Gradle will run in incubating parallel mode.
|
|
16
16
|
# This option should only be used with decoupled projects. More details, visit
|
package/template/ios/Podfile
CHANGED
|
@@ -15,8 +15,8 @@ target 'HelloWorld' do
|
|
|
15
15
|
# to enable hermes on iOS, change `false` to `true` and then install pods
|
|
16
16
|
:hermes_enabled => flags[:hermes_enabled],
|
|
17
17
|
:fabric_enabled => flags[:fabric_enabled],
|
|
18
|
-
# An
|
|
19
|
-
:app_path => "#{
|
|
18
|
+
# An absolute path to your application root.
|
|
19
|
+
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
20
20
|
)
|
|
21
21
|
|
|
22
22
|
target 'HelloWorldTests' do
|
package/template/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"react": "17.0.2",
|
|
14
|
-
"react-native": "0.68.0-rc.
|
|
14
|
+
"react-native": "0.68.0-rc.3"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/core": "^7.12.9",
|
|
@@ -21,13 +21,9 @@
|
|
|
21
21
|
"eslint": "^7.32.0",
|
|
22
22
|
"jest": "^26.6.3",
|
|
23
23
|
"metro-react-native-babel-preset": "^0.67.0",
|
|
24
|
-
"react-native-gradle-plugin": "^0.0.4",
|
|
25
24
|
"react-test-renderer": "17.0.2"
|
|
26
25
|
},
|
|
27
26
|
"jest": {
|
|
28
27
|
"preset": "react-native"
|
|
29
|
-
},
|
|
30
|
-
"codegenConfig": {
|
|
31
|
-
"libraries": []
|
|
32
28
|
}
|
|
33
29
|
}
|
|
@@ -91,7 +91,11 @@ Pod::Spec.new do |spec|
|
|
|
91
91
|
'folly/concurrency/CacheLocality.cpp',
|
|
92
92
|
'folly/detail/Futex.cpp',
|
|
93
93
|
'folly/synchronization/ParkingLot.cpp',
|
|
94
|
-
'folly/portability/Malloc.cpp'
|
|
94
|
+
'folly/portability/Malloc.cpp',
|
|
95
|
+
'folly/concurrency/CacheLocality.h',
|
|
96
|
+
'folly/synchronization/ParkingLot.h',
|
|
97
|
+
'folly/synchronization/SanitizeThread.h',
|
|
98
|
+
'folly/system/ThreadId.h'
|
|
95
99
|
|
|
96
100
|
fabric.preserve_paths = 'folly/concurrency/CacheLocality.h',
|
|
97
101
|
'folly/synchronization/ParkingLot.h',
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b24a70805cf44ee021ad1046a4001557
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2bf726dacf4698363693205f90464b9120132eb8
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
854ba7ec58f695e754ee8685e5e15376aa14b52b23cfdfecbee2e78dbc88806e
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d38849cb8e7af3b28a732f8df25d89df78f4e148c49e426302e2ceebcc18f680e0010dc58aef13a59b8771c4162e468ad89902ef4f95c44e849dd0aefe370edf
|
|
Binary file
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
59f5fb0f2117fb928a3e577df4ce9e3e
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
05c90a01ca9a36b8da76f16aad42e6b1e8df757b
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
312453337c694fc69741b685554eebb60b4c1cce84f847bdfa2d565e3ba19719
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1b5c6233d0cb6f374aa2246d5000eb5db27a81f3855ae9fe3242eefbbd5618e5d82fa9aceccfb1d215d9efc9722371436c977ac787883a12de679b185d5295b1
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
595e4bf4912d4bdb414c0c2ff729feb6
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
bd4e374653744fb05bc7a238fffb1bdf7be9bd23
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
441b0bfec745157bb18ce9c0d61544a5a595a11ae691cb8bd3b15a45f4cc0684
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
637e05ad827f91fec90f586b11fd21461fb48e15771875d675b18740267749cc0e6f19ca77ed033e3dd26e73fc950a2108083af30dd84e11bebabb047f282efa
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
6cef5bfb6b12053ae3d1a1f1a9dc7026
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
304fd82284b6460d6148ea6f1c2531fedc0253f9
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ec66d5f945615c3c6e35e9cdeb1e13fa3821fec9ed42f145790bc69aaa6a7f16
|
package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4f2701227df73ddbf8b7e9ce47c9df81612d87c5382d6144ca6f3b707015038d68f095e658e4fbcd83ebb7237fbb0190b00807d693b433156e2ecaec7e52f659
|