Skip to content

Commit

Permalink
1.0.2提交
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxlin committed Aug 5, 2021
1 parent d096607 commit cdfb141
Showing 5 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -36,4 +36,7 @@ dependencies {
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'


implementation project(path: ":common")
}
4 changes: 4 additions & 0 deletions app/src/main/java/cn/kaer/mvpcommonlib/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
package cn.kaer.mvpcommonlib;

import androidx.appcompat.app.AppCompatActivity;
import cn.kaer.common.bases.BaseActivity;

import android.os.Bundle;

import com.blankj.utilcode.util.NetworkUtils;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

}
}
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ buildscript {

allprojects {
repositories {
maven { url 'https://jitpack.io' }
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
4 changes: 2 additions & 2 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.0.2"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
3 changes: 2 additions & 1 deletion common/src/main/java/cn/kaer/common/utils/OkHttpUtils.java
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
import okhttp3.ResponseBody;

@@ -53,7 +54,7 @@ public static Response httpGetSync(String url) throws IOException {
return okHttpClient.newCall(request).execute();
}

public static Response httpPostSync(String url, FormBody formBody) throws IOException {
public static Response httpPostSync(String url, RequestBody formBody) throws IOException {
init();
Request request = new Request.Builder().url(url).method("POST", formBody).build();
return okHttpClient.newCall(request).execute();

0 comments on commit cdfb141

Please sign in to comment.