Skip to content
Mikhalchuk Grigoriy edited this page May 1, 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

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
Clone this wiki locally