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
Options for customizing auto-generated ios/android folder #37689
I have frequently run into #32883 where I have to constantly edit my .ios/.android folder to update the minimal ios version or add the google-services.json/GoogleService-Info.plist back in again or to convert the project to AndroidX again.
Doing these repetitive and simple changes over and over again is time-consuming and makes me again as productive as writing native iOS/Android code.
Proposal
So for the minimally targeted OS version, an option in the pubspec.yaml would be great, like:
For adding files like google-services.json/GoogleService-Info.plist it would be great if there was some way of running post-creation scripts which are capable of copying these files to the .ios/.android folder.
(Something like in the Firebase CLI https://firebase.google.com/docs/cli#hooks)
I'm inclined to think that instead of exposing these properties through pubspec.yaml, we might just want to make flutter make-host-app-editable the default, and allow folks to custom these parameters in their corresponding ios/android directories.
Oh @blasten, I wasn't aware of the command flutter make-host-app-editable.
So would that mean I could modify all of these things without them being changed over and over again when I run this command and make the desired changes in the generated android/ios directories?
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
blasten commentedon Aug 6, 2019
This is related to #32989 cc @xster
blasten commentedon Aug 6, 2019
I'm inclined to think that instead of exposing these properties through
pubspec.yaml, we might just want to makeflutter make-host-app-editablethe default, and allow folks to custom these parameters in their corresponding ios/android directories.IchordeDionysos commentedon Aug 7, 2019
Oh @blasten, I wasn't aware of the command
flutter make-host-app-editable.So would that mean I could modify all of these things without them being changed over and over again when I run this command and make the desired changes in the generated
android/iosdirectories?blasten commentedon Aug 8, 2019
Yup, that is correct.
blasten commentedon Aug 8, 2019
Duplicate of #32989
github-actions commentedon Aug 28, 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.