XmlClassGuard
XmlClassGuard copied to clipboard
关于微信登录、支付等Activity也被混淆的问题
你好,像APP接入了微信登录、支付等,必须要在manifest里配置指定格式的Activity,否则可能无法正常回调,比如: `<activity android:name="com.xxx.xxx.wxapi.WXPayEntryActivity" android:label="@string/app_name" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:exported="true" android:taskAffinity="com.xxx.xxx" android:launchMode="singleTask">
<activity
android:name="com.xxx.xxx.wxapi.WXEntryActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="true"
android:taskAffinity="com.xxx.xxx"
android:launchMode="singleTask">
</activity>`
其中com.xxx.xxx是应用包名,以上信息配置到manifest里后,也会被XmlClassGuard混淆,会造成微信登录、支付异常,请问有办法能指定不混淆某些Activity吗?
${applicationId}.wxapi.WXEntryActivity这样写就好
好的,可以了,非常感谢