Skip to content

Commit

Permalink
DX-139: Switch to/add support for Jitpack (#50)
Browse files Browse the repository at this point in the history
* switch to jitpack dependencies

* bump lib version: 1.1.1
  • Loading branch information
Funkatronics authored Jul 14, 2022
1 parent fc168a6 commit f5bb0d7
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 22 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,4 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Run Tests
env:
GITHUB_ACTOR: ${{ secrets.GRADLE_GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GRADLE_GITHUB_TOKEN }}
run: ./gradlew test
3 changes: 0 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Gradle Lint
env:
GITHUB_ACTOR: ${{ secrets.GRADLE_GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GRADLE_GITHUB_TOKEN }}
run: ./gradlew lint
- name: Generate Annotations
uses: yutailang0119/action-android-lint@v3
Expand Down
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,31 @@ Please check the [Sample App](https://github.com/metaplex-foundation/metaplex-an

## Installation

I recomend using the github recomended way to load Artifacts. First get a Github Token from your [account settings](https://github.com/settings/tokens).
### JitPack [![Release](https://jitpack.io/v/metaplex-foundation/metaplex-android.svg)](https://jitpack.io/#metaplex-foundation/metaplex-android)

The library is now is available through [JitPack.io](https://jitpack.io/#metaplex-foundation/metaplex-android)

First, add the JitPack repository to your build:

```
repositories {
...
maven { url 'https://jitpack.io' }
}
```

Then add the dependency to the 'build.gradle' file for your app/module:

```
dependencies {
...
implementation 'com.github.metaplex-foundation:metaplex-android:{version}'
}
```

### GitHub Package

You can also add the dependency directly from GitHUb. I recommend using the github recommended way to load Artifacts. First get a Github Token from your [account settings](https://github.com/settings/tokens).


Inside settings.gradle add a maven repository:
Expand Down
18 changes: 12 additions & 6 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
defaultConfig {
minSdk 21
targetSdk 31
versionCode 2
versionName "1.1.0"
versionCode 3
versionName "1.1.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand All @@ -34,16 +34,22 @@ android {
}

dependencies {
implementation 'com.solana:solana:1.1.5'

testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1'

// SolanaKT
implementation 'com.github.ajamaica.Solanakt:rxsolana:1.1.5'

// Moshi
implementation "com.squareup.moshi:moshi:1.12.0"
kapt 'com.squareup.moshi:moshi-kotlin-codegen:1.12.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

//region PUBLISHING
Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ android {

dependencies {
implementation project(path: ':lib')
implementation 'com.solana:solana:1.1.5'
implementation 'com.github.ajamaica.Solanakt:rxsolana:1.1.5'
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.6.0'
Expand Down
9 changes: 1 addition & 8 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/ajamaica/SolanaKT"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
maven { url 'https://jitpack.io' }
}
}
rootProject.name = "Metaplex"
Expand Down

0 comments on commit f5bb0d7

Please sign in to comment.