Skip to content

Commit

Permalink
release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
changjiashuai committed Jul 16, 2018
1 parent b73ac2d commit cd5c813
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ Temporary Items
.idea/
build/
out/
bintray.gradle
gradle.properties
local.properties
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@

## Install

Add the relevant dependency to your project:(WIP)
Add the relevant dependency to your project:

#### Maven

```maven
<dependency>
<groupId>io.ipfs.multiformats</groupId>
<artifactId>kotlin-multihash</artifactId>
<version>......</version>
<version>1.0.0</version>
<type>pom</type>
</dependency>
```

#### Gradle

```gradle
compile 'io.ipfs.multiformats:kotlin-multihash:......'
compile 'io.ipfs.multiformats:kotlin-multihash:1.0.0'
```


Expand All @@ -35,7 +35,10 @@ compile 'io.ipfs.multiformats:kotlin-multihash:......'

```kotlin
val mh = Multihash.fromBase58(hash)
......
val hex = mh.toHex()
val base32 = mh.toBase32()
val base58 = mh.toBase58()
val base64 = mh.toBase64()
```


Expand Down
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ buildscript {
}
}

plugins {
id "com.jfrog.bintray" version "1.8.4"
}

apply plugin: 'java'
apply plugin: 'kotlin'

Expand All @@ -33,4 +37,6 @@ compileKotlin {
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}

apply from: "bintray.gradle"

0 comments on commit cd5c813

Please sign in to comment.