Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

dturner
Copy link
Collaborator

@dturner dturner commented Jul 15, 2025

[WIP] This PR migrates the codebase to using Jetpack Navigation 3.

More details to follow...

@claraf3 claraf3 force-pushed the cleanup-new-code branch 3 times, most recently from 9b9cfe5 to b85823d Compare July 16, 2025 03:30
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is redundant can be deleted. IIRC when I ran the dependency graph generation script I excluded the benchmarks module.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the command I use:

./generateModuleGraphs.sh --exclude-module :benchmarks --exclude-module :lint --exclude-module :ui-test-hilt-manifest

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dturner these graphs are becoming harder to read with this new api/impl split of module 🙈

Remember the discussions about dependency graphs in #1554 ?
I feel like this could be a great opportunity to showcase the api/impl splits.

Copy link
Collaborator

@claraf3 claraf3 Aug 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did run that particular command but it still generated this. Tried rerunning again after rebasing to main and im getting these errors

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'nowinandroid'.
> Could not create task ':generateModulesGraphvizText'.
   > 'org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.

BUILD FAILED in 983ms
4 actionable tasks: 4 up-to-date
Configuration cache entry stored.
Error: dot: can't open /tmp/dep_graph_core_common.gv: No such file or directory
Done in 1 ms!
0 KiB - NaN% = 0 KiB
rm: /tmp/dep_graph_core_common.gv: No such file or directory
Parallel Configuration Cache is an incubating feature.
Calculating task graph as no cached configuration is available for tasks: generateModulesGraphvizText
Type-safe project accessors is an incubating feature.

The newly generated svg graphs are not showing properly as a result. Any idea what may be causing this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonMarquis Thanks for bringing this up again. I agree this would be a great time to implement this change. I added some comments to #1554

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claraf3 Could it be that your /tmp folder isn't world writeable? What happens when you run the following command?

./gradlew generateModulesGraphvizText -Pmodules.graph.output.gv="/tmp/dep_graph_core_common.gv" -Pmodules.graph.of.module=":core:common"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get the same error as above

> Could not create task ':generateModulesGraphvizText'.
   > 'org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()'

It happens on main branch for me too. Are you able to replicate this locally?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claraf3 Did you check if /tmp was world writeable? What if you try ./gradlew generateModulesGraphvizText -Pmodules.graph.output.gv="~/dep_graph_core_common.gv" -Pmodules.graph.of.module=":core:common"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can exclude this one

@claraf3 claraf3 force-pushed the cleanup-new-code branch 3 times, most recently from f87e507 to 08f9dd0 Compare August 12, 2025 21:37
@claraf3
Copy link
Collaborator

claraf3 commented Aug 12, 2025

Is there a lint task that auto formats all the files? ./gradlew lint just checks for errors but doesn't auto format.

@SimonMarquis
Copy link
Contributor

Is there a lint task that auto formats all the files? ./gradlew lint just checks for errors but doesn't auto format.

./gradlew --init-script gradle/init.gradle.kts spotlessApply

@claraf3 claraf3 force-pushed the cleanup-new-code branch 3 times, most recently from c894a90 to 42dd8fc Compare August 26, 2025 00:56
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

Successfully merging this pull request may close these issues.

3 participants