Skip to content

Commit 6b32c0c

Browse files
committed
gradle-small 1.0.0-beta1, small 1.1.0-beta1
1 parent 7778156 commit 6b32c0c

7 files changed

Lines changed: 53 additions & 8 deletions

File tree

Android/DevSample/buildSrc/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
## 1.0.0-beta1 (2016-07-21)
2+
3+
Features:
4+
5+
- 取消模块名`lib.xx`限制, 可在`build.gradle`里通过`bundles ('lib', [moduleA, moduleB])`来配置
6+
- 取消模块包名`*.app.*`限制, 可在`bundle.json`里通过`type`字段来配置 (`*.app.*`, `*.appXX`形式的包名无需配置, 可被自动识别)
7+
- 增加`gradlew small`任务来显示**Small**环境变量
8+
9+
Performance:
10+
11+
- 避免在编译`lib.A:aR`时触发构建其他`lib.*`模块的`buildLib`任务
12+
- 确保在插件没有资源时能够删除其`resources.arsc`文件来减少插件大小
13+
- 当插件没有资源时, 跳过`资源分离`等操作, 使编译加速
14+
- 避免分离字符串资源时可能产生的重复数据
15+
- 避免不同的`variant`重复调用`preBuild`任务
16+
17+
Bugfixes:
18+
19+
- 修正普通aar模块未生成`R.java`导致的类找不到问题 (#194)
20+
- 修正`lib.*`模块下的`libs/*.jar`中的类找不到问题 (#177)
21+
- 修正`lib.*`模块下的`assets`等目录被重复编译进`app`模块的问题 (#199)
22+
- 修正误改资源压缩格式导致的`raw`下音频文件无法播放的问题 (#215, #172, #220)
23+
- 修正解析字符串结构错误导致的资源无法找到问题 (a049596)
24+
25+
Other:
26+
27+
- 兼容JDK 1.7
28+
129
## 0.9.0 (2016-06-29)
230

331
Features:

Android/DevSample/buildSrc/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
org.gradle.daemon=true
2121

2222
group=net.wequick.tools.build
23-
version=0.9.0
23+
version=1.0.0-beta1

Android/DevSample/small/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## 1.1.0-beta1 (2016-07-21)
2+
3+
Features:
4+
5+
- `bundle.json`支持宿主路由配置 (pkg不配置)
6+
- `bundle.json`支持自定义插件`type`
7+
- 支持将插件manifest的Launcher作为默认路由Activity
8+
- 使用`Instant Run`方式修改宿主资源`mAssets`来完成资源合并, 兼容Xposed (#190)
9+
10+
Bugfixes:
11+
12+
- [重要] 修正插件application在异常重启后无法触发`onCreate`的问题
13+
14+
Other:
15+
16+
- `Bundle`类导出`versionCode``versionName`的获取API
17+
118
## 1.0.0 (2016-06-29)
219

320
Performance:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
group=net.wequick.small
2-
version=1.0.0
2+
version=1.1.0-beta1

Android/GETTING-STARTED.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ buildscript {
3232
}
3333
dependencies {
3434
classpath 'com.android.tools.build:gradle:1.3.0'
35-
classpath 'net.wequick.tools.build:gradle-small:0.9.0'
35+
classpath 'net.wequick.tools.build:gradle-small:1.0.0-beta1'
3636
}
3737
}
3838
@@ -47,7 +47,7 @@ apply plugin: 'net.wequick.small'
4747

4848
```groovy
4949
small {
50-
aarVersion = '1.0.0'
50+
aarVersion = '1.1.0-beta1'
5151
}
5252
```
5353

Android/Sample/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:2.0.0'
9-
classpath 'net.wequick.tools.build:gradle-small:0.9.0'
9+
classpath 'net.wequick.tools.build:gradle-small:1.0.0-beta1'
1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
1212
}
@@ -25,5 +25,5 @@ task clean(type: Delete) {
2525
apply plugin: 'net.wequick.small'
2626

2727
small {
28-
aarVersion = '1.0.0'
28+
aarVersion = '1.1.0-beta1'
2929
}

Android/templates/activities/SmallLauncher/globals.xml.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<global id="assetsOut" value="./app/src/main/assets" />
66
<global id="mavenUrl" value="mavenCentral" />
77
<global id="copyGradleSupported" type="boolean" value="${(compareVersions(gradlePluginVersion, '2.0') < 0)?string}" />
8-
<global id="smallPluginVersion" value="0.9.0" />
9-
<global id="smallAarVersion" value="1.0.0" />
8+
<global id="smallPluginVersion" value="1.0.0-beta1" />
9+
<global id="smallAarVersion" value="1.1.0-beta1" />
1010
</globals>

0 commit comments

Comments
 (0)