-
Notifications
You must be signed in to change notification settings - Fork 310
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
Showing
24 changed files
with
204 additions
and
1 deletion.
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
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
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
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,7 @@ | ||
Change Log | ||
========== | ||
|
||
Version 1.0.0 *(2022-01-XX)* | ||
---------------------------- | ||
|
||
Initial release |
Empty file.
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,31 @@ | ||
apply from: rootProject.file(files.lib_app_kotlin_gradle) | ||
|
||
android.defaultConfig { | ||
versionCode versions.dev_http_manager_versionCode | ||
versionName versions.dev_http_manager_versionName | ||
// DevHttpManager Module Version | ||
buildConfigField "int", "DevHttpManager_VersionCode", "${versions.dev_http_manager_versionCode}" | ||
buildConfigField "String", "DevHttpManager_Version", "\"${versions.dev_http_manager_versionName}\"" | ||
// DevApp Module Version | ||
buildConfigField "int", "DevApp_VersionCode", "${versions.dev_app_versionCode}" | ||
buildConfigField "String", "DevApp_Version", "\"${versions.dev_app_versionName}\"" | ||
} | ||
|
||
dependencies { | ||
// OkHttp3 网络请求框架 https://github.com/square/okhttp | ||
api deps.lib.okhttp3 | ||
api deps.lib.okhttp3_logging | ||
// Gson https://github.com/google/gson | ||
api deps.lib.gson | ||
|
||
// 编译时使用 | ||
api project(':DevApp') | ||
// // 打包时使用 | ||
// api deps.dev.dev_app_x | ||
} | ||
|
||
// gradlew clean | ||
// gradlew install | ||
// gradlew bintrayUpload | ||
//apply from : rootProject.file(files.bintray_upload_android) | ||
//apply from : rootProject.file(files.sonatype_upload_android) |
Empty file.
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,10 @@ | ||
#project | ||
project.name=DevHttpManager | ||
project.groupId=io.github.afkt | ||
project.artifactId=DevHttpManager | ||
project.packaging=aar | ||
project.siteUrl=https://github.com/afkT/DevUtils | ||
project.gitUrl=https://github.com/afkT/DevUtils.git | ||
|
||
#javadoc | ||
javadoc.name=DevHttpManager |
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,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest package="dev.http" /> |
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,76 @@ | ||
package dev; | ||
|
||
import dev.http.BuildConfig; | ||
|
||
/** | ||
* detail: OKHttp 抓包工具库 | ||
* @author Ttt | ||
* <pre> | ||
* GitHub | ||
* @see <a href="https://github.com/afkT/DevUtils"/> | ||
* DevApp Api | ||
* @see <a href="https://github.com/afkT/DevUtils/blob/master/lib/DevApp/README.md"/> | ||
* DevAssist Api | ||
* @see <a href="https://github.com/afkT/DevUtils/blob/master/lib/DevAssist/README.md"/> | ||
* DevBase README | ||
* @see <a href="https://github.com/afkT/DevUtils/blob/master/lib/DevBase/README.md"/> | ||
* DevBaseMVVM README | ||
* @see <a href="https://github.com/afkT/DevUtils/blob/master/lib/DevBaseMVVM/README.md"/> | ||
* DevEngine README | ||
* @see <a href="https://github.com/afkT/DevUtils/blob/master/lib/DevEngine/README.md"/> | ||
* DevHttpCapture Api | ||
* @see <a href="https://github.com/afkT/DevUtils/blob/master/lib/DevHttpCapture/README.md"/> | ||
* DevHttpManager Api | ||
* @see <a href="https://github.com/afkT/DevUtils/blob/master/lib/DevHttpManager/README.md"/> | ||
* DevJava Api | ||
* @see <a href="https://github.com/afkT/DevUtils/blob/master/lib/DevJava/README.md"/> | ||
* DevWidget Api | ||
* @see <a href="https://github.com/afkT/DevUtils/blob/master/lib/DevWidget/README_API.md"/> | ||
* DevEnvironment Api | ||
* @see <a href="https://github.com/afkT/DevUtils/blob/master/lib/Environment"/> | ||
* </pre> | ||
*/ | ||
public final class DevHttpManager { | ||
|
||
private DevHttpManager() { | ||
} | ||
|
||
// 日志 TAG | ||
public static final String TAG = DevHttpManager.class.getSimpleName(); | ||
|
||
// ============ | ||
// = 工具类版本 = | ||
// ============ | ||
|
||
/** | ||
* 获取 DevHttpManager 版本号 | ||
* @return DevHttpManager versionCode | ||
*/ | ||
public static int getDevHttpManagerVersionCode() { | ||
return BuildConfig.DevHttpManager_VersionCode; | ||
} | ||
|
||
/** | ||
* 获取 DevHttpManager 版本 | ||
* @return DevHttpManager versionName | ||
*/ | ||
public static String getDevHttpManagerVersion() { | ||
return BuildConfig.DevHttpManager_Version; | ||
} | ||
|
||
/** | ||
* 获取 DevApp 版本号 | ||
* @return DevApp versionCode | ||
*/ | ||
public static int getDevAppVersionCode() { | ||
return BuildConfig.DevApp_VersionCode; | ||
} | ||
|
||
/** | ||
* 获取 DevApp 版本 | ||
* @return DevApp versionName | ||
*/ | ||
public static String getDevAppVersion() { | ||
return BuildConfig.DevApp_Version; | ||
} | ||
} |
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,4 @@ | ||
package dev.http; | ||
|
||
public class AA { | ||
} |
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
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