build(android): upgrade toolchain and migrate Room to KSP
Lint / Lint (push) Successful in 1m29s
Security / Secrets (gitleaks) (push) Successful in 1m11s
Security / Dependencies (Trivy) (push) Successful in 1m59s
Tests / Dashboard checks (push) Successful in 1m49s
Security / Code (Semgrep) (push) Successful in 3m8s
Tests / Go backend (push) Successful in 2m50s
Docker / Docker Build & Push (push) Successful in 8m42s
Lint / Lint (push) Successful in 1m29s
Security / Secrets (gitleaks) (push) Successful in 1m11s
Security / Dependencies (Trivy) (push) Successful in 1m59s
Tests / Dashboard checks (push) Successful in 1m49s
Security / Code (Semgrep) (push) Successful in 3m8s
Tests / Go backend (push) Successful in 2m50s
Docker / Docker Build & Push (push) Successful in 8m42s
- Target API 37 and use build-tools 37 for release signature checks - Adjust list pagination spacing and clarify shared backend docs
This commit is contained in:
1 parent
7150ebd13e
commit
0fd1805502
40 files changed
+912
-690
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package syncsocket
|
||||
|
||||
// syncScalar keeps a client-supplied sync value to what sync state holds: null, a number or a
|
||||
// bounded string. Objects, arrays and booleans are refused so arbitrary JSON is never stored as
|
||||
// shared session state.
|
||||
func syncScalar(value any) (any, bool) {
|
||||
switch typed := value.(type) {
|
||||
case nil, float64:
|
||||
return typed, true
|
||||
case string:
|
||||
return boundedSyncString(typed), true
|
||||
default:
|
||||
return nil, false
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user