Skip to content

Commit 409ecff

Browse files
authored
Merge pull request #42 from YangSen-qn/master
Opitimize Multi Server concurrent resolve
2 parents be449af + 1d3703e commit 409ecff

23 files changed

+240
-235
lines changed

.idea/gradle.xml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#Changelog
2+
## 2.0.1 (2021-08-19)
3+
* 优化多 Server 并发解析
4+
25
## 2.0.0 (2021-08-19)
36
* 处理加密模式 ECB 不安全问题
47
* 删除 com.qiniu.android.dns.http.DnspodEnterprise

HappyDns_Android.iml

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
### 通过maven
1919
* Android Studio中添加dependencies 或者 在项目中添加maven依赖
2020
```
21-
implementation 'com.qiniu:happy-dns:2.0.0'
21+
implementation 'com.qiniu:happy-dns:2.0.1'
2222
```
2323

2424

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
mavenCentral()
1010
}
1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.5.2'
12+
classpath 'com.android.tools.build:gradle:3.6.4'
1313
// classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
1414
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.5'
1515
// NOTE: Do not place your application dependencies here; they belong

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ POM_LICENCE_DIST=repo
1414

1515
POM_DEVELOPER_ID=qiniu
1616
POM_DEVELOPER_NAME=Qiniu
17+
18+
android.useAndroidX=true

library/build.gradle

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.util.regex.Matcher
33
apply plugin: 'com.android.library'
44

55
def versionName() {
6-
String config = 'library/src/main/java/com/qiniu/android/dns/Version.java'
6+
String config = getProjectDir().getPath() + '/src/main/java/com/qiniu/android/dns/Version.java'
77
String fileContents = new File(config).text
88
Matcher myMatcher = fileContents =~ /VERSION = "(.+)";/
99
String version = myMatcher[0][1]
@@ -20,12 +20,12 @@ String version = versionName()
2020
int code = versionNameToCode(version)
2121

2222
android {
23-
compileSdkVersion 27
24-
buildToolsVersion '27.0.3'
23+
compileSdkVersion 30
24+
buildToolsVersion '30.0.3'
2525
defaultConfig {
2626
//applicationId "com.qiniu.android.dns"
27-
minSdkVersion 9
28-
targetSdkVersion 27
27+
minSdkVersion 14
28+
targetSdkVersion 30
2929
versionCode code
3030
versionName version
3131
}
@@ -53,10 +53,16 @@ android {
5353

5454
dependencies {
5555
implementation fileTree(include: ['*.jar'], dir: 'libs')
56-
androidTestImplementation 'com.android.support.test:runner:0.4.1'
57-
androidTestImplementation 'com.android.support.test:rules:0.4.1'
58-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.1'
59-
androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:2.2.1'
56+
57+
androidTestCompileOnly project(path: ':library')
58+
59+
androidTestImplementation 'junit:junit:4.13.2'
60+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
61+
androidTestImplementation 'androidx.test:core:1.5.0'
62+
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
63+
androidTestImplementation "com.android.support:support-annotations:28.0.0"
64+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
65+
androidTestImplementation 'com.android.support.test:rules:1.0.2'
6066
}
6167

6268
task releaseJar(type: Jar, dependsOn: 'build') {

0 commit comments

Comments
 (0)