https://kotlinlang.org logo
#android
Title
# android
n

neworldlt

08/21/2017, 9:53 AM
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

denis.shakinov

08/21/2017, 9:59 AM
proguard doesn’t require anything, it just follows your instructions) what do you mean instead?
n

neworldlt

08/21/2017, 10:13 AM
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

denis.shakinov

08/21/2017, 10:47 AM
could you please provide some lines from proguard related to your question?
n

neworldlt

08/21/2017, 10:55 AM
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

denis.shakinov

08/21/2017, 11:01 AM
what classes related to your question you marked with
Copy code
keep
in proguard?
n

neworldlt

08/21/2017, 11:09 AM
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
7 Views