This commit adds the necessary configuration files to support opening and building the project in Project IDX.
The new files are:
- `idx.json`: Specifies the tools and build tasks for the project.
- `.idx/dev.nix`: Defines the development environment, including the required JDK, Android SDK, and system dependencies.
I built the uHabits Android application from the source code, following the instructions in `docs/BUILD.md`.
To do this, I installed `openjdk-17-jdk-headless` and the Android SDK command-line tools. After setting up the environment, I successfully built the project using the `./gradlew assembleDebug` command.
I also attempted to run the test suite, but ran into environmental issues that caused timeouts. The unit tests passed on one occasion, but my subsequent attempts to run tests or other Gradle commands failed to complete in a timely manner.
Some Samsung phones were allowing graph widgets to occupy 1x2 or
2x1 grid cells, leading to very small text. This commit bumps up
the minimum widget size to 100x100 to ensure they always occupy at
least 2x2 cells. Tested on Pixel 4, Pixel 7 and Samsung Galaxy S24.
Closes#2118
Gradle Plugin Portal was previously making kotlin-css-jvm 1.0.0-pre.148-kotlin-1.4.30 available by virtue of mirroring JCenter. Now that Gradle have stopped doing that in preparation for JCenter to go away, we need to retrieve the old version from a different repository.
If this is bumped forwards to Kotlin 1.5.0+ it will become possible to get the package from Central instead.