Skip to content

Commit

Permalink
Merge pull request #11 from c86y/master
Browse files Browse the repository at this point in the history
fix:修复大图报错无法定位的问题
  • Loading branch information
owenlongbo committed Apr 15, 2018
2 parents 74b564b + c3bd920 commit aa50073
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'com.jfrog.bintray'
def siteUrl = 'https://github.com/Aweme/McImage'
def gitUrl = 'https://github.com/Aweme/McImage.git'
group = "com.smallsoho.mobcase"
version = "0.1.2"
version = "0.1.3"

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ class ImagePlugin implements Plugin<Project> {
def file = new File("${drawDir}")
if (file.name.contains('drawable') || file.name.contains('mipmap')) {
file.eachFile { imgFile ->

if (mConfig.isCheck && ImageUtil.isBigImage(imgFile, mConfig.maxSize)) {
bigImgList.add(file.getPath() + file.getName())
if (mConfig.whiteList.contains("${file.getName()}/${imgFile.getName()}".toString())) {
return
}
if (mConfig.isCheck &&
ImageUtil.isBigImage(imgFile, mConfig.maxSize)) {
bigImgList.add(imgFile.getAbsolutePath())
}
if (mConfig.isCompress) {
CompressUtil.compressImg(imgFile)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ class Config {
def isWebpConvert = true
def isJPGConvert = true
def enableWhenDebug = true
Iterable<String> whiteList = []
}

0 comments on commit aa50073

Please sign in to comment.