Skip to main content

CLI Tool for Sorting Android Studio Changelists

Project description

# Changelist Sort Making Sorting Changelist Files Easy!

  1. Close Android Studio (saves changelists to workspace file)

  2. Open shell from project root directory (or supply workspace file path in arguments)

  3. Run changelist-sort (or cl-sort) add arguments/options if necessary

  4. Reopen Android Studio. Your changelists are sorted.

Note: If you want to combine step 2 and step 3, add an alias to your shell environment.

## Sorting By Module Files are sorted by the name of the top level directory they are located in. In Android projects, each directory in the project root is a module, with a few special cases.

### Special Changelists & Directories There are special Changelists, and special Directories that are handled differently. - Build Updates Changelist - Root Directory - Gradle Directory

Build Updates Changelist: This is a changelist that is used to collect all of the files that affect the project build. This includes all files in the gradle directory, and any file that ends with the .gradle file extension. There are also Gradle files that end in .properties, which are also sorted into the Build Updates Changelist.

Root Directory: The Root directory is special because the file paths are really short and do not contain a module name. Often, Root directory contains .gradle files which are sorted into the Build Updates Changelist. Any non-Gradle files in the Root directory are sorted into a special Changelist that may be called Root or Project Root.

Gradle Directory: The Gradle Directory is a direct descendant of the Root directory, and may contain toml, gradle, or properties files. These are all sorted into the Build Updates Changelist.

### Module Names and Sorting Comparisons

Changelist Names The name of the changelist must match the module, ignoring letter case and removing spaces.

Otherwise, a new Changelist will be created that matches the module name. - Underscores are replaced with spaces. - Each Word in the Name will start with an uppercase letter.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

changelist_sort-0.1.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

changelist_sort-0.1-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file changelist_sort-0.1.tar.gz.

File metadata

  • Download URL: changelist_sort-0.1.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for changelist_sort-0.1.tar.gz
Algorithm Hash digest
SHA256 250b2640957de831d73b276bfce3ed2027be802bbbede22d72e44c7b82b7d045
MD5 47db6a878d593812c9999caa76177f58
BLAKE2b-256 2c4919b0f6ed5403eac9d330cb7574376cf89efac48e966fce484548cf1de664

See more details on using hashes here.

File details

Details for the file changelist_sort-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for changelist_sort-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ff32165f5ce18faedfcafc0b392d8a3892816793c28b0972ee13d9ed55f62b8
MD5 e7cb6857836ddfd3e8e9901f667bfcfe
BLAKE2b-256 47f8873e33b82d2e204e11519768c402aeb00cd9e7ce4541f71bb962f5e408e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page