mmcc007 / flown Goto Github PK
View Code? Open in Web Editor NEWClone a flutter app from a url.
License: BSD 2-Clause "Simplified" License
Clone a flutter app from a url.
License: BSD 2-Clause "Simplified" License
From within VS Code.
PS C:\Projects> pub global activate flown
pub : The term 'pub' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
Might be great to have the documentation mention that the Dart SDK is needed to run the install command from the command line.
If a dependent package is found in the root of a repo during cloning, the '.git' directory should be removed in this package from the resulting cloned standalone app (otherwise it looks like a git submodule in the cloned standalone app).
Also, and not as important, since this parent package is a parent of the app being cloned (by definition), the sub-directory leading to the parent package should be deleted in the parent package in the resulting cloned standalone app.
Workaround is just to delete the .git directory and the related sub-directory manually from the related package in the resulting cloned standalone app.
I made the vanilla_project by flown, but the created project has the error Target URI doesn't exists in the local repositories todos_repository
and todos_repository_flutter
, flutter_architecture_samples
. Though I executed flutter packages get
, the error occurs.
But I was able to run the vanilla app.
Why this error occurs? How to fix this error?
/Applications/flutter
Firstly, I made the symbolic links of pub
and dart
to install flown.
$ ln -s /Applicatoin/flutter/bin/cache/dart-sdk/bin/pub /usr/local/bin/pub
$ ln -s /Applicatoin/flutter/bin/cache/dart-sdk/bin/dart /usr/local/bin/dart
Then, I installed flown and I added the path of packages installed via pub in ~/.bashrc
.
$ pub global activate flown
export PATH="$PATH":"$HOME/.pub-cache/bin"
I made the project by flown.
flown --arch vanilla --name vanilla_project
I opened this project by Create New Project
in IntelliJ, but I got in trouble at this time.
IntelliJ stop at the screen of "Creating Flutter Project". I solved this trouble by killall dart
, along with this issue.
The project was loaded, and I executed Packages get
.
Then, it reports the error, but the app can run.
[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.13.3 17D47, locale ja-JP)
• Flutter version 1.0.0 at /Applications/flutter
• Framework revision 5391447fae (3 weeks ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[!] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
✗ Verify that all connected devices have been paired with this computer in Xcode.
If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
To update with Brew, run:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
• ios-deploy 1.9.2
✗ ios-deploy out of date (1.9.4 is required). To upgrade with Brew:
brew upgrade ios-deploy
• CocoaPods version 1.5.3
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
[✓] IntelliJ IDEA Community Edition (version 2018.1.5)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 26.0.2
• Dart plugin version 181.4892.1
[✓] Connected device (1 available)
• iPhone 6s • D3C6D104-5270-489B-BABC-B0FC77CA3E06 • ios • iOS 11.4 (simulator)
! Doctor found issues in 3 categories.
Executing the following command results in an error creating the project. Seems the script can't create the tmp folder.
c:\Projects>flown --arch bloc_flutter --name example_bloc
Cloning https://github.com/brianegan/flutter_architecture_samples.git to /tmp...
CreateProcessW failed 267
Unhandled exception:
ProcessException: The directory name is invalid.
Command: git clone https://github.com/brianegan/flutter_architecture_samples.git
#0 _cmd (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:175:7)
#1 _buildProject (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:112:11)
#2 main (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:35:3)
#3 _startIsolate. (dart:isolate/runtime/libisolate_patch.dart:277:32)
#4 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)
Cloning https://github.com/brianegan/flutter_architecture_samples.git to /tmp...
CreateProcessW failed 267
Unhandled exception:
ProcessException: The directory name is invalid.
Command: git clone https://github.com/brianegan/flutter_architecture_samples.git
#0 _cmd (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:175:7)
#1 _buildProject (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:112:11)
#2 main (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:35:3)
#3 _startIsolate. (dart:isolate/runtime/libisolate_patch.dart:277:32)
#4 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.