flutter_griffon
is a flutter plugin for the iOS and Android Project Griffon SDK to allow for integration with Flutter applications. Functionality to enable the Griffon extension is provided entirely through Dart documented below.
Install instructions for this package can be found here.
Note: After you have installed the SDK, don't forget to run
pod install
in yourios
directory to link the libraries to your Xcode project.
Run:
flutter test
Note: It is required to initialize the SDK via native code inside your AppDelegate and MainApplication for iOS and Android respectively. For more information see how to initialize Core.
Swift
import ACPGriffon
ACPGriffon.registerExtension()
Objective-C
#import "ACPGriffon.h"
[ACPGriffon registerExtension];
import com.adobe.marketing.mobile.Griffon;
Griffon.registerExtension();
import 'package:flutter_griffon/flutter_griffon.dart';
String version = await FlutterGriffon.extensionVersion;
FlutterGriffon.startSession(url);
FlutterGriffon.endSession();
FlutterGriffon.attemptReconnect();
FlutterGriffon.sendEvent("vendor", "type", {"customPayload": "customValue"});
import 'package:flutter_griffon/src/acpgriffon_uilogcolor.dart';
FlutterGriffon.logLocalUILevel(ACPGriffonUILogColor.VISIBILITY_LOW, "message");
FlutterGriffon.logLocalUILevel(ACPGriffonUILogColor.VISIBILITY_NORMAL, "message");
FlutterGriffon.logLocalUILevel(ACPGriffonUILogColor.VISIBILITY_HIGH, "message");
FlutterGriffon.logLocalUILevel(ACPGriffonUILogColor.VISIBILITY_CRITICAL, "message");
See CONTRIBUTING
See LICENSE