From a1c0a62d3fd5091d94a2df4579ab1da34fcf2008 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Tue, 20 Feb 2024 21:49:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dependencies-patch.js | 45 ----------------------------------------- package-lock.json | 47 +++++++++++++++++++++---------------------- package.json | 9 ++++----- 3 files changed, 27 insertions(+), 74 deletions(-) diff --git a/dependencies-patch.js b/dependencies-patch.js index 9f09f20..bacca9d 100644 --- a/dependencies-patch.js +++ b/dependencies-patch.js @@ -6,51 +6,6 @@ const path = require('node:path') const rootPath = path.join(__dirname, './') const patchs = [ - [ - path.join(rootPath, './node_modules/react-native-navigation/lib/android/app/build.gradle'), - ` - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - kotlinOptions { - jvmTarget = JavaVersion.VERSION_1_8 - }`, - '', - ], - [ - path.join(rootPath, './node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt'), - `override fun onInitializeAccessibilityNodeInfo( - host: View?, - info: AccessibilityNodeInfoCompat? - ) { - super.onInitializeAccessibilityNodeInfo(host, info) - - // Expose the testID prop as the resource-id name of the view. Black-box E2E/UI testing - // frameworks, which interact with the UI through the accessibility framework, do not have - // access to view tags. This allows developers/testers to avoid polluting the - // content-description with test identifiers. - val testId = host?.tag as String? - if(testId != null){ - info!!.viewIdResourceName = testId - } - }`, - `override fun onInitializeAccessibilityNodeInfo( - host: View, - info: AccessibilityNodeInfoCompat - ) { - super.onInitializeAccessibilityNodeInfo(host, info) - - // Expose the testID prop as the resource-id name of the view. Black-box E2E/UI testing - // frameworks, which interact with the UI through the accessibility framework, do not have - // access to view tags. This allows developers/testers to avoid polluting the - // content-description with test identifiers. - val testId = host.tag as String? - if(testId != null){ - info.viewIdResourceName = testId - } - }`, - ], ] ;(async() => { diff --git a/package-lock.json b/package-lock.json index 8686f6c..e21cea1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,16 @@ { "name": "lx-music-mobile", - "version": "1.2.0", + "version": "1.2.1-beta.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "lx-music-mobile", - "version": "1.2.0", - "hasInstallScript": true, + "version": "1.2.1-beta.0", "license": "Apache-2.0", "dependencies": { "@craftzdog/react-native-buffer": "^6.0.5", - "@react-native-async-storage/async-storage": "^1.21.0", + "@react-native-async-storage/async-storage": "^1.22.0", "@react-native-clipboard/clipboard": "^1.13.2", "@react-native-community/slider": "^4.5.0", "iconv-lite": "^0.6.3", @@ -26,7 +25,7 @@ "react-native-file-system": "github:lyswhut/react-native-file-system#cb3b807ac68c5cdb2c32ca10fdbb5e5209154ece", "react-native-fs": "^2.20.0", "react-native-local-media-metadata": "github:lyswhut/react-native-local-media-metadata#c8377d82c04aecf5ee79d446276ab9d0c1f167be", - "react-native-navigation": "^7.37.2", + "react-native-navigation": "^7.38.1", "react-native-pager-view": "^6.2.3", "react-native-quick-base64": "^2.0.8", "react-native-quick-md5": "^3.0.6", @@ -43,7 +42,7 @@ "@react-native/metro-config": "^0.73.5", "@react-native/typescript-config": "^0.74.0", "@tsconfig/react-native": "^3.0.3", - "@types/react": "^18.2.55", + "@types/react": "^18.2.57", "@types/react-native": "^0.72.8", "@types/react-native-background-timer": "^2.0.2", "@types/react-native-vector-icons": "^6.4.18", @@ -2568,9 +2567,9 @@ } }, "node_modules/@react-native-async-storage/async-storage": { - "version": "1.21.0", - "resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.21.0.tgz", - "integrity": "sha512-JL0w36KuFHFCvnbOXRekqVAUplmOyT/OuCQkogo6X98MtpSaJOKEAeZnYO8JB0U/RIEixZaGI5px73YbRm/oag==", + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.22.0.tgz", + "integrity": "sha512-b5KD010iiZnot86RbAaHpLuHwmPW2qA3SSN/OSZhd1kBoINEQEVBuv+uFtcaTxAhX27bT0wd13GOb2IOSDUXSA==", "dependencies": { "merge-options": "^3.0.4" }, @@ -3402,9 +3401,9 @@ "license": "MIT" }, "node_modules/@types/react": { - "version": "18.2.55", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.55.tgz", - "integrity": "sha512-Y2Tz5P4yz23brwm2d7jNon39qoAtMMmalOQv6+fEFt1mT+FcM3D841wDpoUvFXhaYenuROCy3FZYqdTjM7qVyA==", + "version": "18.2.57", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.57.tgz", + "integrity": "sha512-ZvQsktJgSYrQiMirAN60y4O/LRevIV8hUzSOSNB6gfR3/o3wCBFQx3sPwIYtuDMeiVgsSS3UzCV26tEzgnfvQw==", "dev": true, "dependencies": { "@types/prop-types": "*", @@ -8933,9 +8932,9 @@ } }, "node_modules/react-native-navigation": { - "version": "7.37.2", - "resolved": "https://registry.npmjs.org/react-native-navigation/-/react-native-navigation-7.37.2.tgz", - "integrity": "sha512-DrF057o6JDzkSUF3Bas2AJKTC4k+xEJirrmntdJON/wV6kZ5e2BfOxRX0KUjtDpf7bcPs0KciuDb3rokFWmvqQ==", + "version": "7.38.1", + "resolved": "https://registry.npmjs.org/react-native-navigation/-/react-native-navigation-7.38.1.tgz", + "integrity": "sha512-NMGXJjSWe9qfWRjuvWODV+egUYkQ6Emx4MMF/Ccf0LtikgfYzIUPm5vXXPW/BVEk24PGO1CDUFCVYAZmERZtdQ==", "dependencies": { "hoist-non-react-statics": "3.x.x", "lodash": "4.17.x", @@ -12334,9 +12333,9 @@ } }, "@react-native-async-storage/async-storage": { - "version": "1.21.0", - "resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.21.0.tgz", - "integrity": "sha512-JL0w36KuFHFCvnbOXRekqVAUplmOyT/OuCQkogo6X98MtpSaJOKEAeZnYO8JB0U/RIEixZaGI5px73YbRm/oag==", + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.22.0.tgz", + "integrity": "sha512-b5KD010iiZnot86RbAaHpLuHwmPW2qA3SSN/OSZhd1kBoINEQEVBuv+uFtcaTxAhX27bT0wd13GOb2IOSDUXSA==", "requires": { "merge-options": "^3.0.4" } @@ -13031,9 +13030,9 @@ "dev": true }, "@types/react": { - "version": "18.2.55", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.55.tgz", - "integrity": "sha512-Y2Tz5P4yz23brwm2d7jNon39qoAtMMmalOQv6+fEFt1mT+FcM3D841wDpoUvFXhaYenuROCy3FZYqdTjM7qVyA==", + "version": "18.2.57", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.57.tgz", + "integrity": "sha512-ZvQsktJgSYrQiMirAN60y4O/LRevIV8hUzSOSNB6gfR3/o3wCBFQx3sPwIYtuDMeiVgsSS3UzCV26tEzgnfvQw==", "dev": true, "requires": { "@types/prop-types": "*", @@ -17050,9 +17049,9 @@ "requires": {} }, "react-native-navigation": { - "version": "7.37.2", - "resolved": "https://registry.npmjs.org/react-native-navigation/-/react-native-navigation-7.37.2.tgz", - "integrity": "sha512-DrF057o6JDzkSUF3Bas2AJKTC4k+xEJirrmntdJON/wV6kZ5e2BfOxRX0KUjtDpf7bcPs0KciuDb3rokFWmvqQ==", + "version": "7.38.1", + "resolved": "https://registry.npmjs.org/react-native-navigation/-/react-native-navigation-7.38.1.tgz", + "integrity": "sha512-NMGXJjSWe9qfWRjuvWODV+egUYkQ6Emx4MMF/Ccf0LtikgfYzIUPm5vXXPW/BVEk24PGO1CDUFCVYAZmERZtdQ==", "requires": { "hoist-non-react-statics": "3.x.x", "lodash": "4.17.x", diff --git a/package.json b/package.json index 156e58d..e9a84c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lx-music-mobile", - "version": "1.2.0", + "version": "1.2.1-beta.0", "versionCode": 63, "private": true, "scripts": { @@ -19,7 +19,6 @@ "clear": "cd android && gradlew.bat clean", "clear:full": "git clean -fdx -e android/keystore.properties -e android/app/*.keystore", "build:theme": "node src/theme/themes/createThemes.js", - "postinstall": "node ./dependencies-patch.js", "publish": "node publish" }, "engines": { @@ -45,7 +44,7 @@ "homepage": "https://github.com/lyswhut/lx-music-mobile#readme", "dependencies": { "@craftzdog/react-native-buffer": "^6.0.5", - "@react-native-async-storage/async-storage": "^1.21.0", + "@react-native-async-storage/async-storage": "^1.22.0", "@react-native-clipboard/clipboard": "^1.13.2", "@react-native-community/slider": "^4.5.0", "iconv-lite": "^0.6.3", @@ -60,7 +59,7 @@ "react-native-file-system": "github:lyswhut/react-native-file-system#cb3b807ac68c5cdb2c32ca10fdbb5e5209154ece", "react-native-fs": "^2.20.0", "react-native-local-media-metadata": "github:lyswhut/react-native-local-media-metadata#c8377d82c04aecf5ee79d446276ab9d0c1f167be", - "react-native-navigation": "^7.37.2", + "react-native-navigation": "^7.38.1", "react-native-pager-view": "^6.2.3", "react-native-quick-base64": "^2.0.8", "react-native-quick-md5": "^3.0.6", @@ -77,7 +76,7 @@ "@react-native/metro-config": "^0.73.5", "@react-native/typescript-config": "^0.74.0", "@tsconfig/react-native": "^3.0.3", - "@types/react": "^18.2.55", + "@types/react": "^18.2.57", "@types/react-native": "^0.72.8", "@types/react-native-background-timer": "^2.0.2", "@types/react-native-vector-icons": "^6.4.18",