fluttertpc_flutter_sms:基于 Flutter 的短信发送插件项目

基于 flutter_sms 的 OpenHarmony 适配版,用于发送短信的插件

分支2Tags3
文件最后提交记录最后更新时间
4 个月前
4 年前
3 年前
1 年前
6 年前
4 年前
2 年前
7 年前
6 年前
7 年前
2 年前
7 年前
1 个月前
4 年前
1 年前
7 年前
3 个月前
1 个月前
1 个月前
1 年前
4 年前
2 个月前
4 个月前
6 年前
2 年前

模板版本: v0.0.1

flutter_sms

本项目基于 flutter_sms 开发。

1. 安装与使用

1.1 安装方式

进入到工程目录并在 pubspec.yaml 中添加以下依赖:

pubspec.yaml

...

dependencies:
  flutter_sms:
    git:
      url: https://gitcode.com/CPF-Flutter/fluttertpc_flutter_sms.git
      # ref: 2.3.3-ohos-1.0.0
      ref: TAG   # 请根据下方TAG版本对应表选择TAG
...

执行命令

flutter pub get

TAG 版本对应表

Flutter 框架版本 TAG 分支
3.7 2.3.3-ohos-1.0.0 master
3.22 2.3.3-ohos-1.0.0 master
3.27 2.3.3-ohos-1.0.0 master
3.35 2.3.3-ohos-1.0.0 master

1.2 使用案例

使用案例详见 ohos/example

2. 约束与限制

2.1 兼容性

在以下版本中已测试通过

  1. Flutter: 3.7.12-ohos-1.0.6; SDK: 5.0.0(12); IDE: DevEco Studio: 5.0.13.200; ROM: 5.1.0.120 SP3;
  2. Flutter: 3.22.1-ohos-1.0.1; SDK: 5.0.0(12); IDE: DevEco Studio: 5.0.13.200; ROM: 5.1.0.120 SP3;
  3. Flutter: 3.27.5-ohos-1.0.1; SDK: 5.0.0(12); IDE: DevEco Studio: 5.0.13.200; ROM: 5.1.0.120 SP3;
  4. Flutter: 3.35.8-ohos-0.0.1; SDK: 6.0.1(21); IDE: DevEco Studio: 6.0.1.260; ROM: 6.0.0.120 SP6;

3. API

"ohos Support"列为 yes 表示 ohos 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。

Name Description Type Input Output ohos Support
sendSMS Open SMS Dialog on ohos fuction {required String message,required List recipients,bool sendDirect = false} Future yes
launchSms Launch SMS Url Scheme for single recipien fuction {String? message,String? number} Future yes
launchSmsMulti Launch SMS Url Scheme for multiple recipients function {required String message,required List numbers} Future yes
canSendSMS Check if you can send SMS on this platform fuction / Future yes

4. 遗留问题

5. 其他

6. 开源协议

本项目基于 The MIT License (MIT) ,请自由地享受和参与开源。

项目介绍

基于 flutter_sms 的 OpenHarmony 适配版,用于发送短信的插件

定制我的领域