初始提交

This commit is contained in:
2026-01-04 11:09:06 +08:00
commit 8fa31df250
1326 changed files with 213907 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
{
"app": {
"bundleName": "com.jnpf.java",
"vendor": "example",
"versionCode": 1000000,
"versionName": "1.0.0",
"icon": "$media:layered_image",
"label": "$string:app_name"
}
}

View File

@@ -0,0 +1,27 @@
{
"string": [{
"name": "app_name",
"value": "jnpf java vue3"
},
{
"name": "Voice",
"value": "用于语音聊天"
},
{
"name": "Camera",
"value": "用于拍照"
},
{
"name": "permissionsReason",
"value": "用于发送当前位置"
},
{
"name": "SaveFile",
"value": "用于保存下载后的文件"
},
{
"name": "mkdir",
"value": "用于创建目录"
}
]
}

View File

@@ -0,0 +1,62 @@
{
"app": {
"signingConfigs": [{
"name": "default",
"type": "HarmonyOS",
"material": {
"certpath": "C:\\Users\\JNPF\\.ohos\\config\\default_jnpfjava_1sN_oqqYapOzI9oLrujNgwulFNvqN1QSC3248pw5yuE=.cer",
"storePassword": "0000001BD7F63885F10BC81317E0C644153B8232AEA2DF9F6D79B32F4813B285315C53EBCAEA302CF0B5DC",
"keyAlias": "debugKey",
"keyPassword": "0000001B47FAD77BCDCC3674C089D2FCF52F1E9E770C8435D667F5991AFF3E18C3BED2421605AB85A2577F",
"profile": "C:\\Users\\JNPF\\.ohos\\config\\default_jnpfjava_1sN_oqqYapOzI9oLrujNgwulFNvqN1QSC3248pw5yuE=.p7b",
"signAlg": "SHA256withECDSA",
"storeFile": "C:\\Users\\JNPF\\.ohos\\config\\default_jnpfjava_1sN_oqqYapOzI9oLrujNgwulFNvqN1QSC3248pw5yuE=.p12"
}
}],
"products": [{
"name": "default",
"signingConfig": "default",
"compatibleSdkVersion": "5.0.0(12)",
"runtimeOS": "HarmonyOS",
"compatibleSdkVersionStage":"beta6",
"buildOption": {
"strictMode": {
"caseSensitiveCheck": true,
"useNormalizedOHMUrl": true
}
}
},
{
"name": "release",
"signingConfig": "release",
"compatibleSdkVersion": "5.0.0(12)",
"runtimeOS": "HarmonyOS",
"compatibleSdkVersionStage":"beta6",
"buildOption": {
"strictMode": {
"caseSensitiveCheck": true,
"useNormalizedOHMUrl": true
}
}
}
],
"buildModeSet": [{
"name": "debug",
},
{
"name": "release"
}
],
},
"modules": [{
"name": "entry",
"srcPath": "./entry",
"targets": [{
"name": "default",
"applyToProducts": [
"default",
"release"
]
}]
}]
}

View File

@@ -0,0 +1,28 @@
{
"apiType": "stageMode",
"buildOption": {
},
"buildOptionSet": [
{
"name": "release",
"arkOptions": {
"obfuscation": {
"ruleOptions": {
"enable": false,
"files": [
"./obfuscation-rules.txt"
]
}
}
}
},
],
"targets": [
{
"name": "default"
},
{
"name": "ohosTest",
}
]
}

View File

@@ -0,0 +1,23 @@
# Define project specific obfuscation rules here.
# You can include the obfuscation configuration files in the current module's build-profile.json5.
#
# For more details, see
# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
# 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
# -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
-enable-property-obfuscation
-enable-toplevel-obfuscation
-enable-filename-obfuscation
-enable-export-obfuscation

View File

@@ -0,0 +1,10 @@
{
"name": "entry",
"version": "1.0.0",
"description": "Please describe the basic information.",
"main": "",
"author": "",
"license": "",
"dependencies": {}
}

View File

@@ -0,0 +1,92 @@
{
"module": {
"name": "entry",
"type": "entry",
"description": "$string:module_desc",
"mainElement": "EntryAbility",
"deviceTypes": [
"phone",
"tablet",
"2in1"
],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"abilities": [
{
"name": "EntryAbility",
"srcEntry": "./ets/entryability/EntryAbility.ets",
"description": "$string:EntryAbility_desc",
"icon": "$media:layered_image",
"label": "$string:EntryAbility_label",
"startWindowIcon": "$media:startIcon",
"startWindowBackground": "$color:start_window_background",
"exported": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
]
}
],
"definePermissions": [
{
"name": "ohos.permission.WRITE_USER_STORAGE",
"description": "允许应用写入用户存储",
"grantMode": "user_grant"
},
{
"name": "ohos.permission.READ_USER_STORAGE",
"description": "允许应用创建文件目录",
"grantMode": "user_grant"
}
],
"requestPermissions": [
{
"name": "ohos.permission.INTERNET"
},
{
"name": "ohos.permission.LOCATION",
"reason": "$string:permissionsReason",
"usedScene": {
"abilities": ["EntryAbility"],
"when": "always"
}
},
{
"name":"ohos.permission.CAMERA",
"reason":"$string:Camera",
"usedScene":{}
},
{
"name":"ohos.permission.MICROPHONE",
"reason":"$string:Voice",
"usedScene":{
"abilities":["EntryAbility"]
}
},
{
"name":"ohos.permission.WRITE_USER_STORAGE",
"reason":"$string:SaveFile",
"usedScene":{
"abilities":["com.example.MainAbility"],
"when": "inuse"
}
},
{
"name":"ohos.permission.READ_USER_STORAGE",
"reason":"$string:mkdir",
"usedScene":{
"abilities":["com.example.MainAbility"],
"when": "inuse"
}
}
]
}
}