-
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
13 changed files
with
141 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
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-06-XX)* | ||
---------------------------- | ||
|
||
* Initial release |
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,3 @@ | ||
|
||
|
||
## 摘要 |
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,40 @@ | ||
apply from: rootProject.file(files.lib_app_kotlin_gradle) | ||
apply plugin: 'kotlin-parcelize' | ||
|
||
android.defaultConfig { | ||
versionCode versions.dev_retrofit_versionCode | ||
versionName versions.dev_retrofit_versionName | ||
// DevRetrofit Module Version | ||
buildConfigField "int", "DevRetrofit_VersionCode", "${versions.dev_retrofit_versionCode}" | ||
buildConfigField "String", "DevRetrofit_Version", "\"${versions.dev_retrofit_versionName}\"" | ||
// DevApp Module Version | ||
buildConfigField "int", "DevApp_VersionCode", "${versions.dev_app_versionCode}" | ||
buildConfigField "String", "DevApp_Version", "\"${versions.dev_app_versionName}\"" | ||
} | ||
|
||
// 是否发布版本 | ||
def isPublishing = false | ||
|
||
dependencies { | ||
// OkHttp3 网络请求框架 https://github.com/square/okhttp | ||
api deps.lib.okhttp3 | ||
// Retrofit 网络请求库 https://github.com/square/retrofit | ||
api deps.lib.retrofit | ||
|
||
if (isPublishing) { | ||
// 打包时使用 | ||
api deps.dev.dev_app_x | ||
} else { | ||
// 编译时使用 | ||
api project(':DevApp') | ||
} | ||
} | ||
|
||
// gradlew clean | ||
// gradlew install | ||
// gradlew bintrayUpload | ||
//apply from: rootProject.file(files.bintray_upload_android) | ||
//apply from: rootProject.file(files.sonatype_upload_android) | ||
if (isPublishing) { | ||
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=DevRetrofit | ||
project.groupId=io.github.afkt | ||
project.artifactId=DevRetrofit | ||
project.packaging=aar | ||
project.siteUrl=https://github.com/afkT/DevUtils | ||
project.gitUrl=https://github.com/afkT/DevUtils.git | ||
|
||
#javadoc | ||
javadoc.name=DevRetrofit |
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.retrofit" /> |
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,69 @@ | ||
package dev | ||
|
||
import dev.retrofit.BuildConfig | ||
|
||
/** | ||
* detail: OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 ) | ||
* @author Ttt | ||
* <p></p> | ||
* GitHub | ||
* @see https://github.com/afkT/DevUtils | ||
* DevApp Api | ||
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevApp/README.md | ||
* DevAssist Api | ||
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevAssist/README.md | ||
* DevBase README | ||
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevBase/README.md | ||
* DevBaseMVVM README | ||
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevBaseMVVM/README.md | ||
* DevEngine README | ||
* @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 | ||
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevWidget/README_API.md | ||
* DevEnvironment Api | ||
* @see https://github.com/afkT/DevUtils/blob/master/lib/Environment | ||
*/ | ||
object DevRetrofit { | ||
|
||
// ============ | ||
// = 工具类版本 = | ||
// ============ | ||
|
||
/** | ||
* 获取 DevRetrofit 版本号 | ||
* @return DevRetrofit versionCode | ||
*/ | ||
fun getDevRetrofitVersionCode(): Int { | ||
return BuildConfig.DevRetrofit_VersionCode | ||
} | ||
|
||
/** | ||
* 获取 DevRetrofit 版本 | ||
* @return DevRetrofit versionName | ||
*/ | ||
fun getDevRetrofitVersion(): String { | ||
return BuildConfig.DevRetrofit_Version | ||
} | ||
|
||
/** | ||
* 获取 DevApp 版本号 | ||
* @return DevApp versionCode | ||
*/ | ||
fun getDevAppVersionCode(): Int { | ||
return BuildConfig.DevApp_VersionCode | ||
} | ||
|
||
/** | ||
* 获取 DevApp 版本 | ||
* @return DevApp versionName | ||
*/ | ||
fun getDevAppVersion(): String { | ||
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,3 @@ | ||
package dev.retrofit | ||
|
||
class Temp |
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