1 Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
// 我的github镜像仓库
maven { url 'https://raw.githubusercontent.com/D10NGYANG/maven-repo/main/repository'}
}
}
2 Add the dependency
dependencies {
// 协程封装工具
implementation 'com.github.D10NGYANG:DLCoroutinesUtil:0.4.0'
// 协程
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
}
3 混淆
-keep class com.d10ng.coroutines.** {*;}
-dontwarn com.d10ng.coroutines.**