Skip to content

Commit

Permalink
Release version 1.0.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzhenjie committed Jun 23, 2016
1 parent 338a4ca commit acdaa5b
Show file tree
Hide file tree
Showing 46 changed files with 1,364 additions and 736 deletions.
Binary file added Jar/nohttp1.0.3-include-source.jar
Binary file not shown.
Binary file added Jar/nohttp1.0.3.jar
Binary file not shown.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
技术交流2群:46505645
[群行为规范][2]

严振杰的主页:[http:https://www.yanzhenjie.com][12]
严振杰的博客:[http:https://blog.csdn.net/yanzhenjie1003][3]
严振杰的Android直播视频下载:[http:https://pan.baidu.com/s/1miEOtwG][4]

Expand All @@ -19,12 +20,12 @@ NoHttp源码:[https://github.com/yanzhenjie/NoHttp][1]

#使用方法
* Eclipse使用Jar包,如果需要依赖源码,请自行下载。
> [下载Jar包 [含源码,274k]][11]
> [下载Jar包 [不含源码,147k]][8]
> [下载Jar包 [含源码,274k]][11]
> [下载Jar包 [不含源码,147k]][8]
* AndroidStudio使用Gradle构建添加依赖(推荐)
```groovy
compile 'com.yolanda.nohttp:nohttp:1.0.2'
compile 'com.yolanda.nohttp:nohttp:1.0.3'
```

#下载Demo
Expand All @@ -34,7 +35,6 @@ compile 'com.yolanda.nohttp:nohttp:1.0.2'
```xml
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
Expand Down Expand Up @@ -391,7 +391,8 @@ limitations under the License.
[5]: http:https://www.nohttp.net
[6]: http:https://doc.nohttp.net
[7]: https://github.com/yanzhenjie/NoHttp/issues
[8]: https://github.com/yanzhenjie/NoHttp/blob/master/Jar/nohttp1.0.2.jar?raw=true
[8]: https://github.com/yanzhenjie/NoHttp/blob/master/Jar/nohttp1.0.3.jar?raw=true
[9]: https://github.com/yanzhenjie/NoHttp/blob/master/nohttp_sample.apk?raw=true
[10]: http:https://www.nohttp.net/image/nohttp_logo.svg
[11]: https://github.com/yanzhenjie/NoHttp/blob/master/Jar/nohttp1.0.2-include-source.jar?raw=true
[11]: https://github.com/yanzhenjie/NoHttp/blob/master/Jar/nohttp1.0.3-include-source.jar?raw=true
[12]: http:https://www.yanzhenjie.com
5 changes: 2 additions & 3 deletions nohttp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
Expand All @@ -8,7 +7,7 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
versionCode 2
versionName '1.0.2'
versionCode 3
versionName '1.0.3'
}
}
2 changes: 1 addition & 1 deletion nohttp/src/main/java/com/yolanda/nohttp/BasicBinary.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public String getMimeType() {
if (TextUtils.isEmpty(mimeType) && !TextUtils.isEmpty(fileName))
mimeType = URLConnection.guessContentTypeFromName(getFileName());
if (TextUtils.isEmpty(mimeType))
mimeType = NoHttp.APPLICATION_OCTET_STREAM;
mimeType = Headers.APPLICATION_OCTET_STREAM;
return mimeType;
}

Expand Down
Loading

0 comments on commit acdaa5b

Please sign in to comment.