flutter_plugin_bbd_base 0.1.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 57

flutter_plugin_bbd_base #

This is the Blackberry Dynamic Base plugin. It adds all required configuration to enable using Blackberry Dynamics in your Flutter application. All the other flutter_plugin_bbd_* plugins (e.g. flutter_plugin_bbd_application) require Base plugin to be installed and work correctly.

Disclaimer #

This repository is not maintained by official Blackberry Dynamics developers.

Currently flutter_plugin_bbd_base only works on iOS. There is no working example for android.

Installation #

To use Blackberry Dynamics the same way it works in a default Objective-C or Swift application some configuration must be done.

iOS #

1. Add the following keys to your Info.plist file:

2. Remove the following key value pair from your Info.plist file:

  • NSMainStoryboardFile

3. Add an url-scheme:

<key>CFBundleURLTypes</key>  
    <array>  
        <dict>  
            <key>CFBundleURLName</key>  
            <string>Bundle_Identifier_of_your_app</string>  
            <key>CFBundleURLSchemes</key>  
            <array>  
                <string>Bundle_Identifier_of_your_app.sc2</string>  
                <string>Bundle_Identifier_of_your_app.sc2.1.0.0.0</string>  
                <string>Bundle_Identifier_of_your_app.sc3</string>  
                <string>com.good.gd.discovery</string>  
            </array>  
        </dict>  
    </array>

4. Modify AppDelegate.swift

See AppDelegate examples in example/appdelegates

Android #

Currently not supported. Please open an issue, if you need so.

Features #

  • Blackberry Dynamics support
  • Secure your application and authorization with GD.Runtime
  • Use GD.framework functionality inside your flutter application

0.1.2 #

  • Fixing health issues

0.1.1 #

  • Example Project for iOS

0.1.0 #

  • Initial Open Source version
  • Support for iOS applications
  • Readme.md for further information.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_plugin_bbd_application/flutter_plugin_bbd_application.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String platformVersion = "";

  @override
  void initState() {
    super.initState();
    loadVersion();
  }

  loadVersion() async {
    final version = await FlutterPluginBbdApplication.getVersion;
    setState(() {
      platformVersion = version;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('flutter-plugin-bbd-base example'),
        ),
        body: Center(
          child: Column(
            children: <Widget>[
              Text('Running'),
              Text('BlackBerry Dynamics Version: $platformVersion'),
            ],
          ),
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_plugin_bbd_base: ^0.1.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_plugin_bbd_base/flutter_plugin_bbd_base.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
14
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
57
Learn more about scoring.

We analyzed this package on Mar 31, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health issues and suggestions

Document public APIs. (-1 points)

3 out of 3 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Format lib/flutter_plugin_bbd_base.dart.

Run flutter format to format lib/flutter_plugin_bbd_base.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test