Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://www.jitpack.io' }
}
}
dependencies {
implementation 'com.github.sinxiao:sinxiaolib:1.4.0'
}
That's it! The first time you request a project JitPack checks out the code, builds it and serves the build artifacts (jar, aar).
...
ext.kotlin_version = '1.4.10'
dependencies {
...
implementation 'org.apache.commons:commons-lang3:3.9'
implementation 'org.apache.commons:commons-collections4:4.3'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.0'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.12.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.multidex:multidex:2.0.0'
//协程
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.4'
// alternatively, just ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
implementation "androidx.core:core-ktx:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation('com.squareup.okhttp3:okhttp:4.8.0')
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0-RC1'
implementation('com.wang.avi:library:2.1.3')
def room_version = "2.2.5"
annotationProcessor "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-runtime:$room_version"
android {
...
dataBinding {
enabled true
}
...