Skip to content

Fix build issues and add trainer for 3-style corners#193

Open
louis-hildebrand wants to merge 27 commits into
aricneto:masterfrom
louis-hildebrand:master
Open

Fix build issues and add trainer for 3-style corners#193
louis-hildebrand wants to merge 27 commits into
aricneto:masterfrom
louis-hildebrand:master

Conversation

@louis-hildebrand

@louis-hildebrand louis-hildebrand commented Nov 24, 2024

Copy link
Copy Markdown

Closes #192.

Build Issues

The app wasn't compiling when I first cloned it, so I had to make some changes.

  • Two dependencies were missing: com.takisoft.fix:preference-v7:26.0.1.0 and com.pavelsikun:vintage-chroma:1.5 (as discussed here). I swapped out com.takisoft.fix:preference-v7 for androidx.preference, since it was only used in one or two places. The vintage-chroma dependency was used much more and I couldn't find any repositories that have it, so I cloned the project and added it as a submodule.
  • The category and locale select dialogs were crashing; simply moving the call to getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE) from onViewCreated to onCreateView seems to have solved it.
  • I also fiddled with some version numbers and whatnot to get the project to build.

New Trainer

I added a new trainer for 3-style corners. I mostly followed the implementation of the OLL and PLL trainers. However, I let users select cases using a regular expression since it would be inconvenient to list all 420 cases. I also let the user customize their letter scheme and buffer. And to ensure the app doesn't always give the same scramble for the same case (which would sometimes give away which case it is), I add a random prefix and suffix to the scramble.

JCenter is no longer available.
Use the same versions as what I got working for the vintage-chroma
dependency for convenience.
The dependency com.pavelsikun:vintage-chroma:1.5 is no longer available.
As a workaround, make a git submodule from the vintage-chroma repo and
add it as a subproject in Gradle.
The category select and locale select dialogs were crashing due to
`getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE)` being
called after content was added to the dialog (according to the error
message). Moving this line from `onViewCreated` to `onCreateView` (which
is how all the other dialogs do it) seems to fix the problem.
That version supports incremental annotation processing. Gradle was
previously complaining about the lack thereof.
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.

Build error due to missing dependencies

1 participant