From 7f2ec0dc5e37fe218460cfc96ee06de3d110f891 Mon Sep 17 00:00:00 2001 From: Paul Verest Date: Fri, 10 Sep 2021 10:51:54 +0800 Subject: [PATCH 1/2] README, jitpack button, Better gradle dependency declaration --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2f4753a..ffebeeb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Kotlin Substrate Client [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![jitpack](https://jitpack.io/v/NodleCode/substrate-client-kotlin.svg)](https://jitpack.io/#NodleCode/substrate-client-kotlin) substrate-client-kotlin is client library to interact with a substrate-based chain. It uses the API available from the RPC endpoint only (no sidecar). @@ -20,12 +21,13 @@ what is currently **not** supported 1. Add the JitPack repository. ``` -allprojects { repositories { ... maven { url 'https://jitpack.io' } + // for https://github.com/NodleCode/substrate-client-kotlin + content { includeGroup "com.github.NodleCode" } } -} + ``` 2. Add the substrate-client dependency @@ -77,4 +79,4 @@ The test report will be generated in `substrate-client/build/reports/test/index. ## Additional Notes This is a work in progress and comes with no warranty. -contribution are welcome. If you have any question, ideas or if you found a bug, please open an issue! \ No newline at end of file +contribution are welcome. If you have any question, ideas or if you found a bug, please open an issue! From e7818c07ce53c533d77fa9daca3d06a8a6936e76 Mon Sep 17 00:00:00 2001 From: Paul Verest Date: Fri, 10 Sep 2021 17:24:35 +0800 Subject: [PATCH 2/2] README - show that jcenter() is required, gradle repository filtering link --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ffebeeb..85779c7 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,15 @@ what is currently **not** supported ## Using the library -1. Add the JitPack repository. +1. Add `jcenter`, the JitPack repository. Consider [filtering](https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:declaring-repository-filter). ``` repositories { ... - maven { url 'https://jitpack.io' } + jcenter() // for just 2 io.github.novacrypto deps (SHA256, ToRuntime) required by NodleCode.BIP39: + maven { url 'https://jitpack.io' // for https://github.com/NodleCode/substrate-client-kotlin - content { includeGroup "com.github.NodleCode" } + //content { includeGroup "com.github.NodleCode" } + } } ```