Skip to content

Conversation

@bryanlogan
Copy link
Contributor

If I have two classes com.example.Hello and com.example.HelloWorld, and I add com.example.HelloWorld to my ignore classes list, apiDump will not generate dump information for com.example.Hello.

Closes #135

@qwwdfsad qwwdfsad self-requested a review September 18, 2023 15:36
Copy link
Member

@qwwdfsad qwwdfsad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@qwwdfsad qwwdfsad merged commit 0dc8cd9 into Kotlin:master Sep 18, 2023

private fun ClassBinarySignature.isInClasses(classNames: Collection<String>): Boolean =
classNames.any { className -> className.startsWith(name) }
classNames.any { className -> className.startsWith("$name/") }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that the CBS's name is augmented with the /, startsWith could be replaced with an equality check, isn't it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ignoredClasses ignores classes that match a substring of the class name

3 participants