每次 MainActivity.kt 发生更改后,使用原生 Kotlin 重建 Flutter?

发布于 2025-01-17 03:46:58 字数 238 浏览 1 评论 0原文

我们目前正在开发一款 Flutter 应用程序,该应用程序使用本机 Kotlin 来显示自定义通知。为此,我们不断更改 MainActivity.kt 文件中的内容。 对于我们想要测试的每个更改,我们需要删除构建并从头开始重建应用程序。简单地重新运行调试是行不通的。由于我们对 Flutter 和 Kotlin 都是新手,我们想知道是否有更好的方法(不必完全重建应用程序)来测试我们在 MainActivity.kt 文件中所做的更改。

提前致谢!

We are currently working on a Flutter app that uses native Kotlin to display custom notifications. To do this we constantly change things in the MainActivity.kt file.
For every change we want to test, we need to delete the build and rebuild the application from scratch. Simply re-running the debug does not work. As we are new with both Flutter and Kotlin we were wondering whether there is a better way (not having to completely rebuild the app) to test changes we make in the MainActivity.kt file.

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文