# EnergyCore **Repository Path**: cjf_90/EnergyCore ## Basic Information - **Project Name**: EnergyCore - **Description**: 基本相关封装 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-02 - **Last Updated**: 2025-12-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EnergyCore EnergyCore 是一个 Android 基础框架,旨在简化 Android 应用程序的开发流程并提供常用的工具类和功能。该框架提供了一些核心接口和类,帮助开发者快速实现常见的功能需求。 ## 功能特点 - 提供基础接口如 `IFragmentActivity` 和 `IViewLoading`,方便页面和组件的开发。 - 提供 `ActivityManager` 类用于管理 Activity 生命周期和前后台切换。 - 提供 `AppCompat` 类用于初始化应用并管理全局参数。 - 提供 `ResultData` 和 `ResultCode` 用于统一处理网络请求结果。 - 提供 `LogH` 工具类用于统一日志输出。 ## 使用方法 ### 初始化框架 在 `Application` 的 `onCreate` 方法中初始化框架: ```java AppCompat.init(this, new UriFileConvert() { @Override public Uri convertUri(Context context, String file) { return UriUtils.file2Uri(FileUtils.getFileByPath(file)); } }); ActivityManager.getInstance().addFrontBackCallback(this); ``` ### 添加仓库 在项目根目录的 `build.gradle` 文件中添加 JitPack 仓库: ```groovy allprojects { repositories { // ... maven { url 'https://jitpack.io' } } } ``` ### 添加依赖 在模块的 `build.gradle` 文件中添加依赖: ```groovy implementation 'com.gitee.cjf_90:EnergyCore:0.1.6' ``` ## 许可证 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.