Repository navigation
增加一些功能 - #240
Merged
Merged
增加一些功能#240
Conversation
CoderEYLee
commented
Oct 20, 2026
Contributor
- 增加鸿蒙支持
- 完善外观和页面回调
- 扩大点击区域
- 修改登录提示
- 检查失败也设置监听
- 三方登录去掉灰色色块
- 变更: 接入阿里云号码认证 HarmonyOS SDK 2.0.21,实现初始化、预取号、登录、Token 与 UI 事件回调 - 变更: 新增 OHOS 插件及 example HAP 工程,沿用现有 MethodChannel/EventChannel 协议 - 兼容: 增加 ohosSk 并调整 Dart 3.6 依赖约束,保持 Android/iOS 原生实现不变 - 验证: flutter test --no-pub;flutter analyze --no-pub(仅一条 avoid_print info);Hvigor assembleHap 构建成功
- 扩展按钮背景色、圆角和 Semibold 配置,支持宿主昼夜授权页设计 - Android 增加隐藏导航后的自定义关闭入口,修正按钮三态映射并使用 SDK 字体接口 - iOS 应用协议边距、底部定位和按钮字重 - HarmonyOS 装配背景、Logo、关闭及其他登录方式组件,完善取消与切换回调 - 验证:宿主应用 595 项测试通过,Android Mi 10 昼夜外观、主题切换后首次打开及取消/其他方式入口已走查 - 三端构建记录和 iOS/HarmonyOS 尚待真机目视验收的边界见宿主设计验收文档
新增可选的切换按钮尺寸与淡入淡出配置,Android 使用原生按钮提供稳定点击区域和按下反馈,iOS 同步按钮尺寸与动画。 从宿主 Activity 拉起 Android 授权页,修正 SDK 退出动画参数顺序,并保留用户取消或切换登录方式后的 SDK 可用状态。 验证:宿主 Android Profile 与 iOS 无签名构建通过;Mi 10 昼夜主题快速首点及边缘点击 10/10 次成功,切换与返回流程真机通过。
- 每次预取号成功后读取 SDK 当前上网卡运营商,并保留提示字体和颜色 - 未识别到运营商时使用通用文案,继续兼容显式传入的自定义提示 - 保留初始化配置,避免后续 login 调用覆盖自定义提示及授权选项 - Android 和鸿蒙保持 SDK 原生运营商展示与现有接口 - 验证: SDK 测试通过;应用内同步源码的 iOS 认证插件编译通过
环境检查失败会把 AuthListener 置空,再次 checkEnvAvailable 收不到结果。
Contributor
Author
|
其中 example/lib/config_editor_page.dart 这个文件只是简单的解决了一下冲突 |
Owner
|
挂了鸿蒙会影响现有的安卓用户吗,开发环境需要修改吗?我这没有鸿蒙测试环境所以一直没有出,非常感谢你做出的贡献 |
Contributor
Author
鸿蒙的适配不是我这边做的,是由其他人做的, 看提交日志就知道了,你那边不是有安卓的环境吗?运行一下就知道了,我这边测试没有啥问题 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.