feat: add native/Java auth SDK, docs, CI, and examples

Made-with: Cursor
This commit is contained in:
hpd840321
2026-04-06 17:42:09 +08:00
commit 3894315759
35 changed files with 4825 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
/*
* C++ 调用示例:初始化、校验许可、销毁句柄。
*
* 版权所有 © 广州创飞人工智能技术有限公司
* 开发者:huangping@craftlabs.cn
*/
#include "craftlabs_auth.h"
#include <cstdio>
#include <cstdlib>
int main() {
AuthHandle h = auth_initialize("{}");
if (!h) {
return EXIT_FAILURE;
}
AuthResult r = auth_check_license(h);
if (r.success == 0) {
auth_destroy(h);
return EXIT_FAILURE;
}
auth_destroy(h);
std::printf("example cpp ok\n");
return EXIT_SUCCESS;
}