We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
每次创建一个module时都要在gradle中配置javaCompileOptions, 有的时候忘记了就有需要编译一次, 建议将这个配置去掉, 在 arouter-compiler 中 自动获取 moduleName:
private String obtainModuleName() { String moduleName = ""; try { FileObject resource = filer.createResource(StandardLocation.CLASS_OUTPUT, "", "tempFile.txt"); String tempFilePath = resource.toUri().toString(); File tempFile = new File(tempFilePath); String tempFileSimpleName = ""; do { tempFile = tempFile.getParentFile(); tempFileSimpleName = tempFile.getName(); } while (!ProcessorUtils.equals(tempFileSimpleName, "build")); moduleName = tempFile.getParentFile().getName(); resource.delete(); } catch (IOException e) { e.printStackTrace(); warning("动态获取module名称失败!!"); } return moduleName; }
希望能够采纳这个建议!!
The text was updated successfully, but these errors were encountered:
当然不行,这么搞太不稳定了。
Sorry, something went wrong.
No branches or pull requests
每次创建一个module时都要在gradle中配置javaCompileOptions, 有的时候忘记了就有需要编译一次, 建议将这个配置去掉, 在 arouter-compiler 中 自动获取 moduleName:
希望能够采纳这个建议!!
The text was updated successfully, but these errors were encountered: