Skip to content
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

Flutter Support #67

Open
mike14u opened this issue Feb 14, 2019 · 32 comments
Open

Flutter Support #67

mike14u opened this issue Feb 14, 2019 · 32 comments
Assignees

Comments

@mike14u
Copy link

@mike14u mike14u commented Feb 14, 2019

Describe the solution you'd like
Adding a support for Flutter projects would be awesome, (importing, building, etc)

Describe alternatives you've considered
None.

@jwhiteDev

This comment has been minimized.

Copy link
Collaborator

@jwhiteDev jwhiteDev commented Feb 14, 2019

This is one the team is definitely keeping an eye on to track the interest.

@patniko patniko self-assigned this Feb 14, 2019
@patniko patniko added the platform label Feb 14, 2019
@nate-eisner

This comment has been minimized.

Copy link

@nate-eisner nate-eisner commented Mar 12, 2019

Looking forward to this.

It seems an iOS Flutter app can get built via appcenter. For android, it fails to find the necessary android files with the same project.
Figured out this issue ^^

Turns out you can build a flutter app but its not plug and play.

@darrencrossley

This comment has been minimized.

Copy link

@darrencrossley darrencrossley commented Mar 22, 2019

@nate-eisner care to share your solution? - I have the same issue even after using the build scripts found here: https://github.com/Microsoft/appcenter-build-scripts-examples/tree/master/flutter

App center finds our iOS project, but with android it fails to identify the project in the Repo.

@nate-eisner

This comment has been minimized.

Copy link

@nate-eisner nate-eisner commented Mar 29, 2019

@nate-eisner care to share your solution? - I have the same issue even after using the build scripts found here: https://github.com/Microsoft/appcenter-build-scripts-examples/tree/master/flutter

App center finds our iOS project, but with android it fails to identify the project in the Repo.

@darrencrossley
What was missing for me was the gradle wrapper files. They use those to detect that this is an android project.

Make sure you commit android/gradle/wrapper/gradle-wrapper.jar , android/gradlew, and android/gradlew.bat

@sawankumarbundelkhandi

This comment has been minimized.

Copy link

@sawankumarbundelkhandi sawankumarbundelkhandi commented Apr 22, 2019

@jtn-d

This comment has been minimized.

Copy link

@jtn-d jtn-d commented May 24, 2019

@rob-piktical

This comment has been minimized.

Copy link

@rob-piktical rob-piktical commented Jul 18, 2019

Forcibly adding android/gradle/wrapper/gradle-wrapper.jar , android/gradlew and android/gradlew.bat did the job for me.

@RenanDelfanti

This comment has been minimized.

Copy link
Contributor

@RenanDelfanti RenanDelfanti commented Aug 21, 2019

Any update?

@jwargo

This comment has been minimized.

Copy link
Collaborator

@jwargo jwargo commented Aug 23, 2019

@RenanDelfanti not yet. Still something we're looking at, talking with customers, etc. Do you have to chat with us about the apps you're building using Flutter?

@RenanDelfanti

This comment has been minimized.

Copy link
Contributor

@RenanDelfanti RenanDelfanti commented Aug 28, 2019

@jwargo Thanks for the answer! I tried to build my app with the post script and everything worked great!

@nrajpurkar

This comment has been minimized.

Copy link
Collaborator

@nrajpurkar nrajpurkar commented Sep 19, 2019

Happy to see so many builds working with the addition of the build scripts. We're very curious to hear what services matter to those of you working on Flutter. Where else in App Center would you be looking for Flutter support?

@RenanDelfanti

This comment has been minimized.

Copy link
Contributor

@RenanDelfanti RenanDelfanti commented Sep 19, 2019

Happy to see so many builds working with the addition of the build scripts. We're very curious to hear what services matter to those of you working on Flutter. Where else in App Center would you be looking for Flutter support?

@nrajpurkar In my current project, I would like to unify my builds and analysis in appcenter.
I suggest a dart package to support Analytics of appcenter.

@mike14u

This comment has been minimized.

Copy link
Author

@mike14u mike14u commented Sep 20, 2019

