试图加个一言功能

This commit is contained in:
ikun 2024-08-06 09:27:38 +08:00
parent 4d200c01f8
commit 70599d9a67
5 changed files with 19 additions and 12 deletions

View File

@ -20,9 +20,8 @@ jobs:
shell: bash
run: |
cd android
echo ${{ secrets.KEYSTORE_STORE_FILE_BASE64 }} | base64 --decode > app/${{ secrets.KEYSTORE_STORE_FILE }}
./gradlew assembleRelease -PMYAPP_UPLOAD_STORE_FILE='${{ secrets.KEYSTORE_STORE_FILE }}' -PMYAPP_UPLOAD_KEY_ALIAS='${{ secrets.KEYSTORE_KEY_ALIAS }}' -PMYAPP_UPLOAD_STORE_PASSWORD='${{ secrets.KEYSTORE_PASSWORD }}' -PMYAPP_UPLOAD_KEY_PASSWORD='${{ secrets.KEYSTORE_KEY_PASSWORD }}'
rm -f app/${{ secrets.KEYSTORE_STORE_FILE }}
chmod +x ./gradlew
./gradlew assembleRelease -PMYAPP_UPLOAD_STORE_FILE='debug.keystore' -PMYAPP_UPLOAD_KEY_ALIAS='androiddebugkey' -PMYAPP_UPLOAD_STORE_PASSWORD='android' -PMYAPP_UPLOAD_KEY_PASSWORD='android'
# Push tag to GitHub if package.json version's tag is not tagged
- name: Get package version

View File

@ -27,7 +27,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/lyswhut/lx-music-mobile.git"
"url": "git+https://github.com/ikunshare/lx-music-mobile-mod.git"
},
"keywords": [
"music-player",
@ -39,9 +39,9 @@
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/lyswhut/lx-music-mobile/issues"
"url": "https://github.com/ikunshare/lx-music-mobile-mod/issues"
},
"homepage": "https://github.com/lyswhut/lx-music-mobile#readme",
"homepage": "https://github.com/ikunshare/lx-music-mobile-mod#readme",
"dependencies": {
"@craftzdog/react-native-buffer": "^6.0.5",
"@react-native-async-storage/async-storage": "^1.22.3",

View File

@ -12,11 +12,12 @@ import commonActions from '@/store/common/action'
import settingState from '@/store/setting/state'
import { checkUpdate } from '@/core/version'
import { bootLog } from '@/utils/bootLog'
import { cheatTip } from '@/utils/tools'
import { cheatTip, hitokoto } from '@/utils/tools'
let isFirstPush = true
const handlePushedHomeScreen = async() => {
await cheatTip()
hitokoto()
if (settingState.setting['common.isAgreePact']) {
if (isFirstPush) {
isFirstPush = false

View File

@ -16,7 +16,7 @@ const Content = () => {
const theme = useTheme()
const openHomePage = () => {
void openUrl('https://github.com/ikunshare/lx-music-mobile#readme')
void openUrl('https://github.com/ikunshare/lx-music-mobile-mod#readme')
}
const openLicensePage = () => {
void openUrl('http://www.apache.org/licenses/LICENSE-2.0')

View File

@ -11,6 +11,7 @@ import { scaleSizeH, scaleSizeW, setSpText } from './pixelRatio'
import { toOldMusicInfo } from './index'
import { stringMd5 } from 'react-native-quick-md5'
import { windowSizeTools } from '@/utils/windowSizeTools'
import dataInit from '@/core/init/dataInit'
// https://stackoverflow.com/a/47349998
@ -545,13 +546,19 @@ export const cheatTip = async() => {
if (isRead) return
return tipDialog({
title: '谨防被骗提示',
message: `1. 本项目无微信公众号之类的官方账号也未在小米、华为、vivo等应用商店发布应用商店内的“LX Music Mod”、“洛雪音乐”相关的应用全部属于假冒应用谨防被骗。
2. 广使使广
3. GitHub -`,
title: '提示',
message: `本项目是对LX Music的二次开发请勿将本项目用于商业用途否则后果自负。如有疑问请加入QQ群690309707。`,
btnText: '我知道了 (Close)',
bgClose: false,
}).then(() => {
void saveData(storageDataPrefix.cheatTip, true)
})
}
export const hitokoto = () => {
fetch('https://v1.hitokoto.cn')
.then(response => response.json())
.then(data => {
return toast(data.hitokoto)
})
}