Skip to content

Commit

Permalink
gradle-small 1.0.0-beta1, small 1.1.0-beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
galenlin committed Jul 21, 2016
1 parent 7778156 commit 6b32c0c
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 8 deletions.
28 changes: 28 additions & 0 deletions Android/DevSample/buildSrc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## 1.0.0-beta1 (2016-07-21)

Features:

- 取消模块名`lib.xx`限制, 可在`build.gradle`里通过`bundles ('lib', [moduleA, moduleB])`来配置
- 取消模块包名`*.app.*`限制, 可在`bundle.json`里通过`type`字段来配置 (`*.app.*`, `*.appXX`形式的包名无需配置, 可被自动识别)
- 增加`gradlew small`任务来显示**Small**环境变量

Performance:

- 避免在编译`lib.A:aR`时触发构建其他`lib.*`模块的`buildLib`任务
- 确保在插件没有资源时能够删除其`resources.arsc`文件来减少插件大小
- 当插件没有资源时, 跳过`资源分离`等操作, 使编译加速
- 避免分离字符串资源时可能产生的重复数据
- 避免不同的`variant`重复调用`preBuild`任务

Bugfixes:

- 修正普通aar模块未生成`R.java`导致的类找不到问题 (#194)
- 修正`lib.*`模块下的`libs/*.jar`中的类找不到问题 (#177)
- 修正`lib.*`模块下的`assets`等目录被重复编译进`app`模块的问题 (#199)
- 修正误改资源压缩格式导致的`raw`下音频文件无法播放的问题 (#215, #172, #220)
- 修正解析字符串结构错误导致的资源无法找到问题 (a049596)

Other:

- 兼容JDK 1.7

## 0.9.0 (2016-06-29)

Features:
Expand Down
2 changes: 1 addition & 1 deletion Android/DevSample/buildSrc/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
org.gradle.daemon=true

group=net.wequick.tools.build
version=0.9.0
version=1.0.0-beta1
17 changes: 17 additions & 0 deletions Android/DevSample/small/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## 1.1.0-beta1 (2016-07-21)

Features:

- `bundle.json`支持宿主路由配置 (pkg不配置)
- `bundle.json`支持自定义插件`type`
- 支持将插件manifest的Launcher作为默认路由Activity
- 使用`Instant Run`方式修改宿主资源`mAssets`来完成资源合并, 兼容Xposed (#190)

Bugfixes:

- [重要] 修正插件application在异常重启后无法触发`onCreate`的问题

Other:

- `Bundle`类导出`versionCode``versionName`的获取API

## 1.0.0 (2016-06-29)

Performance:
Expand Down
2 changes: 1 addition & 1 deletion Android/DevSample/small/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
group=net.wequick.small
version=1.0.0
version=1.1.0-beta1
4 changes: 2 additions & 2 deletions Android/GETTING-STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'net.wequick.tools.build:gradle-small:0.9.0'
classpath 'net.wequick.tools.build:gradle-small:1.0.0-beta1'
}
}
Expand All @@ -47,7 +47,7 @@ apply plugin: 'net.wequick.small'

```groovy
small {
aarVersion = '1.0.0'
aarVersion = '1.1.0-beta1'
}
```

Expand Down
4 changes: 2 additions & 2 deletions Android/Sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
classpath 'net.wequick.tools.build:gradle-small:0.9.0'
classpath 'net.wequick.tools.build:gradle-small:1.0.0-beta1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -25,5 +25,5 @@ task clean(type: Delete) {
apply plugin: 'net.wequick.small'

small {
aarVersion = '1.0.0'
aarVersion = '1.1.0-beta1'
}
4 changes: 2 additions & 2 deletions Android/templates/activities/SmallLauncher/globals.xml.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<global id="assetsOut" value="./app/src/main/assets" />
<global id="mavenUrl" value="mavenCentral" />
<global id="copyGradleSupported" type="boolean" value="${(compareVersions(gradlePluginVersion, '2.0') < 0)?string}" />
<global id="smallPluginVersion" value="0.9.0" />
<global id="smallAarVersion" value="1.0.0" />
<global id="smallPluginVersion" value="1.0.0-beta1" />
<global id="smallAarVersion" value="1.1.0-beta1" />
</globals>

0 comments on commit 6b32c0c

Please sign in to comment.