Skip to content

Commit

Permalink
[ohos] update DevEco Studio 4.1.3.700
Browse files Browse the repository at this point in the history
  • Loading branch information
hiliu committed May 9, 2024
1 parent 448af96 commit 0777b02
Show file tree
Hide file tree
Showing 68 changed files with 2,271 additions and 1,331 deletions.
2 changes: 1 addition & 1 deletion HarmonyOS/Demo/.gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
/.clang-format
/.clang-tidy
**/.test
oh-package-lock.json5
oh-package-lock.json5
16 changes: 8 additions & 8 deletions HarmonyOS/Demo/AppScope/app.json5
100644 → 100755
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 modified HarmonyOS/Demo/AppScope/resources/base/element/string.json
100644 → 100755
Empty file.
Binary file modified 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.
47 changes: 23 additions & 24 deletions HarmonyOS/Demo/build-profile.json5
100644 → 100755
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 removed HarmonyOS/Demo/dependencies/hvigor-3.0.10-s.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed HarmonyOS/Demo/dependencies/rollup.tgz
Binary file not shown.
3 changes: 2 additions & 1 deletion HarmonyOS/Demo/entry/.gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
/.test
oh-package-lock.json5
42 changes: 18 additions & 24 deletions HarmonyOS/Demo/entry/build-profile.json5
100644 → 100755
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",
},
],
}
8 changes: 4 additions & 4 deletions HarmonyOS/Demo/entry/hvigorfile.ts
100644 → 100755
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 removed HarmonyOS/Demo/entry/imsdk-ohos-7.9.5680.har
Binary file not shown.
Binary file added HarmonyOS/Demo/entry/imsdk-ohos-7.9.5683.har
Binary file not shown.
10 changes: 5 additions & 5 deletions HarmonyOS/Demo/entry/obfuscation-rules.txt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

# Obfuscation options:
# -disable-obfuscation: disable all obfuscations
# -enable-property-obfuscation: obfuscate the property names
# -enable-toplevel-obfuscation: obfuscate the names in the global scope
# -compact: remove unnecessary blank spaces and all line feeds
# -remove-log: remove all console.* statements
-enable-property-obfuscation: obfuscate the property names
-enable-toplevel-obfuscation: obfuscate the names in the global scope
-compact: remove unnecessary blank spaces and all line feeds
-remove-log: remove all console.* statements
# -print-namecache: print the name cache that contains the mapping from the old names to new names
# -apply-namecache: reuse the given cache file

# Keep options:
# -keep-property-name: specifies property names that you want to keep
# -keep-global-name: specifies names that you want to keep in the global scope
# -keep-global-name: specifies names that you want to keep in the global scope
22 changes: 9 additions & 13 deletions HarmonyOS/Demo/entry/oh-package.json5
100644 → 100755
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 HarmonyOS/Demo/entry/src/main/ets/entryability/EntryAbility.ets

This file was deleted.

51 changes: 51 additions & 0 deletions HarmonyOS/Demo/entry/src/main/ets/imdemoability/ImdemoAbility.ts
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");
}
}
Loading

0 comments on commit 0777b02

Please sign in to comment.