# CodeTest **Repository Path**: wutongyuqq/code-test ## Basic Information - **Project Name**: CodeTest - **Description**: code test项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-12 - **Last Updated**: 2021-11-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # codeTest code test项目 ###########环境依赖 android androidstudio ###########部署步骤 1. gradlew build //编译 ./gradlew tasks --all # 对某个module [moduleName] 的某个任务[TaskName] 运行. /gradlew:moduleName:taskName # 查看项目的依赖都依赖了哪些库。 gradlew :app:dependencies  #只编译清单文件,并查看具体日志,快速定位清单文件报错 gradlew :app:processDebugManifest --stacktrace: # 查看构建版本 ./gradlew -v # 清除build文件夹 ./gradlew clean # 检查依赖并编译打包 ./gradlew build # 编译并安装debug包 ./gradlew installDebug # 编译并打印日志 ./gradlew build --info # 调试模式构建并打印日志 ./gradlew build --info --debug --stacktrace # 强制更新最新依赖,清除构建并构建 ./gradlew clean --refresh-dependencies build 注意build命令把 debug、release环境的包都打出来的 如果需要指定构建使用如下命令 指定构建目标命令 # 编译并打Debug包 ./gradlew assembleDebug./gradlew aD # 编译并打Release的包 ./gradlew assembleRelease./gradlew aR 构建并安装调试命令 # 编译并打Debug包 ./gradlew assembleDebug # 编译app module 并打Debug包 ./gradlew install app:assembleDebug # 编译并打Release的包 ./gradlew assembleRelease #  Release模式打包并安装 ./gradlew installRelease # 卸载Release模式包 ./gradlew uninstallRelease ###########目录结构描述 #├── Readme.md // help #├── app // 应用 #├── gradle //gradle插件配置 #├── build.gradle //项目gradle配置 #├── gradle.properties //gradle属性文件 #├── local.properties //sdk、ndk路径配置 #├── setting.gradle //项目模块配置 ###########V1.0.0 版本内容更新 #架构设计方案:MVP #语言:kotlin #采用技术栈:Retrofit+okhttp,Glide #性能优化:1、采用Glide,实现了图片缓存机制并压缩大图实现内存占用减少,2、item设置tag复用 3、已判空处理