chore: rename quicproquo → quicprochat in docs, Docker, CI, and packaging
Rename all project references from quicproquo/qpq to quicprochat/qpc across documentation, Docker configuration, CI workflows, packaging scripts, operational configs, and build tooling. - Docker: crate paths, binary names, user/group, data dirs, env vars - CI: workflow crate references, binary names, artifact names - Docs: all markdown files under docs/, SDK READMEs, book.toml - Packaging: OpenWrt Makefile, init script, UCI config (file renames) - Scripts: justfile, dev-shell, screenshot, cross-compile, ai_team - Operations: Prometheus config, alert rules, Grafana dashboard - Config: .env.example (QPQ_* → QPC_*), CODEOWNERS paths - Top-level: README, CONTRIBUTING, ROADMAP, CLAUDE.md
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
# QuicProQuo Java SDK
|
||||
# QuicProChat Java SDK
|
||||
|
||||
Java wrapper over `libquicproquo_ffi` via JNI for JVM and Android.
|
||||
Java wrapper over `libquicprochat_ffi` via JNI for JVM and Android.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- JDK 17+
|
||||
- `libquicproquo_ffi` built for the target platform
|
||||
- `libquicprochat_ffi` built for the target platform
|
||||
- JNI bridge compiled (shared with Kotlin SDK: `../kotlin/jni/`)
|
||||
|
||||
## Building
|
||||
|
||||
```sh
|
||||
# Build Rust FFI library
|
||||
cargo build --release -p quicproquo-ffi
|
||||
cargo build --release -p quicprochat-ffi
|
||||
|
||||
# Build Java SDK
|
||||
./gradlew build
|
||||
@@ -21,7 +21,7 @@ cargo build --release -p quicproquo-ffi
|
||||
## Usage
|
||||
|
||||
```java
|
||||
import dev.quicproquo.QpqClient;
|
||||
import dev.quicprochat.QpqClient;
|
||||
|
||||
try (QpqClient client = new QpqClient("127.0.0.1:5001", "ca.pem")) {
|
||||
client.login("alice", "secret");
|
||||
@@ -45,6 +45,6 @@ try (QpqClient client = new QpqClient("127.0.0.1:5001", "ca.pem")) {
|
||||
|
||||
## Structure
|
||||
|
||||
- `src/main/java/dev/quicproquo/QpqClient.java` -- High-level client
|
||||
- `src/main/java/dev/quicproquo/NativeBridge.java` -- JNI declarations
|
||||
- `src/main/java/dev/quicprochat/QpqClient.java` -- High-level client
|
||||
- `src/main/java/dev/quicprochat/NativeBridge.java` -- JNI declarations
|
||||
- JNI C bridge shared with Kotlin SDK at `../kotlin/jni/`
|
||||
|
||||
@@ -2,7 +2,7 @@ plugins {
|
||||
java
|
||||
}
|
||||
|
||||
group = "dev.quicproquo"
|
||||
group = "dev.quicprochat"
|
||||
version = "0.1.0"
|
||||
|
||||
java {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package dev.quicproquo;
|
||||
package dev.quicprochat;
|
||||
|
||||
/**
|
||||
* JNI bridge to libquicproquo_ffi native library.
|
||||
* JNI bridge to libquicprochat_ffi native library.
|
||||
*
|
||||
* <p>Load the library with:
|
||||
* <pre>{@code
|
||||
* System.loadLibrary("quicproquo_ffi");
|
||||
* System.loadLibrary("quicprochat_ffi");
|
||||
* }</pre>
|
||||
*/
|
||||
final class NativeBridge {
|
||||
@@ -16,7 +16,7 @@ final class NativeBridge {
|
||||
static final int QPQ_NOT_CONNECTED = 4;
|
||||
|
||||
static {
|
||||
System.loadLibrary("quicproquo_ffi");
|
||||
System.loadLibrary("quicprochat_ffi");
|
||||
}
|
||||
|
||||
static native long nativeConnect(String server, String caCert, String serverName);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package dev.quicproquo;
|
||||
package dev.quicprochat;
|
||||
|
||||
/** OPAQUE authentication failed (bad credentials). */
|
||||
public class QpqAuthException extends QpqException {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package dev.quicproquo;
|
||||
package dev.quicprochat;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
@@ -7,9 +7,9 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* High-level quicproquo client for JVM.
|
||||
* High-level quicprochat client for JVM.
|
||||
*
|
||||
* <p>Wraps {@code libquicproquo_ffi} via JNI.
|
||||
* <p>Wraps {@code libquicprochat_ffi} via JNI.
|
||||
*
|
||||
* <pre>{@code
|
||||
* try (QpqClient client = new QpqClient("127.0.0.1:5001", "ca.pem")) {
|
||||
@@ -26,7 +26,7 @@ public final class QpqClient implements AutoCloseable {
|
||||
new TypeToken<List<String>>() {}.getType();
|
||||
|
||||
/**
|
||||
* Connect to a quicproquo server.
|
||||
* Connect to a quicprochat server.
|
||||
*
|
||||
* @param server server address as {@code host:port}
|
||||
* @param caCertPath path to PEM-encoded CA certificate
|
||||
@@ -36,7 +36,7 @@ public final class QpqClient implements AutoCloseable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Connect to a quicproquo server with explicit TLS server name.
|
||||
* Connect to a quicprochat server with explicit TLS server name.
|
||||
*
|
||||
* @param server server address as {@code host:port}
|
||||
* @param caCertPath path to PEM-encoded CA certificate
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package dev.quicproquo;
|
||||
package dev.quicprochat;
|
||||
|
||||
/** Base exception for quicproquo SDK errors. */
|
||||
/** Base exception for quicprochat SDK errors. */
|
||||
public class QpqException extends RuntimeException {
|
||||
public QpqException(String message) { super(message); }
|
||||
public QpqException(String message, Throwable cause) { super(message, cause); }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package dev.quicproquo;
|
||||
package dev.quicprochat;
|
||||
|
||||
/** Operation timed out. */
|
||||
public class QpqTimeoutException extends QpqException {
|
||||
|
||||
Reference in New Issue
Block a user