android 和 ios 文件夹需要提交到 svn 吗?
我相信 /build .packages 不会被提交。
我还没有找到关于这个主题的详细文档。我只找到这个https://www.dartlang.org/guides/libraries/private-files
我知道有 .gitignore 文件,但我认为这个文件被忽略了,因为我使用的是 TortoiseSVN。每次我提交时,我都会提交 200 多个文件。并且在其他用户进行更新时可能会影响他们。
android 和 ios 文件夹需要提交到 svn 吗?
是的,始终将这些文件夹提交到 svn(但您可以跳过一些自动生成的文件)
Flutter 项目中有三个主要文件夹:
lib,android和ios.
lib照顾你的 Dart 文件。在Android和iOS文件夹存在实际上在其上运行的飞镖文件的各自的平台上开发应用。它们还帮助您向项目添加权限和特定于平台的功能。当您运行 Flutter 项目时,它会根据运行的模拟器或设备进行构建,使用其中的文件夹进行 Gradle 或 XCode 构建。
简而言之,这些文件夹是整个应用程序,它们为 Flutter 代码的运行奠定了基础。
不要提交以下文件和目录:
# 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/
Run Code Online (Sandbox Code Playgroud)
来自flutter create:
.DS_Store
.atom/
.idea
.packages
.pub/
build/
ios/.generated/
packages
pubspec.lock
.flutter-plugins
Run Code Online (Sandbox Code Playgroud)
有关更多信息,请参阅此以检查自动生成的文件。
希望这会帮助你
| 归档时间: |
|
| 查看次数: |
4090 次 |
| 最近记录: |