Happy to see so many builds working with the addition of the build scripts. We're very curious to hear what services matter to those of you working on Flutter. Where else in App Center would you be looking for Flutter support?

@nrajpurkar Full Flutter support and be able to possibly run Flutter tests as well, that way AppCenter can compete w/ codemagic.io

@lewcianci

This comment has been minimized.

Copy link

@lewcianci lewcianci commented Sep 24, 2019

I've actually moved to codemagic because appcenter doesn't support this. I actually find it a lot easier to use.... But VSAC can win me back if they add Flutter support :)

@jwargo

This comment has been minimized.

Copy link
Collaborator

@jwargo jwargo commented Sep 25, 2019

@lewcianci thanks, we'll keep pushing for it.

@c3bryant

This comment has been minimized.

Copy link

@c3bryant c3bryant commented Oct 3, 2019

I want to share my experience, to hopefully help save others some time when going down this path.

It did not seem clear or up-front that App Center does not support Flutter.

After few searches online, you will find several build scripts and Medium/other articles walking through how to setup Flutter CI with App Center. Microsoft(App Center) hosts post-clone build scripts for this exact purpose as others have pointed out, here: https://github.com/microsoft/appcenter/tree/master/sample-build-scripts/flutter.

None of this worked for me.

After talking with App Center support for a week or so I got the following response:

Currently Flutter build is not supported and I have already tagged this as a feature request +1 for our production team to review.
Do you mind making your feature request on our Github repo: https://github.com/Microsoft/appcenter/issues
You may also search there to see if it has already been submitted. In that case, please 👍 the issue to show your interest. You can also check to see if it is in our upcoming iteration plan: https://github.com/Microsoft/appcenter/wiki/Iteration-Plans

This response contradicts some of the replies on this issue. Users indicate that they were able to get Flutter CI working in App Center, perhaps without 'full' support. ¯_(ツ)_/¯

That said, App Center is an amazing tool. Our team has been using it for our React Native project for a few years with no issues, and we hope to be able to do so in the future as we explore other mobile frameworks.

@jwargo

This comment has been minimized.

Copy link
Collaborator

@jwargo jwargo commented Oct 4, 2019

@c3bryant I apologize for the issues you faced. Flutter is not a supported platform on App Center although it is something we're considering (and I personally want to see happen). It shouldn't be listed anywhere as a supported platform as we don't usually list what platforms we don't support :-)

We do have customers that have gotten it to work for one or more services and we published those build scripts to help customers who want to hack away at it with them until we add formal support. There are even developers who've built Flutter wrappers around our SDK and use them in production apps without issue. That's all we have to offer until we add formal support for the platform/framework.

@luismarquesfreire

This comment has been minimized.

Copy link

@luismarquesfreire luismarquesfreire commented Oct 7, 2019

We were building flutter apps for iOS with no problem but it stopped working. Now it says "CocoaPods installed but not initialized. Skipping pod install." and "To initialize CocoaPods, run:
pod setup". I added pod setup as requested on the post build script but it also didn't work. Anyone else with this issue?

@jeffaknine

This comment has been minimized.

Copy link

@jeffaknine jeffaknine commented Oct 7, 2019

Having the same issue for a few days now

@luismarquesfreire

This comment has been minimized.

Copy link

@luismarquesfreire luismarquesfreire commented Oct 7, 2019

@jeffaknine my colleague just found a way to resolve this. Force the installation of Cocoapods:

#!/usr/bin/env bash
#Place this script in project/ios/

# fail if any command fails
set -e
# debug log
set -x

sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.7.5
pod setup

cd ..
git clone -b beta https://github.com/flutter/flutter.git
export PATH=`pwd`/flutter/bin:$PATH

flutter channel stable
flutter doctor
flutter pub get

echo "Installed flutter to `pwd`/flutter"

flutter build ios --release --no-codesign
@jeffaknine

This comment has been minimized.

Copy link

@jeffaknine jeffaknine commented Oct 7, 2019

@luismarquesfreire I already have the "uninstall" and "install" and I have the following problem : "The Podfile does not contain any dependencies"
"CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner to Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig or include the Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig in your build configuration (Flutter/Release.xcconfig)."
Any ideas ?

