-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c0946c
commit 1c504a5
Showing
29 changed files
with
1,581 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.vector.commonlibrary; | ||
|
||
import android.app.Application; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
import com.orhanobut.logger.AndroidLogAdapter; | ||
import com.orhanobut.logger.DiskLogAdapter; | ||
import com.orhanobut.logger.FormatStrategy; | ||
import com.orhanobut.logger.Logger; | ||
import com.orhanobut.logger.PrettyFormatStrategy; | ||
import com.vector.common.app.Vector; | ||
import com.vector.common.utils.log.LoggerUtil; | ||
|
||
/** | ||
* @author Vector Weng | ||
* @description: | ||
* @date :2020/12/21 16:49 | ||
*/ | ||
public class App extends Application { | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
|
||
Vector.init(this) | ||
.withLoaderDelayed(2000) | ||
.initLogger(LoggerUtil.LoggerLevel.VERBOSE) | ||
.withApiHost("http://192.168.31.80:20002/api/") | ||
.configure(); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#####https://www.cnblogs.com/zhangzhonghui/p/11463250.html | ||
### 单例模式之Holder | ||
https://www.cnblogs.com/zhangzhonghui/p/11463250.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,7 @@ public enum ConfigType { | |
CONFIG_READY, | ||
ICON, | ||
LOADER_DELAYED, | ||
INTERCEPTOR | ||
INTERCEPTOR, | ||
HANDLER, | ||
LOGGER_LEVEL | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
vector_common/src/main/java/com/vector/common/net/HttpMethod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.vector.common.net; | ||
|
||
/** | ||
* @author Vector Weng | ||
* @description: | ||
* @date :2020/12/9 18:44 | ||
*/ | ||
public enum HttpMethod { | ||
|
||
GET, | ||
POST, | ||
POST_RAW, | ||
PUT, | ||
PUT_RAW, | ||
DELETE, | ||
UPLOAD | ||
|
||
} |
Oops, something went wrong.