Skip to content

Commit

Permalink
fix bug: only the first module's "app_name" attribute will be deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpdroid committed Jul 31, 2019
1 parent 8c9230f commit 82cc5f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.cpdroid:fat-aar:1.0.0'
classpath 'com.cpdroid:fat-aar:1.0.1'
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.cpdroid:fat-aar:1.0.0'
classpath 'com.cpdroid:fat-aar:1.0.1'
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apply plugin: 'java'
apply plugin: 'groovy'

ext {
versionId = '1.0.0'
versionId = '1.0.1'
groupId = 'com.cpdroid'
name = 'fat-aar'
website = 'https://github.com/cpdroid/fat-aar'
Expand Down
6 changes: 3 additions & 3 deletions src/main/groovy/com/cpdroid/fat_aar/Utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ class Utils {
assert (resourceDirectory.isDirectory())

ResourceFolderType folderResourceType = ResourceFolderType.getFolderType(resourceDirectory.getName())
if (folderResourceType != ResourceFolderType.VALUES) return
if (folderResourceType != ResourceFolderType.VALUES) continue

// Iterate all files in the resource directory and handle each one.
File[] listFiles = resourceDirectory.listFiles()
if (listFiles == null) return
if (listFiles == null) continue

for (File maybeResourceFile : listFiles) {
if (maybeResourceFile.isDirectory()) return
if (maybeResourceFile.isDirectory()) continue

if (!maybeResourceFile.isFile()) {
throw new ResourceDirectoryParseException(
Expand Down

0 comments on commit 82cc5f7

Please sign in to comment.