如何从Android Studio构建所有产品口味?

艾哈迈德·阿加扎德(Ahmad Aghazadeh)

我在gradle文件中有很多口味:

      def _versionName = "1.19"
      def _applicationId = "com.site.app"
      productFlavors {
        CafebazarPro {
            applicationId "${_applicationId}"
            versionName "${_versionName}" +"-Cafebazar-Pro"
       }


        CafebazarInPurchase {
            applicationId "${_applicationId}.inpurchase"
            versionName "${_versionName}" +"-Cafebazar-InPurchase"
         }

        //-------------------------------------------

        Cando {
            applicationId ${_applicationId}"
            versionName  "${_versionName}" +"-Cando-Pro"
        }

        //-------------------------------------------

        Myket {
            applicationId "${_applicationId}"
            versionName  "${_versionName}" +"-Myket-Pro"
        }

        //-----------------------------------------

        IranApps {
            applicationId "${_applicationId}"
            versionName  "${_versionName}" +"-IranApps-Pro"
        }
     }

如何自动建立所有风味?不要选择并一一建立。

艾哈迈德·阿加扎德(Ahmad Aghazadeh)

打开Cmd并运行以下命令:

gradlew任务

Build tasks
-----------
assemble - Assembles all variants of all applications and secondary packages.
assembleAndroidTest - Assembles all the Test applications.
assembleDebug - Assembles all Debug builds.
assembleRelease - Assembles all Release builds.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
classes - Assembles main classes.
clean - Deletes the build directory.
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSources
compileReleaseSources
compileReleaseUnitTestSources
jar - Assembles a jar archive containing the main classes.
mockableAndroidJar - Creates a version of android.jar that's suitable for unit tests.
testClasses - Assembles test classes.

Build Setup tasks
-----------------
init - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]

Documentation tasks
-------------------
javadoc - Generates Javadoc API documentation for the main source code.

Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in root project 'src'.
components - Displays the components produced by root project 'src'. [incubating]
dependencies - Displays all dependencies declared in root project 'src'.
dependencyInsight - Displays the insight into a specific dependency in root project 'src'.
help - Displays a help message.
model - Displays the configuration model of root project 'src'. [incubating]
projects - Displays the sub-projects of root project 'src'.
properties - Displays the properties of root project 'src'.
tasks - Displays the tasks runnable from root project 'src' (some of the displayed tasks may belong to subprojects).

Install tasks
-------------
installDebug - Installs the Debug build.
installDebugAndroidTest - Installs the android (on device) tests for the Debug build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.
uninstallRelease - Uninstalls the Release build.

Verification tasks
------------------
check - Runs all checks.
connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.
connectedCheck - Runs all device checks on currently connected devices.
connectedDebugAndroidTest - Installs and runs the tests for debug on connected devices.
deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers.
deviceCheck - Runs all device checks using Device Providers and Test Servers.
lint - Runs lint on all variants.
lintDebug - Runs lint on the Debug build.
lintRelease - Runs lint on the Release build.
test - Run unit tests for all variants.
testDebugUnitTest - Run unit tests for the debug build.
testReleaseUnitTest - Run unit tests for the release build.

Other tasks
-----------
clean
jarDebugClasses
jarReleaseClasses
transformResourcesWithMergeJavaResForDebugUnitTest
transformResourcesWithMergeJavaResForReleaseUnitTest

gradlew assemble-组装所有应用程序和辅助软件包的所有变体。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

如何从Android Studio构建所有产品口味?

来自分类Dev

具有产品口味的Android GCM

来自分类Dev

Gradle Android插件:针对所有产品口味加入后编译任务

来自分类Dev

如何使用Liquid(Shopify)遍历商店的所有产品?

来自分类Dev

如何在magento上显示所有产品图像

来自分类Dev

如何从所有产品中仅删除组价?

来自分类Dev

如何在“信任平台”中列出所有产品?

来自分类Dev

