configure method
- required String apiKey,
- String? baseUrl,
- RovenueLogLevel logLevel = RovenueLogLevel.warn,
- String? appVersion,
- String? environment,
Initialize the SDK. Must be called before any other method here —
everything else assumes a configured native core and crashes
(fatalError on iOS, IllegalStateException on Android) otherwise.
Calling it again replaces the underlying native instance (the
equivalent of calling shutdown first). appVersion is optional;
when omitted, the native layer auto-reads the host app's version and
getAppVersion reports back whatever was actually resolved.
Implementation
Future<void> configure({
required String apiKey,
String? baseUrl,
RovenueLogLevel logLevel = RovenueLogLevel.warn,
String? appVersion,
String? environment,
}) =>
_platform.configure(
apiKey: apiKey,
baseUrl: baseUrl,
logLevel: logLevel,
appVersion: appVersion,
environment: environment,
);