relaycorp / awala-cogrpc-jvm Goto Github PK
View Code? Open in Web Editor NEWJVM implementation of the Awala CogRPC binding
Home Page: https://docs.relaycorp.tech/awala-cogrpc-jvm/
License: Apache License 2.0
JVM implementation of the Awala CogRPC binding
Home Page: https://docs.relaycorp.tech/awala-cogrpc-jvm/
License: Apache License 2.0
Triggered each time there's a new Git tag matching a semver pattern.
Alternatively, do it by hand each time it's needed.
This assumes Maven is already configured in #2.
See implementation in PoC: https://github.com/relaynet/poc/blob/master/CoSocket/_streams.js (CargoDeliveryStream
).
We should only be skipping certificate validation when connecting to a courier.
I think we can simply use isSiteLocalAddress()
to decide what to do:
InetAddress.getByName("192.168.43.1").isSiteLocalAddress()
Per AwalaNetwork/specs@6eaea94
See TS counterpart: relaycorp/relaynet-cogrpc-js#19
Per https://specs.relaynet.link/RS-004#handshake-packets
This wasn't implemented in the PoC but it's similar to the handshake in PoWebSocket: https://github.com/relaynet/poc/blob/master/PoWebSocket/_handshake.js
The following test has been breaking intermittently since #17 was merged:
CogRPCClientTest > collect cargo, ack and complete$relaynet_cogrpc() FAILED
java.lang.AssertionError at CogRPCClientTest.kt:145
CogRPCClientTest > deliver cargo and receive ack() FAILED
java.util.NoSuchElementException at CogRPCClientTest.kt:48
A new feature in Gradle: https://docs.gradle.org/6.2/userguide/dependency_verification.html
When updating to the 1.1.21 version on a Android app
implementation 'tech.relaycorp:cogrpc:1.1.21'
I started getting the following Invalid Package lint issue:
../../../../../.gradle/caches/modules-2/files-2.1/io.grpc/grpc-core/1.47.0/3ac5502eaf5fde551b4cde8046cc933587df436/grpc-core-1.47.0.jar: Invalid package reference in io.grpc:grpc-core; not included in Android: javax.naming.directory. Referenced from io.grpc.internal.JndiResourceResolverFactory.JndiRecordFetcher.
../../../../../.gradle/caches/modules-2/files-2.1/io.grpc/grpc-core/1.47.0/3ac5502eaf5fde551b4cde8046cc933587df436/grpc-core-1.47.0.jar: Invalid package reference in io.grpc:grpc-core; not included in Android: javax.naming. Referenced from io.grpc.internal.JndiResourceResolverFactory.JndiRecordFetcher.
Is there a way to silence this at the library level to avoid ignoring the lint check?
See implementation in PoC: https://github.com/relaynet/poc/blob/master/CoSocket/_streams.js (CargoCollectionStream
).
Unlike the PoC, this implementation has to support Cargo Collection Authorizations. See:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.