-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2aabc6f
Showing
342 changed files
with
32,986 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
[android] | ||
target = Google Inc.:Google APIs:23 | ||
|
||
[maven_repositories] | ||
central = https://repo1.maven.org/maven2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# Windows files | ||
[*.bat] | ||
end_of_line = crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module.exports = { | ||
extends: [ | ||
'standard', | ||
'plugin:react-hooks/recommended', | ||
], | ||
plugins: ['html', 'react'], | ||
parser: 'babel-eslint', | ||
rules: { | ||
'no-new': 'off', | ||
camelcase: 'off', | ||
'no-return-assign': 'off', | ||
'space-before-function-paren': ['error', 'never'], | ||
'no-var': 'error', | ||
'no-fallthrough': 'off', | ||
'prefer-promise-reject-errors': 'off', | ||
eqeqeq: 'off', | ||
'no-multiple-empty-lines': [1, { max: 2 }], | ||
'comma-dangle': [2, 'always-multiline'], | ||
'react/jsx-uses-react': 'error', | ||
'react/jsx-uses-vars': 'error', | ||
'prefer-const': 'off', | ||
}, | ||
settings: { | ||
'html/html-extensions': ['.jsx'], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[ignore] | ||
; We fork some components by platform | ||
.*/*[.]android.js | ||
|
||
; Ignore "BUCK" generated dirs | ||
<PROJECT_ROOT>/\.buckd/ | ||
|
||
; Ignore polyfills | ||
node_modules/react-native/Libraries/polyfills/.* | ||
|
||
; Flow doesn't support platforms | ||
.*/Libraries/Utilities/LoadingView.js | ||
|
||
[untyped] | ||
.*/node_modules/@react-native-community/cli/.*/.* | ||
|
||
[include] | ||
|
||
[libs] | ||
node_modules/react-native/interface.js | ||
node_modules/react-native/flow/ | ||
|
||
[options] | ||
emoji=true | ||
|
||
esproposal.optional_chaining=enable | ||
esproposal.nullish_coalescing=enable | ||
|
||
exact_by_default=true | ||
|
||
module.file_ext=.js | ||
module.file_ext=.json | ||
module.file_ext=.ios.js | ||
|
||
munge_underscores=true | ||
|
||
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1' | ||
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub' | ||
|
||
suppress_type=$FlowIssue | ||
suppress_type=$FlowFixMe | ||
suppress_type=$FlowFixMeProps | ||
suppress_type=$FlowFixMeState | ||
|
||
[lints] | ||
sketchy-null-number=warn | ||
sketchy-null-mixed=warn | ||
sketchy-number=warn | ||
untyped-type-import=warn | ||
nonstrict-import=warn | ||
deprecated-type=warn | ||
unsafe-getters-setters=warn | ||
unnecessary-invariant=warn | ||
signature-verification-failure=warn | ||
|
||
[strict] | ||
deprecated-type | ||
nonstrict-import | ||
sketchy-null | ||
unclear-type | ||
unsafe-getters-setters | ||
untyped-import | ||
untyped-type-import | ||
|
||
[version] | ||
^0.137.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Windows files should use crlf line endings | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
*.bat text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: 功能请求(请先查看常见问题及搜索issue列表中有无你要提的问题) | ||
about: 为这个项目提出一个想法 | ||
title: 例如:添加xxx功能、优化xxx功能 | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**解决方案检查** | ||
<!-- 请确保你已从以下渠道寻找过解决方案,然后将 [ ] 替换成 [x] --> | ||
- [ ] 我已阅读常见问题(<https://github.com/lyswhut/lx-music-desktop/blob/master/FAQ.md>) | ||
- [ ] 我已搜索issue列表(<https://github.com/lyswhut/lx-music-desktop/issues?utf8=✓&q=>) | ||
|
||
**描述您想要的解决方案** | ||
<!-- 简洁明了地描述您要发生的事情。 --> | ||
|
||
|
||
**描述您考虑过的替代方案** | ||
<!-- 对您考虑过的所有替代解决方案或功能的简洁明了的描述。 --> | ||
|
||
|
||
**其他内容** | ||
<!-- 在此处添加有关功能请求的任何其他上下文或屏幕截图(直接把图片拖到编辑框即可添加图片)。 --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: 报告Bug(请先查看常见问题及搜索issue列表中有无你要提的问题) | ||
about: 创建报告以帮助我们改进 | ||
title: 例如:音乐无法播放 | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**解决方案检查** | ||
<!-- 请确保你已从以下渠道寻找过解决方案,然后将 [ ] 替换成 [x] --> | ||
- [ ] 我已阅读常见问题(<https://github.com/lyswhut/lx-music-desktop/blob/master/FAQ.md>) | ||
- [ ] 我已搜索issue列表(<https://github.com/lyswhut/lx-music-desktop/issues?utf8=✓&q=>) | ||
|
||
**描述错误** | ||
<!-- 清楚简洁地说明错误是什么。 --> | ||
|
||
|
||
**重现** | ||
重现行为的步骤: | ||
1.转到“ ...” | ||
2.点击“ ....” | ||
3.向下滚动到“ ....” | ||
4.看到错误 | ||
|
||
|
||
**预期行为** | ||
<!-- 对您期望发生的事情的简洁明了的描述。 --> | ||
|
||
|
||
**截图** | ||
<!-- 如果适用,请添加屏幕截图以帮助解释您的问题(直接把图片拖到编辑框即可添加图片)。 --> | ||
|
||
|
||
**环境:** | ||
-操作系统及版本:[例如:Windows 10 64位 18362.156] | ||
-软件安装包及版本:[例如:1.0.0 安装版] | ||
|
||
|
||
**其他内容** | ||
<!-- 在此处添加有关该问题的任何其他上下文。 --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Build Beta | ||
|
||
on: | ||
push: | ||
branches: | ||
- beta | ||
|
||
jobs: | ||
Android: | ||
name: Android | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12.x' | ||
|
||
- name: Cache Gradle Wrapper | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
|
||
- name: Cache Gradle Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-caches- | ||
- name: Cache Node Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-node-caches-${{ hashFiles('**/yarn-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-caches- | ||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build Packages | ||
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 }}' | ||
- name: Upload Artifact arm64-v8a | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-arm64-v8a-release | ||
path: android/app/build/outputs/apk/release/app-arm64-v8a-release.apk | ||
|
||
- name: Upload Artifact armeabi-v7a | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-armeabi-v7a-release | ||
path: android/app/build/outputs/apk/release/app-armeabi-v7a-release.apk | ||
|
||
- name: Upload Artifact universal | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-universal-release | ||
path: android/app/build/outputs/apk/release/app-universal-release.apk | ||
|
||
- name: Upload Artifact x86_64 | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-x86_64-release | ||
path: android/app/build/outputs/apk/release/app-x86_64-release.apk | ||
|
||
- name: Upload Artifact x86 | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-x86-release | ||
path: android/app/build/outputs/apk/release/app-x86-release.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
Android: | ||
name: Android | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12.x' | ||
|
||
- name: Cache Gradle Wrapper | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
|
||
- name: Cache Gradle Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-caches- | ||
- name: Cache Node Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-node-caches-${{ hashFiles('**/yarn-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-caches- | ||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build Packages | ||
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 }}' | ||
# Push tag to GitHub if package.json version's tag is not tagged | ||
- name: Get package version | ||
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV | ||
|
||
- name: Create git tag | ||
uses: pkgdeps/git-tag-action@v2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_repo: ${{ github.repository }} | ||
version: ${{ env.PACKAGE_VERSION }} | ||
git_commit_sha: ${{ github.sha }} | ||
git_tag_prefix: "v" | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: ./publish/changeLog.md | ||
prerelease: false | ||
draft: false | ||
tag_name: v${{ env.PACKAGE_VERSION }} | ||
files: | | ||
android/app/build/outputs/apk/release/app-arm64-v8a-release.apk | ||
android/app/build/outputs/apk/release/app-armeabi-v7a-release.apk | ||
android/app/build/outputs/apk/release/app-x86_64-release.apk | ||
android/app/build/outputs/apk/release/app-x86-release.apk | ||
android/app/build/outputs/apk/release/app-universal-release.apk | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload Artifact arm64-v8a | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-arm64-v8a-release | ||
path: android/app/build/outputs/apk/release/app-arm64-v8a-release.apk | ||
|
||
- name: Upload Artifact armeabi-v7a | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-armeabi-v7a-release | ||
path: android/app/build/outputs/apk/release/app-armeabi-v7a-release.apk | ||
|
||
- name: Upload Artifact universal | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-universal-release | ||
path: android/app/build/outputs/apk/release/app-universal-release.apk | ||
|
||
- name: Upload Artifact x86_64 | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-x86_64-release | ||
path: android/app/build/outputs/apk/release/app-x86_64-release.apk | ||
|
||
- name: Upload Artifact x86 | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-x86-release | ||
path: android/app/build/outputs/apk/release/app-x86-release.apk |
Oops, something went wrong.