Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ljqiang opened this issue Nov 21, 2023 · 2 comments
Open

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

ljqiang opened this issue Nov 21, 2023 · 2 comments

Comments

@ljqiang
Copy link

ljqiang commented Nov 21, 2023

你好,像APP接入了微信登录、支付等,必须要在manifest里配置指定格式的Activity,否则可能无法正常回调,比如:
`

    <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吗?

@liujingxing
Copy link
Owner

liujingxing commented Nov 22, 2023

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

@ljqiang
Copy link
Author

ljqiang commented Nov 22, 2023

好的,可以了,非常感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants