Giter Club home page Giter Club logo

community-pass-flutter-wrapper's People

Contributors

fernandesthuita avatar harry3167 avatar muruthi avatar

Watchers

 avatar  avatar  avatar

community-pass-flutter-wrapper's Issues

Method Calls, Request and Response Objects have no Type Safety

Current architecture:

String result;
    try {
      result = await _channel.invokeMethod('getRegisterUserWithBiometrics', {
        _reliantAppGuidKey: reliantApplicationGuid,
        _programGuidKey: programGuid,
        _consentIdKey: consentId
      });
    } on PlatformException {
      result = '';
    }

Improve architecture by wrapping the method calls in a dart class at the wrapper level with requests and response types defined

Direct local .aar file dependencies are not supported when building an AAR.

Getting the following error when running both assembleRelease and assembleDebug.

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :flutter_cpk_plugin project caused this error: /Users/harry/Desktop/Work/Mastercard/Flutter/community-pass-flutter-wrapper/android/aar_libs/community-pass-library-v2.4.0.aar

Devzone Getting Started Changes & Reference Pages Changes

  1. Overview changes
  1. Pre-requisites Changes
  1. Setting Up Development Env
  • Add tip indicating where wrapper tutorials are found
  1. Submit your Reliant App details to Community Pass
  • Add additional instructions for Non-native users
  1. Add the Community Pass Kernel Library File to your Android Project
  • Add tip redirecting non-native developers to wrapper code
  1. Registering and Connecting your Reliant Application to the Community Pass Kernel
  • Add tip redirecting non-native developers to wrapper code

Reference Pages

Add Community Pass Program Space APIs

  • Implement getDataSchema()
  • Implement add getWriteProgramSpaceActivityIntent()
  • Implement getReadProgramSpaceActivityIntent()
  • Implement exchangeKey()
  • Test Program Space APIs
  • Update documentation (examples and implementation steps)

Example App Stuck on Biometric Consent Page

  • Contribution instructions do not contain content on how to run the Example App
  • Biometric Consent page does not call the wrapper implementation
E/flutter (20765): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No 
implementation found for method saveBiometricConsent on channel flutter_cpk_plugin)
E/flutter (20765): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7)
E/flutter (20765): <asynchronous suspension>
E/flutter (20765): #1      _BiometricConsentScreenState.saveBiometricConsent (package:flutter_cpk_plugin_example/biometricConsentScreen.dart:33:16)
E/flutter (20765): <asynchronous suspension>
E/flutter (20765): 

Error Code and Message no Propagated to Flutter Wrapper

Describe the bug
If I come across an error accessing one of CP APIs, an error code and error message from the Kernel should be propagated to the CPK

To Reproduce
Steps to reproduce the behavior:

  1. Use the saveBiometricConsent API with the wrong programGUID
  2. Call the API.
  3. You will get a Platform Exception on the catch block.
  4. The exception contains a code and message that do not align to the Kernel.

Expected behavior
The code and error should be consistent to the Kernel errors.

Add Logging for Easier Debugging

Add logging in the whole solution to ease debugging

Wrapper Flutter
Wrapper Android (Use Timber)
Example App Flutter
Example Android (Use Timber)

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.