快速开始

添加依赖


在根目录下的 build.gradle 中,添加 maven

  1. allprojects {
  2. repositories {
  3. maven { url 'https://maven.open.seastart.cn/repository/maven-vcs/' }
  4. }
  5. }

在app目录下的build.gradle中添加依赖

  1. android {
  2. defaultConfig {
  3. minSdkVersion 19
  4. ndk {
  5. abiFilters "armeabi-v7a"
  6. }
  7. }
  8. }
  9. dependencies {
  10. implementation fileTree(dir: 'libs', include: ['*.jar'])
  11. implementation 'com.shiyuan.core:push-all:{version}'
  12. }

使用

  1. //跳转到推流配置页面, 第二个参数为美颜证书
  2. PushHelper.getInstance().startPushActivity(context, authpack.A())
  3. 或者
  4. PushHelper.getInstance().init(this, authpack.A())
  5. startActivity(Intent(contect, PushConfigActivity::class.java))

2a19f94e437f1de84091aceaa304529.jpg