-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: improve the documentation (#1621)
Signed-off-by: Nikita Lebedev <nikita.lebedev@limechain.tech>
- Loading branch information
Showing
12 changed files
with
466 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Get started | ||
|
||
> Please note that the minimal Android SDK level required for using the Hedera SDK in an Android project is **26**. | ||
To get started with an Android project, you'll need to add the following **two** dependencies: | ||
|
||
1. **Hedera™ Java SDK:** | ||
```groovy | ||
implementation 'com.hedera.hashgraph:sdk:2.29.0' | ||
``` | ||
|
||
2. **gRPC implementation:** | ||
```groovy | ||
// okhttp transport (for lighter-weight applications or Android) | ||
implementation 'io.grpc:grpc-okhttp:1.58.0' | ||
``` | ||
|
||
## Next steps | ||
To make it easier to start your Android project using the Hedera™ Java SDK, | ||
we recommend checking out the [Android example](../../example-android/README.md). | ||
This examples show different uses and workflows, | ||
giving you valuable insights into how you can use the Hedera platform in your Android projects. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
### Creating a fat/uber JAR | ||
|
||
To create a fat/uber jar of your Java application that uses the Hedera™ Java SDK, you need to use the Shadow Gradle plugin: | ||
|
||
```groovy | ||
id "com.github.johnrengelman.shadow" | ||
``` | ||
|
||
and configure it as shown below: | ||
```groovy | ||
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>().configureEach { | ||
group = "shadow" | ||
from(sourceSets.main.get().output) | ||
mergeServiceFiles() | ||
// Defer the resolution of 'runtimeClasspath'. This is an issue in the shadow | ||
// plugin that it automatically accesses the files in 'runtimeClasspath' while | ||
// Gradle is building the task graph. The three lines below work around that. | ||
inputs.files(project.configurations.runtimeClasspath) | ||
configurations = emptyList() | ||
doFirst { configurations = listOf(project.configurations.runtimeClasspath.get()) } | ||
archiveBaseName.set("archive") // Replace with your preferred name | ||
manifest { | ||
attributes["Main-Class"] = "org.example.Main" // Replace with your main class | ||
} | ||
} | ||
``` |
Oops, something went wrong.