Skip to content

Commit 12fd135

Browse files
committed
解决合并冲突
2 parents cd00f59 + 71731c6 commit 12fd135

File tree

3 files changed

+109
-109
lines changed

3 files changed

+109
-109
lines changed

app/build.gradle

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
apply plugin: 'com.android.application'
2-
3-
android {
4-
compileSdkVersion 28
5-
6-
// 支持 JDK 1.8
7-
compileOptions {
8-
targetCompatibility JavaVersion.VERSION_1_8
9-
sourceCompatibility JavaVersion.VERSION_1_8
10-
}
11-
12-
defaultConfig {
13-
applicationId "com.hjq.http.demo"
14-
minSdkVersion 14
15-
targetSdkVersion 28
16-
versionCode 50
17-
versionName "5.0"
18-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
19-
}
20-
buildTypes {
21-
release {
22-
minifyEnabled false
23-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
24-
}
25-
debug {
26-
minifyEnabled false
27-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
28-
}
29-
}
30-
}
31-
32-
dependencies {
33-
implementation fileTree(include: ['*.jar'], dir: 'libs')
34-
implementation project(':library')
35-
36-
implementation 'com.android.support:appcompat-v7:28.0.0'
37-
implementation 'com.android.support:design:28.0.0'
38-
39-
// 标题栏:https://github.com/getActivity/TitleBar
40-
implementation 'com.hjq:titlebar:6.0'
41-
// 吐司工具类:https://github.com/getActivity/ToastUtils
42-
implementation 'com.hjq:toast:8.0'
43-
// 权限请求框架:https://github.com/getActivity/XXPermissions
44-
implementation 'com.hjq:xxpermissions:6.0'
45-
46-
// Json 解析框架:https://github.com/google/gson
47-
implementation 'com.google.code.gson:gson:2.8.5'
48-
// OkHttp 网络框架:https://github.com/square/okhttp
49-
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 28
5+
6+
// 支持 JDK 1.8
7+
compileOptions {
8+
targetCompatibility JavaVersion.VERSION_1_8
9+
sourceCompatibility JavaVersion.VERSION_1_8
10+
}
11+
12+
defaultConfig {
13+
applicationId "com.hjq.http.demo"
14+
minSdkVersion 14
15+
targetSdkVersion 28
16+
versionCode 50
17+
versionName "5.0"
18+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
19+
}
20+
buildTypes {
21+
release {
22+
minifyEnabled false
23+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
24+
}
25+
debug {
26+
minifyEnabled false
27+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
28+
}
29+
}
30+
}
31+
32+
dependencies {
33+
implementation fileTree(include: ['*.jar'], dir: 'libs')
34+
implementation project(':library')
35+
36+
implementation 'com.android.support:appcompat-v7:28.0.0'
37+
implementation 'com.android.support:design:28.0.0'
38+
39+
// 标题栏:https://github.com/getActivity/TitleBar
40+
implementation 'com.hjq:titlebar:6.0'
41+
// 吐司工具类:https://github.com/getActivity/ToastUtils
42+
implementation 'com.hjq:toast:8.0'
43+
// 权限请求框架:https://github.com/getActivity/XXPermissions
44+
implementation 'com.hjq:xxpermissions:6.0'
45+
46+
// Json 解析框架:https://github.com/google/gson
47+
implementation 'com.google.code.gson:gson:2.8.5'
48+
// OkHttp 网络框架:https://github.com/square/okhttp
49+
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
5050
}

app/src/main/java/com/hjq/http/demo/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void onSucceed(HttpData<SearchBean> result) {
120120

121121
@Override
122122
public void onSucceed(HttpData<SearchBean> result) {
123-
ToastUtils.show("请求成功");
123+
ToastUtils.show("请求成功" + result.getData().getSize());
124124
}
125125
});
126126
break;

