Skip to content

Commit

Permalink
1.1.1 修复release无法运行和打包问题
Browse files Browse the repository at this point in the history
1. 修复release无法和打包问题
  • Loading branch information
Mosect committed Jan 3, 2022
1 parent cc97e4a commit 67b1d38
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,19 @@ gradlew outputProject

不想构建工具?直接点击下载:

[V1.1.0](http://mosect.com/assets/apk2gradle/apk2gradle-1.1.0.zip)
[V1.1.1](http://mosect.com/assets/apk2gradle/apk2gradle-1.1.1.zip)

## 更新计划
**V1.2.0**
```
1. 支持smali、java混合开发
```

## 更新记录
**V1.1.1**
```
1. 修复release无法运行或者打包出错问题
```
**V1.1.0**
```
1. 改用aar方式导入原apk资源文件,相关文件:res.aar
Expand All @@ -34,6 +44,13 @@ gradlew outputProject
5. 更新apktool工具,此工具为修改后版本,增加参数 -r-txt 来输出aar的R.txt
```

## 已知问题
**V1.1.0**
```
1. debug无法直接运行,后续版本修改
2. release运行出错或者无法打包,V1.1.1版本已修复
```

## 使用工具:
进入工具目录,执行:
```
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ allprojects {
apply plugin: 'java-library'
apply plugin: 'com.github.johnrengelman.shadow'

def appVersion = '1.1.0'
def appVersion = '1.1.1'
def appName = 'apk2gradle'

dependencies {
Expand Down
3 changes: 3 additions & 0 deletions data/template/app/build2.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ tasks.whenTaskAdded {
Document manifest = readXml(file('src/main/AndroidManifest.xml'))
String packageName = manifest.getDocumentElement().getAttribute("package")
cur.outputs.files.each {
if (it.isFile()) {
return
}
// 生成新的smali
def newSmaliList = dumpDexDir(it, new File(buildDir, "smali/${variantName}/_new"))

Expand Down

0 comments on commit 67b1d38

Please sign in to comment.