使用Swift和Kotlin重新创建Flutter的ios和android文件夹 [英] Recreate Flutter's ios and android folder with Swift and Kotlin

查看:45
本文介绍了使用Swift和Kotlin重新创建Flutter的ios和android文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现可以用Swift和Kotlin创建Flutter项目.但是,我已经投资了我当前的项目,并想将 ios android 重新创建为Swift和Kotlin(当前默认为Java和ObjC).

谢谢.

解决方案

使用 -i -a 创建新项目,如下所示:

  flutter创建-i swift -a kotlin project_name 

另请参见: https://flutter.io/docs/development/platform-integration/platform-channels#step-1-create-a-new-app-project

然后用旧项目中的 lib 文件夹替换.


更新2020.01.13
swift和kotlin现在是默认设置.您可以使用这些命令来更新现有项目:

  cd项目扑扑地创建. 

此命令将更新您的项目.那么您可以将旧代码合并到新项目中,然后删除旧代码.
确保在运行项目之前先备份项目,并且知道自己在做什么

Hi I just found out that it is possible to create Flutter project with Swift and Kotlin. However, I'm already invested in my current projects and want to recreate the ios and android as Swift and Kotlin (currently they are default to Java and ObjC).

Thanks.

解决方案

use -i and -a to create new project, like this:

flutter create -i swift -a kotlin project_name

see also:https://flutter.io/docs/development/platform-integration/platform-channels#step-1-create-a-new-app-project

then replace with lib folder from old project.


update 2020.01.13
swift and kotlin are default now. you can use those command to update exist project:

cd project
flutter create .

this command will update your project. then you can merge you old code into new project, and remove old code.
make sure you backup your project before run it, and you know what are you exactly doing

这篇关于使用Swift和Kotlin重新创建Flutter的ios和android文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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