Skip to content

Commit

Permalink
Fix jitpack publishing (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcoolish authored Jul 8, 2021
1 parent 0fdb50c commit 2977360
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 69 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/android-release.yml

This file was deleted.

31 changes: 1 addition & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,36 +50,7 @@ Step 2. Add the dependency

```groovy
dependencies {
implementation 'com.github.TrustWallet:trust-web3-provider:0.3.9'
}
```

#### GitHub Packages

[Configuring Gradle for use with GitHub Packages](https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-gradle-for-use-with-github-packages)

Step 1. Add GitHub Packages to `repositories` in your root `build.gradle` file:

```groovy
allprojects {
repositories {
maven {
name = "GitHub Packages"
url = uri("https://maven.pkg.github.com/trustwallet/trust-web3-provider")
credentials {
username = System.getenv('GITHUB_USER')
password = System.getenv('GITHUB_TOKEN')
}
}
}
}
```

Step 2. Add the dependency

```groovy
dependencies {
implementation group: 'com.trustwallet', name: 'web3-provider', version: '<latest_tag>'
implementation 'com.github.TrustWallet:trust-web3-provider:1.0.4'
}
```

Expand Down
2 changes: 1 addition & 1 deletion android/lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def getArtificatId = { ->
return "web3-provider"
}
def getVersionName = { ->
return System.getenv('TAG_NAME') ?: "0.3.9"
return System.getenv('TAG_NAME') ?: "1.0.4"
}

android {
Expand Down
6 changes: 6 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
before_install:
- rm -rf android/lib/src/main/res/raw/trust.js
- mkdir -pv android/lib/src/main/res/raw/
- git lfs fetch --all
- git lfs checkout dist/trust-min.js
- cp dist/trust-min.js android/lib/src/main/res/raw/trust_min.js

0 comments on commit 2977360

Please sign in to comment.