-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to specify targets in add-to-app host apps #7772
Comments
See documentation.
|
@jmagman I need run flutter Module standalone for testing. |
What do you need to update in the Podfile?
Do you mean
|
Hi @jmagman
I need add some local pod dependency to podfile.
Yes. That help me with this command. But as you known, with this solution I must always run this command before build native app to in case it was regenerated. It seem flutter project don't auto regenerate these file. Is that right?. Have anyway to make flutter module work the same with flutter project Thanks, |
@xster I think we need a more comprehensive runWithEntrypoint: example in the documentation.
Can you give us more details about this? Since the module doesn't contain any custom platform code, I'm curious what would need additional dependencies outside Flutter plugins. |
Yup. This maybe not a best practices. |
The way to do this is to update your plugin's |
Hi,
And in my plugin podspec:
Because this is local development pod. So I must define it in podfile. |
Hi @jmagman Thanks, |
Another issues with localization. |
The One way to implement your example local development pod would be to make a PKLog_Internal Flutter plugin with an You can implement localization in dart, in the host app, or your own Flutter plugin/CocoaPods (see https://guides.cocoapods.org/syntax/podspec.html#resource_bundles). There are also Flutter plugins that allow sharing native bundle resources over method channels so your dart code can access them. Or, as above, make your own simple host app where you have total control over the Xcode project. |
@jmagman re: runWithEntrypoint, is https://flutter.dev/docs/development/add-to-app/ios/add-flutter-screen?tab=engine-objective-c-tab#dart-entrypoint what you had in mind? We could cross-reference it higher in the doc. |
@xster I guess? I couldn't find anywhere what the definition of "entrypoint" was versus target versus flavor, and I couldn't tell looking at the code, either. |
Yes. I see. But problem is we want run flutter module standalone. That help us easy to debug and implement new feature. Thanks, |
You can connect to the flutter module observatory with |
When you embed a Flutter module into an iOS app, ONLY the compiled dart code and Flutter plugins and their dependencies get embedded. You can make a great app with custom iOS views and other platform code in |
Yup. Got it. We just try to find the best solution when we run flutter module standalone. |
This has been documented. Closing this issue. |
I tried to integrate flutter module into our existing project.
I have some update some file in .ios folder ex: podfile.
Sometime it was regenerate when i run flutter packages get. So that my configurations was override.
Have anyway to stop it?
Thanks,
The text was updated successfully, but these errors were encountered: