合并代码

pull/330/head v_3.1.9
AriaLyy 8 years ago
parent 509aa32f6a
commit fb1298b127
  1. 6
      Aria/build.gradle
  2. 2
      AriaAnnotations/build.gradle
  3. 2
      AriaCompiler/build.gradle
  4. 14
      README.md
  5. 2
      build.gradle

@ -22,8 +22,8 @@ dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs') compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:appcompat-v7:23.1.1'
// compile project(':AriaCompiler') compile project(':AriaCompiler')
compile project(':AriaAnnotations') // compile project(':AriaAnnotations')
} }
apply from: 'bintray-release.gradle' //apply from: 'bintray-release.gradle'
//apply from: 'jcenter.gradle' //apply from: 'jcenter.gradle'

@ -11,4 +11,4 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar']) compile fileTree(dir: 'libs', include: ['*.jar'])
} }
apply from: 'bintray-release.gradle' //apply from: 'bintray-release.gradle'

@ -14,4 +14,4 @@ dependencies {
compile project(':AriaAnnotations') compile project(':AriaAnnotations')
} }
apply from: 'bintray-release.gradle' //apply from: 'bintray-release.gradle'

@ -27,13 +27,8 @@ Aria怎样使用?
[![Download](https://api.bintray.com/packages/arialyy/maven/AriaApi/images/download.svg)](https://bintray.com/arialyy/maven/AriaApi/_latestVersion) [![Download](https://api.bintray.com/packages/arialyy/maven/AriaApi/images/download.svg)](https://bintray.com/arialyy/maven/AriaApi/_latestVersion)
[![Download](https://api.bintray.com/packages/arialyy/maven/AriaCompiler/images/download.svg)](https://bintray.com/arialyy/maven/AriaCompiler/_latestVersion) [![Download](https://api.bintray.com/packages/arialyy/maven/AriaCompiler/images/download.svg)](https://bintray.com/arialyy/maven/AriaCompiler/_latestVersion)
```java ```java
<<<<<<< HEAD
compile 'com.arialyy.aria:aria-core:3.1.8'
annotationProcessor 'com.arialyy.aria:aria-compiler:3.1.8'
=======
compile 'com.arialyy.aria:Aria:3.1.9' compile 'com.arialyy.aria:Aria:3.1.9'
annotationProcessor 'com.arialyy.aria:aria-compiler:3.1.9' annotationProcessor 'com.arialyy.aria:aria-compiler:3.1.9'
>>>>>>> v_3.0
``` ```
## 示例 ## 示例
@ -86,14 +81,9 @@ annotationProcessor 'com.arialyy.aria:aria-compiler:3.1.9'
``` ```
### 下载状态获取 ### 下载状态获取
<<<<<<< HEAD
如果你希望读取下载进度或下载信息,那么你需要
* 将对象注册到Aria
=======
如果你希望读取下载进度或下载信息,那么你需要创建事件类,并在onResume(Activity、Fragment)或构造函数(Dialog、PopupWindow),将该事件类注册到Aria管理器。 如果你希望读取下载进度或下载信息,那么你需要创建事件类,并在onResume(Activity、Fragment)或构造函数(Dialog、PopupWindow),将该事件类注册到Aria管理器。
1. 将对象注册到Aria 1. 将对象注册到Aria
>>>>>>> v_3.0
`Aria.download(this).register();`或`Aria.upload(this).register();` `Aria.download(this).register();`或`Aria.upload(this).register();`
```java ```java
@ -104,11 +94,7 @@ annotationProcessor 'com.arialyy.aria:aria-compiler:3.1.9'
} }
``` ```
<<<<<<< HEAD
* 使用`@Download`或`@Upload`注解你的函数
=======
2. 使用`@Download`或`@Upload`注解你的函数 2. 使用`@Download`或`@Upload`注解你的函数
>>>>>>> v_3.0
**注意:** **注意:**
- 注解回掉采用Apt的方式实现,所以,你不需要担心这会影响你机器的性能 - 注解回掉采用Apt的方式实现,所以,你不需要担心这会影响你机器的性能

@ -6,7 +6,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:2.2.2' classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.novoda:bintray-release:0.5.0' // classpath 'com.novoda:bintray-release:0.5.0'
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7' // classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
// classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' // classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong

Loading…
Cancel
Save