7 Commits

Author SHA1 Message Date
AwkwardPeak7
060473aedf
use Preferences functions from utils (#7757)
* import all temporarily

* use `getPreferencesLazy()`

regex: lazy\s*\{\s*Injekt\.get<Application>\(\)\.getSharedPreferences\(\"source_\$id\"\, 0x0000\)(!!)?\s*\}

* use `getPreferences()`

regex: Injekt\.get<Application>\(\)\.getSharedPreferences\(\"source_\$id\"\, 0x0000\)(!!)?

* `getPreferences` and `getPreferencesLazy` with migration

regex to find: getPreferences\(\)\s*\.

* preferences edge cases

* run lint

* why kotlinter not add newline

* bruh

* bump

* unused import not caught by kotlinter

* review suggestions on all files

* bump after merge main

* review

* reduce usage of
2025-03-27 00:02:28 +00:00
Chopper
6fa43de2c5
MTL: Improves readability (#7682)
* Improves readability

* Update settings messages
2025-02-23 21:31:15 +00:00
Chopper
11d6ca37c3
Snowmtl: Add support to Google Translator (#7558)
* Add support to Google Translator

* Remove Request.Builder

* Remove unused code

* Refatoring

* Replace the hashmap with the when statement

* Improves readability

* Remove site color and add text outline
2025-02-23 21:31:14 +00:00
Chopper
643376e8a0
Snowmlt: Add support to arabic (#7514)
* Add support to arabic

* Refatoring
2025-02-23 21:31:14 +00:00
Chopper
0505a26934
MachineTranslations & Snowmtl: Fix the regex in the translator engine and add font size settings (#7465)
* Fix the regex in the translator engine and add font size settings

* Remove extra lines

* Remove rateLimit

* Remove init pref

* Use lazy statement in the snowmtl client

* Relax the exception and show pages without dialog

* Fix the translator's bad formatted response for some cases

* Change listener return to false

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>

---------

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
2025-02-23 21:31:14 +00:00
Chopper
7ae3695832
Snowmtl: Fix json serializer (#7168)
* Fix json serializer

* Fix lint
2025-01-18 20:14:01 +00:00
Chopper
580b2b1b16
Move snowmlt to lib-multisrc and add Solarmtl (#7054)
* Move snowmlt to lib-multisrc

* Fix snowmtl

* Remove assets from src
2025-01-18 20:13:05 +00:00