GithubHelp home page GithubHelp logo

isabella232 / flutter_griffon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adobe/flutter_assurance

0.0 0.0 0.0 95 KB

Flutter plugin for AEP Griffon

License: Apache License 2.0

Java 24.54% Ruby 11.52% Objective-C 26.78% Dart 37.16%

flutter_griffon's Introduction

flutter_griffon

pub package Build License

โš ๏ธ This package is currently in beta, we are actively working to a release candidate. If you have any feedback please log an issue or submit a pull request.

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.

Installation

Install instructions for this package can be found here.

Note: After you have installed the SDK, don't forget to run pod install in your ios directory to link the libraries to your Xcode project.

Tests

Run:

flutter test

Usage

Griffon

Registering the extension with ACPCore:

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.

iOS

Swift

import ACPGriffon

ACPGriffon.registerExtension()

Objective-C

#import "ACPGriffon.h"

[ACPGriffon registerExtension];
Android:
import com.adobe.marketing.mobile.Griffon;

Griffon.registerExtension();
Importing the SDK:
import 'package:flutter_griffon/flutter_griffon.dart';
Getting Griffon version:
String version = await FlutterGriffon.extensionVersion;
Starting a Griffon session:
FlutterGriffon.startSession(url);
Ending a Griffon session:
FlutterGriffon.endSession();
Attempt to reconnect to a Griffon session:
FlutterGriffon.attemptReconnect();
Sending a Griffon event:
FlutterGriffon.sendEvent("vendor", "type", {"customPayload": "customValue"});
Log Local UI Level:
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");

Contributing

See CONTRIBUTING

License

See LICENSE

flutter_griffon's People

Contributors

nporter-adbe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.