分布式应用适配

Signed-off-by: yeyedeshen <yangxin181@huawei.com>
This commit is contained in:
yeyedeshen 2024-04-16 15:44:00 +08:00
parent d9ca9d1a08
commit a7d786d98d
8 changed files with 8 additions and 0 deletions

View File

@ -170,6 +170,7 @@ export class RemoteDeviceModel {
continue;
};
let bindParam = {
bindLevel: 3,
bindType: 1,
targetPkgName: 'ohos.samples.distributeddatagobang',
appName: 'distributeddatagobang',

View File

@ -251,6 +251,7 @@ export class RemoteDeviceModel {
try {
if (this.deviceManager !== undefined) {
this.deviceManager.bindTarget(device.deviceId, {
bindLevel: 3,
bindType: 1,
targetPkgName: BUNDLE_NAME,
appName: 'Distributed distributecalc',

View File

@ -148,6 +148,7 @@ export class RemoteDeviceModel {
if (this.discoverLists[i].deviceId === device.deviceId) {
Logger.info(TAG, 'device founded, ignored');
let bindParam = {
bindLevel: 3,
bindType: 1,
targetPkgName: 'ohos.samples.distributedmusicplayer',
appName: 'Music',

View File

@ -218,6 +218,7 @@ export default class RemoteDeviceModel {
'extraInfo': extraInfo
}
let bindParam = {
"bindLevel": 3,
"bindType": 1,
"appName": 'Distributed Calc',
"targetPkgName": 'ohos.samples.distributedcalc',

View File

@ -202,6 +202,7 @@ class RemoteDeviceModel {
try {
if (this.deviceManager !== null) {
this.deviceManager.bindTarget(device.deviceId, {
bindLevel: 3,
bindType: 1,
targetPkgName: BUNDLE,
appName: 'Distributed rdb',

View File

@ -211,6 +211,7 @@ class RemoteDeviceModel {
try {
if (this.deviceManager !== null) {
this.deviceManager.bindTarget(device.deviceId, {
bindLevel: 3,
bindType: 1,
targetPkgName: BUNDLE,
appName: 'Distributed distributedrdb',

View File

@ -158,6 +158,7 @@ export default class RemoteDeviceModel {
try {
if (this.deviceManager !== null) {
this.#deviceManager.bindTarget(deviceId, {
bindLevel: 3,
bindType: 1,
targetPkgName: 'ohos.samples.distributedmusicplayer',
appName: 'Music',

View File

@ -217,6 +217,7 @@ export class RemoteDeviceModel {
try {
if (this.deviceManager !== null) {
this.deviceManager.bindTarget(device.deviceId, {
bindLevel: 3,
bindType: 1,
targetPkgName: 'ohos.samples.kvstore',
appName: 'Distributed kvstore',