mirror of
https://gitee.com/openharmony/applications_call
synced 2024-11-26 16:10:43 +00:00
SDK Version upgrade
Signed-off-by: qian-nan-xu <xuqiannan@huawei.com>
This commit is contained in:
parent
dc2fbf1eec
commit
cfdb97ff6e
@ -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"
|
||||
|
@ -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",
|
||||
|
@ -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,添加StorePassword:123456abcdef,KeyPassword:123456,
|
||||
依次填入下图中,完成后点击Apply,再点击OK
|
||||
|
||||
![](../doc/image/signature_2.png)
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 127 KiB |
@ -2,6 +2,7 @@
|
||||
"app": {
|
||||
"bundleName": "com.ohos.callui",
|
||||
"vendor": "ohos",
|
||||
"singleton": true,
|
||||
"version": {
|
||||
"code": 1000000,
|
||||
"name": "1.0.0"
|
||||
|
@ -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%')
|
||||
|
@ -1,2 +0,0 @@
|
||||
@¼)t`€{
|
||||
å8̃/EšŽ
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
B¶âR šÎhó5LcGnà
|
@ -1 +0,0 @@
|
||||
3RF<EFBFBD><EFBFBD>:<3A><>f<>4<EFBFBD><34><EFBFBD><EFBFBD>
|
@ -1 +0,0 @@
|
||||
ソ)<29>ワn゙@ン。<15>┥
|
Loading…
Reference in New Issue
Block a user