提交图

121 次代码提交

作者 SHA1 备注 提交日期
XuqmGroup
ff13b54d9e feat(file): 添加图片保存到系统相册功能
- 在 FileSDK 中新增 saveImageToGallery 方法用于将图片文件保存到系统照片库
- 支持 Android Q 及以上版本使用 MediaStore API 安全存储图片
- 对于旧版 Android 系统使用兼容方案将图片复制到 Pictures 目录
- 在 WebView 组件下载完成后自动将图片文件保存到相册
- 仅当图片未被保存到相册时才显示文件打开选项以避免重复操作
2026-06-10 12:39:51 +08:00
Jenkins CI
1e7193add3 ci: bump module versions [sdk-webview] 2026-06-08 11:22:13 +08:00
XuqmGroup
19752329e7 Merge remote-tracking branch 'origin/main' 2026-06-08 11:20:23 +08:00
XuqmGroup
0efb1b6f0f refactor(webview): 将 WebView 活动重构为 Compose 组件
- 移除传统 View 系统实现,采用 Jetpack Compose 架构
- 创建 XWebViewScreen 组件替代原有的 Activity 布局
- 集成 Material Design 3 主题支持
- 保留 WebView 的核心功能和配置选项
- 添加导航状态回调接口支持
- 简化窗口边距和系统栏适配逻辑
- 优化组件生命周期管理和资源释放
2026-06-08 11:20:17 +08:00
Jenkins CI
813e0a59ad ci: bump module versions [sdk-core] 2026-06-05 16:29:33 +08:00
XuqmGroup
2a9b1c0f36 feat(file): 添加文件下载完成后打开文件的功能
- 导入 PendingIntent 相关类
- 在下载完成通知中添加打开文件的意图
- 实现构建打开文件 PendingIntent 的方法
- 使用 FileProvider 安全分享文件 URI
- 根据文件扩展名获取正确的 MIME 类型
- 创建带读取权限的查看意图并设置标记兼容性
2026-06-05 16:28:34 +08:00
Jenkins CI
e9db4b7493 ci: bump module versions [sdk-core] 2026-06-05 16:23:16 +08:00
XuqmGroup
2449c2b920 fix(file): 修复文件下载完成后通知显示问题
- 使用capturedNotifId替换notifId变量
- 先取消原有通知再创建新通知
- 重新构建通知内容包括标题和完成状态
- 添加自动取消功能
- 优化通知图标和文本显示逻辑
2026-06-05 16:22:12 +08:00
Jenkins CI
d652d4c047 ci: bump module versions [sdk-core,sdk-webview] 2026-06-05 16:17:01 +08:00
XuqmGroup
6514c27eaa feat(webview): 优化文件下载和图片选择功能
- 下载文件时在公共下载目录下创建应用名称子目录
- 实现支持多MIME类型的文件选择器合约
- 添加相机拍照功能并在图片选择时显示选项对话框
- 为Android 13+系统添加下载通知权限请求
- 重构文件选择逻辑以支持更灵活的MIME类型处理
2026-06-05 16:15:50 +08:00
Jenkins CI
beb6b88029 ci: bump module versions [sdk-core,sdk-webview] 2026-06-05 15:55:11 +08:00
XuqmGroup
d19b0ae8fc fix(webview): 解决文件选择器MIME类型解析和通知ID空指针问题
- 修复了文件下载通知中notifId为空时的崩溃问题
- 为XWebViewJsBridge添加了额外的回调参数以支持消息处理
- 重构了resolvePickerMimeType函数的文档注释并优化了MIME类型解析逻辑
- 将文件选择器的MIME类型解析逻辑统一到resolvePickerMimeType函数中
- 改进了HTML accept类型的转换机制,更好地支持混合和未知MIME类型
2026-06-05 15:53:51 +08:00
XuqmGroup
0ce2f21307 feat(sdk): 新增文件上传下载功能并完善WebView组件
- 在Android SDK中新增FileSDK模块,提供统一的文件上传、下载、打开接口
- 实现Android端文件下载到沙盒目录或公共Downloads目录,并支持通知栏进度显示
- 完善Android WebView组件,增加文件选择、拍照、下载拦截、H5双向通信能力
- 在iOS SDK中新增XuqmFileSDK模块,提供文件上传下载功能
- 实现iOS端WebView组件的文件下载拦截和原生文件选择器集成
- 更新文档说明Android和iOS SDK的文件操作API使用方法
- 重构iOS SDK项目结构,按功能拆分为多个独立模块便于集成
- 添加文件下载进度通知和完成后的文件打开功能
2026-06-05 15:48:08 +08:00
Jenkins CI
a98dd8a708 ci: bump module versions [sdk-update] 2026-06-04 13:37:27 +08:00
XuqmGroup
784554ab4c refactor(sdk-update): 重构版本更新检测功能
- 移除 userIdOverride 参数,统一通过 XuqmSDK.login() 会话获取用户ID
- 新增 bypassIgnore 参数控制是否绕过已忽略版本
- 静默检查模式下已忽略版本不再弹窗,主动检查模式始终显示更新对话框
- 更新文档说明破坏性变更和新的使用方式
- 移除 requiresLogin 字段相关实现
2026-06-04 13:35:59 +08:00
Jenkins CI
ea85dd6587 ci: bump module versions [sdk-core,sdk-update] 2026-06-04 13:15:16 +08:00
XuqmGroup
d12c575dd6 feat(update): 添加更新检查功能增强和配置文件读取日志
- 新增 UpdateInfo.requiresLogin 字段支持登录后更新检测
- 添加 UpdateSDK.ignoreVersion 和 clearIgnoredVersions 方法实现版本忽略功能
- 扩展 checkAppUpdate 方法支持 userIdOverride 参数用于 H5 登录后重检
- 在 ConfigFileReader 中添加日志输出便于调试配置文件读取问题
- 优化 XuqmInitializerProvider 自动初始化错误处理和日志记录
- 实现非强制更新版本忽略机制,支持下次检测时不弹窗提示
- 添加 15 秒超时等待 SDK 初始化完成的异步处理逻辑
2026-06-04 13:14:02 +08:00
Jenkins CI
1a6a91e6fe ci: bump module versions [sdk-license] 2026-06-02 17:27:33 +08:00
Jenkins CI
a4cfab53e3 ci: bump module versions [sdk-core,sdk-update] 2026-06-02 17:18:29 +08:00
XuqmGroup
5fe859e975 feat(sdk): 将许可证文件替换为初始化配置文件
- 将 license.xuqm 文件替换为 config.xuqm 配置文件
- 实现 ConfigFileReader 来读取和解密配置文件
- 添加 ConfigFileCrypto 用于配置文件加密解密
- 更新 autoInitialize 方法以从配置文件自动初始化
- 移除对 sdk-license 的反射依赖
- 在 HarmonySDK 中实现配置端点动态配置
- 更新 iOS SDK 中的配置文件读取逻辑
- 统一各平台配置文件格式和处理方式
2026-06-02 17:15:49 +08:00
XuqmGroup
3aee02a2cd Merge remote-tracking branch 'origin/main' 2026-05-29 17:14:25 +08:00
XuqmGroup
90ef764695 refactor(sdk): 优化 SDK 初始化逻辑和错误处理
- 移除初始化失败原因注释
- 简化授权文件检查逻辑
- 统一错误消息为英文格式
- 优化授权文件路径验证流程
- 改进包名匹配错误提示信息
2026-05-29 17:14:20 +08:00
Jenkins CI
5e0a498588 ci: bump module versions [sdk-update] 2026-05-29 17:08:28 +08:00
XuqmGroup
4d5111dddc Merge remote-tracking branch 'origin/main' 2026-05-29 17:07:18 +08:00
XuqmGroup
2404809649 refactor(sdk): 移除初始化失败日志记录并优化错误处理
- 移除了 XuqmInitializerProvider 中的异常日志记录逻辑
- 将失败原因存储至 XuqmSDK.getInitError() 供应用决定展示方式
- 优化了授权文件不存在时的错误信息提示
- 简化了包名不匹配的错误处理流程
- 移除了调试日志输出以提升性能
- 改进了错误消息的中文本地化显示
2026-05-29 17:07:12 +08:00
Jenkins CI
3977d6ac16 ci: bump module versions [sdk-update] 2026-05-29 17:02:02 +08:00
XuqmGroup
42b644ac11 fix(sdk): 完善初始化异常处理和日志记录
- 在 XuqmInitializerProvider 中添加 autoInitialize 失败时的错误日志记录
- 在 autoInitialize 方法中添加许可证文件缺失时的详细错误日志
- 添加包名匹配失败时的错误日志记录
- 添加许可证读取成功时的调试日志
- 新增 listAssets 辅助方法用于列出资产目录文件
2026-05-29 17:00:04 +08:00
XuqmGroup
e958b2a42c feat(sdk-webview): add debugEnabled flag for Chrome DevTools H5 debugging
Set debugEnabled = true in XWebViewConfig to enable WebView remote debugging
via chrome://inspect. Calls WebView.setWebContentsDebuggingEnabled() before
WebView instantiation in both XWebViewView and XWebViewActivity. Bump to 1.0.8.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 09:58:21 +08:00
XuqmGroup
6da62dc600 feat(sdk-webview): make JS bridge name configurable; default to XWebViewBridge
- Add `jsBridgeName` field to `XWebViewConfig` (default: "XWebViewBridge")
- Make `DIALOG_OVERRIDE_JS` a function parameterised by bridge name
- Use `config.jsBridgeName` in both `XWebViewView` and `XWebViewActivity`
- Bump sdk-webview to 1.0.7

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 09:50:46 +08:00
Jenkins CI
79c43b83af ci: bump module versions [sdk-core,sdk-update,sdk-license] 2026-05-23 04:26:00 +08:00
XuqmGroup
60a7064eb2 ci: support independent versioning per SDK module
- Add per-module version properties in gradle.properties
  (SDK_CORE_VERSION, SDK_LICENSE_VERSION, etc.)
