hezarfen_mobile
Clone
https://git.tahinli.com/Hezarfen/hezarfen_mobile.git
0 watching0 forksRust5.5 MiB3424bc6Burak Boduroğlu3 months ago13 commits
| 1 | |
| 2 | |
| 3 | use ; |
| 4 | |
| 5 | /// Where the API lives. Baked in at build time so release artifacts point at |
| 6 | /// production without any runtime configuration: |
| 7 | /// |
| 8 | /// ```sh |
| 9 | /// HEZARFEN_BACKEND_ORIGIN=https://api.hezarfen.co cargo tauri android build |
| 10 | /// ``` |
| 11 | const BUILD_TIME_BACKEND: = option_env!; |
| 12 | |
| 13 | /// Dev default. On an emulator or a USB-attached device this is the developer's |
| 14 | /// own machine, reached through `adb reverse tcp:8080 tcp:8080` (see README) — |
| 15 | /// the same address the web app's Vite proxy targets, so one backend serves |
| 16 | /// both. |
| 17 | const DEFAULT_BACKEND: &str = "http://127.0.0.1:8080"; |
| 18 | |
| 19 | /// A QA override, read once at startup from `<app-config>/backend.txt`. Lets a |
| 20 | /// tester repoint a signed build at staging without a rebuild. |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 |