flutter_kin_ecosystem_sdk 0.2.1

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.

  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) {
}, 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

// A custom Spend offer allows your users to unlock unique spend opportunities
// that you define within your app

// A custom pay to user offer allows your users to unlock
// unique spend opportunities that you define
// within your app offered by other users

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

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


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:

  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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

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

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://git.dipdev.studio/open-source/flutter/kin_ecosystem_sdk was unreachable.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.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