mirror of
https://github.com/openharmony/applications_screenshot.git
synced 2026-07-01 20:39:36 -04:00
Adapt to development tool version 3.0.0.991
Signed-off-by: lijinfengde123 <lijinfeng26@huawei.com>
This commit is contained in:
@@ -4,3 +4,5 @@
|
||||
/features/screenshot/build/
|
||||
/.idea
|
||||
/.gradle
|
||||
local.properties
|
||||
node_modules/
|
||||
+7
-7
@@ -5,20 +5,20 @@
|
||||
"products": [
|
||||
{
|
||||
"name": "default",
|
||||
"signingConfig": "default"
|
||||
"signingConfig": "release"
|
||||
}
|
||||
],
|
||||
"signingConfigs": [
|
||||
{
|
||||
"name": "default",
|
||||
"name": "release",
|
||||
"material": {
|
||||
"storePassword": "0000001627D6345E561C5124ADE619EC6DA7A8E3EEA5B00E951C5D2A5BD2CE498615DB7D3D07",
|
||||
"certpath": "C:/Users/Administrator/AppData/Local/OpenHarmony/OpenHarmonyApplication.cer",
|
||||
"storePassword": "",
|
||||
"certpath": "",
|
||||
"keyAlias": "OpenHarmony Application Release",
|
||||
"keyPassword": "00000016F7210C76396BEEBBD5EA3B3AC4387176AE2012D8F58DF886BCCFD3588846A9B8FB71",
|
||||
"profile": "C:/Users/Administrator/AppData/Local/OpenHarmony/screenshot.p7b",
|
||||
"keyPassword": "",
|
||||
"profile": ".p7b",
|
||||
"signAlg": "SHA256withECDSA",
|
||||
"storeFile": "C:/Users/Administrator/AppData/Local/OpenHarmony/OpenHarmony.p12"
|
||||
"storeFile": ".p12"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -59,7 +59,7 @@ export class ScreenShotModel {
|
||||
Log.showInfo(TAG, `saveImage packer:${JSON.stringify(packer)}`);
|
||||
this.showWindow();
|
||||
await new Promise((resolve) => setTimeout(resolve, SAVE_IMAGE_DELAY));
|
||||
packer.packingFromPixelMap(pixelMap, options).then((jpegData) => {
|
||||
packer.packing(pixelMap, options).then((jpegData) => {
|
||||
Log.showInfo(TAG, `packing jpegData type:` + jpegData.constructor.name + ' value : ' + jpegData);
|
||||
media.getPublicDirectory(mediaLibrary.DirectoryType.DIR_IMAGE, (err, rp) => {
|
||||
if (rp != undefined) {
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
## This file is automatically generated by DevEco Studio.
|
||||
# This file is automatically generated by DevEco Studio.
|
||||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
||||
#
|
||||
# This file must *NOT* be checked into Version Control Systems,
|
||||
# This file should *NOT* be checked into Version Control Systems,
|
||||
# as it contains information specific to your local configuration.
|
||||
#
|
||||
# Location of the SDK. This is only used by Gradle.
|
||||
@@ -10,4 +10,4 @@
|
||||
#Tue Mar 08 16:56:18 CST 2022
|
||||
sdk.dir=XXX
|
||||
nodejs.dir=XXX
|
||||
npm.dir=XXX
|
||||
npm.dir=XXX
|
||||
Generated
+169
-595
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -8,8 +8,9 @@
|
||||
},
|
||||
"version":"1.0.0",
|
||||
"dependencies":{
|
||||
"@ohos/hvigor-ohos-plugin":"1.0.6",
|
||||
"@ohos/hypium":"1.0.1",
|
||||
"@ohos/hvigor-ohos-plugin":"1.1.6",
|
||||
"hypium":"^1.0.0",
|
||||
"@ohos/hvigor":"1.0.6"
|
||||
"@ohos/hvigor":"1.1.6"
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,8 @@
|
||||
{
|
||||
"apiType": 'stageMode',
|
||||
"buildOption": {
|
||||
"arkEnable": true
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"name": "default",
|
||||
"name": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
"description": "$string:mainability_description",
|
||||
"mainElement": "com.ohos.screenshot.ServiceExtAbility",
|
||||
"deviceTypes": [
|
||||
"phone"
|
||||
"default"
|
||||
],
|
||||
"deliveryWithInstall": true,
|
||||
"installationFree": false,
|
||||
@@ -31,7 +31,8 @@
|
||||
"metadata": [
|
||||
{
|
||||
"name": "com.ohos.systemui.action.TOGGLE",
|
||||
"value": "\"pluginType\":\"1\",\"clickAction\":\"ability=com.ohos.screenshot|com.ohos.screenshot.ServiceExtAbility\""
|
||||
"value": "\"pluginType\":\"1\",\"clickAction\":\"ability=com.ohos.screenshot|com.ohos.screenshot.ServiceExtAbility\"",
|
||||
"resource": "$profile:main_pages"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user