-
-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Former-commit-id: b7ae8ec
- Loading branch information
Showing
11 changed files
with
144 additions
and
2 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 @@ | ||
/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 *(2021-08-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,2 @@ | ||
|
||
## Gradle |
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,35 @@ | ||
apply from: rootProject.file(files.lib_app_kotlin_gradle) | ||
|
||
android.defaultConfig { | ||
versionCode versions.dev_base_versionCode | ||
versionName versions.dev_base_versionName | ||
// DevBase Module Version | ||
buildConfigField "int", "DevBase_VersionCode", "${versions.dev_base_versionCode}" | ||
buildConfigField "String", "DevBase_Version", "\"${versions.dev_base_versionName}\"" | ||
// DevApp Module Version | ||
buildConfigField "int", "DevApp_VersionCode", "${versions.dev_app_versionCode}" | ||
buildConfigField "String", "DevApp_Version", "\"${versions.dev_app_versionName}\"" | ||
} | ||
|
||
dependencies { | ||
api deps.kotlin.stdlib | ||
api deps.kotlin.core | ||
api deps.kotlin.coroutines | ||
api deps.kotlin.lifecycle_runtime | ||
api deps.kotlin.lifecycle_common_java8 | ||
api deps.androidx.design | ||
api deps.androidx.appcompat | ||
api deps.kotlin.fragment_ktx | ||
api deps.kotlin.activity_ktx | ||
|
||
// 编译时使用 | ||
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) |
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,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http:https://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
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=DevEngine | ||
project.groupId=io.github.afkt | ||
project.artifactId=DevEngine | ||
project.packaging=aar | ||
project.siteUrl=https://github.com/afkT/DevUtils | ||
project.gitUrl=https://github.com/afkT/DevUtils.git | ||
|
||
#javadoc | ||
javadoc.name=DevEngine |
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.engine" /> |
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,63 @@ | ||
package dev.base | ||
|
||
/** | ||
* detail: DevBase | ||
* @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 | ||
* DevHttpCapture Api | ||
* @see https://github.com/afkT/DevUtils/blob/master/lib/DevHttpCapture/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 DevBase { | ||
|
||
// ============ | ||
// = 工具类版本 = | ||
// ============ | ||
|
||
/** | ||
* 获取 DevBase 版本号 | ||
* @return DevBase versionCode | ||
*/ | ||
fun getDevBaseVersionCode(): Int { | ||
return BuildConfig.DevBase_VersionCode | ||
} | ||
|
||
/** | ||
* 获取 DevBase 版本 | ||
* @return DevBase versionName | ||
*/ | ||
fun getDevBaseVersion(): String { | ||
return BuildConfig.DevBase_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
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