Commit 99015c5
authored
fix: Initialize animatedOnlineCount when view appears with stats (#58)
* fix: Initialize animatedOnlineCount when view appears with stats
Problem:
- In v1.1.4, online count always shows as 0
- animatedOnlineCount is initialized to 0 as default
- When onlineStats changes from nil to a value, animatedOnlineCount stays at 0
- onChange only triggers when the value changes, not on initial load
Solution:
- Add onAppear to initialize animatedOnlineCount from stats.onlineCount
- Check if animatedOnlineCount is 0 and stats has valid count
- This ensures the count displays correctly on first load
Fixes the regression introduced in PR #57 where animated count feature
broke the initial display of online user count.
* chore: Change default TestFlight release to internal testing
- Set distribute_external to false (internal testing only)
- Remove public beta groups and external tester notifications
- Skip beta review submission for internal builds
- Update workflow and lane descriptions
- Simplify upload_to_testflight parameters
This allows faster iteration and testing without requiring
Beta App Review approval for each build. Public beta releases
can still be done manually through App Store Connect when needed.
* feat: Add configurable release channel parameter
- Add 'release_channel' workflow input (internal/public_beta)
- Default to 'internal' for automatic releases
- Support 'public_beta' for manual workflow_dispatch
- Fastlane beta lane now accepts channel parameter
- Dynamically configure TestFlight distribution based on channel:
- internal: No beta review, internal testers only
- public_beta: Submit for beta review, notify external testers
- Update GitHub Release notes to reflect selected channel
- Update notification messages based on channel
Usage:
- Automatic (push to main): Uses 'internal' by default
- Manual workflow: Can select 'public_beta' in workflow dispatch UI
- Local fastlane: fastlane beta channel:public_beta1 parent 5a207d5 commit 99015c5
File tree
3 files changed
+89
-47
lines changed- .github/workflows
- V2er/View/Widget/Updatable
- fastlane
3 files changed
+89
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| |||
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
88 | | - | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
283 | 291 | | |
284 | 292 | | |
285 | 293 | | |
| 294 | + | |
286 | 295 | | |
287 | 296 | | |
288 | 297 | | |
| |||
291 | 300 | | |
292 | 301 | | |
293 | 302 | | |
294 | | - | |
295 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
296 | 307 | | |
297 | 308 | | |
298 | 309 | | |
| 310 | + | |
| 311 | + | |
299 | 312 | | |
300 | 313 | | |
301 | 314 | | |
302 | 315 | | |
303 | 316 | | |
304 | 317 | | |
305 | 318 | | |
306 | | - | |
307 | | - | |
308 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
309 | 323 | | |
310 | 324 | | |
311 | 325 | | |
| |||
317 | 331 | | |
318 | 332 | | |
319 | 333 | | |
| 334 | + | |
| 335 | + | |
320 | 336 | | |
321 | | - | |
| 337 | + | |
| 338 | + | |
322 | 339 | | |
323 | 340 | | |
324 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 83 | + | |
| 84 | + | |
89 | 85 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 86 | + | |
100 | 87 | | |
101 | 88 | | |
102 | | - | |
| 89 | + | |
103 | 90 | | |
104 | 91 | | |
105 | 92 | | |
106 | 93 | | |
107 | 94 | | |
108 | 95 | | |
109 | 96 | | |
110 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | | - | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | | - | |
| 178 | + | |
177 | 179 | | |
178 | | - | |
179 | 180 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
194 | 208 | | |
195 | 209 | | |
196 | 210 | | |
| |||
0 commit comments