SDK Version upgrade

Signed-off-by: qian-nan-xu <xuqiannan@huawei.com>
This commit is contained in:
qian-nan-xu 2022-04-25 10:40:23 +08:00
parent dc2fbf1eec
commit cfdb97ff6e
11 changed files with 85 additions and 83 deletions

View File

@ -18,10 +18,10 @@
{
"name": "default",
"material": {
"storePassword": "0000001CC3BE691AB199070ED562DB03338CBA0946680428C3F19D83D67AEDF21600DC81465FB184AF81BB20",
"storePassword": "",
"certpath": "signature/OpenHarmony.cer",
"keyAlias": "OpenHarmony Application Profile Release",
"keyPassword": "000000162E9AB177D8767B53401B9444E3E1E6EDDECCAA600359164ADA36F1CAF44FCE05D765",
"keyPassword": "",
"profile": "signature/com_ohos_Callui.p7b",
"signAlg": "SHA256withECDSA",
"storeFile": "signature/OpenHarmony.p12"

View File

@ -2,16 +2,21 @@
"app": {
"bundleName": "com.ohos.callui",
"vendor": "ohos",
"singleton": true,
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {},
"deviceConfig": {
"default": {
"keepAlive": true
}
},
"module": {
"package": "com.ohos.callui",
"name": ".MyApplication",
"mainAbility": ".MainAbility",
"mainAbility": ".ServiceAbility",
"srcPath": "",
"deviceType": [
"phone",

View File

@ -99,23 +99,14 @@ import dataStorage from '@ohos.data.storage';
## 4. 签名打包
### 4.1 签名
#### 4.1.1 签名文件的获取
* 拷贝OpenHarmony/signcenter_tool/key文件下的OpenHarmony.p12到工程的signature文件夹下
* 拷贝OpenHarmony/signcenter_tool/certificates文件下的OpenHarmonyApplication.pem文件并将其后缀名.pem改为.cer然后放到工程的signature文件夹下
#### 4.1.2 签名文件的配置
1打开项目工程选择 File → Project Structure
![](../doc/image/signature_1.png)
2选择 Project → Signing Configs将对应的签名文件配置如下找到上述复制文件的路径依次填入下图中完成后点击Apply再点击OK
2选择 Project → Signing Configs添加StorePassword123456abcdefKeyPassword123456
依次填入下图中完成后点击Apply再点击OK
![](../doc/image/signature_2.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 127 KiB

View File

@ -2,6 +2,7 @@
"app": {
"bundleName": "com.ohos.callui",
"vendor": "ohos",
"singleton": true,
"version": {
"code": 1000000,
"name": "1.0.0"

View File

@ -35,77 +35,87 @@ struct Index {
build() {
Column() {
GridContainer({ gutter: 12, margin: 12 }) {
List() {
ListItem() {
Row() {
Image($r("app.media.ic_back"))
.height(24)
.width(24)
.margin({ top:2, bottom: 2, right: 16 })
.onClick(() => {
router.back()
})
Column() {
List() {
ListItem() {
Row() {
Image($r("app.media.ic_back"))
.height(24)
.width(24)
.margin({ top: 2, bottom: 2, right: 16 })
.onClick(() => {
router.back()
})
Text($r("app.string.mobile_data"))
.height(28)
.lineHeight(28)
.fontSize(20)
.fontWeight(FontWeight.Medium)
.fontColor('#182431')
}
.width("100%")
.height(56)
.padding({ left: 24, top: 14, bottom: 14 })
.margin({ bottom: 8 })
}
ListItem() {
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) {
Column() {
Text($r("app.string.mobile_data"))
.height(22)
.fontSize(16)
.height(28)
.lineHeight(28)
.fontSize(20)
.fontWeight(FontWeight.Medium)
.fontColor('#182431')
.margin({ bottom: 2 })
Text($r("app.string.mobile_data_charges"))
.height(19)
.fontSize(14)
.fontWeight(FontWeight.Regular)
.fontColor('#182431')
.opacity(0.6)
}
.margin({ left: 12 })
.alignItems(HorizontalAlign.Start)
Toggle({ type: ToggleType.Switch, isOn: this.isDataEnable })
.onChange((isOn: boolean) => {
if (isOn) {
telephonyData.enableCellularData()
.then((data) => {})
.catch((error) => {});
} else {
telephonyData.disableCellularData()
.then((data) => {})
.catch((error) => {});
}
})
.height(20)
.width(36)
.margin({ right: 12 })
.width("100%")
.height(56)
.padding({ left: 24, top: 14, bottom: 14 })
.margin({ bottom: 8 })
}
ListItem() {
Flex({
direction: FlexDirection.Row,
alignItems: ItemAlign.Center,
justifyContent: FlexAlign.SpaceBetween
}) {
Column() {
Text($r("app.string.mobile_data"))
.height(22)
.fontSize(16)
.fontWeight(FontWeight.Medium)
.fontColor('#182431')
.margin({ bottom: 2 })
Text($r("app.string.mobile_data_charges"))
.height(19)
.fontSize(14)
.fontWeight(FontWeight.Regular)
.fontColor('#182431')
.opacity(0.6)
}
.margin({ left: 12 })
.alignItems(HorizontalAlign.Start)
Toggle({ type: ToggleType.Switch, isOn: this.isDataEnable })
.onChange((isOn: boolean) => {
if (isOn) {
telephonyData.enableCellularData()
.then((data) => {
})
.catch((error) => {
});
} else {
telephonyData.disableCellularData()
.then((data) => {
})
.catch((error) => {
});
}
})
.height(20)
.width(36)
.margin({ right: 12 })
}
.height(72)
.width('100%')
.backgroundColor('#FFFFFF')
.borderRadius(25)
}
.height(72)
.width('100%')
.backgroundColor('#FFFFFF')
.borderRadius(25)
}
}
.useSizeType({
sm: { span: 4, offset: 0 },
md: { span: 6, offset: 1 },
lg: { span: 8, offset: 2 }
})
.useSizeType({
sm: { span: 4, offset: 0 },
md: { span: 6, offset: 1 },
lg: { span: 8, offset: 2 }
})
}
}
.width('100%')

View File

@ -1,2 +0,0 @@
@¼)t`€{
å8̃/EšŽ

View File

@ -1 +0,0 @@
B¶âR šÎhó5LcGnà

View File

@ -1 +0,0 @@
3RF<EFBFBD><EFBFBD>:<3A><>f<>4<EFBFBD><34><EFBFBD><EFBFBD>

View File

@ -1 +0,0 @@
ソ)<29>ワn゙@ン。<15>