Skip to content

Commit

Permalink
0.2.9: fix checking debug build type
Browse files Browse the repository at this point in the history
  • Loading branch information
yrom committed Jan 23, 2018
1 parent b58dd60 commit 7edc5f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
}
dependencies {
classpath 'net.yrom:shrinker:0.2.8'
classpath 'net.yrom:shrinker:0.2.9'
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion shrinker/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=0.2.8
VERSION_NAME=0.2.9
GROUP=net.yrom
POM_PACKAGING=jar
POM_DESCRIPTION=Inline constant fields of android R class by asm and transform-api
Expand Down
4 changes: 2 additions & 2 deletions shrinker/src/main/java/net/yrom/tools/InlineRTransform.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ public void transform(TransformInvocation transformInvocation) throws TransformE
}
long start = System.currentTimeMillis();
TransformOutputProvider outputProvider = transformInvocation.getOutputProvider();
// ${buildType}/folders/${types-name}/${scopes-name}/styleables
// transforms/${name}/${buildType}/${index of 'styleables'}
File styleables = outputProvider.getContentLocation("styleables", this.getInputTypes(), this.getScopes(), Format.DIRECTORY);
String buildType = styleables.getParentFile().getParentFile().getParentFile().getParentFile().getName();
String buildType = styleables.getParentFile().getName();
outputProvider.deleteAll();
Collection<TransformInput> inputs = transformInvocation.getInputs();
if (config.inlineR && !Objects.equals(buildType, "debug")) {
Expand Down

0 comments on commit 7edc5f4

Please sign in to comment.