allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.LatoAndroid:SimpleAppInit:1.0.0'
}
class JpushInit: ISdkInitInterface() {
override fun init(baseApp: Application) {
Log.d(TAG,"极光初始化 ${Thread.currentThread().name}")
}
override fun unInit() {
Log.d(TAG,"极光unInit ${Thread.currentThread().name}")
}
companion object {
private const val TAG = "JpushInit"
}
}
在application或者其他类中
AllSdkManager.instance.add(JpushInit()).addAsync(BuglyInit()).init(application)
AllSdkManager.instance.unInit()