未验证 提交 99f07a86 编写于 作者: O openharmony_ci 提交者: Gitee

!5331 【dsoftbus】【配置文件修改】

Merge pull request !5331 from 杨启博/master
...@@ -21,6 +21,7 @@ group("communication") { ...@@ -21,6 +21,7 @@ group("communication") {
"bluetooth_profile:ActsBluetoothProFileJsTest", "bluetooth_profile:ActsBluetoothProFileJsTest",
"bluetooth_standard:ActsBluetoothJsTest", "bluetooth_standard:ActsBluetoothJsTest",
"dsoftbus/rpc:ActsRpcJsTest", "dsoftbus/rpc:ActsRpcJsTest",
"dsoftbus/rpc_server:ActsRpcJsServer",
"wifi_p2p:ActsP2PJSTest", "wifi_p2p:ActsP2PJSTest",
"wifi_standard:ActsWifiJSTest", "wifi_standard:ActsWifiJSTest",
] ]
......
# Copyright (C) 2022 Huawei Device 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("//build/ohos_var.gni")
group("communication") {
testonly = true
if (is_standard_system) {
deps = [
"bluetooth_ble:ActsBluetoothBleJsTest",
"bluetooth_on:ActsBluetoothOnJsTest",
"bluetooth_profile:ActsBluetoothProFileJsTest",
"bluetooth_standard:ActsBluetoothJsTest",
"dsoftbus/rpc:ActsRpcJsTest",
"dsoftbus/rpc_server:ActsRpcJsServer",
"wifi_p2p:ActsP2PJSTest",
"wifi_standard:ActsWifiJSTest",
]
} else {
deps = [ "wifi_standard:ActsWifiJSTest" ]
}
}
文件模式从 100755 更改为 100644
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{ {
"test-file-name": [ "test-file-name": [
"ActsRpcHapTest.hap", "ActsRpcHapTest.hap",
"./resource/dsoftbus/ipcserver/entry-release-standard-signed.hap" "./testcases/ActsRpcHapServer.hap"
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
......
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
{ {
"app": { "app": {
"bundleName": "ohos.rpc.test.server", "bundleName": "ohos.rpc.test.server",
"vendor": "rpc", "vendor": "rpc",
"version": { "version": {
"code": 1000000, "code": 1000000,
"name": "1.0.0" "name": "1.0.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 7, "compatible": 7,
"target": 8 "target": 8
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"reqPermissions": [ "reqPermissions": [
{ {
"name": "ohos.permission.DISTRIBUTED_DATASYNC" "name": "ohos.permission.DISTRIBUTED_DATASYNC"
}, },
{ {
"name": "ohos.permission.GET_DISTRIBUTED_DEVICE_INFO" "name": "ohos.permission.GET_DISTRIBUTED_DEVICE_INFO"
}, },
{ {
"name": "ohos.permission.GET_BUNDLE_INFO" "name": "ohos.permission.GET_BUNDLE_INFO"
} }
], ],
"package": "ohos.rpc.test.server", "package": "ohos.rpc.test.server",
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"deviceType": [ "deviceType": [
"phone" "phone"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry", "moduleName": "entry",
"moduleType": "entry", "moduleType": "entry",
"installationFree": false "installationFree": false
}, },
"abilities": [ "abilities": [
{ {
"skills": [ "skills": [
{ {
"entities": [ "entities": [
"entity.system.home" "entity.system.home"
], ],
"actions": [ "actions": [
"action.system.home" "action.system.home"
] ]
} }
], ],
"orientation": "unspecified", "orientation": "unspecified",
"visible": true, "visible": true,
"srcPath": "MainAbility", "srcPath": "MainAbility",
"name": ".MainAbility", "name": ".MainAbility",
"srcLanguage": "js", "srcLanguage": "js",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"formsEnabled": false, "formsEnabled": false,
"label": "$string:entry_MainAbility", "label": "$string:entry_MainAbility",
"type": "page", "type": "page",
"launchType": "standard" "launchType": "standard"
}, },
{ {
"srcPath": "ServiceAbility", "srcPath": "ServiceAbility",
"name": ".ServiceAbility", "name": ".ServiceAbility",
"icon": "$media:icon", "icon": "$media:icon",
"srcLanguage": "js", "srcLanguage": "js",
"description": "$string:serviceability_description", "description": "$string:serviceability_description",
"type": "service", "type": "service",
"visible": true, "visible": true,
"formsEnabled": false "formsEnabled": false
} }
], ],
"js": [ "js": [
{ {
"pages": [ "pages": [
"pages/index/index", "pages/index/index",
"pages/second/second" "pages/second/second"
], ],
"name": ".MainAbility", "name": ".MainAbility",
"window": { "window": {
"designWidth": 720, "designWidth": 720,
"autoDesignWidth": false "autoDesignWidth": false
} }
} }
] ]
} }
} }
\ No newline at end of file
...@@ -14,30 +14,19 @@ ...@@ -14,30 +14,19 @@
*/ */
import router from '@system.router' import router from '@system.router'
import featureAbility from '@ohos.ability.featureAbility';
export default { export default {
data: { data: {
title: "" title: ""
}, },
onInit() { onInit() {
this.grantPermission(); this.title = this.$t('strings.world');
}, },
onclick: function () { onclick: function () {
router.replace({ router.replace({
uri: "pages/second/second" uri: "pages/second/second"
}) })
}, }
grantPermission() {
console.info('Calc[IndexPage] grantPermission')
let context = featureAbility.getContext()
context.requestPermissionsFromUser(['ohos.permission.DISTRIBUTED_DATASYNC'], 666, function (result) {
console.info('Calc[IndexPage] grantPermission,requestPermissionsFromUser,'+result.requestCode)
})
},
} }
/*
* Copyright (c) 2021 Huawei Device 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.
*/
[ZoneTransfer]
ZoneId=1
ReferrerUrl=vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/workbench.html
HostUrl=file:///z%3A/home/yqb/openharmony/master/test/xts/acts/communication/dsoftbus/rpc_server/Test.json
{ {
"string": [ "string": [
{ {
"name": "entry_MainAbility", "name": "entry_MainAbility",
"value": "RpcServer" "value": "RpcServer"
}, },
{ {
"name": "mainability_description", "name": "mainability_description",
"value": "JS_Empty Ability" "value": "JS_Empty Ability"
}, },
{ {
"name": "serviceability_description", "name": "serviceability_description",
"value": "hap sample empty service" "value": "hap sample empty service"
} }
] ]
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册