diff --git a/README.md b/README.md index fed8185..e10c0e8 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ buildscript { } dependencies { - classpath 'net.yrom:shrinker:0.2.8' + classpath 'net.yrom:shrinker:0.2.9' } } ``` diff --git a/shrinker/gradle.properties b/shrinker/gradle.properties index 579de1a..9288465 100644 --- a/shrinker/gradle.properties +++ b/shrinker/gradle.properties @@ -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 diff --git a/shrinker/src/main/java/net/yrom/tools/InlineRTransform.java b/shrinker/src/main/java/net/yrom/tools/InlineRTransform.java index 00010ad..0902b83 100644 --- a/shrinker/src/main/java/net/yrom/tools/InlineRTransform.java +++ b/shrinker/src/main/java/net/yrom/tools/InlineRTransform.java @@ -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 inputs = transformInvocation.getInputs(); if (config.inlineR && !Objects.equals(buildType, "debug")) {