# Anna **Repository Path**: simon9102/anna ## Basic Information - **Project Name**: Anna - **Description**: 以更符合人的直觉进行网络请求 - **Primary Language**: Kotlin - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-08-27 - **Last Updated**: 2024-08-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Hello Anna!

Wiki

[![ZXHHYJ/Anna](https://gitee.com/zxhhyj/anna/widgets/widget_card.svg?colors=4183c4,ffffff,ffffff,e3e9ed,666666,9b9b9b)](https://gitee.com/zxhhyj/anna)

欢迎贡献代码/问题


基于Net为MandySa Music设计的网络请求库
## 基本使用 ### 第一步 ```kotlin //使用gson解析data class时使用,不使用去掉addConverterFactory即可 val api = Anna2.build().baseUrl(BASE_URL).addConverterFactory(DataClassConverterFactory()) .create(NeteaseCloudMusicApi::class.java) ``` ### 第二步 ### 第三步 ## 安装 添加远程仓库根据创建项目的 Android Studio 版本有所不同 Android Studio Arctic Fox以下创建的项目 在项目根目录的 build.gradle 添加仓库 ```groovy allprojects { repositories { // ... maven { url 'https://jitpack.io' } } } ``` Android Studio Arctic Fox以上创建的项目 在项目根目录的 settings.gradle 添加仓库 ```groovy dependencyResolutionManagement { repositories { // ... maven { url 'https://jitpack.io' } } } ``` 然后在 module 的 build.gradle 添加依赖框架 ```groovy dependencies { //... implementation 'com.gitee.zxhhyj:anna:$version' } ``` ## License ``` 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. ```