怎样删减SDK,只取一部分功能?
Completed我现在正在用V4 SDK做移动端开发,目前是通过 implementation 'com.dji:dji-sdk:4.16.4' 这种方式依赖全部SDK, 会导致APK包太大,多了很多不需要的功能。如果我只需要获取无人机的数据流,怎样进行SDK的删减?
-
//dji-sdk
implementation(rootProject.ext.dependencies["dji-sdk"]) {
//御2视频特殊处理?
exclude module: 'library-anti-distortion'
//飞行安全数据
exclude module: 'fly-safe-database'
}
implementation(rootProject.ext.dependencies["dji-uxsdk"]) {
exclude module: 'dji-sdk'
exclude group: 'com.google.android.gms'
exclude group: 'com.amap.api'
exclude group: 'com.mapbox.mapboxsdk'
exclude module: 'library-anti-distortion'
exclude module: 'fly-safe-database'
}
能缩小到60M以内,个人设置仅供参考
Please sign in to leave a comment.
Comments
6 comments