优化
@@ -16,14 +16,22 @@
|
|||||||
"autoclose" : true,
|
"autoclose" : true,
|
||||||
"delay" : 0
|
"delay" : 0
|
||||||
},
|
},
|
||||||
"modules" : {},
|
"modules" : {
|
||||||
|
"Barcode" : {},
|
||||||
|
"Bluetooth" : {},
|
||||||
|
"Camera" : {},
|
||||||
|
"Contacts" : {},
|
||||||
|
"UIWebview" : {}
|
||||||
|
},
|
||||||
"distribute" : {
|
"distribute" : {
|
||||||
"android" : {
|
"android" : {
|
||||||
"packagename" : "com.baiyuelogistics.pda.overseas",
|
"packagename" : "com.baiyuelogistics.pda.overseas",
|
||||||
"permissions" : [],
|
"permissions" : [],
|
||||||
"abiFilters" : [ "armeabi-v7a", "arm64-v8a" ]
|
"abiFilters" : [ "armeabi-v7a", "arm64-v8a" ]
|
||||||
},
|
},
|
||||||
"ios" : {},
|
"ios" : {
|
||||||
|
"dSYMs" : false
|
||||||
|
},
|
||||||
"sdkConfigs" : {},
|
"sdkConfigs" : {},
|
||||||
"icons" : {
|
"icons" : {
|
||||||
"android" : {
|
"android" : {
|
||||||
|
|||||||
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 889 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
@@ -0,0 +1,23 @@
|
|||||||
|
import test from 'node:test'
|
||||||
|
import assert from 'node:assert/strict'
|
||||||
|
import { createHash } from 'node:crypto'
|
||||||
|
import { readFile } from 'node:fs/promises'
|
||||||
|
|
||||||
|
const iconNames = [
|
||||||
|
'20x20.png', '29x29.png', '40x40.png', '58x58.png', '60x60.png',
|
||||||
|
'72x72.png', '76x76.png', '80x80.png', '87x87.png', '96x96.png',
|
||||||
|
'120x120.png', '144x144.png', '152x152.png', '167x167.png',
|
||||||
|
'180x180.png', '192x192.png', '1024x1024.png'
|
||||||
|
]
|
||||||
|
|
||||||
|
const digest = (value) => createHash('sha256').update(value).digest('hex')
|
||||||
|
|
||||||
|
test('HBuilderX root icons and CLI source icons remain identical', async () => {
|
||||||
|
for (const name of iconNames) {
|
||||||
|
const [rootIcon, sourceIcon] = await Promise.all([
|
||||||
|
readFile(new URL(`../static/app-icons/${name}`, import.meta.url)),
|
||||||
|
readFile(new URL(`../src/static/app-icons/${name}`, import.meta.url))
|
||||||
|
])
|
||||||
|
assert.equal(digest(rootIcon), digest(sourceIcon), `${name} must match in both icon roots`)
|
||||||
|
}
|
||||||
|
})
|
||||||
@@ -2,5 +2,20 @@ import { defineConfig } from 'vite'
|
|||||||
import uni from '@dcloudio/vite-plugin-uni'
|
import uni from '@dcloudio/vite-plugin-uni'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [uni()]
|
plugins: [uni()],
|
||||||
|
css: {
|
||||||
|
preprocessorOptions: {
|
||||||
|
scss: {
|
||||||
|
// DCloud uni-scss still uses APIs deprecated by the bundled Dart Sass.
|
||||||
|
// Keep real Sass warnings/errors visible while hiding these known notices.
|
||||||
|
silenceDeprecations: [
|
||||||
|
'legacy-js-api',
|
||||||
|
'import',
|
||||||
|
'global-builtin',
|
||||||
|
'color-functions',
|
||||||
|
'if-function'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|||||||