- Jenkinsfile bumps only selected modules independently
- Print published module versions in post-build success step

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 04:23:07 +08:00
XuqmGroup
db3ec3d377 fix: auto-init XuqmSDK via ContentProvider; remove packageName from update check; fix Jenkinsfile
- sdk-core: add XuqmInitializerProvider for auto-init at app startup
- sdk-core: register provider in AndroidManifest.xml
- sdk-license: remove duplicate XuqmSDK init from LicenseInitializerProvider
- sdk-update: awaitInitialization() now uses requireInit() directly (no 30s polling)
- Jenkinsfile: replace Windows external commands (findstr/powershell) with Groovy readFile/writeFile

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 04:11:32 +08:00
Jenkins CI
87ef2bf104 ci: bump PUBLISH_VERSION to 1.0.5 2026-05-23 02:05:50 +08:00
XuqmGroup
68fc6d9edd chore(ci): remove debug logging from version bump
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 02:04:11 +08:00
XuqmGroup
b3114ba522 fix(ci): push detached HEAD to main, sync version to 1.0.4
- Use `git push origin HEAD:main` instead of `git push origin main`
  because Jenkins checks out a specific commit (detached HEAD)
- Sync gradle.properties to 1.0.4 (already published to Nexus)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 02:04:01 +08:00
XuqmGroup
e1521ea7ec debug(ci): use cmd findstr to read version, add debug output
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 02:01:39 +08:00
XuqmGroup
2c8814c5e6 debug(ci): add debug logging for version bump, use if/else instead of switch
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 02:01:26 +08:00
XuqmGroup
883a623505 fix(ci): explicit ASCII encoding for version read, git checkout main
- Force ASCII output encoding in PowerShell to avoid hidden chars
- Add git checkout main before commit to avoid detached HEAD
- Simplify version reading command

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 02:01:14 +08:00
XuqmGroup
24b7abb361 fix(ci): use Groovy readProperties for version, add git pull before push
- Replace PowerShell-based version reading with Groovy's readProperties
  and readFile/writeFile to avoid encoding issues causing "1.0.3→1.0.3"
