@react-native/gradle-plugin 0.76.0-rc.1 → 0.76.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/package.json +1 -1
- package/react-native-gradle-plugin/build.gradle.kts +2 -1
- package/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/GenerateAutolinkingNewArchitecturesFileTask.kt +4 -0
- package/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/GenerateAutolinkingNewArchitecturesFileTaskTest.kt +8 -0
- package/settings-plugin/build.gradle.kts +2 -1
- package/shared/build.gradle.kts +2 -1
- package/shared-testutil/build.gradle.kts +2 -1
package/package.json
CHANGED
|
@@ -64,7 +64,8 @@ tasks.withType<KotlinCompile>().configureEach {
|
|
|
64
64
|
apiVersion = "1.6"
|
|
65
65
|
// See comment above on JDK 11 support
|
|
66
66
|
jvmTarget = "11"
|
|
67
|
-
allWarningsAsErrors =
|
|
67
|
+
allWarningsAsErrors =
|
|
68
|
+
project.properties["enableWarningsAsErrors"]?.toString()?.toBoolean() ?: false
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
|
|
@@ -166,6 +166,10 @@ abstract class GenerateAutolinkingNewArchitecturesFileTask : DefaultTask() {
|
|
|
166
166
|
cmake_minimum_required(VERSION 3.13)
|
|
167
167
|
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
168
168
|
|
|
169
|
+
# We set REACTNATIVE_MERGED_SO so libraries/apps can selectively decide to depend on either libreactnative.so
|
|
170
|
+
# or link against a old prefab target (this is needed for React Native 0.76 on).
|
|
171
|
+
set(REACTNATIVE_MERGED_SO true)
|
|
172
|
+
|
|
169
173
|
{{ libraryIncludes }}
|
|
170
174
|
|
|
171
175
|
set(AUTOLINKED_LIBRARIES
|
|
@@ -115,6 +115,10 @@ class GenerateAutolinkingNewArchitecturesFileTaskTest {
|
|
|
115
115
|
cmake_minimum_required(VERSION 3.13)
|
|
116
116
|
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
117
117
|
|
|
118
|
+
# We set REACTNATIVE_MERGED_SO so libraries/apps can selectively decide to depend on either libreactnative.so
|
|
119
|
+
# or link against a old prefab target (this is needed for React Native 0.76 on).
|
|
120
|
+
set(REACTNATIVE_MERGED_SO true)
|
|
121
|
+
|
|
118
122
|
|
|
119
123
|
|
|
120
124
|
set(AUTOLINKED_LIBRARIES
|
|
@@ -137,6 +141,10 @@ class GenerateAutolinkingNewArchitecturesFileTaskTest {
|
|
|
137
141
|
cmake_minimum_required(VERSION 3.13)
|
|
138
142
|
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
139
143
|
|
|
144
|
+
# We set REACTNATIVE_MERGED_SO so libraries/apps can selectively decide to depend on either libreactnative.so
|
|
145
|
+
# or link against a old prefab target (this is needed for React Native 0.76 on).
|
|
146
|
+
set(REACTNATIVE_MERGED_SO true)
|
|
147
|
+
|
|
140
148
|
add_subdirectory(./a/directory/ aPackage_autolinked_build)
|
|
141
149
|
add_subdirectory(./another/directory/ anotherPackage_autolinked_build)
|
|
142
150
|
add_subdirectory(./another/directory/cxx/ anotherPackage_cxxmodule_autolinked_build)
|
|
@@ -54,7 +54,8 @@ tasks.withType<KotlinCompile>().configureEach {
|
|
|
54
54
|
apiVersion = "1.6"
|
|
55
55
|
// See comment above on JDK 11 support
|
|
56
56
|
jvmTarget = "11"
|
|
57
|
-
allWarningsAsErrors =
|
|
57
|
+
allWarningsAsErrors =
|
|
58
|
+
project.properties["enableWarningsAsErrors"]?.toString()?.toBoolean() ?: false
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
|
package/shared/build.gradle.kts
CHANGED
|
@@ -30,7 +30,8 @@ tasks.withType<KotlinCompile>().configureEach {
|
|
|
30
30
|
kotlinOptions {
|
|
31
31
|
apiVersion = "1.6"
|
|
32
32
|
jvmTarget = "11"
|
|
33
|
-
allWarningsAsErrors =
|
|
33
|
+
allWarningsAsErrors =
|
|
34
|
+
project.properties["enableWarningsAsErrors"]?.toString()?.toBoolean() ?: false
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -24,7 +24,8 @@ tasks.withType<KotlinCompile>().configureEach {
|
|
|
24
24
|
kotlinOptions {
|
|
25
25
|
apiVersion = "1.6"
|
|
26
26
|
jvmTarget = "11"
|
|
27
|
-
allWarningsAsErrors =
|
|
27
|
+
allWarningsAsErrors =
|
|
28
|
+
project.properties["enableWarningsAsErrors"]?.toString()?.toBoolean() ?: false
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|