Add Protocol constants and enable buildConfig generation

This commit is contained in:
James (ClawdBot) 2026-01-28 06:22:25 +00:00
parent 97a095e073
commit 69f39ef3a3
2 changed files with 20 additions and 0 deletions

View File

@ -38,6 +38,7 @@ android {
buildFeatures { buildFeatures {
viewBinding = true viewBinding = true
buildConfig = true
} }
} }

View File

@ -0,0 +1,19 @@
package com.inou.clawdnode.protocol
/**
* Clawdbot Gateway Protocol constants.
* Values from clawdbot/gateway/protocol/client-info.js
*/
object Protocol {
// Gateway client identifier for Android app
const val CLIENT_ID = "clawdbot-android"
// Client mode - "node" for ClawdNode companion apps
const val MODE = "node"
// Platform identifier
const val PLATFORM = "android"
// Role for node connections
const val ROLE = "node"
}