|
@@ -12,11 +12,12 @@ class MethodChannelGravityEngine extends GravityEnginePlatform {
|
|
|
/// Initializes the Gravity Engine SDK.
|
|
/// Initializes the Gravity Engine SDK.
|
|
|
/// Returns `true` if the user is attributed, `false` otherwise.
|
|
/// Returns `true` if the user is attributed, `false` otherwise.
|
|
|
@override
|
|
@override
|
|
|
- Future<bool> initialize(
|
|
|
|
|
- String accessToken, String clientId, String channel, bool debug) async {
|
|
|
|
|
|
|
+ Future<bool> initialize(String appId, String accessToken, String clientId,
|
|
|
|
|
+ String channel, bool debug) async {
|
|
|
final result = await methodChannel.invokeMethod<bool>(
|
|
final result = await methodChannel.invokeMethod<bool>(
|
|
|
'initialize',
|
|
'initialize',
|
|
|
<String, dynamic>{
|
|
<String, dynamic>{
|
|
|
|
|
+ 'appId': appId,
|
|
|
'accessToken': accessToken,
|
|
'accessToken': accessToken,
|
|
|
'debug': debug,
|
|
'debug': debug,
|
|
|
'clientId': clientId,
|
|
'clientId': clientId,
|