gradle工具和技巧
https://jitpack.io/
Github项目Gradle or Maven依赖
JitPack makes it easy to release your projects as Maven artifacts. It builds and publishes Gradle/Maven/Android projects on GitHub.manifestPlaceholders
Gradle配置文件自定义变量:
manifestPlaceholders = [scheme: "laomo.dev"]
使用:
<data android:scheme="${scheme}" />
buildConfigField
定义:
buildConfigField 'String', 'HOST', '"http://192.168.1.34:3000"'
使用:
BuildConfig.HOST
Eclipse项目彻底切换到studio项目
在引导页面选择导入非studio项目即可,选择覆盖模式
buildTypes && productFlavors
应用多渠道或者多版本定制
shrinkResources
Gradle打包时删除无用资源文件
How to provide different Android app icons for different gradle buildTypes?
I have two build types set in my gradle file: debug and release. I'd like to be able to set a different app icon for the debug build type. Is there any way to this just through the build type, with...
评论(0)