chore: initial project scaffold
Sets up monorepo with Wails desktop shell, Go backend, React/TS frontend, and Kotlin Android SDK skeleton. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
package adb
|
||||
@@ -0,0 +1 @@
|
||||
package device
|
||||
@@ -0,0 +1,3 @@
|
||||
module git.achmad.dev/admin/droidscope/backend
|
||||
|
||||
go 1.26.2
|
||||
@@ -0,0 +1 @@
|
||||
package logcat
|
||||
@@ -0,0 +1 @@
|
||||
package network
|
||||
@@ -0,0 +1,57 @@
|
||||
package protocol
|
||||
|
||||
const ProtocolVersion = "1.0"
|
||||
|
||||
type Event struct {
|
||||
Type string `json:"type"`
|
||||
Timestamp int64 `json:"timestamp"`
|
||||
DeviceID string `json:"deviceId"`
|
||||
SessionID string `json:"sessionId"`
|
||||
Payload interface{} `json:"payload"`
|
||||
}
|
||||
|
||||
const (
|
||||
EventLogcat = "logcat"
|
||||
EventNetworkRequest = "network.request"
|
||||
EventNetworkResponse = "network.response"
|
||||
EventPrefsUpdate = "prefs.update"
|
||||
EventFileList = "file.list"
|
||||
EventDeviceInfo = "device.info"
|
||||
)
|
||||
|
||||
type LogcatPayload struct {
|
||||
Tag string `json:"tag"`
|
||||
Priority string `json:"priority"`
|
||||
Message string `json:"message"`
|
||||
PID int `json:"pid"`
|
||||
}
|
||||
|
||||
type NetworkRequestPayload struct {
|
||||
RequestID string `json:"requestId"`
|
||||
URL string `json:"url"`
|
||||
Method string `json:"method"`
|
||||
Headers map[string]string `json:"headers"`
|
||||
Body string `json:"body,omitempty"`
|
||||
}
|
||||
|
||||
type NetworkResponsePayload struct {
|
||||
RequestID string `json:"requestId"`
|
||||
StatusCode int `json:"statusCode"`
|
||||
Headers map[string]string `json:"headers"`
|
||||
Body string `json:"body,omitempty"`
|
||||
Size int64 `json:"size"`
|
||||
DurationMs int64 `json:"durationMs"`
|
||||
}
|
||||
|
||||
type PrefsUpdatePayload struct {
|
||||
File string `json:"file"`
|
||||
Prefs map[string]string `json:"prefs"`
|
||||
}
|
||||
|
||||
type DeviceInfoPayload struct {
|
||||
Manufacturer string `json:"manufacturer"`
|
||||
Model string `json:"model"`
|
||||
AndroidVersion string `json:"androidVersion"`
|
||||
ABI string `json:"abi"`
|
||||
RAM int64 `json:"ram"`
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
package runtime
|
||||
@@ -0,0 +1 @@
|
||||
package session
|
||||
@@ -0,0 +1 @@
|
||||
package storage
|
||||
@@ -0,0 +1 @@
|
||||
package storage
|
||||
@@ -0,0 +1 @@
|
||||
package storage
|
||||
Reference in New Issue
Block a user