Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .idea/codeStyleSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ android:
- tools

# The BuildTools version used by your project
- build-tools-21.1.2
- build-tools-22.0.1

# The SDK version used to compile your project
- android-21
- android-22

# Specify at least one system image
# if you need to run emulator(s) during your tests
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#Changelog

## 7.0.7 (2015-07-10)

### 增加
* 使用第三方dns解析库happy-dns-android,减少解析错误

## 7.0.6.1 (2015-06-23)

### 增加
Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
task wrapper(type: Wrapper) {
gradleVersion = '2.5'
}

buildscript {
repositories {
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jan 07 13:33:33 CST 2015
#Sun Jul 12 16:36:40 CST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-all.zip
8 changes: 4 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ String version = versionName()
int code = versionNameToCode(version)

android {
compileSdkVersion 21
buildToolsVersion '21.1.2'
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
//applicationId "com.qiniu.android"
minSdkVersion 8
targetSdkVersion 21
targetSdkVersion 22
versionCode code
versionName version
}
}

dependencies {
compile 'com.loopj.android:android-async-http:1.4.+'
compile 'com.qiniu:happy-dns:0.1.+'
compile 'com.qiniu:happy-dns:0.2.+'
// compile 'com.android.support:appcompat-v7:21.0.3'
compile fileTree(include: ['*.jar'], dir: 'libs')
}
Expand Down
6 changes: 3 additions & 3 deletions library/library.iml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/docs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
Expand All @@ -85,12 +86,11 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/reports" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="happy-dns-0.1.1" level="project" />
<orderEntry type="library" exported="" name="happy-dns-0.2.1" level="project" />
<orderEntry type="library" exported="" name="android-async-http-1.4.7" level="project" />
</component>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


public final class Constants {
public static final String VERSION = "7.0.6.1";
public static final String VERSION = "7.0.7";

public static final String UTF_8 = "utf-8";
}
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ private String[] systemResolv(String domain) throws UnknownHostException {
}
return x;
}
return dnsResolver.query(new Domain(domain, true, false, 3600));
try {
return dnsResolver.query(new Domain(domain, true, false, 3600));
} catch (IOException e) {
throw new UnknownHostException(e.getMessage());
}
}
}