Skip to content

Commit

Permalink
加入依赖地址
Browse files Browse the repository at this point in the history
  • Loading branch information
wzgiceman committed Dec 17, 2016
1 parent c0d134a commit 8438e0b
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 27 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/build
/captures
.externalNativeBuild

14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@
![这里写图片描述](https://github.com/wzgiceman/Rxbus/blob/master/gif/rxbus_r.gif)


##依赖

根目录下build.gradle加入私有仓

```java
maven { url 'https://dl.bintray.com/wzgcd/maven' }
```

依赖:

```java
compile 'com.wzgiceman:RxBus:1.0.1@aar'
```

## 代码使用

>RxBus和EventBus3.0的用法完全一样
Expand Down
11 changes: 3 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,10 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

productFlavors {
rxbus1 {
applicationId "com.wzgiceman.rxbus1"
}

rxbus1 {
applicationId "com.wzgiceman.rxbus2"
}
lintOptions {
abortOnError false
}

}

dependencies {
Expand Down
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,25 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'me.tatarka:gradle-retrolambda:+'
classpath 'com.android.tools.build:gradle:2.2.2'
/* classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1'*/
classpath 'com.novoda:bintray-release:+'
}
}




allprojects {
repositories {
jcenter()
maven { url 'https://dl.bintray.com/wzgcd/maven' }
}
}


task clean(type: Delete) {
delete rootProject.buildDir
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2-all.zip
41 changes: 35 additions & 6 deletions rxbuslibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,57 @@
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'


android {
compileSdkVersion 25
buildToolsVersion "24.0.2"
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
minSdkVersion 14
targetSdkVersion 25
targetSdkVersion 23
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

lintOptions {
abortOnError false
}
}


allprojects {
repositories {
jcenter()
}
//加上这些
tasks.withType(Javadoc) {
options{ encoding "UTF-8"
charSet 'UTF-8'
links "http://docs.oracle.com/javase/7/docs/api"
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.trello:rxlifecycle:1.0'
compile 'com.trello:rxlifecycle-components:1.0'
}

publish {
userOrg = 'wzgcd' //bintray注册的用户名
groupId = 'com.wzgiceman' //compile引用时的第1部分groupId
artifactId = 'RxBus' //compile引用时的第2部分项目名
publishVersion = '1.0.1' //compile引用时的第3部分版本号
desc = 'This is a rxbus same of eventbus extend library '
website = 'https://github.com/wzgiceman/Rxbus'
}



8 changes: 0 additions & 8 deletions rxbuslibrary/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
<manifest package="com.wzgiceman.rxbuslibrary"
xmlns:android="http://schemas.android.com/apk/res/android">

<application android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true"
>

</application>

</manifest>
3 changes: 0 additions & 3 deletions rxbuslibrary/src/main/res/values/strings.xml

This file was deleted.

0 comments on commit 8438e0b

Please sign in to comment.