Skip to content

Commit

Permalink
更新依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Feb 20, 2024
1 parent fb7c6c9 commit a1c0a62
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 74 deletions.
45 changes: 0 additions & 45 deletions dependencies-patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() => {
Expand Down
47 changes: 23 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lx-music-mobile",
"version": "1.2.0",
"version": "1.2.1-beta.0",
"versionCode": 63,
"private": true,
"scripts": {
Expand All @@ -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": {
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit a1c0a62

Please sign in to comment.