Skip to content

Commit

Permalink
Changes for jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
amitshekhariitbhu committed Aug 18, 2024
1 parent 972548f commit 088d7ac
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 248 deletions.
29 changes: 26 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,36 @@

## Using NYBus(RxBus) Library in your application

Add this in your `settings.gradle`:
```groovy
maven { url 'https://jitpack.io' }
```

If you are using `settings.gradle.kts`, add the following:
```kotlin
maven { setUrl("https://jitpack.io") }
```

## Android
Add this in your `build.gradle`
```groovy
compile 'com.mindorks.nybus:nybus-android:1.0.0'
implementation 'com.github.amitshekhariitbhu.NYBus:nybus-android:1.0.0'
```

If you are using `build.gradle.kts`, add the following:
```kotlin
implementation("com.github.amitshekhariitbhu.NYBus:nybus-android:1.0.0")
```

## Java
Add this in your `build.gradle`
```groovy
compile 'com.mindorks.nybus:nybus-java:1.0.0'
implementation 'com.github.amitshekhariitbhu.NYBus:nybus-java:1.0.0'
```

If you are using `build.gradle.kts`, add the following:
```kotlin
implementation("com.github.amitshekhariitbhu.NYBus:nybus-java:1.0.0")
```

## To run all the test cases
Expand Down Expand Up @@ -134,7 +157,7 @@ You can connect with me on:

### License
```
Copyright (C) 2022 Amit Shekhar
Copyright (C) 2024 Amit Shekhar
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
14 changes: 7 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
testCompile 'junit:junit:4.12'
compile project(':nybus-android')
androidTestCompile ('com.android.support.test.espresso:espresso-core:2.2.2', {
implementation 'com.android.support:appcompat-v7:26.+'
testImplementation 'junit:junit:4.12'
implementation project(':nybus-android')
androidTestImplementation ('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile ('com.android.support.test.espresso:espresso-idling-resource:2.2.2', {
implementation ('com.android.support.test.espresso:espresso-idling-resource:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
}
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.android.tools.build:gradle:7.0.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -32,6 +31,7 @@ buildscript {
allprojects {
repositories {
jcenter()
google()
}
}

Expand Down
19 changes: 1 addition & 18 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
#
# Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#Mon Aug 14 12:23:56 IST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
20 changes: 10 additions & 10 deletions nybus-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
api fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.7.1'
testCompile project(':test-utils')
androidTestCompile 'com.linkedin.dexmaker:dexmaker-mockito:2.2.0'
androidTestCompile 'org.mockito:mockito-core:2.7.1'
androidTestCompile project(':test-utils')
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile project(':nybus-common')
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.7.1'
testImplementation project(':test-utils')
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:2.2.0'
androidTestImplementation 'org.mockito:mockito-core:2.7.1'
androidTestImplementation project(':test-utils')
api 'io.reactivex.rxjava2:rxandroid:2.0.1'
api project(':nybus-common')
}
//apply from: 'upload.gradle'
9 changes: 4 additions & 5 deletions nybus-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
apply plugin: 'java'

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'io.reactivex.rxjava2:rxjava:2.1.1'
testCompile 'junit:junit:4.12'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'io.reactivex.rxjava2:rxjava:2.1.1'
testImplementation 'junit:junit:4.12'
}

sourceCompatibility = "1.7"
targetCompatibility = "1.7"
//apply from: 'upload.gradle'
targetCompatibility = "1.7"
95 changes: 0 additions & 95 deletions nybus-common/upload.gradle

This file was deleted.

15 changes: 7 additions & 8 deletions nybus-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
apply plugin: 'java'

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.7.1'
testCompile project(':test-utils')
compile 'io.reactivex.rxjava2:rxjava:2.1.1'
compile project(':nybus-common')
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.7.1'
testImplementation project(':test-utils')
implementation 'io.reactivex.rxjava2:rxjava:2.1.1'
implementation project(':nybus-common')
}

sourceCompatibility = "1.7"
targetCompatibility = "1.7"
//apply from: 'upload.gradle'
targetCompatibility = "1.7"
95 changes: 0 additions & 95 deletions nybus-java/upload.gradle

This file was deleted.

8 changes: 4 additions & 4 deletions test-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
apply plugin: 'java'

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'junit:junit:4.12'
compile 'org.mockito:mockito-core:2.7.1'
compile project(':nybus-common')
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'junit:junit:4.12'
implementation 'org.mockito:mockito-core:2.7.1'
implementation project(':nybus-common')
}

sourceCompatibility = "1.7"
Expand Down

0 comments on commit 088d7ac

Please sign in to comment.