1 Star 0 Fork 0

bobidali / ddOne

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

DuoCloud接入项目

软件架构

  1. 跳转界面

    LineActivity 服务商选择及排队界面(由此开始跳转)

    DeviceMediaActivity 设备播放媒体流界面

  2. 多多云原生辅助类

    DdyOrderHelper

    DdyDeviceCommandHelper

  3. 多多云封装辅助类 DuoManager

安装教程

  1. 项目gradle
buildscript { repositories {
   //1、真机与云机推送拉取文件
   maven { url 'http://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk/' } maven {
   url 'http://mirrors.huaweicloud.com/repository/maven/' } } }

   allprojects { repositories {
   // 2、真机与云机推送拉取文件 maven
   maven { url 'http://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk/' } maven {
   url 'http://mirrors.huaweicloud.com/repository/maven/' } }}
  1. 应用gradle
   // 其 AnyLer版本为4.1.4 (本地方式)
   api project(':Duolib')
   // 或者
   implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
   // 依赖库引入
  1. AndroidManifest.xml
 <provider android:name="androidx.core.content.FileProvider"
 android:authorities="${applicationId}.fileProvider"
 android:exported="false"
 android:grantUriPermissions="true">
 <meta-data android:name="android.support.FILE_PROVIDER_PATHS"
 android:resource="@xml/file_paths" />
 </provider>
  1. file_paths.xml
   <paths>
   <external-path name="files_root"
   path="Android/data/${applicationId}/" />
   <external-path name="external_storage_root"
   path="." />
   </paths>
  1. util_code_provider_paths.xml
   <resources>
   ## api 'com.blankj:utilcode:1.23.4'
   <root-path name="root"
   path="" />
   <files-path name="files_path"
   path="." />
   <cache-path name="cache_path"
   path="." />
   <external-path name="external_path"
   path="." />
   <external-files-path name="external_files_path"
   path="." />
   <external-cache-path name="external_cache_path"
   path="." />
   </resources>

使用说明

1、初始化使用(app或闪屏页)

 CloudBuilder.INSTANCE.initCloud(Objects.requireNonNull(App.Companion.getInstance()));

2、传入激励的是否展示、时间间隔、获取回调

CloudBuilder.initShowRewardCallback(
            _show,_interval
        ) { result, act ->
            showExpressRewardVideoAd(act,
                object : RewardVideoAdCallBack {
                    override fun onShowRewardVideo() {
                    }
                    override fun onCloseRewardVideo(rewardVerify: Boolean
                    {
                        if (rewardVerify) {
                            result.onCloseRewardVerify()
                        }
                    }

                    override fun onErrorRewardVideo(
                        isNetAvailable: Boolean,
                        type: String,
                        code: Int
                    ) {}
                })
        }

3、传入信息流、网址

.initShowNativeCallback("https://www.baidu.com") { view, act ->
           showNativeAd(act,view)

4、刷新token,并传入新的

.initTokenRefreshCallback { result ->
                    override fun onSuccess(data:String) {
                        result.onSetNewToken(data)
                    }
                })

5、友盟上报传入

.initUmCallback { key, value ->
            MobclickAgent.onEvent(
                App,
                key, value
            )

6、应用路径及排序列表传入

.initApkInfo(mPkgInfoList, mPkgSortList)

7、权限申请时间传入(非必传,默认使用Preference取“permission_apply”的long值)

.initPermissionTimeKey("my_key")

8、界面风格传入(默认0 lz、1 wk、2 yx)

.initUiStyle(1)

9、开始跳转(必须全部传参完毕再跳转

CloudBuilder.startLibActivity(
                        act,
                       InitCloudData(
                key,
                iv,
                BuildConfig.APPLICATION_ID,
                BuildConfig.VERSION_CODE,
                token,
                lat,
                lon,
                app
                )
                    )

本库混淆

# 多多云混淆
-keep class com.xuhao.didi.** {*;}## 保留包下的指定类及其内部类
-keep class com.cyjh.** {*;}## 保留包下的指定类及其内部类
-keep class com.ddyun.** {*;}## 保留包下的指定类及其内部类

# 本库及四大组件
-keepnames class com.cloud.duolib.CloudBuilder {*;}
-keep class com.cloud.duolib.bean.** {*;}
-keep class com.cloud.duolib.base.CommonUtil {*;}
-keep class com.cloud.duolib.base.BaseInfo {*;}
-keep class com.cloud.duolib.http.** {*;}

Repository Comments ( 0 )

Sign in to post a comment

About

test expand collapse
Kotlin and 2 more languages
Cancel

Releases (53)

All
162

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/bobidali/dd-one.git
git@gitee.com:bobidali/dd-one.git
bobidali
dd-one
ddOne
master

Search

182229 41614e54 1850385 182230 7885ed45 1850385