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

可以修改aar(自己的)包名吗 #65

Open
GuoLiangjun123 opened this issue Apr 15, 2024 · 4 comments
Open

可以修改aar(自己的)包名吗 #65

GuoLiangjun123 opened this issue Apr 15, 2024 · 4 comments

Comments

@GuoLiangjun123
Copy link

我们将Module打包成aar发布,打包的时候想改变aar的包名,比如本来叫com.aaa.bbb改成com.ccc.ddd,请问这样可实现吗

@liujingxing
Copy link
Owner

XmlClassGuard目前只能作用于源码,可以改完后再打包aar

@GuoLiangjun123
Copy link
Author

XmlClassGuard目前只能作用于源码,可以改完后再打包aar

我看了下文档,有一个疑问,上手教程的第二步是 在app的build.gradle里面进行xmlClassGuard {}操作,但是我的需求是修改别的module的包名,这样的操作对于该module也能生效吗

@GuoLiangjun123
Copy link
Author

XmlClassGuard目前只能作用于源码,可以改完后再打包aar

试了下在在app的build.gradle里面进行xmlClassGuard {}操作,module的包名没变,moudle下面的文件导包的路径变了,但是也仅仅只是R文件的导包路径变了。配置如下:
xmlClassGuard {
packageChange = ["com.aa.aaadsdk": "com.bb.bbbadsdk"]
}
Gradle列表中和文档描述的也有出入。
renwu
不知道问题出在哪,还请大佬看看。

@liujingxing
Copy link
Owner

再仔细看看文档吧,移动目录用moveDir任务

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