architecture-samples icon indicating copy to clipboard operation
architecture-samples copied to clipboard

How to lookup the no-compose demo project version.

Open livelitoday opened this issue 2 years ago • 1 comments

Now,I had found this project was refeactor as compose,but I can't find no-compose implementation,please give me help about this issue.

livelitoday avatar May 14 '23 08:05 livelitoday

To lookup the non-Compose (XML-based) version of a project that has since been refactored to Jetpack Compose, you can follow these steps:

Steps to Find the Pre-Compose Version (No-Compose)

  1. Browse Git History Check the Git commit history to find the point before the refactor to Compose.

Go to the project’s GitHub page.

Click on the "Commits" tab.

Example URL: https://github.com///commits/main

Look for commit messages like:

"Refactor to Jetpack Compose"

"Migrate from XML to Compose"

"Replace View-based UI with Compose"

Click on the commit before that change.

Use the Browse Files feature to see the source tree at that point.

  1. Use GitHub Tags / Releases (if available) Some projects use GitHub tags for versioning. Look for tags like:

v1.0, pre-compose, or legacy

Check out a release before the Compose migration.

Example:

git checkout tags/v1.0 3. Clone the Repo and Checkout an Older Commit

git clone https://github.com//.git cd git log --oneline

Look for a commit before Compose migration

git checkout <commit_hash> 4. Look for Legacy Branches Some maintainers keep the XML version in a separate branch, such as:

legacy-xml

pre-compose

no-compose

classic-ui

Browse branches:

git branch -r or check GitHub’s branch dropdown.

  1. Ask in Discussions or Issues If it's not obvious, you can also:

Open a GitHub Discussion or comment on the issue asking for the commit hash or tag.

Check if the original issue submitter or maintainer responded with a link.

Example for Jetpack Sample Projects If you're referring to official Android samples (like sunflower, android-topeka, etc.), older versions do exist in Git history.

VaradGupta23 avatar Jul 15 '25 13:07 VaradGupta23