Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3e90c086
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
3e90c086
编写于
7月 05, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 05, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4071 增加窗口属性测试用例
Merge pull request !4071 from shilei91/master
上级
1ecee5c1
327a45c7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
584 addition
and
4 deletion
+584
-4
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/List.test.ets
...undlemanageretstest/entry/src/main/ets/test/List.test.ets
+2
-0
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getWindowProperties.test.ets
...test/entry/src/main/ets/test/getWindowProperties.test.ets
+406
-0
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/module.json
...r/sceneProject/bmsstagedemoone/entry/src/main/module.json
+88
-2
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/module.json
...r/sceneProject/bmsstagedemotwo/entry/src/main/module.json
+88
-2
未找到文件。
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/List.test.ets
浏览文件 @
3e90c086
...
...
@@ -25,6 +25,7 @@ import queryExtensionAbilityInfos from "./QueryExtensionAbilityInfos.test.ets";
import getBundleArchiveInfo from "./getBundleArchiveInfo.test.ets";
import getQueryAbilityByWant from './GetQueryAbilityByWant.test.ets';
import isDefaultApplicationTest from './IsDefaultApplication.test.ets';
import getWindowPorperties from './getWindowProperties.test.ets';
export default function testsuite() {
getBundleArchiveInfo();
...
...
@@ -44,4 +45,5 @@ export default function testsuite() {
//RM.017
isAbilityEnableETSUnit();
isApplicationEnabledETSUnit();
getWindowPorperties();
}
\ No newline at end of file
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getWindowProperties.test.ets
0 → 100755
浏览文件 @
3e90c086
/**
* 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 bundle from '@ohos.bundle';
import { describe, beforeAll, it, expect } from 'hypium/index';
const BUNDLE_NAME = "ohos.acts.bundle.stage"
const ABILITY_NAME = "MainAbility"
const MODUEL_NAME = "myfeature"
const ABILITY_NAME_TEST_1 = "MainAbility1"
const ABILITY_NAME_TEST_2 = "MainAbility2"
const ABILITY_NAME_TEST_3 = "MainAbility3"
const ABILITY_NAME_TEST_4 = "MainAbility4"
const ABILITY_NAME_TEST_5 = "MainAbility5"
const ABILITY_NAME_TEST_6 = "MainAbility6"
const ABILITY_NAME_TEST_7 = "MainAbility7"
const ABILITY_NAME_TEST_8 = "MainAbility8"
const ABILITY_NAME_TEST_9 = "MainAbility9"
const ABILITY_NAME_TEST_10 = "MainAbility10"
const ABILITY_NAME_TEST_11 = "MainAbility11"
const ABILITY_NAME_TEST_12 = "MainAbility12"
const ORIENTATION = "orientation"
const UNSPECIFIED = 0
const LANDSCAPE = 1
const PORTRAIT = 2
const LANDSCAPE_INVERTED = 4
const PORTRAIT_INVERTED = 5
const AUTO_ROTATION = 6
const AUTO_ROTATION_LANDSCAPE = 7
const AUTO_ROTATION_PORTRAIT = 8
const AUTO_ROTATION_RESTRICTED = 9
const AUTO_ROTATION_LANDSCAPE_RESTRICTED = 10
const AUTO_ROTATION_PORTRAIT_RESTRICTED = 11
const LOCKED = 12
const DEFAULT_VALUE = 0
const MAX_WINDOW_RATIO_VALUE = 3.5
const MIN_WINDOW_RATIO_VALUE = 0.5
const MAX_WINDOW_WIDTH_VALUE = 2560
const MIN_WINDOW_WIDTH_VALUE = 1400
const MAX_WINDOW_HEIGHT_VALUE = 300
const MIN_WINDOW_HEIGHT_VALUE = 200
const FULL_SCREEN_WINDOW_MODE = 0
const SPLIT_WINDOW_MODE = 1
const FLOATING_WINDOW_MODE = 2
export default function getWindowPorperties() {
describe('getWindowPorperties', function () {
/**
* @tc.number getOrientation_0100
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation without configuring orientation
*/
it('getOrientation_0100', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME)
expect(datainfo.orientation).assertEqual(UNSPECIFIED)
done();
})
/**
* @tc.number getOrientation_0200
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "unspecified"
*/
it('getOrientation_0200', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_1)
expect(datainfo.orientation).assertEqual(UNSPECIFIED)
done();
})
/**
* @tc.number getOrientation_0300
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "landscape"
*/
it('ggetOrientation_0300', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_2)
expect(datainfo.orientation).assertEqual(LANDSCAPE)
done();
})
/**
* @tc.number getOrientation_0400
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "portrait"
*/
it('getOrientation_0400', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_3)
expect(datainfo.orientation).assertEqual(PORTRAIT)
done();
})
/**
* @tc.number getOrientation_0500
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "landscape_inverted"
*/
it('getOrientation_0500', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_4)
expect(datainfo.orientation).assertEqual(LANDSCAPE_INVERTED)
done();
})
/**
* @tc.number getOrientation_0600
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "portrait_inverted"
*/
it('getOrientation_0600', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_5)
expect(datainfo.orientation).assertEqual(PORTRAIT_INVERTED)
done();
})
/**
* @tc.number getOrientation_0700
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "auto_rotation"
*/
it('getOrientation_0700', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_6)
expect(datainfo.orientation).assertEqual(AUTO_ROTATION)
done();
})
/**
* @tc.number getOrientation_0800
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "auto_rotation_landscape"
*/
it('getOrientation_0800', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_7)
expect(datainfo.orientation).assertEqual(AUTO_ROTATION_LANDSCAPE)
done();
})
/**
* @tc.number getOrientation_0900
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "auto_rotation_portrait"
*/
it('getOrientation_0900', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_8)
expect(datainfo.orientation).assertEqual(AUTO_ROTATION_PORTRAIT)
done();
})
/**
* @tc.number getOrientation_1000
* @tc.name BUNDLE::getOrientation
* @tc.desc TTest window property orientation with configuring orientation as "auto_rotation_restricted"
*/
it('getOrientation_1000', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_9)
expect(datainfo.orientation).assertEqual(AUTO_ROTATION_RESTRICTED)
done();
})
/**
* @tc.number getOrientation_1100
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "auto_rotation_landscape_restricted"
*/
it('getOrientation_1100', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_10)
expect(datainfo.orientation).assertEqual(AUTO_ROTATION_LANDSCAPE_RESTRICTED)
done();
})
/**
* @tc.number getOrientation_1200
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "auto_rotation_portrait_restricted"
*/
it('getOrientation_1200', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_11)
expect(datainfo.orientation).assertEqual(AUTO_ROTATION_PORTRAIT_RESTRICTED)
done();
})
/**
* @tc.number getOrientation_1300
* @tc.name BUNDLE::getOrientation
* @tc.desc Test window property orientation with configuring orientation as "locked"
*/
it('getOrientation_1300', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_12)
expect(datainfo.orientation).assertEqual(LOCKED)
done();
})
/**
* @tc.number getSupportWindowMode_0100
* @tc.name BUNDLE::getSupportWindowMode
* @tc.desc Test window property supportWindowMode without configuring supportWindowMode
*/
it('getSupportWindowMode_0100', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME)
expect(Array.isArray(datainfo.supportWindowMode)).assertTrue();
expect(datainfo.supportWindowMode.length).assertEqual(3)
expect(datainfo.supportWindowMode[0]).assertEqual(FULL_SCREEN_WINDOW_MODE)
expect(datainfo.supportWindowMode[1]).assertEqual(SPLIT_WINDOW_MODE)
expect(datainfo.supportWindowMode[2]).assertEqual(FLOATING_WINDOW_MODE)
done();
})
/**
* @tc.number getSupportWindowMode_0200
* @tc.name BUNDLE::getSupportWindowMode
* @tc.desc Test window property supportWindowMode with configuring supportWindowMode as ["fullscreen"]
*/
it('getSupportWindowMode_0200', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_1)
expect(Array.isArray(datainfo.supportWindowMode)).assertTrue();
expect(datainfo.supportWindowMode.length).assertEqual(1)
expect(datainfo.supportWindowMode[0]).assertEqual(FULL_SCREEN_WINDOW_MODE)
done();
})
/**
* @tc.number getSupportWindowMode_0300
* @tc.name BUNDLE::getSupportWindowMode
* @tc.desc Test window property supportWindowMode with configuring supportWindowMode as ["split"]
*/
it('getSupportWindowMode_0300', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_2)
expect(Array.isArray(datainfo.supportWindowMode)).assertTrue();
expect(datainfo.supportWindowMode.length).assertEqual(1)
expect(datainfo.supportWindowMode[0]).assertEqual(SPLIT_WINDOW_MODE)
done();
})
/**
* @tc.number getSupportWindowMode_0400
* @tc.name BUNDLE::getSupportWindowMode
* @tc.desc Test window property supportWindowMode with configuring supportWindowMode as ["floating"]
*/
it('getSupportWindowMode_0400', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_3)
expect(Array.isArray(datainfo.supportWindowMode)).assertTrue();
expect(datainfo.supportWindowMode.length).assertEqual(1)
expect(datainfo.supportWindowMode[0]).assertEqual(FLOATING_WINDOW_MODE)
done();
})
/**
* @tc.number getSupportWindowMode_0500
* @tc.name BUNDLE::getSupportWindowMode
* @tc.desc Test window property supportWindowMode with configuring supportWindowMode as
["fullscreen", "split", "floating"]
*/
it('getSupportWindowMode_0500', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_4)
expect(Array.isArray(datainfo.supportWindowMode)).assertTrue();
expect(datainfo.supportWindowMode.length).assertEqual(3)
expect(datainfo.supportWindowMode[0]).assertEqual(FULL_SCREEN_WINDOW_MODE)
expect(datainfo.supportWindowMode[1]).assertEqual(SPLIT_WINDOW_MODE)
expect(datainfo.supportWindowMode[2]).assertEqual(FLOATING_WINDOW_MODE)
done();
})
/**
* @tc.number getMaxWindowRatio_0100
* @tc.name BUNDLE::getMaxWindowRatio
* @tc.desc Test window property maxWindowRatio without configuring maxWindowRatio
*/
it('getMaxWindowRatio_0100', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME)
expect(datainfo.maxWindowRatio).assertEqual(DEFAULT_VALUE);
done();
})
/**
* @tc.number getMaxWindowRatio_0200
* @tc.name BUNDLE::getMaxWindowRatio
* @tc.desc Test window property maxWindowRatio with configuring maxWindowRatio as 3.5
*/
it('getMaxWindowRatio_0200', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_5)
expect(datainfo.maxWindowRatio).assertEqual(MAX_WINDOW_RATIO_VALUE);
done();
})
/**
* @tc.number getMinWindowRatio_0100
* @tc.name BUNDLE::getMinWindowRatio
* @tc.desc Test window property minWindowRatio without configuring minWindowRatio
*/
it('getMinWindowRatio_0100', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME)
expect(datainfo.minWindowRatio).assertEqual(DEFAULT_VALUE);
done();
})
/**
* @tc.number getMinWindowRatio_0200
* @tc.name BUNDLE::getMinWindowRatio
* @tc.desc est window property minWindowRatio with configuring minWindowRatio as 0.5
*/
it('getMinWindowRatio_0200', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_6)
expect(datainfo.minWindowRatio).assertEqual(MIN_WINDOW_RATIO_VALUE);
done();
})
/**
* @tc.number getMaxWindowWidth_0100
* @tc.name BUNDLE::getMaxWindowWidth
* @tc.desc Test window property maxWindowWidth without configuring maxWindowWidth
*/
it('getMaxWindowWidth_0100', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME)
expect(datainfo.maxWindowWidth).assertEqual(DEFAULT_VALUE);
done();
})
/**
* @tc.number getMaxWindowWidth_0200
* @tc.name BUNDLE::getMaxWindowWidth
* @tc.desc Test window property maxWindowWidth with configuring maxWindowWidth as 2560
*/
it('getMaxWindowWidth_0200', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_7)
expect(datainfo.maxWindowWidth).assertEqual(MAX_WINDOW_WIDTH_VALUE);
done();
})
/**
* @tc.number getMinWindowWidth_0100
* @tc.name BUNDLE::getMinWindowWidth
* @tc.desc Test window property minWindowWidth without configuring minWindowWidth
*/
it('getMinWindowWidth_0100', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME)
expect(datainfo.minWindowWidth).assertEqual(DEFAULT_VALUE);
done();
})
/**
* @tc.number getMinWindowWidth_0200
* @tc.name BUNDLE::getMinWindowWidth
* @tc.desc Test window property minWindowWidth with configuring minWindowWidth as 1400
*/
it('getMinWindowWidth_0200', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_8)
expect(datainfo.minWindowWidth).assertEqual(MIN_WINDOW_WIDTH_VALUE);
done();
})
/**
* @tc.number getMaxWindowHeight_0100
* @tc.name BUNDLE::getMaxWindowHeight
* @tc.desc Test window property maxWindowHeight without configuring maxWindowHeight
*/
it('getMaxWindowHeight_0100', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME)
expect(datainfo.maxWindowHeight).assertEqual(DEFAULT_VALUE);
done();
})
/**
* @tc.number getMaxWindowHeight_0200
* @tc.name BUNDLE::getMaxWindowHeight
* @tc.desc Test window property maxWindowHeight with configuring maxWindowHeight as 300
*/
it('getMaxWindowHeight_0200', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_9)
expect(datainfo.maxWindowHeight).assertEqual(MAX_WINDOW_HEIGHT_VALUE);
done();
})
/**
* @tc.number getMinWindowHeight_0100
* @tc.name BUNDLE::getMinWindowHeight
* @tc.desc Test window property minWindowHeight without configuring minWindowHeight
*/
it('getMinWindowHeight_0100', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME)
expect(datainfo.minWindowHeight).assertEqual(DEFAULT_VALUE);
done();
})
/**
* @tc.number getMinWindowHeight_0200
* @tc.name BUNDLE::getMinWindowHeight
* @tc.desc Test window property minWindowHeight with configuring minWindowHeight as 200
*/
it('getMinWindowHeight_0200', 0, async function (done) {
let datainfo = await bundle.getAbilityInfo(BUNDLE_NAME, MODUEL_NAME, ABILITY_NAME_TEST_10)
expect(datainfo.minWindowHeight).assertEqual(MIN_WINDOW_HEIGHT_VALUE);
done();
})
})
}
\ No newline at end of file
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/module.json
浏览文件 @
3e90c086
...
...
@@ -31,7 +31,94 @@
]
}
]
}
},
{
"name"
:
"MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
},
{
"name"
:
"MainAbility1"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"unspecified"
,
"supportWindowMode"
:
[
"fullscreen"
]
},
{
"name"
:
"MainAbility2"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"landscape"
,
"supportWindowMode"
:
[
"split"
]
},
{
"name"
:
"MainAbility3"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"portrait"
,
"supportWindowMode"
:
[
"floating"
]
},
{
"name"
:
"MainAbility4"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"landscape_inverted"
,
"supportWindowMode"
:
[
"fullscreen"
,
"split"
,
"floating"
]
},
{
"name"
:
"MainAbility5"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"portrait_inverted"
,
"maxWindowRatio"
:
3.5
},
{
"name"
:
"MainAbility6"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation"
,
"minWindowRatio"
:
0.5
},
{
"name"
:
"MainAbility7"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation_landscape"
,
"maxWindowWidth"
:
2560
},
{
"name"
:
"MainAbility8"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation_portrait"
,
"minWindowWidth"
:
1400
},
{
"name"
:
"MainAbility9"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation_restricted"
,
"maxWindowHeight"
:
300
},
{
"name"
:
"MainAbility10"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation_landscape_restricted"
,
"minWindowHeight"
:
200
},
{
"name"
:
"MainAbility11"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation_portrait_restricted"
},
{
"name"
:
"MainAbility12"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"locked"
}
],
"extensionAbilities"
:
[
{
...
...
@@ -134,6 +221,5 @@
]
}
]
}
}
bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/module.json
浏览文件 @
3e90c086
...
...
@@ -31,7 +31,94 @@
]
}
]
}
},
{
"name"
:
"MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
},
{
"name"
:
"MainAbility1"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"unspecified"
,
"supportWindowMode"
:
[
"fullscreen"
]
},
{
"name"
:
"MainAbility2"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"landscape"
,
"supportWindowMode"
:
[
"split"
]
},
{
"name"
:
"MainAbility3"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"portrait"
,
"supportWindowMode"
:
[
"floating"
]
},
{
"name"
:
"MainAbility4"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"landscape_inverted"
,
"supportWindowMode"
:
[
"fullscreen"
,
"split"
,
"floating"
]
},
{
"name"
:
"MainAbility5"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"portrait_inverted"
,
"maxWindowRatio"
:
3.5
},
{
"name"
:
"MainAbility6"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation"
,
"minWindowRatio"
:
0.5
},
{
"name"
:
"MainAbility7"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation_landscape"
,
"maxWindowWidth"
:
2560
},
{
"name"
:
"MainAbility8"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation_portrait"
,
"minWindowWidth"
:
1400
},
{
"name"
:
"MainAbility9"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation_restricted"
,
"maxWindowHeight"
:
300
},
{
"name"
:
"MainAbility10"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation_landscape_restricted"
,
"minWindowHeight"
:
200
},
{
"name"
:
"MainAbility11"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"auto_rotation_portrait_restricted"
},
{
"name"
:
"MainAbility12"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"startWindowIcon"
:
"$media:icon"
,
"orientation"
:
"locked"
}
],
"extensionAbilities"
:
[
{
...
...
@@ -127,6 +214,5 @@
"permissions"
:
[
"ohos.permission.GET_BUNDLE_INFO"
]
}
]
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录