Closed mannodermaus closed 5 years ago
The code looks awesome!
There don't seem to be any tests against androidx.fragment.app.Fragment in the codebase anymore
Is this the one?
You can also add test cases to test module
Source.java
only has Java-based tests. I added a test to KtProcessorTestSuite.kt
now!
Side effect: This PR raises the Kotlin requirement to 1.3 or newer. Since then, the
@kotlin.Metadata
annotation has been accessible through the standard library. With the help of a companion library,kotlinx-metadata-jvm
, we can inspect the flags of an annotated class and see if it'sinternal
or not. In case it is, the generated permission methods for Kotlin will also have the same modifier applied to them.So far, I verified this change through a manual test. Where would we put a unit test for this? There don't seem to be any tests against
androidx.fragment.app.Fragment
in the codebase anymore (I haven't checked out that part in a while, haha).Resolves #605.