Skip to content

Commit

Permalink
完善基础组件库
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchong211 committed Mar 7, 2023
1 parent dd193ef commit 63615d4
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 103 deletions.
2 changes: 2 additions & 0 deletions AppBaseStore/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ dependencies {
implementation rootProject.ext.dependencies["annotation"]
implementation rootProject.ext.dependencies["datastore"]
implementation rootProject.ext.dependencies["coreKtx"]
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation(rootProject.ext.dependencies["gson"])
implementation 'com.github.yangchong211.YCCommonLib:AppCommonInter:1.4.3'
implementation project(path: ':ToolUtilsLib')
implementation project(path: ':EventUploadLib')
Expand Down
205 changes: 104 additions & 101 deletions CommonBusiness/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,109 +29,112 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation rootProject.ext.dependencies["appcompat"]
implementation rootProject.ext.dependencies["annotation"]
//base基类
implementation 'com.github.yangchong211.YCCommonLib:BaseClassLib:1.4.3'
implementation 'com.github.yangchong211.YCCommonLib:ComponentLib:1.4.3'
//工具类utils
implementation 'com.github.yangchong211.YCCommonLib:ToolUtilsLib:1.4.3'
//activity栈管理
implementation 'com.github.yangchong211.YCCommonLib:ActivityManager:1.4.3'
//通用缓存存储库,支持sp,fastsp,mmkv,lruCache,DiskLruCache等
implementation 'com.github.yangchong211.YCCommonLib:AppBaseStore:1.4.3'
//通用日志输出库
implementation 'com.github.yangchong211.YCCommonLib:AppLogLib:1.4.3'
//app重启库
implementation 'com.github.yangchong211.YCCommonLib:AppRestartLib:1.4.3'
//intent内容输出到控制台
implementation 'com.github.yangchong211.YCCommonLib:SafeIntentLib:1.4.3'
//通用组件接口库
implementation 'com.github.yangchong211.YCCommonLib:AppCommonInter:1.4.3'
//各种广播监听哭
implementation 'com.github.yangchong211.YCCommonLib:AppStatusLib:1.4.3'
//基建库
implementation 'com.github.yangchong211.YCCommonLib:ArchitectureLib:1.4.3'
//同上上报库
implementation 'com.github.yangchong211.YCCommonLib:EventUploadLib:1.4.3'
//权限库
implementation 'com.github.yangchong211.YCCommonLib:AppPermission:1.4.3'
//Lru磁盘缓存库
implementation 'com.github.yangchong211.YCCommonLib:AppLruDisk:1.4.3'
//Lru内存缓存库
implementation 'com.github.yangchong211.YCCommonLib:AppLruCache:1.4.3'
//fragment生命周期监听库
implementation 'com.github.yangchong211.YCCommonLib:FragmentManager:1.4.3'
//反射工具库
implementation 'com.github.yangchong211.YCCommonLib:ReflectionLib:1.4.3'
//App启动优化库
implementation 'com.github.yangchong211.YCCommonLib:ParallelTaskLib:1.4.3'
//Context上下文库
implementation 'com.github.yangchong211.YCCommonLib:AppContextLib:1.4.3'
//加解密库
implementation 'com.github.yangchong211.YCCommonLib:AppEncryptLib:1.4.3'
//handler包装库
implementation 'com.github.yangchong211.YCCommonLib:AppHandlerLib:1.4.3'
//Application库
implementation 'com.github.yangchong211.YCCommonLib:ApplicationLib:1.4.3'
//store磁盘分区库
implementation 'com.github.yangchong211.YCCommonLib:AppMediaStore:1.4.3'
//内存
implementation 'com.github.yangchong211.YCCommonLib:ToolMemoryLib:1.4.3'
//屏幕截屏库
implementation 'com.github.yangchong211.YCCommonLib:AppScreenLib:1.4.3'
//Wi-Fi库
implementation 'com.github.yangchong211.YCCommonLib:AppWiFiLib:1.4.3'
//Vp相关适配器库
implementation 'com.github.yangchong211.YCCommonLib:BaseVpAdapter:1.4.3'
//io流读写库
implementation 'com.github.yangchong211.YCCommonLib:FileIoHelper:1.4.3'
//图片工具库
implementation 'com.github.yangchong211.YCCommonLib:ImageToolLib:1.4.3'
//网络判断库
implementation 'com.github.yangchong211.YCCommonLib:NetWorkLib:1.4.3'
//手机
implementation 'com.github.yangchong211.YCCommonLib:PhoneSensor:1.4.3'
//File文件库
implementation 'com.github.yangchong211.YCCommonLib:ToolFileLib:1.4.3'
//Zip压缩库
implementation 'com.github.yangchong211.YCCommonLib:ZipFileLib:1.4.3'
//图片压缩
implementation 'com.github.yangchong211.YCCommonLib:AppCompress:1.4.3'
// //base基类
// implementation 'com.github.yangchong211.YCCommonLib:BaseClassLib:1.4.3'
// implementation 'com.github.yangchong211.YCCommonLib:ComponentLib:1.4.3'
// //工具类utils
// implementation 'com.github.yangchong211.YCCommonLib:ToolUtilsLib:1.4.3'
// //activity栈管理
// implementation 'com.github.yangchong211.YCCommonLib:ActivityManager:1.4.3'
// //通用缓存存储库,支持sp,fastsp,mmkv,lruCache,DiskLruCache等
// implementation 'com.github.yangchong211.YCCommonLib:AppBaseStore:1.4.3'
// //通用日志输出库
// implementation 'com.github.yangchong211.YCCommonLib:AppLogLib:1.4.3'
// //app重启库
// implementation 'com.github.yangchong211.YCCommonLib:AppRestartLib:1.4.3'
// //intent内容输出到控制台
// implementation 'com.github.yangchong211.YCCommonLib:SafeIntentLib:1.4.3'
// //通用组件接口库
// implementation 'com.github.yangchong211.YCCommonLib:AppCommonInter:1.4.3'
// //各种广播监听哭
// implementation 'com.github.yangchong211.YCCommonLib:AppStatusLib:1.4.3'
// //基建库
// implementation 'com.github.yangchong211.YCCommonLib:ArchitectureLib:1.4.3'
// //同上上报库
// implementation 'com.github.yangchong211.YCCommonLib:EventUploadLib:1.4.3'
// //权限库
// implementation 'com.github.yangchong211.YCCommonLib:AppPermission:1.4.3'
// //Lru磁盘缓存库
// implementation 'com.github.yangchong211.YCCommonLib:AppLruDisk:1.4.3'
// //Lru内存缓存库
// implementation 'com.github.yangchong211.YCCommonLib:AppLruCache:1.4.3'
// //fragment生命周期监听库
// implementation 'com.github.yangchong211.YCCommonLib:FragmentManager:1.4.3'
// //反射工具库
// implementation 'com.github.yangchong211.YCCommonLib:ReflectionLib:1.4.3'
// //App启动优化库
// implementation 'com.github.yangchong211.YCCommonLib:ParallelTaskLib:1.4.3'
// //Context上下文库
// implementation 'com.github.yangchong211.YCCommonLib:AppContextLib:1.4.3'
// //加解密库
// implementation 'com.github.yangchong211.YCCommonLib:AppEncryptLib:1.4.3'
// //handler包装库
// implementation 'com.github.yangchong211.YCCommonLib:AppHandlerLib:1.4.3'
// //Application库
// implementation 'com.github.yangchong211.YCCommonLib:ApplicationLib:1.4.3'
// //store磁盘分区库
// implementation 'com.github.yangchong211.YCCommonLib:AppMediaStore:1.4.3'
// //内存
// implementation 'com.github.yangchong211.YCCommonLib:ToolMemoryLib:1.4.3'
// //屏幕截屏库
// implementation 'com.github.yangchong211.YCCommonLib:AppScreenLib:1.4.3'
// //Wi-Fi库
// implementation 'com.github.yangchong211.YCCommonLib:AppWiFiLib:1.4.3'
// //Vp相关适配器库
// implementation 'com.github.yangchong211.YCCommonLib:BaseVpAdapter:1.4.3'
// //io流读写库
// implementation 'com.github.yangchong211.YCCommonLib:FileIoHelper:1.4.3'
// //图片工具库
// implementation 'com.github.yangchong211.YCCommonLib:ImageToolLib:1.4.3'
// //网络判断库
// implementation 'com.github.yangchong211.YCCommonLib:NetWorkLib:1.4.3'
// //手机
// implementation 'com.github.yangchong211.YCCommonLib:PhoneSensor:1.4.3'
// //File文件库
// implementation 'com.github.yangchong211.YCCommonLib:ToolFileLib:1.4.3'
// //Zip压缩库
// implementation 'com.github.yangchong211.YCCommonLib:ZipFileLib:1.4.3'
// //图片压缩
// implementation 'com.github.yangchong211.YCCommonLib:AppCompress:1.4.3'

//公共类
// implementation project(path: ':BaseClassLib')
// implementation project(path: ':ComponentLib')
// implementation project(path: ':ToolUtilsLib')
// implementation project(path: ':ActivityManager')
// implementation project(path: ':AppBaseStore')
// implementation project(path: ':AppLogLib')
implementation project(path: ':BaseClassLib')
implementation project(path: ':ComponentLib')
implementation project(path: ':ToolUtilsLib')
implementation project(path: ':ActivityManager')
implementation project(path: ':AppBaseStore')
implementation project(path: ':AppLogLib')
implementation project(path: ':AppRestartLib')
implementation project(path: ':AppBaseStore')
// implementation project(path: ':SafeIntentLib')
// implementation project(path: ':AppCommonInter')
// implementation project(path: ':AppStatusLib')
// implementation project(path: ':ArchitectureLib')
// implementation project(path: ':EventUploadLib')
// implementation project(path: ':AppLruDisk')
// implementation project(path: ':AppCompress')
// implementation project(path: ':AppLruCache')
// implementation project(path: ':AppPermission')
// implementation project(path: ':FragmentManager')
// implementation project(path: ':ToolMemoryLib')
// implementation project(path: ':ReflectionLib')
// implementation project(path: ':ParallelTaskLib')
// implementation project(path: ':AppContextLib')
// implementation project(path: ':AppEncryptLib')
// implementation project(path: ':AppHandlerLib')
// implementation project(path: ':AppMediaStore')
// implementation project(path: ':AppScreenLib')
// implementation project(path: ':AppWiFiLib')
// implementation project(path: ':BaseVpAdapter')
// implementation project(path: ':DownloadHelper')
// implementation project(path: ':FileIoHelper')
// implementation project(path: ':ImageToolLib')
// implementation project(path: ':NetWorkLib')
// implementation project(path: ':PhoneSensor')
// implementation project(path: ':ToolFileLib')
// implementation project(path: ':ZipFileLib')
// implementation project(path: ':ApplicationLib')
implementation project(path: ':SafeIntentLib')
implementation project(path: ':AppCommonInter')
implementation project(path: ':AppStatusLib')
//implementation project(path: ':ArchitectureLib')
implementation project(path: ':EventUploadLib')
implementation project(path: ':AppLruDisk')
implementation project(path: ':AppCompress')
implementation project(path: ':AppLruCache')
implementation project(path: ':AppPermission')
implementation project(path: ':FragmentManager')
implementation project(path: ':ToolMemoryLib')
implementation project(path: ':ReflectionLib')
implementation project(path: ':ParallelTaskLib')
implementation project(path: ':AppContextLib')
implementation project(path: ':AppEncryptLib')
implementation project(path: ':AppHandlerLib')
implementation project(path: ':AppMediaStore')
implementation project(path: ':AppScreenLib')
implementation project(path: ':AppWiFiLib')
implementation project(path: ':BaseVpAdapter')
implementation project(path: ':DownloadHelper')
implementation project(path: ':FileIoHelper')
implementation project(path: ':ImageToolLib')
implementation project(path: ':NetWorkLib')
implementation project(path: ':PhoneSensor')
implementation project(path: ':ToolFileLib')
implementation project(path: ':ZipFileLib')
implementation project(path: ':ApplicationLib')
implementation project(path: ':AppGrayLib')
implementation project(path: ':AppCallStatus')
implementation project(path: ':AppFastSp')
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void onClick(View v) {
} else if (id == R.id.btn_log2) {
testLog2();
} else if (id == R.id.btn_activity) {
testActivity();
//testActivity();
} else if (id == R.id.btn_sp1) {
sp1();
} else if (id == R.id.btn_sp2) {
Expand Down
2 changes: 1 addition & 1 deletion CommonBusiness/src/main/java/com/yc/common/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private void test3(){
private void test4(Context context){
String string = "yangchong";
//对字符串md5加密
String md1 = Md5EncryptUtils.getMD5(string);
String md1 = Md5EncryptUtils.getMd5(string);
AppLogUtils.d("md5计算字符串1: " + md1);
//对字符串md5加密
String md2 = Md5EncryptUtils.encryptMD5ToString(string);
Expand Down

0 comments on commit 63615d4

Please sign in to comment.