Flutter,哪个文件夹不提交给svn [英] Flutter, which folder not to commit to svn

查看:607
本文介绍了Flutter,哪个文件夹不提交给svn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

android和ios文件夹需要提交到svn吗?

Do android and ios folder need to commit to svn?

我相信/build .packages不会提交.

I believe /build .packages are not to be committed.

我没有找到有关此主题的详细文档.我只找到此 https://www.dartlang.org/guides/libraries/private-文件

I haven't found detailed docs on this topic. I only find this https://www.dartlang.org/guides/libraries/private-files

我知道有.gitignore文件,但我认为此文件被忽略了,因为我使用的是TortoiseSVN.每次提交时,我都会提交200多个文件.并且可能会影响其他用户进行更新.

I'm aware there is .gitignore file but I think this file is ignored because I'm using TortoiseSVN. Every time I commit I got like 200+ files committed. And may affect other users when they do update.

推荐答案

android和ios文件夹需要提交到svn吗?

Do android and ios folder need to commit to svn?

,请始终将这些文件夹指定为svn(但您可以跳过一些自动生成的文件)

Yes, always comit these folders to svn(but you can skip some auto generated files)

Flutter项目中有三个主要文件夹: libandroidios.

There are three main folders in the Flutter project: lib, android and ios.

lib会处理您的Dart文件. Android和iOS 文件夹用于在运行Dart文件的相应平台上实际构建应用程序.它们还帮助您向项目添加权限和特定于平台的功能.当您运行Flutter项目时,它会根据运行的模拟器或设备进行构建,并使用其中的文件夹进行Gradle或XCode的构建.

lib takes care of your Dart files. The Android and iOS folders exist to actually build an app on those respective platforms with the Dart files running on them. They also help you add permissions and platform-specific functionality to your project. When you run a Flutter project, it builds depending on which emulator or device it is running on, doing a Gradle or XCode build using the folders inside it.

简而言之,这些文件夹是整个应用程序,为Flutter代码的运行奠定了基础.

不要提交以下文件和目录:

Don’t commit the following files and directories:

# See https://www.dartlang.org/tools/private-files.html

# Files and directories created by pub
.packages
.pub/
build/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock

# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/

来自flutter create:

.DS_Store
.atom/
.idea
.packages
.pub/
build/
ios/.generated/
packages
pubspec.lock
.flutter-plugins

有关更多信息,请参考,以检查哪些文件是自动的生成.

For more information please refer this to check which files are auto generated.

希望这对您有帮助

这篇关于Flutter,哪个文件夹不提交给svn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