Git Product home page Git Product logo

asvoria / aries-mobile-agent-react-native Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openwallet-foundation/bifold-wallet

0.0 0.0 0.0 68.09 MB

Aries Mobile Agent React Native - Part of the Aries Bifold effort to provide SSI capabilities in a production ready app.

License: Apache License 2.0

JavaScript 24.02% Starlark 1.93% Java 2.14% Ruby 2.81% Objective-C 4.20% TypeScript 64.64% C 0.10% Swift 0.16%

aries-mobile-agent-react-native's Introduction

Aries Mobile Agent React Native

Aries Mobile Agent React Native is an open source Aries mobile agent app. This is a project that has been created to focus the community's efforts towards a central open source project. Various different organizations and people have expressed interest in a open source community project to help focus efforts to help prevent duplication of work between projects. Aries Bifold is also intended to help get complex or specific use-case projects started faster by cloning and having a basis of an Aries agent.

Code

This project utilizes Aries Framework Javascript (AFJ) and rn-indy-sdk.

This project is intended to be contributed to Hyperledger after the initial conversations regarding the project within the community

Community

Indicio has organized working group calls for community discussions on the project on every other Wednesdays. Everyone is more than welcome to attend and contribute at the working group call.

Indicio has provided existing code, but we really want to make this into a community effort.

Project State

Platform

Aries Bifold currently is built on React Native 0.61.5. Newer versions of React Native experience issues with ZMQ (Fatal Signal 6 (SIGABRT)). We are making efforts to be able to move to React Native 0.63.4.

As of now Aries Bifold targets Android API 29.0.3, with plans to support API 30 soon.

iOS targets iOS 10.0+. Aries Bifold can only be run on physical devices as of right now.

Testing

Aries Mobile Agent React Native aims to utilize the Aries Protocols Test Suite (APTS) and potentially the Aries Agent Test Harness (AATH) to test for Aries Agent compatibility and interoperability.

Install

Prerequistes

React Native

Installation instructions are documented here.

Troubleshooting guides can be found in the docs/installation directory.

Cocoa Pods (iOS specific)

Mediator

In order to use Aries Bifold, you must have a mediator to use with the app. Instructions for launching your own mediator locally can be found in docs/mediations or at Aries Framework Javascript.

Network

Aries Bifold as of right now is tied to one ledger with the intention of making this more flexible/dynamic in the future. You must have a genesis file url for your chosen network, such as:

Running the App

Clone the repo:

git clone https://github.com/hyperledger/aries-mobile-agent-react-native
cd aries-mobile-agent-react-native
npm install

In the root directory add a .env file for the following environment variables, such as the following:

MEDIATOR_URL=https://dd652a260851.ngrok.io
GENESIS_URL=https://raw.githubusercontent.com/Indicio-tech/indicio-network/main/genesis_files/pool_transactions_testnet_genesis

Android Specific

Run Via Command Line

Run the App on a connected device or emulator:

npm run start

In another terminal, run:

npm run android

Run Via Visual Studio

To run the Android Emulator, install Android Studio and setup emulator version in AVD manager.
Instructions can be found here.

git clone https://github.com/hyperledger/aries-mobile-agent-react-native
cd aries-mobile-agent-react-native

After clone, install using --force if version error appear:

npm install --force

Export the environmental variables:

export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export MEDIATOR_URL=https://dd652a260851.ngrok.io
export GENESIS_URL=https://raw.githubusercontent.com/Indicio-tech/indicio-network/main/genesis_files/pool_transactions_testnet_genesis

APKs

Sample generated APKs can be found in each github release.

iOS Specific

Install iOS Pods:

cd ios
pod install

In the /ios directory, open the project workspace file in Xcode. Once the project is open, navigate to the project's Signing & Capabilities tab and apply your personal Apple Developer Account or your organization's team to target AriesBifold and target AriesBifoldTests.

Adjust the bundle identifier if needed.

Plug in iOS Device

npm run start

Run Via Command Line

npm run ios

Run Via Xcode

Choose your physical iOS device as the destination.

Click the "Play" button to Build and Run.

TestFlight

TODO: Additional community conversation is needed on this topic.

Troubleshooting

Hot Reloading

Hot reloading may not work correctly with instantiated Agent objects. Reloading (r) or reopening the app may work. Any changes made to native modules require you to re-run the compile step.

Mediator Issues

There are known mediator issues which is undergoing work to address.

Dependency Issues, Native Module Linking Issues, or Usage Issues

If you end up changing dependencies or structures, you may need to perform the following steps:

Android

rm -rf node_modules
npm install

Clean the Android build:

cd android
./gradlew clean
cd ..

Start and clean the Metro cache:

npm run start

In your second terminal, you can now run:

npm run android

License

Apache License Version 2.0

aries-mobile-agent-react-native's People

Contributors

asvoria avatar davidclawson avatar jameskebert avatar lynnbendixsen avatar reflectivedevelopment avatar ryjones avatar sabejensen avatar timoglastra 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.