7 注意事项

7.1 代码混淆

代码混淆时需要在混淆配置文件中加入下面内容(v1.2.0 以后版本不需要添加混淆项):

# v1.2.0 以后版本不需要添加混淆项
-keepattributes InnerClasses -keep class **.R$* { <fields>; }
#含腾讯地图 SDK 还需加入
-dontwarn org.eclipse.jdt.annotation.**
-keepattributes *Annotation*
-keepclassmembers class ** {
    public void on*Event(...);
}
-keepclasseswithmembernames class * {
    native <methods>;
}

7.2 发布提醒

应用发布时注意关闭日志打印。此外,使用不带 UI 的核心库接口开发的开发者,要注意其中 6.2.4 生命周期的处理不可以遗漏。

7.3 版本更新

SDK 存在新版本时,请尽量更新到最新版本 SDK,注意查看文档末尾的更新记录,以根据更新内容完成相应修改。

results matching ""

    No results matching ""

    results matching ""

      No results matching ""