Skip to content

Commit

Permalink
Support for JitPack
Browse files Browse the repository at this point in the history
  • Loading branch information
RationalRank committed Nov 24, 2020
1 parent c12ce2f commit d5e152a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ The library is a custom Switch widget inspired by this [dribbble shot](https://d

![GifSample](https://github.com/polyak01/IconSwitch/blob/master/data/3J8gYHy.gif)

## Gradle
Add this into your dependencies block.
## Gradle
Step 1. Add the JitPack repository to your build file
```
implementation 'com.github.parminder93:IconSwitch:v1.0.5'
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

Step 2. Add the dependency
```
implementation 'com.github.ZupersoftSolutions:v1.0.5'
```
## Sample
Please see the [sample app](sample/src/main) for a library usage example.
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}

Expand Down
9 changes: 6 additions & 3 deletions iconswitch/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.ZupersoftSolutions'

android {
compileSdkVersion 29

defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 2
versionName "1.1"
versionCode 12
versionName "1.2"
}
}

dependencies {
compile 'androidx.appcompat:appcompat:1.0.0'
compile 'androidx.appcompat:appcompat:1.2.0'
}

0 comments on commit d5e152a

Please sign in to comment.