极光推送和百度lbs android sdk一起使用使用proguard 混淆的问题
2023-09-27 14:28:39 时间
主要是http得类被混淆后,导致apk定位失败。经过确认,保留apache 的http类就好了
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Libraries
-dontwarn org.apache.**
-keep class org.apache.**{ *; }
-keep class com.baidu.**{ *; }
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontnote
-verbose
-ignorewarnings
-dontoptimize
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.app.IntentService
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
-dontwarn cn.jpush.**
-keep class cn.jpush.** { *; }
相关文章
- Android百度地图SDK 导航初始化和地图初始化引起的冲突
- Android--ListPreference的使用
- 百度定位SDK:弥补Android基站WIFI定位缺失
- Android binder通信机制分析
- Android开发工程师文集-Fragment,适配器,轮播图,ScrollView,Gallery 图片浏览器,Android常用布局样式
- 《Android开发进阶:从小工到专家》——导读
- Android API中被忽略的几个函数接口
- android同时使用多个library时的问题
- 浅谈Android系统进程间通信(IPC)机制Binder中的Server和Client获得Service Manager接口之路
- Android Studio报错:Could not find method android() for arguments
- Android按钮实现点击事件的四种方式
- delphi android 录像(使用了JMediaRecorder,MediaRecorder的使用方法)
- Android 中万能的 BaseAdapter(Spinner,ListView,GridView) 的使用!
- 【Scan Kit】集成扫码服务时Android Studio总是报错OOM如何解决?
- Android MVP
- 我的Android进阶之旅------>解决:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
- Android平台下的本地缓存
- Android 5.0(L) ToolBar(替代ActionBar) 现实(四)