From 6f75b249e57bfa5c618813e8e9f5ea383568eaed Mon Sep 17 00:00:00 2001 From: leiliufc Date: Fri, 21 Feb 2025 16:21:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0OpenHarmony=E9=80=82=E9=85=8D?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: leiliufc --- OAT.xml | 84 ++++++++++++++++++ example/lib/pages/connect.dart | 2 +- example/lib/pages/prejoin.dart | 4 +- example/lib/widgets/controls.dart | 27 +++--- example/ohos/.gitignore | 19 ++++ example/ohos/AppScope/app.json5 | 10 +++ .../resources/base/element/string.json | 8 ++ .../resources/base/media/app_icon.png | Bin 0 -> 6790 bytes example/ohos/build-profile.json5 | 27 ++++++ example/ohos/entry/.gitignore | 7 ++ example/ohos/entry/build-profile.json5 | 11 +++ example/ohos/entry/hvigorfile.ts | 2 + example/ohos/entry/oh-package.json5 | 17 ++++ .../main/ets/entryability/EntryAbility.ets | 9 ++ .../ohos/entry/src/main/ets/pages/Index.ets | 23 +++++ example/ohos/entry/src/main/module.json5 | 39 ++++++++ .../main/resources/base/element/color.json | 8 ++ .../main/resources/base/element/string.json | 16 ++++ .../src/main/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../resources/base/profile/main_pages.json | 5 ++ .../main/resources/en_US/element/string.json | 16 ++++ .../main/resources/zh_CN/element/string.json | 16 ++++ example/ohos/hvigor/hvigor-config.json5 | 5 ++ example/ohos/hvigorfile.ts | 6 ++ example/ohos/oh-package.json5 | 26 ++++++ example/pubspec.yaml | 21 ++++- lib/src/core/room.dart | 5 +- lib/src/support/platform.dart | 3 +- lib/src/support/platform/io.dart | 2 + lib/src/utils.dart | 8 ++ lib/src/widgets/video_track_renderer.dart | 8 ++ ohos/.gitignore | 6 ++ ohos/Index.ets | 3 + ohos/build-profile.json5 | 28 ++++++ ohos/consumer-rules.txt | 0 ohos/hvigorfile.ts | 6 ++ ohos/obfuscation-rules.txt | 18 ++++ ohos/oh-package.json5 | 11 +++ .../ets/io/livekit/plugin/LiveKitPlugin.ets | 49 ++++++++++ ohos/src/main/module.json5 | 10 +++ .../main/resources/base/element/string.json | 8 ++ .../main/resources/en_US/element/string.json | 8 ++ .../main/resources/zh_CN/element/string.json | 8 ++ ohos/src/mock/mock-config.json5 | 2 + ohos/src/test/List.test.ets | 5 ++ ohos/src/test/LocalUnit.test.ets | 33 +++++++ pubspec.yaml | 25 ++++-- 47 files changed, 626 insertions(+), 28 deletions(-) create mode 100644 OAT.xml create mode 100644 example/ohos/.gitignore create mode 100644 example/ohos/AppScope/app.json5 create mode 100644 example/ohos/AppScope/resources/base/element/string.json create mode 100644 example/ohos/AppScope/resources/base/media/app_icon.png create mode 100644 example/ohos/build-profile.json5 create mode 100644 example/ohos/entry/.gitignore create mode 100644 example/ohos/entry/build-profile.json5 create mode 100644 example/ohos/entry/hvigorfile.ts create mode 100644 example/ohos/entry/oh-package.json5 create mode 100644 example/ohos/entry/src/main/ets/entryability/EntryAbility.ets create mode 100644 example/ohos/entry/src/main/ets/pages/Index.ets create mode 100644 example/ohos/entry/src/main/module.json5 create mode 100644 example/ohos/entry/src/main/resources/base/element/color.json create mode 100644 example/ohos/entry/src/main/resources/base/element/string.json create mode 100644 example/ohos/entry/src/main/resources/base/media/icon.png create mode 100644 example/ohos/entry/src/main/resources/base/profile/main_pages.json create mode 100644 example/ohos/entry/src/main/resources/en_US/element/string.json create mode 100644 example/ohos/entry/src/main/resources/zh_CN/element/string.json create mode 100644 example/ohos/hvigor/hvigor-config.json5 create mode 100644 example/ohos/hvigorfile.ts create mode 100644 example/ohos/oh-package.json5 create mode 100644 ohos/.gitignore create mode 100644 ohos/Index.ets create mode 100644 ohos/build-profile.json5 create mode 100644 ohos/consumer-rules.txt create mode 100644 ohos/hvigorfile.ts create mode 100644 ohos/obfuscation-rules.txt create mode 100644 ohos/oh-package.json5 create mode 100644 ohos/src/main/ets/io/livekit/plugin/LiveKitPlugin.ets create mode 100644 ohos/src/main/module.json5 create mode 100644 ohos/src/main/resources/base/element/string.json create mode 100644 ohos/src/main/resources/en_US/element/string.json create mode 100644 ohos/src/main/resources/zh_CN/element/string.json create mode 100644 ohos/src/mock/mock-config.json5 create mode 100644 ohos/src/test/List.test.ets create mode 100644 ohos/src/test/LocalUnit.test.ets diff --git a/OAT.xml b/OAT.xml new file mode 100644 index 0000000..aa8366a --- /dev/null +++ b/OAT.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example/lib/pages/connect.dart b/example/lib/pages/connect.dart index ff0695e..f5d8a48 100644 --- a/example/lib/pages/connect.dart +++ b/example/lib/pages/connect.dart @@ -44,7 +44,7 @@ class _ConnectPageState extends State { void initState() { super.initState(); _readPrefs(); - if (lkPlatformIs(PlatformType.android)) { + if (lkPlatformIs(PlatformType.android) || lkPlatformIs(PlatformType.ohos) ) { _checkPremissions(); } } diff --git a/example/lib/pages/prejoin.dart b/example/lib/pages/prejoin.dart index 2b02c44..d0b9eed 100644 --- a/example/lib/pages/prejoin.dart +++ b/example/lib/pages/prejoin.dart @@ -63,7 +63,9 @@ class _PreJoinPageState extends State { super.initState(); _subscription = Hardware.instance.onDeviceChange.stream.listen(_loadDevices); - Hardware.instance.enumerateDevices().then(_loadDevices); + Future.delayed(const Duration(milliseconds: 100), () { + Hardware.instance.enumerateDevices().then(_loadDevices); + }); } @override diff --git a/example/lib/widgets/controls.dart b/example/lib/widgets/controls.dart index 096a346..0e39041 100644 --- a/example/lib/widgets/controls.dart +++ b/example/lib/widgets/controls.dart @@ -299,7 +299,7 @@ class _ControlsWidgetState extends State { tooltip: 'Unpublish all', ), if (participant.isMicrophoneEnabled()) - if (lkPlatformIs(PlatformType.android)) + if (lkPlatformIs(PlatformType.android) || lkPlatformIs(PlatformType.ohos)) IconButton( onPressed: _disableAudio, icon: const Icon(Icons.mic), @@ -450,18 +450,19 @@ class _ControlsWidgetState extends State { onPressed: () => _toggleCamera(), tooltip: 'toggle camera', ), - if (participant.isScreenShareEnabled()) - IconButton( - icon: const Icon(Icons.monitor_outlined), - onPressed: () => _disableScreenShare(), - tooltip: 'unshare screen (experimental)', - ) - else - IconButton( - icon: const Icon(Icons.monitor), - onPressed: () => _enableScreenShare(), - tooltip: 'share screen (experimental)', - ), + // δ֧ + // if (participant.isScreenShareEnabled()) + // IconButton( + // icon: const Icon(Icons.monitor_outlined), + // onPressed: () => _disableScreenShare(), + // tooltip: 'unshare screen (experimental)', + // ) + // else + // IconButton( + // icon: const Icon(Icons.monitor), + // onPressed: () => _enableScreenShare(), + // tooltip: 'share screen (experimental)', + // ), IconButton( onPressed: _onTapDisconnect, icon: const Icon(Icons.close_sharp), diff --git a/example/ohos/.gitignore b/example/ohos/.gitignore new file mode 100644 index 0000000..6ca13b3 --- /dev/null +++ b/example/ohos/.gitignore @@ -0,0 +1,19 @@ +/node_modules +/oh_modules +/local.properties +/.idea +**/build +/.hvigor +.cxx +/.clangd +/.clang-format +/.clang-tidy +**/.test +*.har +**/BuildProfile.ets +**/oh-package-lock.json5 + +**/src/main/resources/rawfile/flutter_assets/ +**/libs/arm64-v8a/libapp.so +**/libs/arm64-v8a/libflutter.so +**/libs/arm64-v8a/libvmservice_snapshot.so diff --git a/example/ohos/AppScope/app.json5 b/example/ohos/AppScope/app.json5 new file mode 100644 index 0000000..384cab1 --- /dev/null +++ b/example/ohos/AppScope/app.json5 @@ -0,0 +1,10 @@ +{ + "app": { + "bundleName": "io.livekit.plugin.example", + "vendor": "example", + "versionCode": 1000000, + "versionName": "1.0.0", + "icon": "$media:app_icon", + "label": "$string:app_name" + } +} \ No newline at end of file diff --git a/example/ohos/AppScope/resources/base/element/string.json b/example/ohos/AppScope/resources/base/element/string.json new file mode 100644 index 0000000..810f4a3 --- /dev/null +++ b/example/ohos/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "example" + } + ] +} diff --git a/example/ohos/AppScope/resources/base/media/app_icon.png b/example/ohos/AppScope/resources/base/media/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLDVP5+s zy1=_DWG0Y-Jb3t^WXmkr(d9~08k-|#Ly zaNOmT(^9tIb&eb4%CzIT zAm3CUtWSr1t4?h1kk#NBi{U|pJslvME{q|_eS^3En>SOqSxyuN1x;Is@8~m?*>}** znrRFArP!K_52RpX*&JHMR<^lVdm8ypJ}0R(SD(51j;6@ni$6bQ+2XL+R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(eQf3-w>JPl2UJpafrPaL5@2j}%{VE-) zBI%6Qpj*dsdH<;g!S!avA~bv^0E+ zfyJbSjPb+j;J52U)<|cIcntQBI2T#>2;tOxu{%D?kML476AErF(qN9hPva5Nkc@BF zC-tLF@3ZFb%Kpj)M<{)x*l|*Ia@ECeXo2E4h2f!aV=cHAhi_E_mfUth(sM4^hJq7B zQsGWqdZUm9S%F`$nQ*_#NcuD`&)Ek%_s{&^78{9Hm ztri&rYLOxgFdG>O@+XHy z9#;|&vBCPXH5Mon^I`jSuR$&~ZWtyB67ujzFSj!51>#C}C17~TffQ{c-!QFQkTQ%! zIR^b1`zHx|*1GU?tbBx23weFLz5H?y_Q%N&t$}k?w+``2A=aotj0;2v$~AL z{scF-cL{wsdrmPvf#a9OHyYLcwQD4Kcm)`LLwMh4WT~p29f7M!iafJSU`IV}QY5Wa z(n44-9oA}?J{a+ah*@31WTs#&J#o1`H98#6IQf;Wv0N_!);f&9g7o-k(lW5rWnDUR zQBFIRG+X=6NnsI@mxnwm;tf5;_Uxg?jZ8m-m0}&6+DA!qam(p$mN5R})yA_7m$q@| zFEd|dpS595rxQr-n#GjI5i-AhnUE>Cr;jpCqSrD~EwK_DqI^7%3#p5)%T_od!t3SOmH9MyXeeGO2(UQL;ax|x?Ncixmeo1=$ z{-);Au{*tfzOG?KQ~K|ak8-HQ?`Pekhe2WM(8s{xv-p>Zmu_6{G!-oE$7$mY`MOJorI=+mMx?H;`pr!;fVYz?5~yXBACruWB`Ph zZM}90_<^OBxIhyZ9BW$`>6JvO;%VFpqVr8|7t3~AmxYak6?`Pp#c;**_SYmi`&z23 z`p6_~ePvH)C6x-G9$hgL=eVALq`-AiamN>!3~Lxw&{H(b{B(7xSRm6<3<{%{yXiH# zos5Rv1L+8fUKJLo%P>4I&$}y=1.16.0' livekit_client: path: ../ +dependency_overrides: + meta: ^1.11.0 # 临时解决dart-flutter1.2.0版本与flutter-SDK依赖mate版本冲突 + collection: 1.17.1 + path_provider: + git: + url: "https://gitee.com/openharmony-sig/flutter_packages.git" + path: "packages/path_provider/path_provider" + dev_dependencies: flutter_test: sdk: flutter diff --git a/lib/src/core/room.dart b/lib/src/core/room.dart index ff1dd36..8479184 100644 --- a/lib/src/core/room.dart +++ b/lib/src/core/room.dart @@ -907,7 +907,7 @@ extension RoomHardwareManagementMethods on Room { } Future setSpeakerOn(bool speakerOn) async { - if (lkPlatformIs(PlatformType.iOS) || lkPlatformIs(PlatformType.android)) { + if (lkPlatformIs(PlatformType.iOS) || lkPlatformIs(PlatformType.android) || lkPlatformIs(PlatformType.ohos)) { await Hardware.instance.setSpeakerphoneOn(speakerOn); engine.roomOptions = engine.roomOptions.copyWith( defaultAudioOutputOptions: @@ -923,7 +923,8 @@ extension RoomHardwareManagementMethods on Room { Future applyAudioSpeakerSettings() async { if (roomOptions.defaultAudioOutputOptions.speakerOn != null) { if (lkPlatformIs(PlatformType.iOS) || - lkPlatformIs(PlatformType.android)) { + lkPlatformIs(PlatformType.android)|| + lkPlatformIs(PlatformType.ohos)) { await Hardware.instance.setSpeakerphoneOn( roomOptions.defaultAudioOutputOptions.speakerOn!); } diff --git a/lib/src/support/platform.dart b/lib/src/support/platform.dart index 2fcdce7..74be1d1 100644 --- a/lib/src/support/platform.dart +++ b/lib/src/support/platform.dart @@ -22,7 +22,7 @@ PlatformType lkPlatform() => lkPlatformImplementation(); bool lkPlatformIs(PlatformType type) => lkPlatform() == type; bool lkPlatformIsMobile() => - [PlatformType.iOS, PlatformType.android].contains(lkPlatform()); + [PlatformType.iOS, PlatformType.android, PlatformType.ohos].contains(lkPlatform()); bool lkPlatformIsWebMobile() => lkPlatformIsWebMobileImplementation(); @@ -48,6 +48,7 @@ enum PlatformType { android, fuchsia, iOS, + ohos } enum BrowserType { diff --git a/lib/src/support/platform/io.dart b/lib/src/support/platform/io.dart index 303058d..ba4157b 100644 --- a/lib/src/support/platform/io.dart +++ b/lib/src/support/platform/io.dart @@ -23,6 +23,7 @@ PlatformType lkPlatformImplementation() { if (Platform.isLinux) return PlatformType.linux; if (Platform.isIOS) return PlatformType.iOS; if (Platform.isAndroid) return PlatformType.android; + if (Platform.isOhos) return PlatformType.ohos; throw UnsupportedError('Unknown Platform'); } @@ -37,6 +38,7 @@ bool lkE2EESupportedImplementation() { PlatformType.macOS, PlatformType.iOS, PlatformType.android, + PlatformType.ohos, ].contains(lkPlatformImplementation()); } diff --git a/lib/src/utils.dart b/lib/src/utils.dart index a13b902..31bf993 100644 --- a/lib/src/utils.dart +++ b/lib/src/utils.dart @@ -126,6 +126,14 @@ class Utils { deviceModel: info.model, ); + case PlatformType.ohos: + final info = await _deviceInfoPlugin.ohosInfo; + return lk_models.ClientInfo( + os: 'ohos', + osVersion: info.versionId, + deviceModel: info.productModel + ); + case PlatformType.iOS: final info = await _deviceInfoPlugin.iosInfo; String? model = info.utsname.machine; diff --git a/lib/src/widgets/video_track_renderer.dart b/lib/src/widgets/video_track_renderer.dart index 0371313..d08a28f 100644 --- a/lib/src/widgets/video_track_renderer.dart +++ b/lib/src/widgets/video_track_renderer.dart @@ -143,6 +143,10 @@ class _VideoTrackRendererState extends State { mirror: _shouldMirror(), filterQuality: FilterQuality.medium, objectFit: widget.fit, + onRendererUpdated: (data) { + _renderer?.surfaceId = data; + setState(() {}); + }, ); }, ); @@ -164,6 +168,10 @@ class _VideoTrackRendererState extends State { mirror: _shouldMirror(), filterQuality: FilterQuality.medium, objectFit: widget.fit, + onRendererUpdated: (data) { + _renderer?.surfaceId = data; + setState(() {}); + }, ); }, ); diff --git a/ohos/.gitignore b/ohos/.gitignore new file mode 100644 index 0000000..e2713a2 --- /dev/null +++ b/ohos/.gitignore @@ -0,0 +1,6 @@ +/node_modules +/oh_modules +/.preview +/build +/.cxx +/.test \ No newline at end of file diff --git a/ohos/Index.ets b/ohos/Index.ets new file mode 100644 index 0000000..0a781e3 --- /dev/null +++ b/ohos/Index.ets @@ -0,0 +1,3 @@ +import LiveKitPlugin from './src/main/ets/io/livekit/plugin/LiveKitPlugin' + +export default LiveKitPlugin \ No newline at end of file diff --git a/ohos/build-profile.json5 b/ohos/build-profile.json5 new file mode 100644 index 0000000..312d38e --- /dev/null +++ b/ohos/build-profile.json5 @@ -0,0 +1,28 @@ +{ + "apiType": "stageMode", + "buildOption": { + }, + "buildOptionSet": [ + { + "name": "release", + "arkOptions": { + "obfuscation": { + "ruleOptions": { + "enable": true, + "files": [ + "./obfuscation-rules.txt" + ] + }, + "consumerFiles": [ + "./consumer-rules.txt" + ] + } + }, + }, + ], + "targets": [ + { + "name": "default" + } + ] +} diff --git a/ohos/consumer-rules.txt b/ohos/consumer-rules.txt new file mode 100644 index 0000000..e69de29 diff --git a/ohos/hvigorfile.ts b/ohos/hvigorfile.ts new file mode 100644 index 0000000..4218707 --- /dev/null +++ b/ohos/hvigorfile.ts @@ -0,0 +1,6 @@ +import { harTasks } from '@ohos/hvigor-ohos-plugin'; + +export default { + system: harTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ + plugins:[] /* Custom plugin to extend the functionality of Hvigor. */ +} diff --git a/ohos/obfuscation-rules.txt b/ohos/obfuscation-rules.txt new file mode 100644 index 0000000..985b2ae --- /dev/null +++ b/ohos/obfuscation-rules.txt @@ -0,0 +1,18 @@ +# Define project specific obfuscation rules here. +# You can include the obfuscation configuration files in the current module's build-profile.json5. +# +# For more details, see +# https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md + +# Obfuscation options: +# -disable-obfuscation: disable all obfuscations +# -enable-property-obfuscation: obfuscate the property names +# -enable-toplevel-obfuscation: obfuscate the names in the global scope +# -compact: remove unnecessary blank spaces and all line feeds +# -remove-log: remove all console.* statements +# -print-namecache: print the name cache that contains the mapping from the old names to new names +# -apply-namecache: reuse the given cache file + +# Keep options: +# -keep-property-name: specifies property names that you want to keep +# -keep-global-name: specifies names that you want to keep in the global scope \ No newline at end of file diff --git a/ohos/oh-package.json5 b/ohos/oh-package.json5 new file mode 100644 index 0000000..db3207f --- /dev/null +++ b/ohos/oh-package.json5 @@ -0,0 +1,11 @@ +{ + "name": "livekit_client", + "version": "1.0.0", + "description": "Please describe the basic information.", + "main": "Index.ets", + "author": "", + "license": "Apache-2.0", + "dependencies": { + "@ohos/flutter_ohos": "file:../libs/flutter.har" + } +} diff --git a/ohos/src/main/ets/io/livekit/plugin/LiveKitPlugin.ets b/ohos/src/main/ets/io/livekit/plugin/LiveKitPlugin.ets new file mode 100644 index 0000000..5e01fe8 --- /dev/null +++ b/ohos/src/main/ets/io/livekit/plugin/LiveKitPlugin.ets @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2024 SwanLink (Jiangsu) Technology Development Co., LTD. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import { + FlutterPlugin, + FlutterPluginBinding, + MethodCall, + MethodCallHandler, + MethodChannel, + MethodResult +} from '@ohos/flutter_ohos' + +const TAG: string = "LiveKitPlugin"; +const METHOD_CHANEL: string = "livekit_client"; + +export default class LiveKitPlugin implements FlutterPlugin, MethodCallHandler { + private channel: MethodChannel | null = null + + getUniqueClassName(): string { + return TAG; + } + + onAttachedToEngine(binding: FlutterPluginBinding): void { + this.channel = new MethodChannel(binding.getBinaryMessenger(), METHOD_CHANEL); + this.channel.setMethodCallHandler(this); + } + + onDetachedFromEngine(binding: FlutterPluginBinding): void { + this.channel?.setMethodCallHandler(null); + this.channel = null; + } + + onMethodCall(call: MethodCall, result: MethodResult): void { + // no-op for now + result.notImplemented(); + } +} \ No newline at end of file diff --git a/ohos/src/main/module.json5 b/ohos/src/main/module.json5 new file mode 100644 index 0000000..14a056f --- /dev/null +++ b/ohos/src/main/module.json5 @@ -0,0 +1,10 @@ +{ + "module": { + "name": "livekit_client", + "type": "har", + "deviceTypes": [ + "default", + "tablet" + ] + } +} diff --git a/ohos/src/main/resources/base/element/string.json b/ohos/src/main/resources/base/element/string.json new file mode 100644 index 0000000..f51a9c8 --- /dev/null +++ b/ohos/src/main/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "page_show", + "value": "page from package" + } + ] +} diff --git a/ohos/src/main/resources/en_US/element/string.json b/ohos/src/main/resources/en_US/element/string.json new file mode 100644 index 0000000..f51a9c8 --- /dev/null +++ b/ohos/src/main/resources/en_US/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "page_show", + "value": "page from package" + } + ] +} diff --git a/ohos/src/main/resources/zh_CN/element/string.json b/ohos/src/main/resources/zh_CN/element/string.json new file mode 100644 index 0000000..f51a9c8 --- /dev/null +++ b/ohos/src/main/resources/zh_CN/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "page_show", + "value": "page from package" + } + ] +} diff --git a/ohos/src/mock/mock-config.json5 b/ohos/src/mock/mock-config.json5 new file mode 100644 index 0000000..7a73a41 --- /dev/null +++ b/ohos/src/mock/mock-config.json5 @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/ohos/src/test/List.test.ets b/ohos/src/test/List.test.ets new file mode 100644 index 0000000..bb5b5c3 --- /dev/null +++ b/ohos/src/test/List.test.ets @@ -0,0 +1,5 @@ +import localUnitTest from './LocalUnit.test'; + +export default function testsuite() { + localUnitTest(); +} \ No newline at end of file diff --git a/ohos/src/test/LocalUnit.test.ets b/ohos/src/test/LocalUnit.test.ets new file mode 100644 index 0000000..165fc16 --- /dev/null +++ b/ohos/src/test/LocalUnit.test.ets @@ -0,0 +1,33 @@ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; + +export default function localUnitTest() { + describe('localUnitTest', () => { + // Defines a test suite. Two parameters are supported: test suite name and test suite function. + beforeAll(() => { + // Presets an action, which is performed only once before all test cases of the test suite start. + // This API supports only one parameter: preset action function. + }); + beforeEach(() => { + // Presets an action, which is performed before each unit test case starts. + // The number of execution times is the same as the number of test cases defined by **it**. + // This API supports only one parameter: preset action function. + }); + afterEach(() => { + // Presets a clear action, which is performed after each unit test case ends. + // The number of execution times is the same as the number of test cases defined by **it**. + // This API supports only one parameter: clear action function. + }); + afterAll(() => { + // Presets a clear action, which is performed after all test cases of the test suite end. + // This API supports only one parameter: clear action function. + }); + it('assertContain', 0, () => { + // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function. + let a = 'abc'; + let b = 'b'; + // Defines a variety of assertion methods, which are used to declare expected boolean conditions. + expect(a).assertContain(b); + expect(a).assertEqual(a); + }); + }); +} \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index e5c4395..0ab4efd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -28,21 +28,28 @@ dependencies: flutter: sdk: flutter async: ^2.9.0 - collection: '>=1.16.0' - connectivity_plus: ^5.0.0 + connectivity_plus: + git: + url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" + path: "packages/connectivity_plus/connectivity_plus" cryptography: ^2.0.5 fixnum: ^1.0.1 - meta: ^1.8.0 http: '>=0.13.0' logging: ^1.1.0 uuid: '>=3.0.6' synchronized: ^3.0.0+3 protobuf: ^3.0.0 - flutter_webrtc: ^0.9.48+hotfix.1 - device_info_plus: '>=8.0.0' + flutter_webrtc: + git: + url: "https://gitee.com/openharmony-sig/fluttertpc_flutter_webrtc.git" + path: "./" + device_info_plus: + git: + url: "https://gitee.com/openharmony-sig/flutter_plus_plugins.git" + path: "packages/device_info_plus/device_info_plus" js: ^0.6.4 platform_detect: ^2.0.7 - dart_webrtc: ^1.2.0 + dart_webrtc: 1.2.0 sdp_transform: ^0.3.2 dev_dependencies: @@ -58,6 +65,10 @@ import_sorter: ignored_files: # Ignore proto files - \/lib\/src\/proto\/* +dependency_overrides: + meta: ^1.11.0 # 解决dart-flutter1.2.0版本与flutter-SDK依赖mate版本冲突 + collection: 1.17.1 + flutter: plugin: platforms: @@ -73,6 +84,8 @@ flutter: web: pluginClass: LiveKitWebPlugin fileName: livekit_client_web.dart + ohos: + pluginClass: LiveKitPlugin topics: -- Gitee