XmlClassGuard icon indicating copy to clipboard operation
XmlClassGuard copied to clipboard

关于微信登录、支付等Activity也被混淆的问题

Open ljqiang opened this issue 2 years ago • 2 comments

你好,像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吗?

ljqiang avatar Nov 21 '23 14:11 ljqiang

${applicationId}.wxapi.WXEntryActivity这样写就好

liujingxing avatar Nov 22 '23 02:11 liujingxing

好的,可以了,非常感谢

ljqiang avatar Nov 22 '23 04:11 ljqiang