# lib-network **Repository Path**: cqteam/lib-network ## Basic Information - **Project Name**: lib-network - **Description**: Android - 基础模块 - 网络框架 - **Primary Language**: Kotlin - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-28 - **Last Updated**: 2021-12-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # lib-network 基于Kotlin对Coroutines + Okhttp3 + Retrofit的使用封装 ## 技术点 * Coroutines * Okhttp3 * Retrofit ## 集成 ### last-version: [![](https://jitpack.io/v/cqTeam/lib-network.svg)](https://jitpack.io/#cqTeam/lib-network) * Add it in your root build.gradle at the end of repositories: ``` allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` * Add the dependency to module build.gradle: ``` dependencies { implementation 'com.github.cqTeam:lib-network:[last-version]' } ``` * Add the networkSecurityConfig to module AndroidManifest ``` ``` * Add the Permissions to module AndroidManifest ``` ``` ## 使用 * Init in your Application ``` class App : Application() { override fun onCreate() { super.onCreate() NetWorkManager.init(this,"http://www.***.com/") } } ``` * [使用详情](https://github.com/cqTeam/lib-network/wiki/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97) ### END