any idea why my proguard is failing here? <https:/...
# android
o
any idea why my proguard is failing here? https://pastebin.com/itxRfUKx here’s my .pro file https://pastebin.com/56EDACgH
r
@oday you need to keep service and activity
o
hm
how did you gather that? and where did I say that its ok for them to be removed?
thanks for taking a look by the way
r
@oday add this -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiver -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgent -keep public class * extends android.preference.Preference -keep public class * extends android.support.v4.app.Fragment -keep public class * extends android.support.v4.app.DialogFragment
Thats why in Android we create separation of concern to separate business logic, data retrieval, and UI logic
o
yea but that doesn't explain why Proguard is removing this specific activity and not any other activity
r
in Android we cannot obfuscate an activity. You need to explicit register it in manifest
o
so you're saying that the reason why SettingsActivity was removed is because it wasn't mentioned in the manifest?
o
because it is mentioned
r
Is that make sense to you?
o
no because the activity is already mentioned in the manifest
why would it remove that one and not any other activity, they're all mentioned in the manifest
r
So, other activities are works?
o
of course
this is the only activity that is mentioned in a red line in my logs
and the lines wher it mentions
can't find dynamically referenced class kotlin.internal.jdk8.JDK8PlatformImplementations
really cryptic logs