-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ohos] update DevEco Studio 4.1.3.700
- Loading branch information
hiliu
committed
May 9, 2024
1 parent
448af96
commit 0777b02
Showing
68 changed files
with
2,271 additions
and
1,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
/.clang-format | ||
/.clang-tidy | ||
**/.test | ||
oh-package-lock.json5 | ||
oh-package-lock.json5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"app": { | ||
"bundleName": "com.tencent.imdemo", | ||
"vendor": "example", | ||
"versionCode": 1000000, | ||
"versionName": "1.0.0", | ||
"icon": "$media:app_icon", | ||
"label": "$string:app_name" | ||
} | ||
app: { | ||
bundleName: "com.tencent.imdemo", | ||
vendor: "example", | ||
versionCode: 1000000, | ||
versionName: "1.0.0", | ||
icon: "$media:app_icon", | ||
label: "$string:app_name", | ||
}, | ||
} |
Empty file.
Binary file modified
BIN
+736 Bytes
(140%)
HarmonyOS/Demo/AppScope/resources/base/media/app_icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,35 @@ | ||
{ | ||
"app": { | ||
"signingConfigs": [], | ||
"products": [ | ||
app: { | ||
products: [ | ||
{ | ||
"name": "default", | ||
"signingConfig": "default", | ||
"compileSdkVersion": "4.0.0(10)", | ||
"compatibleSdkVersion": "4.0.0(10)", | ||
"runtimeOS": "HarmonyOS", | ||
name: "default", | ||
signingConfig: "default", | ||
compileSdkVersion: "4.0.0(10)", | ||
compatibleSdkVersion: "4.0.0(10)", | ||
runtimeOS: "HarmonyOS" | ||
} | ||
], | ||
"buildModeSet": [ | ||
buildModeSet: [ | ||
{ | ||
"name": "debug", | ||
name: "debug" | ||
}, | ||
{ | ||
"name": "release" | ||
name: "release" | ||
} | ||
] | ||
], | ||
}, | ||
"modules": [ | ||
modules: [ | ||
{ | ||
"name": "entry", | ||
"srcPath": "./entry", | ||
"targets": [ | ||
name: "entry", | ||
srcPath: "./entry", | ||
targets: [ | ||
{ | ||
"name": "default", | ||
"applyToProducts": [ | ||
name: "default", | ||
applyToProducts: [ | ||
"default" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
/.preview | ||
/build | ||
/.cxx | ||
/.test | ||
/.test | ||
oh-package-lock.json5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,25 @@ | ||
{ | ||
"apiType": "stageMode", | ||
"buildOption": { | ||
"arkOptions": { | ||
// "apPath": "./modules.ap" /* Profile used for profile-guided optimization (PGO), a compiler optimization technique to improve app runtime performance. */ | ||
} | ||
}, | ||
"buildOptionSet": [ | ||
apiType: "stageMode", | ||
buildOption: {}, | ||
buildOptionSet: [ | ||
{ | ||
"name": "release", | ||
"arkOptions": { | ||
"obfuscation": { | ||
"ruleOptions": { | ||
"enable": true, | ||
"files": [ | ||
"./obfuscation-rules.txt" | ||
] | ||
} | ||
} | ||
} | ||
name: "release", | ||
arkOptions: { | ||
obfuscation: { | ||
ruleOptions: { | ||
enable: true, | ||
files: ["./obfuscation-rules.txt"], | ||
}, | ||
}, | ||
}, | ||
}, | ||
], | ||
"targets": [ | ||
targets: [ | ||
{ | ||
"name": "default" | ||
name: "default", | ||
}, | ||
{ | ||
"name": "ohosTest", | ||
} | ||
] | ||
} | ||
name: "ohosTest", | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { hapTasks } from '@ohos/hvigor-ohos-plugin'; | ||
import { hapTasks } from "@ohos/hvigor-ohos-plugin"; | ||
|
||
export default { | ||
system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ | ||
plugins:[] /* Custom plugin to extend the functionality of Hvigor. */ | ||
} | ||
system: hapTasks /* Built-in plugin of Hvigor. It cannot be modified. */, | ||
plugins: [] /* Custom plugin to extend the functionality of Hvigor. */, | ||
}; |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
{ | ||
"name": "entry", | ||
"version": "1.0.0", | ||
"description": "Please describe the basic information.", | ||
"main": "", | ||
"author": "", | ||
"license": "", | ||
"dependencies": { | ||
"@tencentcloud/imsdk": "file:./imsdk-ohos-7.9.5680.har" | ||
devDependencies: { | ||
pako: "^2.1.0", | ||
"@ohos/crypto-js": "^2.0.1", | ||
}, | ||
name: "entry", | ||
description: "Demo for Tencent IM SDK", | ||
version: "7.7.5294", | ||
dependencies: { | ||
"@tencentcloud/imsdk": "file:./imsdk-ohos-7.9.5683.har", | ||
}, | ||
"devDependencies": { | ||
"pako": "^2.1.0", | ||
"@ohos/crypto-js": "^2.0.1" | ||
} | ||
} | ||
|
43 changes: 0 additions & 43 deletions
43
HarmonyOS/Demo/entry/src/main/ets/entryability/EntryAbility.ets
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
HarmonyOS/Demo/entry/src/main/ets/imdemoability/ImdemoAbility.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import UIAbility from "@ohos.app.ability.UIAbility"; | ||
import hilog from "@ohos.hilog"; | ||
import window from "@ohos.window"; | ||
|
||
export default class ImdemoAbility extends UIAbility { | ||
onCreate(want, launchParam) { | ||
hilog.info(0x0000, "testTag", "%{public}s", "Ability onCreate"); | ||
} | ||
|
||
onDestroy() { | ||
hilog.info(0x0000, "testTag", "%{public}s", "Ability onDestroy"); | ||
} | ||
|
||
onWindowStageCreate(windowStage: window.WindowStage) { | ||
// Main window is created, set main page for this ability | ||
hilog.info(0x0000, "testTag", "%{public}s", "Ability onWindowStageCreate"); | ||
|
||
windowStage.loadContent("pages/Index", (err, data) => { | ||
if (err.code) { | ||
hilog.error( | ||
0x0000, | ||
"testTag", | ||
"Failed to load the content. Cause: %{public}s", | ||
JSON.stringify(err) ?? "" | ||
); | ||
return; | ||
} | ||
hilog.info( | ||
0x0000, | ||
"testTag", | ||
"Succeeded in loading the content. Data: %{public}s", | ||
JSON.stringify(data) ?? "" | ||
); | ||
}); | ||
} | ||
|
||
onWindowStageDestroy() { | ||
// Main window is destroyed, release UI related resources | ||
hilog.info(0x0000, "testTag", "%{public}s", "Ability onWindowStageDestroy"); | ||
} | ||
|
||
onForeground() { | ||
// Ability has brought to foreground | ||
hilog.info(0x0000, "testTag", "%{public}s", "Ability onForeground"); | ||
} | ||
|
||
onBackground() { | ||
// Ability has back to background | ||
hilog.info(0x0000, "testTag", "%{public}s", "Ability onBackground"); | ||
} | ||
} |
Oops, something went wrong.