-
Notifications
You must be signed in to change notification settings - Fork 950
This discussion was created from the release v8.0.0-alpha.0.
All reactions
-
👍 1 -
👀 1
Replies: 3 comments 8 replies
The auto-linking of iOS native libs for some packages is broken. and it looks like the ones that overrides ios dependency in the config or config.
Does not reproduce with 7.0.2
Also, I can see this warning:
warn Package react-native-flipper has been ignored because it contains invalid configuration. Reason: "dependency.platforms.ios.project" is not allowed
All reactions
cc @grabbou (he's on vacation right now, so might respond later)
All reactions
Just an FYI for people in case they come across this, this is why some plugins (e.g. redux-flipper) have stopped working and for the message
The native module for Flipper seems unavailable. Please verify that `react-native-flipper` is installed as yarn dependency to your project and, for iOS, that `pod install` is run in the `ios` directory.
It looks like the following patch works for iOS and Android (you'll need to rebuild/pod install)
diff --git a/node_modules/react-native-flipper/react-native.config.js b/node_modules/react-native-flipper/react-native.config.js
index 9b962ed..35cbe80 100644
--- a/node_modules/react-native-flipper/react-native.config.js
+++ b/node_modules/react-native-flipper/react-native.config.js
@@ -8,13 +8,4 @@
*/
module.exports = {
- dependency: {
- platforms: {
- ios: {
- // This file should not be needed at all, but without it.
- // cli 4.2.2 will search for an xcode project
- project: '.',
- },
- },
- },
};
All reactions
👋 I noticed that with v8 there are less project configuration properties for Android project (old vs new). In new version there is no possibility to specify custom path for build and settings Gradle scripts.
My use case would be to have a support for Gradle scripts in Kotlin DSL (instead of Groovy DSL).
With cli versions < 8, it was possible to specify path that points to build.gradle.kts (and not build.gradle) file. Without that manual workaround, autolinking fails with Couldn't locate file at '<path-to-app-project>/build.gradle' .
Will it still be possible to pass different path to the configuration? Or will cli support Gradle Kotlin DSL at some point?
All reactions
Sure, actually I tested v8 and it properly handles Kotlin DSL 👍 . I will make PRs for v6 and v7
All reactions
Hm, since it's working with v8 as you tested and it also works with v7 with a small configuration change, maybe it's not worth to change it at all?
All reactions
I think that small configuration change is a workaround. If we can fix it, then I think it's worth it.
Also v6 & v7 will still be used for some time and as I understand, we don't need to specify exact version of cli when bootstrapping projects, so it should automatically pick latest one, shouldn't it?
All reactions
Yup, as long as it's not locked with a lockfile