Skip to content
Mikhalchuk Grigoriy edited this page Jun 5, 2024 · 13 revisions

Welcome to the HateItOrRateIt wiki!

  1. Privacy Policy

Definitions

  1. Original folder: the folder that is created upon creating the Product with images, e.g., files/products/1_2024-01-18_15-49-21
  2. Backup folder: the folder where the initial state of images is saved to be accessed if we remove original images and want to revert everything files/products/1_2024-01-18_15-49-21_backup
  3. Temp folder: the folder where we store newly added images in the product being edited, so that we can remove them easily in case of reverting. e.g., files/products/1_2024-01-18_15-49-21_temp

Useful Gradle commands

  1. ./gradlew check
  2. ./gradlew jacocoAggregatedReport
  3. ./gradlew app:cAT
  4. ./gradlew data:db:cAT
  5. ./gradlew addKtlintCheckGitPreCommitHook
  6. ./gradlew generateModulesGraphStatistics

Something useful

  1. Remove all local branches except the "master" for Windows: git branch | %{ $_.Trim() } | ?{ $_ -ne 'master' } | %{ git branch -D $_ }
  2. Prepare google-services.json for github secrets fun encodeFileToBase64(filePath: String): String { val bytes = File(filePath).readBytes() val result = Base64.getEncoder().encodeToString(bytes) return result }
  3. Which version of sqlite is used in every android version: https://developer.android.com/reference/android/database/sqlite/package-summary.html
  4. To use modules-graph-assert with Graphviz on Windows, a. we need to install Graphviz b. In the project run this command: ./gradlew generateModulesGraphvizText -P modules.graph.output.gv=result.dot c. To convert the dot file to svg use this command: dot -Tsvg result.dot -o result.svg

Release

  1. git checkout -b release/v.... from master
  2. git add .
  3. git commit -m "message"
  4. git tag -a v1.0-4 -m "Release v1.0-4"
  5. git push origin v1.0-4
  6. Release ci workflow should start automatically
  7. git checkout master
  8. git merge release/v1.1-7
  9. git push origin master
Clone this wiki locally