如何删除发票行中的所有产品清单?

来自分类Dev

如何点击所有产品链接,搜索元素并返回。

来自分类Dev

如何在Android Studio中针对所有口味运行Android测试

来自分类Dev

如何从Ubuntu Studio完全删除所有口味的Ubuntu

来自分类Dev

如何从Ubuntu Studio完全删除所有口味的Ubuntu

来自分类Dev

如何使用无形来迭代联产品中的所有产品类型?

来自分类Dev

如何仅显示批准的产品-当前显示所有产品

来自分类Dev

如何从当前的WooCommerce产品类别中获取所有产品?

来自分类Dev

如何检索库存中的所有产品,以及SQL可用的任何产品?

来自分类Dev

如何仅显示批准的产品-当前显示所有产品

来自分类Dev

在 Woocommerce 中,如何查找某个产品是交叉销售的所有产品?

来自分类Dev

如何在Shopify Shop中获得所有产品的所有不同选项?

来自分类Dev

MySQL:如何选择所有产品已付款的所有购物车

来自分类Dev

抓取后如何将列表中所有产品的所有产品信息导出到csv中?

来自分类Dev

如何从Android Studio构建产品风味?

来自分类Dev

如何通过Shopify API从Smart Collection检索所有产品?

来自分类Dev

Shopify-如何选择特定集合中的所有产品?

来自分类Dev

如何编写查询集以显示链接到类别的所有产品?

来自分类Dev

如何在commercetools项目中的所有产品中获得不同数量的变体?

来自分类Dev

如何在特定发票上显示所有产品及其销售数量

来自分类Dev

如何通过Shopify API检索Smart Collection中的所有产品?

来自分类Dev

您如何找到系统上安装的所有产品的许可证?

Related 相关文章

  1. 1

    如何从Android Studio构建所有产品口味?

  2. 2

    具有产品口味的Android GCM

  3. 3

    Gradle Android插件:针对所有产品口味加入后编译任务

  4. 4

    如何使用Liquid(Shopify)遍历商店的所有产品?

  5. 5

    如何在magento上显示所有产品图像

  6. 6

    如何从所有产品中仅删除组价?

  7. 7

    如何在“信任平台”中列出所有产品?

  8. 8

    如何删除发票行中的所有产品清单?

  9. 9

    如何点击所有产品链接,搜索元素并返回。

  10. 10

    如何在Android Studio中针对所有口味运行Android测试

  11. 11

    如何从Ubuntu Studio完全删除所有口味的Ubuntu

  12. 12

    如何从Ubuntu Studio完全删除所有口味的Ubuntu

  13. 13

    如何使用无形来迭代联产品中的所有产品类型?

  14. 14

    如何仅显示批准的产品-当前显示所有产品

  15. 15

    如何从当前的WooCommerce产品类别中获取所有产品?

  16. 16

    如何检索库存中的所有产品,以及SQL可用的任何产品?

  17. 17

    如何仅显示批准的产品-当前显示所有产品

  18. 18

    在 Woocommerce 中,如何查找某个产品是交叉销售的所有产品?

  19. 19

    如何在Shopify Shop中获得所有产品的所有不同选项?

  20. 20

    MySQL:如何选择所有产品已付款的所有购物车

  21. 21

    抓取后如何将列表中所有产品的所有产品信息导出到csv中?

  22. 22

    如何从Android Studio构建产品风味?

  23. 23

    如何通过Shopify API从Smart Collection检索所有产品?

  24. 24

    Shopify-如何选择特定集合中的所有产品?

  25. 25

    如何编写查询集以显示链接到类别的所有产品?

  26. 26

    如何在commercetools项目中的所有产品中获得不同数量的变体?

  27. 27

    如何在特定发票上显示所有产品及其销售数量

  28. 28

    如何通过Shopify API检索Smart Collection中的所有产品?

  29. 29

    您如何找到系统上安装的所有产品的许可证?

热门标签

归档