library/build.gradle

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
1-
// 文件开头配置
2-
apply plugin: 'com.android.library'
3-
apply plugin: 'com.novoda.bintray-release'
4-
5-
android {
6-
compileSdkVersion 26
7-
8-
// 使用 JDK 1.8
9-
compileOptions {
10-
targetCompatibility JavaVersion.VERSION_1_8
11-
sourceCompatibility JavaVersion.VERSION_1_8
12-
}
13-
14-
defaultConfig {
15-
minSdkVersion 14
16-
targetSdkVersion 26
17-
versionCode 50
18-
versionName "5.0"
19-
}
20-
}
21-
22-
dependencies {
23-
compileOnly 'com.squareup.okhttp3:okhttp:3.12.1'
24-
compileOnly 'com.android.support:support-fragment:26.0.0'
25-
}
26-
27-
publish {
28-
userOrg = 'getactivity'//填写bintray用户名,注意大小写
29-
groupId = 'com.hjq'//定义的maven group id最终引用形式
30-
artifactId = 'http'//maven的artifact id
31-
version = '5.0'//maven 上发布版本号
32-
description = 'Easy-to-use network request framework'//描述,自己定义
33-
website = "https://github.com/getActivity/EasyHttp"//项目在github中的地址
34-
}
35-
36-
tasks.withType(Javadoc) {//防止编码问题
37-
options.addStringOption('Xdoclint:none', '-quiet')
38-
options.addStringOption('encoding', 'UTF-8')
39-
options.addStringOption('charSet', 'UTF-8')
40-
}
41-
42-
task sourcesJar(type: Jar) {
43-
from android.sourceSets.main.java.srcDirs
44-
classifier = 'sources'
45-
}
46-
47-
task javadoc(type: Javadoc) {
48-
source = android.sourceSets.main.java.srcDirs
49-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
50-
}
51-
52-
task javadocJar(type: Jar, dependsOn: javadoc) {
53-
classifier = 'javadoc'
54-
from javadoc.destinationDir
55-
}
56-
57-
artifacts {
58-
archives javadocJar
59-
archives sourcesJar
1+
// 文件开头配置
2+
apply plugin: 'com.android.library'
3+
apply plugin: 'com.novoda.bintray-release'
4+
5+
android {
6+
compileSdkVersion 26
7+
8+
// 使用 JDK 1.8
9+
compileOptions {
10+
targetCompatibility JavaVersion.VERSION_1_8
11+
sourceCompatibility JavaVersion.VERSION_1_8
12+
}
13+
14+
defaultConfig {
15+
minSdkVersion 14
16+
targetSdkVersion 26
17+
versionCode 50
18+
versionName "5.0"
19+
}
20+
}
21+
22+
dependencies {
23+
compileOnly 'com.squareup.okhttp3:okhttp:3.12.1'
24+
compileOnly 'com.android.support:support-fragment:26.0.0'
25+
}
26+
27+
publish {
28+
userOrg = 'getactivity'//填写bintray用户名,注意大小写
29+
groupId = 'com.hjq'//定义的maven group id最终引用形式
30+
artifactId = 'http'//maven的artifact id
31+
version = '5.0'//maven 上发布版本号
32+
description = 'Easy-to-use network request framework'//描述,自己定义
33+
website = "https://github.com/getActivity/EasyHttp"//项目在github中的地址
34+
}
35+
36+
tasks.withType(Javadoc) {//防止编码问题
37+
options.addStringOption('Xdoclint:none', '-quiet')
38+
options.addStringOption('encoding', 'UTF-8')
39+
options.addStringOption('charSet', 'UTF-8')
40+
}
41+
42+
task sourcesJar(type: Jar) {
43+
from android.sourceSets.main.java.srcDirs
44+
classifier = 'sources'
45+
}
46+
47+
task javadoc(type: Javadoc) {
48+
source = android.sourceSets.main.java.srcDirs
49+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
50+
}
51+
52+
task javadocJar(type: Jar, dependsOn: javadoc) {
53+
classifier = 'javadoc'
54+
from javadoc.destinationDir
55+
}
56+
57+
artifacts {
58+
archives javadocJar
59+
archives sourcesJar
6060
}

0 commit comments

Comments
 (0)