-keep public class ai.luciq.crash.CrashPlugin {*;}
-keep public class ai.luciq.crash.CrashContentProvider {*;}

# Phoenix terminal-ANRs: discovered reflectively via Class.forName — R8 cannot trace it (D-24).
# FQN must stay in sync with ProcessPostmortemAgentRegistry.candidates. The Phoenix Initializer
# reflects on the static create(...) discovery factory (the "M2" construction seam); keep it plus the
# 3-arg constructor it delegates to.
-keep class ai.luciq.crashv2.postmortem.DefaultProcessPostmortemAgent {
    public static ai.luciq.core.postmortem.ProcessPostmortemAgent create(android.content.Context, java.io.File, ai.luciq.core.sdklogger.ILogger, ai.luciq.core.diagnostics.DiagnosticsRecorder);
    public <init>(ai.luciq.crashv2.postmortem.OSExitInfoExtractor, ai.luciq.core.sdklogger.ILogger, ai.luciq.core.diagnostics.DiagnosticsRecorder);
}

# Phoenix plugins: CrashesPlugin is discovered reflectively by PluginsCoordinator via Class.forName +
# its public static create(...) factory. FQN must stay in sync with PluginsCoordinator.PLUGIN_FQNS.
-keep class ai.luciq.crashv2.CrashesPlugin {
    public static ai.luciq.core.runtime.Plugin create(ai.luciq.core.runtime.PluginServices);
}