Skip to content

Commit

Permalink
1.更新部分代码
Browse files Browse the repository at this point in the history
Former-commit-id: be4dc18
Former-commit-id: 130474e
  • Loading branch information
afkT committed Jan 3, 2022
1 parent 12aeb1d commit 0c3e965
Show file tree
Hide file tree
Showing 24 changed files with 204 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ dependencies {
debugImplementation project(':DevHttpCaptureCompiler')
releaseImplementation project(':DevHttpCaptureCompilerRelease')

implementation project(':DevHttpManager')

implementation project(':DevEnvironment')
kaptDebug project(':DevEnvironmentCompiler') // debugAnnotationProcessor
kaptRelease project(':DevEnvironmentCompilerRelease') // releaseAnnotationProcessor
Expand Down
1 change: 1 addition & 0 deletions file/gradle/build/build_app_kotlin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ dependencies {
implementation project(':DevBaseMVVM')
implementation project(':DevEngine')
implementation project(':DevHttpCapture')
implementation project(':DevHttpManager')
implementation project(':DevWidget')
}
2 changes: 1 addition & 1 deletion file/gradle/config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ ext {
auto_dispose_android : "com.uber.autodispose2:autodispose-android:2.0.0",
auto_dispose_lifecycle : "com.uber.autodispose2:autodispose-androidx-lifecycle:2.0.0",
// Fastjson https://github.com/alibaba/fastjson
fastjson : "com.alibaba:fastjson:1.2.78",
fastjson : "com.alibaba:fastjson:1.2.79",
fastjson_android : "com.alibaba:fastjson:1.1.73.android",
// Anchors 启动框架 https://github.com/YummyLau/Anchors/blob/master/README-zh.md
anchors : "com.effective.android:anchors:1.1.4",
Expand Down
4 changes: 4 additions & 0 deletions file/gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ ext {
dev_http_capture_compiler_version : "1.0.6",
dev_http_capture_compiler_release_version: "1.0.6",

// DevHttpManager Okhttp 管理类
dev_http_manager_versionCode : 100,
dev_http_manager_versionName : "1.0.0",

// DevWidget 自定义 View UI 库
dev_widget_versionCode : 113,
dev_widget_versionName : "1.1.3",
Expand Down
2 changes: 2 additions & 0 deletions lib/DevApp/src/main/java/dev/DevUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
* @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
Expand Down
2 changes: 2 additions & 0 deletions lib/DevAssist/src/main/java/dev/DevAssist.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* @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
Expand Down
2 changes: 2 additions & 0 deletions lib/DevBase/src/main/java/dev/base/DevBase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ package dev.base
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevEngine/README.md
* DevHttpCapture Api
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevHttpCapture/README.md
* DevHttpManager Api
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevHttpManager/README.md
* DevJava Api
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevJava/README.md
* DevWidget Api
Expand Down
2 changes: 2 additions & 0 deletions lib/DevBaseMVVM/src/main/java/dev/base/DevBaseMVVM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import dev.base.mvvm.BuildConfig
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevEngine/README.md
* DevHttpCapture Api
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevHttpCapture/README.md
* DevHttpManager Api
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevHttpManager/README.md
* DevJava Api
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevJava/README.md
* DevWidget Api
Expand Down
2 changes: 2 additions & 0 deletions lib/DevEngine/src/main/java/dev/engine/DevEngine.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ import dev.utils.common.cipher.Cipher
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevEngine/README.md
* DevHttpCapture Api
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevHttpCapture/README.md
* DevHttpManager Api
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevHttpManager/README.md
* DevJava Api
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevJava/README.md
* DevWidget Api
Expand Down
2 changes: 2 additions & 0 deletions lib/DevHttpCapture/src/main/java/dev/DevHttpCapture.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
* @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
Expand Down
1 change: 1 addition & 0 deletions lib/DevHttpManager/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
7 changes: 7 additions & 0 deletions lib/DevHttpManager/CHANGELOG.md
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 added lib/DevHttpManager/README.md
Empty file.
31 changes: 31 additions & 0 deletions lib/DevHttpManager/build.gradle
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.
10 changes: 10 additions & 0 deletions lib/DevHttpManager/project.properties
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
2 changes: 2 additions & 0 deletions lib/DevHttpManager/src/main/AndroidManifest.xml
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" />
76 changes: 76 additions & 0 deletions lib/DevHttpManager/src/main/java/dev/DevHttpManager.java
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;
}
}
4 changes: 4 additions & 0 deletions lib/DevHttpManager/src/main/java/dev/http/AA.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package dev.http;

public class AA {
}
2 changes: 2 additions & 0 deletions lib/DevWidget/src/main/java/dev/widget/DevWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
* @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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
* @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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,30 @@
/**
* 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 DevHttpCaptureCompiler {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,30 @@
/**
* 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 DevHttpCaptureCompiler {

Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def libs = [
"DevBaseMVVM",
"DevEngine",
"DevHttpCapture",
"DevHttpManager",
"DevJava",
"DevWidget",
]
Expand Down

0 comments on commit 0c3e965

Please sign in to comment.