-dontoptimize # Save meta-data for stack traces -renamesourcefileattribute SourceFile -keepattributes SourceFile,LineNumberTable # Rename FXML files together with related views -adaptresourcefilenames **.fxml,**.png,**.css -adaptresourcefilecontents **.fxml -adaptclassstrings # Keep all annotations and meta-data -keepattributes *Annotation*,Signature,EnclosingMethod # Keep entry-point class -keep class com.zenjava.test.javafx_and_proguard.MainApp { public static void main(java.lang.String[]); } # Keep all classes inside application -keep,allowobfuscation class com.zenjava.test.javafx_and_proguard.** { } # Keep names of fields marked with @FXML attribute -keepclassmembers class * { @javafx.fxml.FXML *; }