Do anyone know, if class is named `xxx$1$1`, will ...
# android
n
Do anyone know, if class is named
xxx$1$1
, will proguard require
xxx$1
class even
xxx$1$1
doesn’t depend on
xxx$1
?
d
proguard doesn’t require anything, it just follows your instructions) what do you mean instead?
n
Copy code
Warning: xxx$onActivityCreated$1$1$4 can't find referenced class xxx$onActivityCreated$1$1
But there is no
xxx$onActivityCreated$1$1
class
And bytecode of
xxx$onActivityCreated$1$1$4
doesn’t require
xxx$onActivityCreated$1$1
I am not sure, this is somehow kotlin issue or proguard
d
could you please provide some lines from proguard related to your question?
n
Generated classes are:
Copy code
ImageFragment$Companion.class
ImageFragment$onActivityCreated$$inlined$apply$lambda$1$1.class
ImageFragment$onActivityCreated$$inlined$apply$lambda$1$2.class
ImageFragment$onActivityCreated$$inlined$apply$lambda$1$3.class
ImageFragment$onActivityCreated$$inlined$apply$lambda$1.class
ImageFragment$onActivityCreated$$inlined$apply$lambda$2.class
ImageFragment$onActivityCreated$1$1$4.class
ImageFragment$rotateImage$1$1.class
ImageFragment$rotateImage$1.class
ImageFragment$showImage$1.class
ImageFragment.class
I don’t get, why proguard needs not existing class
ImageFragment$onActivityCreated$1$1
d
what classes related to your question you marked with
Copy code
keep
in proguard?
n
No one. However,
keep
doesn’t worked either, because required class not exists anyway
Copy code
-dontwarn com.vinted.fragments.upload.camera.ImageFragment$onActivityCreated$1$1$4
That one worked. Code works as well