What to keep proguard

hi
so im using proguard on my app inventor source which start at building level
which means that it optimize and obfuscate everything everytime i run it
im looking for what should i keep in the original app classes that are created by appinventor
because recently i started to get some crashes on google play

At a minimum, you’ll want to keep everything that is public in the com.google.appinventor.components.runtime and com.google.youngandroid packages, as well as any class that extends Form in the app-specific package. We don’t run proguard on apps, and don’t really have the intention to do so, so I can’t give you much advice beyond that.

1 Like

is it an obligation to keep com.google.appinventor.components.runtime ? since i want to prevent my components from been decompiled?

You need to keep the public APIs public, such as any property/method/event names, as well as the constructor. Otherwise, they can’t be linked at runtime and you can expect to encounter some errors.