@luismarquesfreire

This comment has been minimized.

Copy link

@luismarquesfreire luismarquesfreire commented Oct 7, 2019

@jeffaknine are you using the script exactly as I provided? It seems that you're running pod install but you can't. Flutter build will do it for you. Remove pod install from your script. You can actually see Podfile file and see that there are no dependencies there, that's because flutter handles it for you with the dependencies stated at pubspec.

@semantix-danl

This comment has been minimized.

Copy link

@semantix-danl semantix-danl commented Oct 9, 2019

@jeffaknine my colleague just found a way to resolve this. Force the installation of Cocoapods:

#!/usr/bin/env bash
#Place this script in project/ios/

# fail if any command fails
set -e
# debug log
set -x

sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.7.5
pod setup

cd ..
git clone -b beta https://github.com/flutter/flutter.git
export PATH=`pwd`/flutter/bin:$PATH

flutter channel stable
flutter doctor
flutter pub get

echo "Installed flutter to `pwd`/flutter"

flutter build ios --release --no-codesign

Thanks @luismarquesfreire,
Our iOS builds are now working again :) ...
We were using the same method to fix this as well but had the uninstall/install cocoapods after "clone flutter" and it wasn't working.

@ragu89

This comment has been minimized.

Copy link

@ragu89 ragu89 commented Oct 14, 2019

it works also for me (in the appcenter-post-clone.sh script).
Thank you

@matheusrezende

This comment has been minimized.

Copy link

@matheusrezende matheusrezende commented Oct 25, 2019

is this going anywhere?

@filiphosko

This comment has been minimized.

Copy link

@filiphosko filiphosko commented Nov 4, 2019

Building the app through App Center pipeline is one thing but having the SDK for crashes, analytics, push notifications etc. is another. It would be great if App Center could support Flutter - we use App Center with all our React Native apps but we are seriously considering developing our upcoming projects with Flutter.

@jwargo

This comment has been minimized.

Copy link
Collaborator

@jwargo jwargo commented Nov 4, 2019

@filiphosko how many apps? How many users are we talking here? Feel free to email me (email address is in my GitHub profile).

@webskydavid

This comment has been minimized.

Copy link

@webskydavid webskydavid commented Nov 6, 2019

It would be nice to have flutter support in Appcenter. My company has MS business solutions and we add apps in appcenter for internal purpose. Now we think to use flutter for our app development, and there for we need that Appcenter support flutter.

@jwargo

This comment has been minimized.

Copy link
Collaborator

@jwargo jwargo commented Nov 6, 2019

@webskydavid how many apps? How many users are we talking here? Feel free to email me (email address is in my GitHub profile).

@jkatsiotis

This comment has been minimized.

Copy link

@jkatsiotis jkatsiotis commented Nov 28, 2019

I'm trying to build my flutter app using the above workaround however I'm getting a generic gradle error.

Can someone help?

Installed flutter to /Users/runner/runners/2.160.1/work/1/s/flutter
Running "flutter pub get" in s...                                   9.1s
Initializing gradle...                                             10.5s
Resolving dependencies...                                       
* Error running Gradle:
ProcessException: Process "/Users/runner/runners/2.160.1/work/1/s/android/gradlew" exited abnormally:
Starting a Gradle Daemon (subsequent builds will be faster)
Gradle 5.6.2

Please review your Gradle project setup in the android/ folder.
##[error]/bin/bash failed with return code: 1
##[error]Bash failed with error: /bin/bash failed with return code: 1
@evandropomatti

This comment has been minimized.

Copy link

@evandropomatti evandropomatti commented Dec 10, 2019

We are looking forward for this feature.

Using Codemagic (really good tool) but it lacks integration with custom SSO, and our policies require that to be available.

@hanabi1224

This comment has been minimized.

Copy link

@hanabi1224 hanabi1224 commented Dec 14, 2019

Could not find official SDK for flutter, end up building up one that wraps up android / ios SDK . https://pub.flutter-io.cn/packages/flutter_appcenter_bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.