DevConfiguration

This class is used to load the server URL and Capacitor configuration from the assets folder when the app is being run in developer mode with the Portals CLI.

Functions

Link copied to clipboard
fun getCapacitorConfig(context: Context, portalName: String): CapConfig?

Get the Capacitor configuration for the given portal name from the developer mode assets folder.

Link copied to clipboard
fun getServerUrl(context: Context, portalName: String): String?

Get the server URL for the given portal name from the developer mode assets folder.