Comments (6)
是要assemble的任务可以执行下去还是不能执行下去?
from mcimage.
需要每个module都apply,另外压缩结果文件用log输出了,可以过滤McImage查看
这个注视的意思是如果是构建release包才执行,因为task可能有很多种情况,一般情况执行压缩没有必要
这里”assemble“ 有点歧义,应该是“release”,可以看上面的代码,分别判断了assembleRelease,resguardRelease,bundle(打app bundle)的情况
from mcimage.
是不是只要最后打apk的合并资源task之前做压缩,application模块依赖就可以了?
我问这个的意思是技术上可不可以做成这样,这样会方便很多,尤其对大型项目来说
另外我看到的master分支的代码就是不包含‘assemble’就不执行了
from mcimage.
是这样的,因为不同的module构建树不一样,暂时没找到合适的插入点(主要原因),尝试找过应该不支持,不符合gradle设计思路,因为每个module是自己打包自己,然后到最后是一个aar了,无法聚合处理资源,另外并不是所有的module都需要压缩哈
from mcimage.
@smallSohoSolo 谢谢解答,另外最好把压缩的命令提供一些参数出来,现在是有损压缩
from mcimage.
经过专业设计验证,目前的压缩方案是调整过的,如果有更强的自定义,可以自行修复源码哈,但是我们在上亿的设备上验证之后还是目前的参数更加优秀
from mcimage.
Related Issues (20)
- 打包过程中出现Duplicate resources HOT 1
- raw文件夹图片没有被压缩 HOT 1
- drawable下的图片没有转成webp HOT 1
- 注意如果你有多个Module,请在每个Module的build.gradle文件中apply插件 HOT 3
- 集成报错Cannot cast object 'property(interface org.gradle.api.file.Directory
- mctools目录没有找到
- 建议增加目录白名单 HOT 1
- 这个插件跟gradle版本有强依赖吗? HOT 1
- 支持assets HOT 1
- mactools在新版本怎么找不到,只有在v0.0.1和V0.0.2能够找到
- 不支持asset 目录下的图片压缩呀? HOT 1
- isCheckPixels 导致IIOException HOT 3
- 能否支持增量压缩,每次全量耗时有点久 HOT 3
- 构建出错Could not determine the dependencies of task ':app:mergeDebugResources' HOT 1
- png转换成webp后,子模块的mergeReleaseResources任务报错:java.nio.file.NoSuchFileException。 HOT 6
- 编译报错
- Gradle 编译报错 Cannot invoke "java.awt.image.BufferedImage.getHeight()" because "sourceImg" is null
- Could not determine the dependencies of task ':app:mergeXXXDebugResources'. 编译失败
- agp7.2.2 接入后 sync工程报错 HOT 2
- AGP 8.0 适配
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcimage.