You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In add-to-app documentation or samples, show examples of non-trivial native code in the host app, not the module #32883
This is by design. The projects in .android and .ios are little helper bootstrap projects to let you quickly see your compiled dart code without needing to run your existing app. The platform code is not intended to be editable, is ephemeral, and is deleted with flutter clean. You should be changing files and app icons in your existing app, not the little module example project.
Note: Add custom iOS code to your existing application or a plugin, not to the module in .ios/. Changes made in .ios/ aren’t embedded in your existing application. Regenerate the directory by running flutter clean or flutter pub get in the my_flutter directory.
We already figured this out, so thanks @jmagman
for also putting this in the documentation.
I still think there is some gap in the developer experience.
Maybe this can be solved by providing some insights in the documentation on how the add-to-app module can be developed and tested in isolation by a dedicated Flutter development team.
We have experienced this quite some time.
We have developers for iOS, Android and Flutter.
When the Flutter developers build something they don't want to wait for the iOS team to build it into the app to develop and test.
So the Flutter team has to build their own wrapper.
I think some best practices and/or example projects on how this could be achieved would be great in the docs as it's not that trivial and there are many ways to achieve this each with their pros/cons.
changed the title [-]Changing Flutter version/Flutter overrides .ios and .android files[/-][+]In add-to-app documentation or samples, show examples of non-trivial native code in the host app, not the module[/+]on Jan 17, 2020
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jackuhan commentedon Jun 20, 2019
+1
yueshaojun commentedon Jun 20, 2019
+10086
jmagman commentedon Dec 19, 2019
This is by design. The projects in .android and .ios are little helper bootstrap projects to let you quickly see your compiled dart code without needing to run your existing app. The platform code is not intended to be editable, is ephemeral, and is deleted with
flutter clean. You should be changing files and app icons in your existing app, not the little module example project.https://flutter.dev/docs/development/add-to-app/ios/project-setup#module-organization
Looks like this note is missing from https://flutter.dev/docs/development/add-to-app/android/project-setup.
IchordeDionysos commentedon Dec 19, 2019
We already figured this out, so thanks @jmagman
for also putting this in the documentation.
I still think there is some gap in the developer experience.
Maybe this can be solved by providing some insights in the documentation on how the add-to-app module can be developed and tested in isolation by a dedicated Flutter development team.
We have experienced this quite some time.
We have developers for iOS, Android and Flutter.
When the Flutter developers build something they don't want to wait for the iOS team to build it into the app to develop and test.
So the Flutter team has to build their own wrapper.
I think some best practices and/or example projects on how this could be achieved would be great in the docs as it's not that trivial and there are many ways to achieve this each with their pros/cons.
jmagman commentedon Dec 19, 2019
\cc @redbrogdon
[-]Changing Flutter version/Flutter overrides .ios and .android files[/-][+]In add-to-app documentation or samples, show examples of non-trivial native code in the host app, not the module[/+]xster commentedon Oct 12, 2020
https://flutter.dev/docs/development/add-to-app/ios/project-setup and https://flutter.dev/docs/development/add-to-app/android/project-setup both now have warnings about generally not modifying data inside the .android and .ios folders. There's a "non-trivial" Android project for add-to-app in https://github.com/flutter/samples/tree/master/add_to_app/android_books.
github-actions commentedon Aug 11, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.