Coder Social home page Coder Social logo

Comments (6)

Kyson avatar Kyson commented on May 28, 2024

image
这个注释和代码不匹配?

是要assemble的任务可以执行下去还是不能执行下去?

from mcimage.

smallSohoSolo avatar smallSohoSolo commented on May 28, 2024

需要每个module都apply,另外压缩结果文件用log输出了,可以过滤McImage查看
这个注视的意思是如果是构建release包才执行,因为task可能有很多种情况,一般情况执行压缩没有必要
这里”assemble“ 有点歧义,应该是“release”,可以看上面的代码,分别判断了assembleRelease,resguardRelease,bundle(打app bundle)的情况

from mcimage.

Kyson avatar Kyson commented on May 28, 2024

是不是只要最后打apk的合并资源task之前做压缩,application模块依赖就可以了?

我问这个的意思是技术上可不可以做成这样,这样会方便很多,尤其对大型项目来说

另外我看到的master分支的代码就是不包含‘assemble’就不执行了

image

from mcimage.

smallSohoSolo avatar smallSohoSolo commented on May 28, 2024

是这样的,因为不同的module构建树不一样,暂时没找到合适的插入点(主要原因),尝试找过应该不支持,不符合gradle设计思路,因为每个module是自己打包自己,然后到最后是一个aar了,无法聚合处理资源,另外并不是所有的module都需要压缩哈

from mcimage.

Kyson avatar Kyson commented on May 28, 2024

@smallSohoSolo 谢谢解答,另外最好把压缩的命令提供一些参数出来,现在是有损压缩

from mcimage.

smallSohoSolo avatar smallSohoSolo commented on May 28, 2024

经过专业设计验证,目前的压缩方案是调整过的,如果有更强的自定义,可以自行修复源码哈,但是我们在上亿的设备上验证之后还是目前的参数更加优秀

from mcimage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.