Skip to content

Commit

Permalink
Update ProGuardCORE to 8.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjameshamilton committed Aug 12, 2021
1 parent d9437fa commit d771eab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
}

group 'com.guardsquare'
version '1.1.1'
version '1.1.2'

java {
toolchain {
Expand Down Expand Up @@ -42,7 +42,7 @@ jar {
}

dependencies {
implementation 'com.guardsquare:proguard-core:8.0.0'
implementation 'com.guardsquare:proguard-core:8.0.1'

// dex2jar dependencies.
implementation fileTree(dir: 'libs', include: ['*.jar'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -902,11 +902,7 @@ public void visitAnyFunction(Clazz clazz,
KotlinMetadata kotlinMetadata,
KotlinFunctionMetadata kotlinFunctionMetadata)
{
try {
kotlinFunctionMetadata.referencedMethodAccept(clazz, new AllAttributeVisitor(new AnnotationPrinter(KotlinSourcePrinter.this)));
} catch (Exception ignored) {
// TODO: temporary null check until ProGuardCORE 8.0.1 is released
}
kotlinFunctionMetadata.referencedMethodAccept(clazz, new AllAttributeVisitor(new AnnotationPrinter(KotlinSourcePrinter.this)));
kotlinFunctionMetadata.versionRequirementAccept(clazz, kotlinMetadata, this);
print(functionFlags(kotlinFunctionMetadata.flags), true);
print("fun ");
Expand Down
19 changes: 6 additions & 13 deletions src/main/java/proguard/tools/KotlinMetadataPrinter.java
Original file line number Diff line number Diff line change
Expand Up @@ -292,19 +292,12 @@ public void write(int i) { }

// Initialize the other references from the program classes.
programClassPool.classesAccept(
clazz -> {
try {
clazz.accept(
new ClassReferenceInitializer(programClassPool,
new ClassPool(),
nullWarningPrinter,
nullWarningPrinter,
nullWarningPrinter,
null));
} catch (Exception ignored) {
// TODO: callable reference initialization may cause NPE, will be fixed in ProGuardCORE 8.0.1
}
});
new ClassReferenceInitializer(programClassPool,
new ClassPool(),
nullWarningPrinter,
nullWarningPrinter,
nullWarningPrinter,
null));
}

private static String metadataKindToString(int k)
Expand Down

0 comments on commit d771eab

Please sign in to comment.