- Add git pull --rebase before push to handle non-fast-forward rejections

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 01:57:14 +08:00
XuqmGroup
c60bc15a93 fix(ci): fix version bump and git push
- Strip \r\n from PowerShell output to fix version parsing
  (was causing "1.0.3 → 1.0.3" instead of "1.0.3 → 1.0.4")
- Remove gitlab-credentials dependency, use git remote URL
  which already has the access token embedded

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 01:54:28 +08:00
XuqmGroup
cff30338b2 chore: sync PUBLISH_VERSION to 1.0.3 (matches Nexus)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 01:51:41 +08:00
XuqmGroup
086900cd26 fix(ci): commit version bump back to git after publish
The Jenkinsfile bumped PUBLISH_VERSION during the run but never
committed the change, causing every run to start from the same
base version. Now commits gradle.properties back to main after
successful Nexus publish.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 01:51:00 +08:00
XuqmGroup
4fcaba3338 ci: remove unit tests, simplify publish stages
Remove RUN_TESTS parameter and Unit Tests stage.
Publish SPM and CocoaPods are now the only publish paths.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 01:42:32 +08:00
XuqmGroup
c103178d77 fix(ci): 模块复选框默认不勾选,需手动选择 2026-05-23 01:36:40 +08:00
XuqmGroup
0dd1cb297c refactor(ci): 移除自定义版本号功能,仅保留自动升级 2026-05-23 01:34:53 +08:00
XuqmGroup
2247c1146e fix(ci): 修复凭据ID、Windows兼容性和post块上下文 2026-05-23 01:30:53 +08:00
XuqmGroup
141f5e3e30 feat(ci): 模块选择改为复选框,每个模块独立勾选 2026-05-23 01:28:41 +08:00
XuqmGroup
0bce3d4b0b fix(ci): 修复 choice 参数语法,使用 choices 数组 2026-05-23 01:25:10 +08:00
XuqmGroup
998e5384ff chore(ci): 更新 Jenkins 配置以支持多模块版本管理
- 为 Android、Flutter、iOS 和 RN SDK 的 Jenkinsfile 添加模块化版本控制
- 引入版本升级策略选择(major/minor/patch)和自定义版本号功能
- 实现多模块独立版本管理和选择性构建发布
- 更新 iOS SDK Package.swift 以支持独立模块化库
- 修改 iOS SDK podspec 文件以适应新的标签命名约定
- 优化 Jenkins 构建流程以支持按需选择特定模块进行构建和发布
- 修复 iOS 测试中的可选类型转换问题以提高代码健壮性
2026-05-23 01:20:57 +08:00
XuqmGroup
eb27e8f112 feat(sdk-license): client-side package name validation
Package name matching is now done entirely in the SDK before any network call:
- License file flow (tryAutoInitialize): compare licenseFile.packageName with
  context.packageName; refuse initialization if mismatch
- appKey-only flow (checkLicense): fetch GET /api/license/app-info and compare
  configured package names locally before register/verify
- LicenseConfig: add fromLicenseFile flag to distinguish the two flows
- LicenseModels: add AppInfoResponse with matchesPackageName helper
- LicenseApiService: add getAppInfo() endpoint

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 00:30:00 +08:00