shwenzhang / AndResGuard

proguard resource for Android by wechat team
Apache License 2.0
8.54k stars 1.54k forks source link

关于7zip问题 #139

Closed Richard-Cao closed 7 years ago

Richard-Cao commented 7 years ago

更新到1.2.0版本之后,打包完成之后没有7zip的包。 我的配置如下:

andResGuard {   // ./gradlew resguard[BuildType | Flavor]
    mappingFile = null
    use7zip = true
    useSign = true
    keepRoot = false
    // add <yourpackagename>.R.drawable.icon into whitelist.
    whiteList = [
            "com.reading.R.drawable.ic_launcher",
            "com.reading.R.drawable.app_img*",
            "com.reading.R.drawable.node_modules*"
    ]
    compressFilePattern = [
            "*.png",
            "*.jpg",
            "*.jpeg",
            "*.gif",
            "resources.arsc"
    ]
    sevenzip {
        artifact = 'com.tencent.mm:SevenZip:1.2.0'
        //在设置sevenzip时, 你只需设置artifact或path. 支持同时设置,总以path的值为优先
        //path = "/usr/local/bin/7za"
    }

请问是什么问题呢?

simpleton commented 7 years ago

如果使用了V2签名,暂时无法进行7zip压缩

On Mar 19, 2017 11:10 PM, "Richard-Cao" notifications@github.com wrote:

更新到1.2.0版本之后,打包完成之后没有7zip的包。 我的配置如下:

andResGuard { // ./gradlew resguard[BuildType | Flavor] mappingFile = null use7zip = true useSign = true keepRoot = false // add .R.drawable.icon into whitelist. whiteList = [ "com.reading.R.drawable.ic_launcher", "com.reading.R.drawable.app_img", "com.reading.R.drawable.node_modules" ] compressFilePattern = [ ".png", ".jpg", ".jpeg", ".gif", "resources.arsc" ] sevenzip { artifact = 'com.tencent.mm:SevenZip:1.2.0' //在设置sevenzip时, 你只需设置artifact或path. 支持同时设置,总以path的值为优先 //path = "/usr/local/bin/7za" }

请问是什么问题呢?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shwenzhang/AndResGuard/issues/139, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbvYk38JDI6NhKWOL-YQNjWLY1rTx5Nks5rnUV0gaJpZM4MhwuR .

simpleton commented 7 years ago

@Richard-Cao 如果你对安装包的大小特别关注,可以在signingConfigs中使用v2SigningEnabled false 来关闭v2签名。

Richard-Cao commented 7 years ago

好的,感谢!