You need to add in build.gradle
allprojects {
repositories {
....
maven { url 'https://www.jitpack.io' }
}
}
dependencies {
implementation 'com.github.577fkj:StatusBarApiExample:v2.0'
}
import StatusBarLyric.API.StatusBarLyric;
Attention: if proguard is enabled, make sure API class won't be obfuscated:
-keep class StatusBarLyric.API.StatusBarLyric {*;}
需要在 build.gradle 添加
allprojects {
repositories {
....
maven { url 'https://www.jitpack.io' }
}
}
dependencies {
implementation 'com.github.577fkj:StatusBarApiExample:v2.0'
}
import StatusBarLyric.API.StatusBarLyric;
注意: 若开启了 proguard 请保证 API 类不被混淆:
-keep class StatusBarLyric.API.StatusBarLyric {*;}