flutter_kin_ecosystem_sdk 0.2.1

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 57

flutter_kin_ecosystem_sdk #

A flutter Kin Ecosystem SDK plugin to use offers features and launch Kin Marketplace.

Unofficial Kin Ecosystem SDK plugin written in Dart for Flutter.

Usage #

To use this plugin, add flutter_kin_ecosystem_sdk as a dependency in your pubspec.yaml file.

dependencies:
  flutter_kin_ecosystem_sdk: '^0.2.1'

Initializing #

import 'package:flutter_kin_ecosystem_sdk/flutter_kin_ecosystem_sdk.dart';

// Generate jwt_token and all jwt by yourself and setting in the plugin to have a response
//userID - your application unique identifier for the user
//appID - your application unique identifier as provided by Kin.
// true - initializing balance observer
// true - production mode (false - playground)
await FlutterKinEcosystemSdk.kinStart(jwt_token, userId, appId, true, true);

Receivers #

To receive some changes in plugin you can use such ones:

// Receive changes from plugin
FlutterKinEcosystemSdk.infoStream.stream.listen((Info info) {
    print(info.type + " " + info.message);
    if (info.amount != null) print(info.amount);
}, onError: (error) {
    throw error;
});

// Receive balance stream and get all balance changes
FlutterKinEcosystemSdk.balanceStream.stream.listen((int balance) {
    print(balance);
}, onError: (error) {});

Some methods #

// A custom Earn offer allows your users to earn Kin
// as a reward for performing tasks you want to incentives,
// such as setting a profile picture or rating your app
FlutterKinEcosystemSdk.kinEarn(jwt);

// A custom Spend offer allows your users to unlock unique spend opportunities
// that you define within your app
FlutterKinEcosystemSdk.kinSpend(jwt);

// A custom pay to user offer allows your users to unlock
// unique spend opportunities that you define
// within your app offered by other users
FlutterKinEcosystemSdk.kinPayToUser(jwt);

Installation #

Android and iOS #

No configuration required - the plugin should work out of the box.

0.1.0 #

  • All functional for Android and IOS
  • Opportunity to choose between playground and production mode
  • Returning amount of earn in Info json
  • iOS migration methods

0.1.1 #

  • updating Android Kin Devplatform Library to 1.2.2.1

0.2.0 #

  • updating iOS Kin Devplatform Library to 1.0.6
  • add base plugin models Info and Error
  • returning base models in streams
  • fixes

0.2.1 #

  • Constants refactoring

example/README.md

flutter_kin_ecosystem_sdk_example #

Demonstrates how to use the flutter_kin_ecosystem_sdk plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_kin_ecosystem_sdk: ^0.2.1

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_kin_ecosystem_sdk/flutter_kin_ecosystem_sdk.dart';
  
Version Uploaded Documentation Archive
0.2.1 Apr 23, 2019 Go to the documentation of flutter_kin_ecosystem_sdk 0.2.1 Download flutter_kin_ecosystem_sdk 0.2.1 archive
0.2.0 Apr 15, 2019 Go to the documentation of flutter_kin_ecosystem_sdk 0.2.0 Download flutter_kin_ecosystem_sdk 0.2.0 archive
0.1.1 Feb 28, 2019 Go to the documentation of flutter_kin_ecosystem_sdk 0.1.1 Download flutter_kin_ecosystem_sdk 0.1.1 archive
0.1.0 Feb 19, 2019 Go to the documentation of flutter_kin_ecosystem_sdk 0.1.0 Download flutter_kin_ecosystem_sdk 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
16
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
95
Overall:
Weighted score of the above. [more]
57
Learn more about scoring.

We analyzed this package on Jun 26, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18
  • Flutter: 1.5.4-hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-1 points)

47 out of 47 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.

Maintenance issues and suggestions

Support latest dependencies. (-5 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8