A small framework to split app into small parts
Bugfixes:
buildCache
时,解析 AarPath 出现 Failed to parse aar module
的问题Performance:
cleanLib
, cleanBundle
任务不再清空 debug 模式下的编译数据,避免 R 文件飘红,影响开发app-D.txt
里重复添加 support-compat
与 support-core-utils
依赖丰富接入案例页面
开启技术支持服务
首批免费帮助10个产品用上Small (已有6个公司报名)
实践出真知,Small期望能与更多的企业合作,从真实案例中汲取营养,互利共生,打造更加完善的Small。
如果你有使用Small已经上线的项目,或者想报名技术支持服务,请在QQ上联系我。
Features:
支持 Kotlin
现在,只需要在工程根目录加上对 kotlin-gradle-plugin
的依赖,Small 将查找 src/main/java
目录包含 *.kt
文件的模块,并为他们自动加上对 Kotlin 语言的支持。
示例:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'net.wequick.tools.build:gradle-small:1.2.0-alpha2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.2-4' // 一行支持Kotlin
}
}
有关示例可以查看 kotlin 分支
Bugfixes:
Performance:
ic_launcher_round.png
资源Bugfixes:
Features:
🎉 gradlew smallLint
方法支持自定义gradle来检测插件问题
添加自定义单元测试步骤:
xxTests.gradle
xxTests
类 (继承至 BundleUnitTests
)testXx
方法,在方法中使用 tAssert
来断言测试Bugfixes:
android:label
属性导致的误提示:'请使用 gradle-small 0.9 以上编译' 的问题 (#313)Features:
android:configChanges
属性 (#466, #280, #276, #108, #418)rules
通过 ""
字段来自定义主路由Bugfixes:
Bugfixes:
<b>Hello</b>
)无法被正确编译的问题 (#335, @jasonrongdevelop, @WayJ)Bugfixes:
Features:
gradlew smallLint
任务用于检查插件问题
aarVersion
默认与 gradle-small
版本保持一致Bugfixes:
support-compat
与 support-core-utils
冲突的问题Refactor:
Bugfixes:
Other: