# Android-modules **Repository Path**: wugemu_admin_admin/Android-modules ## Basic Information - **Project Name**: Android-modules - **Description**: Guang 整理出来的module - **Primary Language**: Android - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-27 - **Last Updated**: 2025-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### Android-modules 公共组件、独立模块等存放仓库 #### apollo-graphql-model apollo graphql 所生成的Kotlin模型对象 ##### 更新并发布 * 更新接口对应graphql文件[here](/apollo-graphql-model/src/main/graphql)。 * 更新版本,version[配置此处version字段](/apollo-graphql-model/build.gradle.kts)。 * clean ```gradle apollo-graphql-model:clean``` * (可忽略)执行 ```gradle apollo-graphql-model:assemble``` * 执行 ```gradle apollo-graphql-model:publish``` ###### 接口开发 * 1.创建开发分支 mainProject 创建分支 feature/xxx apolloModule 同步创建分支 feature/xxx * 2.分支开发 apolloModule 修改仓库版本号 提交远程仓库 mainProject 使用新apollo仓库 ###### 分支合并 * 1.apolloModule 分支拉取develop 解决冲突 打包 * 2.使用新apollo仓库 验证运行mainProject分支 (验证mainProject分支 可跳过 未拉代码前可能会有报错) * 3.mainProject分支拉取develop 解决冲突 使用新apollo仓库验证运行 (验证all) * 4.apolloModule合并分支到develop * 5.mainProject合并分支到develop #### web:guang-webView * init webView cache pool * WebChromeClient * WebViewClient * JSBridge * Cross-process communication #### frame:guang-frame * 各种基类在这里 基础项目架构 * BaseActivity BaseFragment BaseViewModel 等 * 增加BaseAdapter #### utils:guang-log * 日志模块 基于tencent的xlog * 在Application中初始化 SKLogger.initLog(this,BuildConfig.DEBUG) #### utils:guang-network * Apollo网络模块 * 在Application中初始化 SKGqlClient.getInstance().init(请求地址,拦截器列表,BuildConfig.DEBUG) * T.apolloValue(fieldName: String, value: Any?) 修改apollo对象中的值 #### utils:guang-storage * 存储模块 * 持久化存储MMKV 在Application中初始化 SkStorage.initStorage(this) * 内存存储 IntelligentCache 使用IntelligentCache(int size) #### utils:guang-ext * 在Application中初始化工具包 GuangUtils.init(this) * autosize 屏幕适配 https://github.com/JessYanCoding/AndroidAutoSize InitProvider 配置provider自动完成屏幕适配初始化 包含常用工具 AutoSizeUtils、ScreenUtils * function 各类扩展函数 CommonExt.kt --- nowTime、screenHeight、screenWidth GraphicExt.kt --- RectF扩展、Rect扩展、MotionEvent扩展、RotateDrawable扩展、Bitmap扩展 ImageViewExt.kt --- ImageView扩展 * other 各类常用工具 ActivityStackManage --- Activity管理 AnimationBlinkUtils --- 动画工具 CheckUtils --- 检查校验工具 CommUtils --- 获取各种资源、px和dip之间的转换、加载布局文件、是否运行在主线程、打开浏览器、发送短消息、复制文字、驼峰转下划线、H5链接中获取参数、获取ip地址、获取屏幕原始尺寸宽高 DeviceUtils --- 设备帮助工具 FastUtils --- 防连点工具 FilesUtils --- 文件处理工具 FormatUtils --- 格式化工具 KeyboardUtils --- 软键盘工具类 Md5Utils --- MD5工具类 NetWorkUtils --- 网络工具类 ScreenUtils --- 屏幕工具类 StatusBarUtils --- 状态栏工具类