Change Publishing Setting Via Script

Hello,

I’m writing an editor tool, i need to enable these options via code, not manually,
Player Settings → Publishing Settings →

*Custom Main Manifest
*Custom Main Gradle Template
*Custom Gradle Properties Template

Does anyone know the solution? I can not find the class/variable names.

I couldn’t find the Class either. Instead, I found another way.

Rename the file using a function like File.Move() .
If there is a file matching the Custom Template, it will be checked, and if there is no file, it will be automatically unchecked.