Stay up to date with the latest marketing, sales and service tips and news.
Qt Gradle 插件 1.3 (QtGP) 现已正式发布!该插件可用于 Qt Tools for Android Studio 以及 Qt Quick for Android 的 API 示例。您现在可以像集成任何其他 Gradle 插件一样,通过 Maven Central 轻松集成 QtGP。如果您错过了 1.2 版本,请查看我们之前的博客文章 QtGP 1.2。现在,让我们深入了解 1.3 版本的新特性!
更新内容
支持多项目构建结构:
在早期版本中,项目的配置是在应用程序build.gradle 中QtBuild 部分完成的。在 1.3 版本中,您现在可以通过gradle.properties 文件进行配置,这大大简化了对多项目 Gradle 构建的支持。所有新属性都以qt 为前缀。 原有的QtBuild 部分目前仍受支持,但已被标记为弃用(deprecated),并将在未来的主版本(最早于 2.0 版)中移除。 请参考下表了解新旧语法的对应关系,更多详情请查看 Qt Gradle Plugin 文档!
| Qt.Build 部分 | gradle.properties |
| qtPath | qt.path |
| qtProjectPath | qt.projectPath |
| qtKitDir | qt.abiPath |
| qtNinjaPath | qt.ninjaPath |
| qtExtraCMakeArguments | qt.extraCMakeArguments |
Product Flavors 的使用说明
如果你的项目使用 Product Flavors,Qt Gradle 插件现在提供了如何配置您所需的特性指南。
其他改进下一步计划?
您希望在未来版本的插件中看到哪些新功能?欢迎在下方评论区留言告诉我们!您可以通过 bugreports.qt.io 跟踪开发进度并提供反馈。
Stay up to date with the latest marketing, sales and service tips and news.
Download the latest release here: www.qt.io/download.
Qt 6 was created to be the productivity platform for the future, with next-gen 2D & 3D UX and limitless scalability.
Find webinars, use cases, tutorials, videos & more at resources.qt.io
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Näytä tämä julkaisu Instagramissa.Henkilön Qt (@theqtcompany) jakama julkaisu