Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
336e106e01 | ||
|
|
c0f802c27b | ||
|
|
da033e697f | ||
|
|
5bb32df16b | ||
|
|
6cb364531b | ||
|
|
72fa2c765d | ||
|
|
0643b6d719 | ||
|
|
da79b306b2 | ||
|
|
9a6f8b86fc | ||
|
|
37214fcbdc | ||
|
|
eb578fa5e6 | ||
|
|
51f79ac8ad | ||
|
|
ddef0fc2c8 | ||
|
|
dbc72d5259 | ||
|
|
f686294aab | ||
|
|
29cdebe424 | ||
|
|
ef476552e0 | ||
|
|
dd0d4d52c1 | ||
|
|
0c825a3d85 | ||
|
|
2d07d5f1fa | ||
|
|
2dc9e71ab5 | ||
|
|
062b0cadd2 | ||
|
|
ad92e6d3ff | ||
|
|
328956d84a | ||
|
|
9d58e15b39 | ||
|
|
721a42f60f | ||
|
|
6a0f5678ec | ||
|
|
dbfc4172fb | ||
|
|
2097a9f7fd | ||
|
|
3053e2b5c9 | ||
|
|
7f1585a6ad | ||
|
|
704edfbaaf | ||
|
|
5622c007f2 | ||
|
|
3719a71e0f | ||
|
|
44fb9a022d | ||
|
|
45cc51192a | ||
|
|
d981690ba6 | ||
|
|
161a621d71 | ||
|
|
7da1afa643 | ||
|
|
77e89fc9e2 | ||
|
|
36e97cb621 | ||
|
|
c539376cc4 | ||
|
|
0465147a7c | ||
|
|
2e96c61b82 | ||
|
|
08470aaf00 | ||
|
|
8ee98327fe | ||
|
|
a91f455534 | ||
|
|
ac175d091f | ||
|
|
872dde4e1c | ||
|
|
23807a3506 | ||
|
|
a3fda31743 | ||
|
|
b8f04e5426 | ||
|
|
46eb293f98 | ||
|
|
5af187ba48 | ||
|
|
9847cdb894 | ||
|
|
fac2b62ec2 | ||
|
|
81b5bfb56b | ||
|
|
7abf5c0e88 | ||
|
|
ed4a32cba3 | ||
|
|
0778c49b18 | ||
|
|
3db1d795dc | ||
|
|
07fc618fd2 | ||
|
|
75da5d16ac | ||
|
|
1d40ac5b35 | ||
|
|
6bdd052472 | ||
|
|
74632eff10 | ||
|
|
3055726fb3 | ||
|
|
d10a29b931 | ||
|
|
75a264ca83 | ||
|
|
dcd764bd68 | ||
|
|
1a596077fa |
@@ -1,5 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
|
ignorePatterns: ['submodules/**'],
|
||||||
extends: '@react-native-community',
|
extends: '@react-native-community',
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/no-unused-vars': ['warn'],
|
'@typescript-eslint/no-unused-vars': ['warn'],
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
# Windows files should use crlf line endings
|
# Windows files should use crlf line endings
|
||||||
# https://help.github.com/articles/dealing-with-line-endings/
|
# https://help.github.com/articles/dealing-with-line-endings/
|
||||||
*.bat text eol=crlf
|
*.bat text eol=crlf
|
||||||
|
|
||||||
|
# ignore these paths for GitHub language percentages
|
||||||
|
android/app/src/main/assets/** linguist-vendored=true
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
ko_fi: austinried
|
||||||
@@ -2,10 +2,18 @@ name: build-release-debugsign
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- assets/**
|
||||||
|
- README.md
|
||||||
|
- LICENSE
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- release/*
|
- release/*
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- assets/**
|
||||||
|
- README.md
|
||||||
|
- LICENSE
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
@@ -14,12 +22,22 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- run: |
|
||||||
|
rm submodules/ExoPlayer/gradle/wrapper/gradle-wrapper.jar
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
- run: |
|
- run: |
|
||||||
yarn
|
yarn install
|
||||||
|
- run: |
|
||||||
|
yarn lint --max-warnings 0
|
||||||
|
- run: |
|
||||||
|
yarn license
|
||||||
|
- run: |
|
||||||
|
scripts/prepare-exoplayer-ffmpeg.sh
|
||||||
- uses: gradle/wrapper-validation-action@v1
|
- uses: gradle/wrapper-validation-action@v1
|
||||||
- uses: gradle/gradle-build-action@v1
|
- uses: gradle/gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
@@ -28,7 +46,12 @@ jobs:
|
|||||||
configuration-cache-enabled: true
|
configuration-cache-enabled: true
|
||||||
build-root-directory: android
|
build-root-directory: android
|
||||||
arguments: assembleRelease -PsignReleaseWithDebug=true
|
arguments: assembleRelease -PsignReleaseWithDebug=true
|
||||||
|
- run: |
|
||||||
|
mkdir bin
|
||||||
|
- run: >
|
||||||
|
mv android/app/build/outputs/apk/release/app-release.apk
|
||||||
|
bin/subtracks-${GITHUB_SHA}.apk
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: app-release.apk
|
name: subtracks-testing
|
||||||
path: android/app/build/outputs/apk/release/app-release.apk
|
path: bin/*
|
||||||
|
|||||||
@@ -10,12 +10,23 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- run: |
|
||||||
|
rm submodules/ExoPlayer/gradle/wrapper/gradle-wrapper.jar
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
|
- name: Get subtracks version
|
||||||
|
run: |
|
||||||
|
echo "SUBTRACKS_VERSION=$(node -e "console.log(require('./package.json').version);")" >> $GITHUB_ENV
|
||||||
- run: |
|
- run: |
|
||||||
yarn
|
yarn install
|
||||||
|
- run: |
|
||||||
|
yarn license
|
||||||
|
- run: |
|
||||||
|
scripts/prepare-exoplayer-ffmpeg.sh
|
||||||
- uses: gradle/wrapper-validation-action@v1
|
- uses: gradle/wrapper-validation-action@v1
|
||||||
- name: Retrieve keystore file
|
- name: Retrieve keystore file
|
||||||
env:
|
env:
|
||||||
@@ -33,10 +44,11 @@ jobs:
|
|||||||
-PSUBTRACKS_UPLOAD_KEY_ALIAS=subtracks
|
-PSUBTRACKS_UPLOAD_KEY_ALIAS=subtracks
|
||||||
-PSUBTRACKS_UPLOAD_KEY_PASSWORD="$SUBTRACKS_UPLOAD_KEY_PASSWORD"
|
-PSUBTRACKS_UPLOAD_KEY_PASSWORD="$SUBTRACKS_UPLOAD_KEY_PASSWORD"
|
||||||
-PSUBTRACKS_UPLOAD_STORE_PASSWORD="$SUBTRACKS_UPLOAD_STORE_PASSWORD"
|
-PSUBTRACKS_UPLOAD_STORE_PASSWORD="$SUBTRACKS_UPLOAD_STORE_PASSWORD"
|
||||||
- uses: actions/upload-artifact@v2
|
- run: |
|
||||||
with:
|
mkdir bin
|
||||||
name: app-release.apk
|
- run: >
|
||||||
path: android/app/build/outputs/apk/release/app-release.apk
|
mv android/app/build/outputs/apk/release/app-release.apk
|
||||||
|
bin/subtracks-${SUBTRACKS_VERSION}.apk
|
||||||
- name: Build release AAB
|
- name: Build release AAB
|
||||||
env:
|
env:
|
||||||
SUBTRACKS_UPLOAD_KEY_PASSWORD: ${{ secrets.SUBTRACKS_UPLOAD_KEY_PASSWORD }}
|
SUBTRACKS_UPLOAD_KEY_PASSWORD: ${{ secrets.SUBTRACKS_UPLOAD_KEY_PASSWORD }}
|
||||||
@@ -48,7 +60,10 @@ jobs:
|
|||||||
-PSUBTRACKS_UPLOAD_KEY_ALIAS=subtracks
|
-PSUBTRACKS_UPLOAD_KEY_ALIAS=subtracks
|
||||||
-PSUBTRACKS_UPLOAD_KEY_PASSWORD="$SUBTRACKS_UPLOAD_KEY_PASSWORD"
|
-PSUBTRACKS_UPLOAD_KEY_PASSWORD="$SUBTRACKS_UPLOAD_KEY_PASSWORD"
|
||||||
-PSUBTRACKS_UPLOAD_STORE_PASSWORD="$SUBTRACKS_UPLOAD_STORE_PASSWORD"
|
-PSUBTRACKS_UPLOAD_STORE_PASSWORD="$SUBTRACKS_UPLOAD_STORE_PASSWORD"
|
||||||
|
- run: >
|
||||||
|
mv android/app/build/outputs/bundle/release/app-release.aab
|
||||||
|
bin/subtracks-${SUBTRACKS_VERSION}.aab
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: app-release.aab
|
name: subtracks-release
|
||||||
path: android/app/build/outputs/bundle/release/app-release.aab
|
path: bin/*
|
||||||
|
|||||||
@@ -57,3 +57,6 @@ buck-out/
|
|||||||
|
|
||||||
# CocoaPods
|
# CocoaPods
|
||||||
/ios/Pods/
|
/ios/Pods/
|
||||||
|
|
||||||
|
# ffmpeg build
|
||||||
|
/ndk
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "submodules/ExoPlayer"]
|
||||||
|
path = submodules/ExoPlayer
|
||||||
|
url = https://github.com/google/ExoPlayer.git
|
||||||
@@ -1 +1,3 @@
|
|||||||
{}
|
{
|
||||||
|
"ignore_dirs": ["ndk"]
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,2 +1,44 @@
|
|||||||
# Subtracks
|
<img src="assets/header.png" alt="subtracks logo" width="500"/>
|
||||||
Subtracks is an open source music streaming app for [Subsonic-compatible](http://www.subsonic.org/pages/api.jsp) servers. Its primary goals are to give you fast, clean, and beautiful access to your music in the style of modern media player apps.
|
|
||||||
|
#
|
||||||
|
Subtracks is an Android open source music streaming app for [Subsonic-API-compatible](http://www.subsonic.org/pages/api.jsp) servers ([Subsonic](http://www.subsonic.org/pages/index.jsp), [Navidrome](https://www.navidrome.org/), [Airsonic](https://airsonic.github.io/), and more). It's designed to give you clean and convenient access to your music in the style of modern media players.
|
||||||
|
|
||||||
|
# Screenshots
|
||||||
|
<p float="left">
|
||||||
|
<img src="metadata/en-US/images/phoneScreenshots/01_home.png" alt="home" width="200"/>
|
||||||
|
<img src="metadata/en-US/images/phoneScreenshots/02_now-playing.png" alt="now playing" width="200"/>
|
||||||
|
<img src="metadata/en-US/images/phoneScreenshots/03_library-albums.png" alt="library albums" width="200"/>
|
||||||
|
<img src="metadata/en-US/images/phoneScreenshots/04_album.png" alt="album view" width="200"/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
# Download
|
||||||
|
<p float="left">
|
||||||
|
<a href="https://play.google.com/store/apps/details?id=com.subtracks"><img src="assets/google-play-badge.png" width="250"/></a>
|
||||||
|
<a href="https://f-droid.org/en/packages/com.subtracks/"><img src="assets/f-droid-badge.png" width="250"></a>
|
||||||
|
<a href="https://github.com/austinried/subtracks/releases/latest"><img src="assets/github-badge.png" width="250"/></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
> :warning: Note: each download source above is signed with a different key, so you cannot switch between them without first uninstalling and then re-installing the app.
|
||||||
|
|
||||||
|
# Features
|
||||||
|
- Album and artist art display by default (full-res in detail/now playing views)
|
||||||
|
- Gapless playback
|
||||||
|
- Mulitple server support
|
||||||
|
- Filterable/sortable album and artist library views
|
||||||
|
- Search artists, albums, and songs
|
||||||
|
- Scrobble support
|
||||||
|
- Max bitrate and buffer size settings
|
||||||
|
- Loop and shuffle playback options
|
||||||
|
- Long-press for context menu shortcuts
|
||||||
|
|
||||||
|
# Coming Soon™
|
||||||
|
- Offline support
|
||||||
|
- Customizable home screen categories
|
||||||
|
- Browse by folder support (currently only browses by tags)
|
||||||
|
- Multiple music folder awareness
|
||||||
|
- By year/by genre albums filter
|
||||||
|
- Playlist mangement (add/remove/sort/edit)
|
||||||
|
- Queue management (add/remove/sort)
|
||||||
|
- Multi-select actions
|
||||||
|
- Performance & animation improvements
|
||||||
|
- More shuffle play modes
|
||||||
|
|||||||
@@ -134,8 +134,8 @@ android {
|
|||||||
applicationId "com.subtracks"
|
applicationId "com.subtracks"
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 1
|
versionCode 5
|
||||||
versionName "1.0.0"
|
versionName '1.1.1'
|
||||||
}
|
}
|
||||||
splits {
|
splits {
|
||||||
abi {
|
abi {
|
||||||
@@ -220,6 +220,15 @@ dependencies {
|
|||||||
} else {
|
} else {
|
||||||
implementation jscFlavor
|
implementation jscFlavor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
implementation(project(":react-native-track-player")) {
|
||||||
|
exclude group:'com.google.android.exoplayer'
|
||||||
|
}
|
||||||
|
implementation project(':exoplayer-library-core')
|
||||||
|
implementation project(':exoplayer-extension-ffmpeg')
|
||||||
|
compileOnly project(':exoplayer-library-dash')
|
||||||
|
compileOnly project(':exoplayer-library-hls')
|
||||||
|
compileOnly project(':exoplayer-library-smoothstreaming')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run this once to be able to run the application with BUCK
|
// Run this once to be able to run the application with BUCK
|
||||||
@@ -230,3 +239,76 @@ task copyDownloadableDepsToLibs(type: Copy) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
||||||
|
|
||||||
|
class Version {
|
||||||
|
|
||||||
|
private int major
|
||||||
|
private int minor
|
||||||
|
private int patch
|
||||||
|
private int code
|
||||||
|
|
||||||
|
Version(int code, String version) {
|
||||||
|
this.code = code
|
||||||
|
|
||||||
|
def (major, minor, patch) = version.tokenize('.')
|
||||||
|
this.major = major.toInteger()
|
||||||
|
this.minor = minor.toInteger()
|
||||||
|
this.patch = patch.toInteger()
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
void bumpMajor() {
|
||||||
|
major += 1
|
||||||
|
minor = 0
|
||||||
|
patch = 0
|
||||||
|
|
||||||
|
code += 1
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
void bumpMinor() {
|
||||||
|
minor += 1
|
||||||
|
patch = 0
|
||||||
|
|
||||||
|
code += 1
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
void bumpPatch() {
|
||||||
|
patch += 1
|
||||||
|
code += 1
|
||||||
|
}
|
||||||
|
|
||||||
|
String getName() { "$major.$minor.$patch" }
|
||||||
|
|
||||||
|
int getCode() { code }
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.addRule("Pattern: bump<TYPE>Version") { String taskName ->
|
||||||
|
if (taskName.matches("bump(Major|Minor|Patch)Version")) {
|
||||||
|
task(taskName) {
|
||||||
|
doLast {
|
||||||
|
String type = (taskName - 'bump' - 'Version')
|
||||||
|
|
||||||
|
println "Bumping ${type.toLowerCase()} version…"
|
||||||
|
|
||||||
|
int oldVersionCode = android.defaultConfig.versionCode
|
||||||
|
String oldVersionName = android.defaultConfig.versionName
|
||||||
|
|
||||||
|
version = new Version(oldVersionCode, oldVersionName)
|
||||||
|
version."bump$type"()
|
||||||
|
|
||||||
|
String newVersionName = version.getName()
|
||||||
|
String newVersionCode = version.getCode()
|
||||||
|
|
||||||
|
println "$oldVersionName ($oldVersionCode) → $newVersionName ($newVersionCode)"
|
||||||
|
|
||||||
|
def updated = buildFile.getText()
|
||||||
|
updated = updated.replaceFirst("versionName '$oldVersionName'", "versionName '$newVersionName'")
|
||||||
|
updated = updated.replaceFirst("versionCode $oldVersionCode", "versionCode $newVersionCode")
|
||||||
|
|
||||||
|
buildFile.setText(updated)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.subtracks">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.subtracks" xmlns:tools="http://schemas.android.com/tools">
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
|
<uses-permission tools:node="remove" android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||||
|
<uses-permission tools:node="remove" android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||||
|
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="true" android:networkSecurityConfig="@xml/network_security_config">
|
||||||
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustPan">
|
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustPan">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
|
|||||||
@@ -0,0 +1,504 @@
|
|||||||
|
This software uses code of <a href="http://ffmpeg.org">FFmpeg</a> licensed under the <a href="http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html">LGPLv2.1</a> and its source can be downloaded <a href="http://ffmpeg.org/download.html#get-sources">here</a>.
|
||||||
|
|
||||||
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
|
Version 2.1, February 1999
|
||||||
|
|
||||||
|
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
[This is the first released version of the Lesser GPL. It also counts
|
||||||
|
as the successor of the GNU Library Public License, version 2, hence
|
||||||
|
the version number 2.1.]
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
Licenses are intended to guarantee your freedom to share and change
|
||||||
|
free software--to make sure the software is free for all its users.
|
||||||
|
|
||||||
|
This license, the Lesser General Public License, applies to some
|
||||||
|
specially designated software packages--typically libraries--of the
|
||||||
|
Free Software Foundation and other authors who decide to use it. You
|
||||||
|
can use it too, but we suggest you first think carefully about whether
|
||||||
|
this license or the ordinary General Public License is the better
|
||||||
|
strategy to use in any particular case, based on the explanations below.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom of use,
|
||||||
|
not price. Our General Public Licenses are designed to make sure that
|
||||||
|
you have the freedom to distribute copies of free software (and charge
|
||||||
|
for this service if you wish); that you receive source code or can get
|
||||||
|
it if you want it; that you can change the software and use pieces of
|
||||||
|
it in new free programs; and that you are informed that you can do
|
||||||
|
these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
distributors to deny you these rights or to ask you to surrender these
|
||||||
|
rights. These restrictions translate to certain responsibilities for
|
||||||
|
you if you distribute copies of the library or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of the library, whether gratis
|
||||||
|
or for a fee, you must give the recipients all the rights that we gave
|
||||||
|
you. You must make sure that they, too, receive or can get the source
|
||||||
|
code. If you link other code with the library, you must provide
|
||||||
|
complete object files to the recipients, so that they can relink them
|
||||||
|
with the library after making changes to the library and recompiling
|
||||||
|
it. And you must show them these terms so they know their rights.
|
||||||
|
|
||||||
|
We protect your rights with a two-step method: (1) we copyright the
|
||||||
|
library, and (2) we offer you this license, which gives you legal
|
||||||
|
permission to copy, distribute and/or modify the library.
|
||||||
|
|
||||||
|
To protect each distributor, we want to make it very clear that
|
||||||
|
there is no warranty for the free library. Also, if the library is
|
||||||
|
modified by someone else and passed on, the recipients should know
|
||||||
|
that what they have is not the original version, so that the original
|
||||||
|
author's reputation will not be affected by problems that might be
|
||||||
|
introduced by others.
|
||||||
|
|
||||||
|
Finally, software patents pose a constant threat to the existence of
|
||||||
|
any free program. We wish to make sure that a company cannot
|
||||||
|
effectively restrict the users of a free program by obtaining a
|
||||||
|
restrictive license from a patent holder. Therefore, we insist that
|
||||||
|
any patent license obtained for a version of the library must be
|
||||||
|
consistent with the full freedom of use specified in this license.
|
||||||
|
|
||||||
|
Most GNU software, including some libraries, is covered by the
|
||||||
|
ordinary GNU General Public License. This license, the GNU Lesser
|
||||||
|
General Public License, applies to certain designated libraries, and
|
||||||
|
is quite different from the ordinary General Public License. We use
|
||||||
|
this license for certain libraries in order to permit linking those
|
||||||
|
libraries into non-free programs.
|
||||||
|
|
||||||
|
When a program is linked with a library, whether statically or using
|
||||||
|
a shared library, the combination of the two is legally speaking a
|
||||||
|
combined work, a derivative of the original library. The ordinary
|
||||||
|
General Public License therefore permits such linking only if the
|
||||||
|
entire combination fits its criteria of freedom. The Lesser General
|
||||||
|
Public License permits more lax criteria for linking other code with
|
||||||
|
the library.
|
||||||
|
|
||||||
|
We call this license the "Lesser" General Public License because it
|
||||||
|
does Less to protect the user's freedom than the ordinary General
|
||||||
|
Public License. It also provides other free software developers Less
|
||||||
|
of an advantage over competing non-free programs. These disadvantages
|
||||||
|
are the reason we use the ordinary General Public License for many
|
||||||
|
libraries. However, the Lesser license provides advantages in certain
|
||||||
|
special circumstances.
|
||||||
|
|
||||||
|
For example, on rare occasions, there may be a special need to
|
||||||
|
encourage the widest possible use of a certain library, so that it becomes
|
||||||
|
a de-facto standard. To achieve this, non-free programs must be
|
||||||
|
allowed to use the library. A more frequent case is that a free
|
||||||
|
library does the same job as widely used non-free libraries. In this
|
||||||
|
case, there is little to gain by limiting the free library to free
|
||||||
|
software only, so we use the Lesser General Public License.
|
||||||
|
|
||||||
|
In other cases, permission to use a particular library in non-free
|
||||||
|
programs enables a greater number of people to use a large body of
|
||||||
|
free software. For example, permission to use the GNU C Library in
|
||||||
|
non-free programs enables many more people to use the whole GNU
|
||||||
|
operating system, as well as its variant, the GNU/Linux operating
|
||||||
|
system.
|
||||||
|
|
||||||
|
Although the Lesser General Public License is Less protective of the
|
||||||
|
users' freedom, it does ensure that the user of a program that is
|
||||||
|
linked with the Library has the freedom and the wherewithal to run
|
||||||
|
that program using a modified version of the Library.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow. Pay close attention to the difference between a
|
||||||
|
"work based on the library" and a "work that uses the library". The
|
||||||
|
former contains code derived from the library, whereas the latter must
|
||||||
|
be combined with the library in order to run.
|
||||||
|
|
||||||
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License Agreement applies to any software library or other
|
||||||
|
program which contains a notice placed by the copyright holder or
|
||||||
|
other authorized party saying it may be distributed under the terms of
|
||||||
|
this Lesser General Public License (also called "this License").
|
||||||
|
Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
A "library" means a collection of software functions and/or data
|
||||||
|
prepared so as to be conveniently linked with application programs
|
||||||
|
(which use some of those functions and data) to form executables.
|
||||||
|
|
||||||
|
The "Library", below, refers to any such software library or work
|
||||||
|
which has been distributed under these terms. A "work based on the
|
||||||
|
Library" means either the Library or any derivative work under
|
||||||
|
copyright law: that is to say, a work containing the Library or a
|
||||||
|
portion of it, either verbatim or with modifications and/or translated
|
||||||
|
straightforwardly into another language. (Hereinafter, translation is
|
||||||
|
included without limitation in the term "modification".)
|
||||||
|
|
||||||
|
"Source code" for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For a library, complete source code means
|
||||||
|
all the source code for all modules it contains, plus any associated
|
||||||
|
interface definition files, plus the scripts used to control compilation
|
||||||
|
and installation of the library.
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running a program using the Library is not restricted, and output from
|
||||||
|
such a program is covered only if its contents constitute a work based
|
||||||
|
on the Library (independent of the use of the Library in a tool for
|
||||||
|
writing it). Whether that is true depends on what the Library does
|
||||||
|
and what the program that uses the Library does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Library's
|
||||||
|
complete source code as you receive it, in any medium, provided that
|
||||||
|
you conspicuously and appropriately publish on each copy an
|
||||||
|
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||||
|
all the notices that refer to this License and to the absence of any
|
||||||
|
warranty; and distribute a copy of this License along with the
|
||||||
|
Library.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy,
|
||||||
|
and you may at your option offer warranty protection in exchange for a
|
||||||
|
fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Library or any portion
|
||||||
|
of it, thus forming a work based on the Library, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The modified work must itself be a software library.
|
||||||
|
|
||||||
|
b) You must cause the files modified to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
c) You must cause the whole of the work to be licensed at no
|
||||||
|
charge to all third parties under the terms of this License.
|
||||||
|
|
||||||
|
d) If a facility in the modified Library refers to a function or a
|
||||||
|
table of data to be supplied by an application program that uses
|
||||||
|
the facility, other than as an argument passed when the facility
|
||||||
|
is invoked, then you must make a good faith effort to ensure that,
|
||||||
|
in the event an application does not supply such function or
|
||||||
|
table, the facility still operates, and performs whatever part of
|
||||||
|
its purpose remains meaningful.
|
||||||
|
|
||||||
|
(For example, a function in a library to compute square roots has
|
||||||
|
a purpose that is entirely well-defined independent of the
|
||||||
|
application. Therefore, Subsection 2d requires that any
|
||||||
|
application-supplied function or table used by this function must
|
||||||
|
be optional: if the application does not supply it, the square
|
||||||
|
root function must still compute square roots.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Library,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Library, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote
|
||||||
|
it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Library.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Library
|
||||||
|
with the Library (or with a work based on the Library) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||||
|
License instead of this License to a given copy of the Library. To do
|
||||||
|
this, you must alter all the notices that refer to this License, so
|
||||||
|
that they refer to the ordinary GNU General Public License, version 2,
|
||||||
|
instead of to this License. (If a newer version than version 2 of the
|
||||||
|
ordinary GNU General Public License has appeared, then you can specify
|
||||||
|
that version instead if you wish.) Do not make any other change in
|
||||||
|
these notices.
|
||||||
|
|
||||||
|
Once this change is made in a given copy, it is irreversible for
|
||||||
|
that copy, so the ordinary GNU General Public License applies to all
|
||||||
|
subsequent copies and derivative works made from that copy.
|
||||||
|
|
||||||
|
This option is useful when you wish to copy part of the code of
|
||||||
|
the Library into a program that is not a library.
|
||||||
|
|
||||||
|
4. You may copy and distribute the Library (or a portion or
|
||||||
|
derivative of it, under Section 2) in object code or executable form
|
||||||
|
under the terms of Sections 1 and 2 above provided that you accompany
|
||||||
|
it with the complete corresponding machine-readable source code, which
|
||||||
|
must be distributed under the terms of Sections 1 and 2 above on a
|
||||||
|
medium customarily used for software interchange.
|
||||||
|
|
||||||
|
If distribution of object code is made by offering access to copy
|
||||||
|
from a designated place, then offering equivalent access to copy the
|
||||||
|
source code from the same place satisfies the requirement to
|
||||||
|
distribute the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
5. A program that contains no derivative of any portion of the
|
||||||
|
Library, but is designed to work with the Library by being compiled or
|
||||||
|
linked with it, is called a "work that uses the Library". Such a
|
||||||
|
work, in isolation, is not a derivative work of the Library, and
|
||||||
|
therefore falls outside the scope of this License.
|
||||||
|
|
||||||
|
However, linking a "work that uses the Library" with the Library
|
||||||
|
creates an executable that is a derivative of the Library (because it
|
||||||
|
contains portions of the Library), rather than a "work that uses the
|
||||||
|
library". The executable is therefore covered by this License.
|
||||||
|
Section 6 states terms for distribution of such executables.
|
||||||
|
|
||||||
|
When a "work that uses the Library" uses material from a header file
|
||||||
|
that is part of the Library, the object code for the work may be a
|
||||||
|
derivative work of the Library even though the source code is not.
|
||||||
|
Whether this is true is especially significant if the work can be
|
||||||
|
linked without the Library, or if the work is itself a library. The
|
||||||
|
threshold for this to be true is not precisely defined by law.
|
||||||
|
|
||||||
|
If such an object file uses only numerical parameters, data
|
||||||
|
structure layouts and accessors, and small macros and small inline
|
||||||
|
functions (ten lines or less in length), then the use of the object
|
||||||
|
file is unrestricted, regardless of whether it is legally a derivative
|
||||||
|
work. (Executables containing this object code plus portions of the
|
||||||
|
Library will still fall under Section 6.)
|
||||||
|
|
||||||
|
Otherwise, if the work is a derivative of the Library, you may
|
||||||
|
distribute the object code for the work under the terms of Section 6.
|
||||||
|
Any executables containing that work also fall under Section 6,
|
||||||
|
whether or not they are linked directly with the Library itself.
|
||||||
|
|
||||||
|
6. As an exception to the Sections above, you may also combine or
|
||||||
|
link a "work that uses the Library" with the Library to produce a
|
||||||
|
work containing portions of the Library, and distribute that work
|
||||||
|
under terms of your choice, provided that the terms permit
|
||||||
|
modification of the work for the customer's own use and reverse
|
||||||
|
engineering for debugging such modifications.
|
||||||
|
|
||||||
|
You must give prominent notice with each copy of the work that the
|
||||||
|
Library is used in it and that the Library and its use are covered by
|
||||||
|
this License. You must supply a copy of this License. If the work
|
||||||
|
during execution displays copyright notices, you must include the
|
||||||
|
copyright notice for the Library among them, as well as a reference
|
||||||
|
directing the user to the copy of this License. Also, you must do one
|
||||||
|
of these things:
|
||||||
|
|
||||||
|
a) Accompany the work with the complete corresponding
|
||||||
|
machine-readable source code for the Library including whatever
|
||||||
|
changes were used in the work (which must be distributed under
|
||||||
|
Sections 1 and 2 above); and, if the work is an executable linked
|
||||||
|
with the Library, with the complete machine-readable "work that
|
||||||
|
uses the Library", as object code and/or source code, so that the
|
||||||
|
user can modify the Library and then relink to produce a modified
|
||||||
|
executable containing the modified Library. (It is understood
|
||||||
|
that the user who changes the contents of definitions files in the
|
||||||
|
Library will not necessarily be able to recompile the application
|
||||||
|
to use the modified definitions.)
|
||||||
|
|
||||||
|
b) Use a suitable shared library mechanism for linking with the
|
||||||
|
Library. A suitable mechanism is one that (1) uses at run time a
|
||||||
|
copy of the library already present on the user's computer system,
|
||||||
|
rather than copying library functions into the executable, and (2)
|
||||||
|
will operate properly with a modified version of the library, if
|
||||||
|
the user installs one, as long as the modified version is
|
||||||
|
interface-compatible with the version that the work was made with.
|
||||||
|
|
||||||
|
c) Accompany the work with a written offer, valid for at
|
||||||
|
least three years, to give the same user the materials
|
||||||
|
specified in Subsection 6a, above, for a charge no more
|
||||||
|
than the cost of performing this distribution.
|
||||||
|
|
||||||
|
d) If distribution of the work is made by offering access to copy
|
||||||
|
from a designated place, offer equivalent access to copy the above
|
||||||
|
specified materials from the same place.
|
||||||
|
|
||||||
|
e) Verify that the user has already received a copy of these
|
||||||
|
materials or that you have already sent this user a copy.
|
||||||
|
|
||||||
|
For an executable, the required form of the "work that uses the
|
||||||
|
Library" must include any data and utility programs needed for
|
||||||
|
reproducing the executable from it. However, as a special exception,
|
||||||
|
the materials to be distributed need not include anything that is
|
||||||
|
normally distributed (in either source or binary form) with the major
|
||||||
|
components (compiler, kernel, and so on) of the operating system on
|
||||||
|
which the executable runs, unless that component itself accompanies
|
||||||
|
the executable.
|
||||||
|
|
||||||
|
It may happen that this requirement contradicts the license
|
||||||
|
restrictions of other proprietary libraries that do not normally
|
||||||
|
accompany the operating system. Such a contradiction means you cannot
|
||||||
|
use both them and the Library together in an executable that you
|
||||||
|
distribute.
|
||||||
|
|
||||||
|
7. You may place library facilities that are a work based on the
|
||||||
|
Library side-by-side in a single library together with other library
|
||||||
|
facilities not covered by this License, and distribute such a combined
|
||||||
|
library, provided that the separate distribution of the work based on
|
||||||
|
the Library and of the other library facilities is otherwise
|
||||||
|
permitted, and provided that you do these two things:
|
||||||
|
|
||||||
|
a) Accompany the combined library with a copy of the same work
|
||||||
|
based on the Library, uncombined with any other library
|
||||||
|
facilities. This must be distributed under the terms of the
|
||||||
|
Sections above.
|
||||||
|
|
||||||
|
b) Give prominent notice with the combined library of the fact
|
||||||
|
that part of it is a work based on the Library, and explaining
|
||||||
|
where to find the accompanying uncombined form of the same work.
|
||||||
|
|
||||||
|
8. You may not copy, modify, sublicense, link with, or distribute
|
||||||
|
the Library except as expressly provided under this License. Any
|
||||||
|
attempt otherwise to copy, modify, sublicense, link with, or
|
||||||
|
distribute the Library is void, and will automatically terminate your
|
||||||
|
rights under this License. However, parties who have received copies,
|
||||||
|
or rights, from you under this License will not have their licenses
|
||||||
|
terminated so long as such parties remain in full compliance.
|
||||||
|
|
||||||
|
9. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Library or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Library (or any work based on the
|
||||||
|
Library), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Library or works based on it.
|
||||||
|
|
||||||
|
10. Each time you redistribute the Library (or any work based on the
|
||||||
|
Library), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute, link with or modify the Library
|
||||||
|
subject to these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties with
|
||||||
|
this License.
|
||||||
|
|
||||||
|
11. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Library at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Library by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Library.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under any
|
||||||
|
particular circumstance, the balance of the section is intended to apply,
|
||||||
|
and the section as a whole is intended to apply in other circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
12. If the distribution and/or use of the Library is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Library under this License may add
|
||||||
|
an explicit geographical distribution limitation excluding those countries,
|
||||||
|
so that distribution is permitted only in or among countries not thus
|
||||||
|
excluded. In such case, this License incorporates the limitation as if
|
||||||
|
written in the body of this License.
|
||||||
|
|
||||||
|
13. The Free Software Foundation may publish revised and/or new
|
||||||
|
versions of the Lesser General Public License from time to time.
|
||||||
|
Such new versions will be similar in spirit to the present version,
|
||||||
|
but may differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Library
|
||||||
|
specifies a version number of this License which applies to it and
|
||||||
|
"any later version", you have the option of following the terms and
|
||||||
|
conditions either of that version or of any later version published by
|
||||||
|
the Free Software Foundation. If the Library does not specify a
|
||||||
|
license version number, you may choose any version ever published by
|
||||||
|
the Free Software Foundation.
|
||||||
|
|
||||||
|
14. If you wish to incorporate parts of the Library into other free
|
||||||
|
programs whose distribution conditions are incompatible with these,
|
||||||
|
write to the author to ask for permission. For software which is
|
||||||
|
copyrighted by the Free Software Foundation, write to the Free
|
||||||
|
Software Foundation; we sometimes make exceptions for this. Our
|
||||||
|
decision will be guided by the two goals of preserving the free status
|
||||||
|
of all derivatives of our free software and of promoting the sharing
|
||||||
|
and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||||
|
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||||
|
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||||
|
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||||
|
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||||
|
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||||
|
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||||
|
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||||
|
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||||
|
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||||
|
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||||
|
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||||
|
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||||
|
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||||
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
|
DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Libraries
|
||||||
|
|
||||||
|
If you develop a new library, and you want it to be of the greatest
|
||||||
|
possible use to the public, we recommend making it free software that
|
||||||
|
everyone can redistribute and change. You can do so by permitting
|
||||||
|
redistribution under these terms (or, alternatively, under the terms of the
|
||||||
|
ordinary General Public License).
|
||||||
|
|
||||||
|
To apply these terms, attach the following notices to the library. It is
|
||||||
|
safest to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least the
|
||||||
|
"copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the library's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||||
|
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1990
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
That's all there is to it!
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<network-security-config>
|
||||||
|
<base-config cleartextTrafficPermitted="true">
|
||||||
|
<trust-anchors>
|
||||||
|
<certificates src="system" />
|
||||||
|
<certificates src="user" />
|
||||||
|
</trust-anchors>
|
||||||
|
</base-config>
|
||||||
|
</network-security-config>
|
||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext {
|
ext {
|
||||||
buildToolsVersion = "29.0.3"
|
buildToolsVersion = "30.0.3"
|
||||||
minSdkVersion = 21
|
minSdkVersion = 21
|
||||||
compileSdkVersion = 29
|
compileSdkVersion = 30
|
||||||
targetSdkVersion = 29
|
targetSdkVersion = 30
|
||||||
ndkVersion = "20.1.5948944"
|
ndkVersion = "20.1.5948944"
|
||||||
|
|
||||||
// react-native-async-storage next
|
// react-native-async-storage next
|
||||||
@@ -14,6 +14,9 @@ buildscript {
|
|||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
|
maven {
|
||||||
|
url 'https://plugins.gradle.org/m2/'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath("com.android.tools.build:gradle:4.1.0")
|
classpath("com.android.tools.build:gradle:4.1.0")
|
||||||
@@ -22,8 +25,14 @@ buildscript {
|
|||||||
|
|
||||||
// react-native-async-storage next
|
// react-native-async-storage next
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
||||||
|
classpath "gradle.plugin.com.cookpad.android.plugin:plugin:1.2.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
apply plugin: "com.cookpad.android.plugin.license-tools"
|
||||||
|
|
||||||
|
licenseTools {
|
||||||
|
outputHtml = "../../../app/src/main/assets/licenses.html"
|
||||||
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
// Copyright (C) 2017 The Android Open Source Project
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
def rootDir = gradle.ext.exoplayerRoot
|
||||||
|
def modulePrefix = ':'
|
||||||
|
if (gradle.ext.has('exoplayerModulePrefix')) {
|
||||||
|
modulePrefix += gradle.ext.exoplayerModulePrefix
|
||||||
|
}
|
||||||
|
|
||||||
|
// include modulePrefix + 'library'
|
||||||
|
include modulePrefix + 'library-core'
|
||||||
|
include modulePrefix + 'library-dash'
|
||||||
|
include modulePrefix + 'library-hls'
|
||||||
|
include modulePrefix + 'library-smoothstreaming'
|
||||||
|
// include modulePrefix + 'library-ui'
|
||||||
|
include modulePrefix + 'testutils'
|
||||||
|
// include modulePrefix + 'extension-av1'
|
||||||
|
include modulePrefix + 'extension-ffmpeg'
|
||||||
|
// include modulePrefix + 'extension-flac'
|
||||||
|
// include modulePrefix + 'extension-gvr'
|
||||||
|
// include modulePrefix + 'extension-ima'
|
||||||
|
// include modulePrefix + 'extension-cast'
|
||||||
|
// include modulePrefix + 'extension-cronet'
|
||||||
|
// include modulePrefix + 'extension-mediasession'
|
||||||
|
// include modulePrefix + 'extension-okhttp'
|
||||||
|
// include modulePrefix + 'extension-opus'
|
||||||
|
// include modulePrefix + 'extension-vp9'
|
||||||
|
// include modulePrefix + 'extension-rtmp'
|
||||||
|
// include modulePrefix + 'extension-leanback'
|
||||||
|
// include modulePrefix + 'extension-jobdispatcher'
|
||||||
|
// include modulePrefix + 'extension-workmanager'
|
||||||
|
|
||||||
|
// project(modulePrefix + 'library').projectDir = new File(rootDir, 'library/all')
|
||||||
|
project(modulePrefix + 'library-core').projectDir = new File(rootDir, 'library/core')
|
||||||
|
project(modulePrefix + 'library-dash').projectDir = new File(rootDir, 'library/dash')
|
||||||
|
project(modulePrefix + 'library-hls').projectDir = new File(rootDir, 'library/hls')
|
||||||
|
project(modulePrefix + 'library-smoothstreaming').projectDir = new File(rootDir, 'library/smoothstreaming')
|
||||||
|
// project(modulePrefix + 'library-ui').projectDir = new File(rootDir, 'library/ui')
|
||||||
|
project(modulePrefix + 'testutils').projectDir = new File(rootDir, 'testutils')
|
||||||
|
// project(modulePrefix + 'extension-av1').projectDir = new File(rootDir, 'extensions/av1')
|
||||||
|
project(modulePrefix + 'extension-ffmpeg').projectDir = new File(rootDir, 'extensions/ffmpeg')
|
||||||
|
// project(modulePrefix + 'extension-flac').projectDir = new File(rootDir, 'extensions/flac')
|
||||||
|
// project(modulePrefix + 'extension-gvr').projectDir = new File(rootDir, 'extensions/gvr')
|
||||||
|
// project(modulePrefix + 'extension-ima').projectDir = new File(rootDir, 'extensions/ima')
|
||||||
|
// project(modulePrefix + 'extension-cast').projectDir = new File(rootDir, 'extensions/cast')
|
||||||
|
// project(modulePrefix + 'extension-cronet').projectDir = new File(rootDir, 'extensions/cronet')
|
||||||
|
// project(modulePrefix + 'extension-mediasession').projectDir = new File(rootDir, 'extensions/mediasession')
|
||||||
|
// project(modulePrefix + 'extension-okhttp').projectDir = new File(rootDir, 'extensions/okhttp')
|
||||||
|
// project(modulePrefix + 'extension-opus').projectDir = new File(rootDir, 'extensions/opus')
|
||||||
|
// project(modulePrefix + 'extension-vp9').projectDir = new File(rootDir, 'extensions/vp9')
|
||||||
|
// project(modulePrefix + 'extension-rtmp').projectDir = new File(rootDir, 'extensions/rtmp')
|
||||||
|
// project(modulePrefix + 'extension-leanback').projectDir = new File(rootDir, 'extensions/leanback')
|
||||||
|
// project(modulePrefix + 'extension-jobdispatcher').projectDir = new File(rootDir, 'extensions/jobdispatcher')
|
||||||
|
// project(modulePrefix + 'extension-workmanager').projectDir = new File(rootDir, 'extensions/workmanager')
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
# Specifies the JVM arguments used for the daemon process.
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
# The setting is particularly useful for tweaking memory settings.
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
# Default value: -Xmx10248m -XX:MaxPermSize=256m
|
# Default value: -Xmx10248m -XX:MaxPermSize=256m
|
||||||
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
||||||
|
|
||||||
# When configured, Gradle will run in incubating parallel mode.
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
# This option should only be used with decoupled projects. More details, visit
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
@@ -30,3 +30,7 @@ FLIPPER_VERSION=0.75.1
|
|||||||
# react-native-async-storage next
|
# react-native-async-storage next
|
||||||
AsyncStorage_useNextStorage=true
|
AsyncStorage_useNextStorage=true
|
||||||
AsyncStorage_kotlinVersion=1.4.21
|
AsyncStorage_kotlinVersion=1.4.21
|
||||||
|
|
||||||
|
# required to override exoplayer used by react-native-track-player, resolves "abstract method" error
|
||||||
|
# see: https://github.com/google/ExoPlayer/issues/6801#issuecomment-574089568
|
||||||
|
android.enableDexingArtifactTransform=false
|
||||||
|
|||||||
@@ -0,0 +1,607 @@
|
|||||||
|
- artifact: androidx.activity:activity:+
|
||||||
|
name: activity
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.annotation:annotation:+
|
||||||
|
name: annotation
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.appcompat:appcompat-resources:+
|
||||||
|
name: appcompat-resources
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.appcompat:appcompat:+
|
||||||
|
name: appcompat
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.arch.core:core-common:+
|
||||||
|
name: core-common
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.arch.core:core-runtime:+
|
||||||
|
name: core-runtime
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.asynclayoutinflater:asynclayoutinflater:+
|
||||||
|
name: asynclayoutinflater
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.cardview:cardview:+
|
||||||
|
name: cardview
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.collection:collection:+
|
||||||
|
name: collection
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.coordinatorlayout:coordinatorlayout:+
|
||||||
|
name: coordinatorlayout
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.core:core:+
|
||||||
|
name: core
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.cursoradapter:cursoradapter:+
|
||||||
|
name: cursoradapter
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.customview:customview:+
|
||||||
|
name: customview
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.documentfile:documentfile:+
|
||||||
|
name: documentfile
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.drawerlayout:drawerlayout:+
|
||||||
|
name: drawerlayout
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.fragment:fragment:+
|
||||||
|
name: fragment
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.interpolator:interpolator:+
|
||||||
|
name: interpolator
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.legacy:legacy-support-core-ui:+
|
||||||
|
name: legacy-support-core-ui
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.legacy:legacy-support-core-utils:+
|
||||||
|
name: legacy-support-core-utils
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.lifecycle:lifecycle-common:+
|
||||||
|
name: lifecycle-common
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.lifecycle:lifecycle-livedata-core:+
|
||||||
|
name: lifecycle-livedata-core
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.lifecycle:lifecycle-livedata:+
|
||||||
|
name: lifecycle-livedata
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.lifecycle:lifecycle-runtime:+
|
||||||
|
name: lifecycle-runtime
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.lifecycle:lifecycle-viewmodel-savedstate:+
|
||||||
|
name: lifecycle-viewmodel-savedstate
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.lifecycle:lifecycle-viewmodel:+
|
||||||
|
name: lifecycle-viewmodel
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.loader:loader:+
|
||||||
|
name: loader
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.localbroadcastmanager:localbroadcastmanager:+
|
||||||
|
name: localbroadcastmanager
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.media:media:+
|
||||||
|
name: media
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.palette:palette:+
|
||||||
|
name: palette
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.print:print:+
|
||||||
|
name: print
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.recyclerview:recyclerview:+
|
||||||
|
name: recyclerview
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.room:room-common:+
|
||||||
|
name: room-common
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.room:room-ktx:+
|
||||||
|
name: room-ktx
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.room:room-runtime:+
|
||||||
|
name: room-runtime
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.savedstate:savedstate:+
|
||||||
|
name: savedstate
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.slidingpanelayout:slidingpanelayout:+
|
||||||
|
name: slidingpanelayout
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.sqlite:sqlite-framework:+
|
||||||
|
name: sqlite-framework
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.sqlite:sqlite:+
|
||||||
|
name: sqlite
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||||
|
- artifact: androidx.swiperefreshlayout:swiperefreshlayout:+
|
||||||
|
name: swiperefreshlayout
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.test.ext:junit:+
|
||||||
|
name: junit
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/testing
|
||||||
|
- artifact: androidx.test:core:+
|
||||||
|
name: core
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/testing
|
||||||
|
- artifact: androidx.test:monitor:+
|
||||||
|
name: monitor
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/testing
|
||||||
|
- artifact: androidx.transition:transition:+
|
||||||
|
name: transition
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.vectordrawable:vectordrawable-animated:+
|
||||||
|
name: vectordrawable-animated
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.vectordrawable:vectordrawable:+
|
||||||
|
name: vectordrawable
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.versionedparcelable:versionedparcelable:+
|
||||||
|
name: versionedparcelable
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.viewpager2:viewpager2:+
|
||||||
|
name: viewpager2
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx
|
||||||
|
- artifact: androidx.viewpager:viewpager:+
|
||||||
|
name: viewpager
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: androidx.webkit:webkit:+
|
||||||
|
name: webkit
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://developer.android.com/jetpack/androidx/releases/webkit#1.4.0
|
||||||
|
- artifact: com.facebook.fbjni:fbjni-java-only:+
|
||||||
|
name: fbjni-java-only
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: APACHE-2
|
||||||
|
licenseUrl: https://github.com/facebookincubator/fbjni/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebookincubator/fbjni
|
||||||
|
- artifact: com.facebook.fresco:drawee:+
|
||||||
|
name: drawee
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: MIT License
|
||||||
|
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/fresco
|
||||||
|
- artifact: com.facebook.fresco:fbcore:+
|
||||||
|
name: fbcore
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: MIT License
|
||||||
|
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/fresco
|
||||||
|
- artifact: com.facebook.fresco:fresco:+
|
||||||
|
name: fresco
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: MIT License
|
||||||
|
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/fresco
|
||||||
|
- artifact: com.facebook.fresco:imagepipeline-base:+
|
||||||
|
name: imagepipeline-base
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: MIT License
|
||||||
|
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/fresco
|
||||||
|
- artifact: com.facebook.fresco:imagepipeline-okhttp3:+
|
||||||
|
name: imagepipeline-okhttp3
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: MIT License
|
||||||
|
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/fresco
|
||||||
|
- artifact: com.facebook.fresco:imagepipeline:+
|
||||||
|
name: imagepipeline
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: MIT License
|
||||||
|
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/fresco
|
||||||
|
- artifact: com.facebook.fresco:nativeimagefilters:+
|
||||||
|
name: nativeimagefilters
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: MIT License
|
||||||
|
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/fresco
|
||||||
|
- artifact: com.facebook.fresco:nativeimagetranscoder:+
|
||||||
|
name: nativeimagetranscoder
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: MIT License
|
||||||
|
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/fresco
|
||||||
|
- artifact: com.facebook.infer.annotation:infer-annotation:+
|
||||||
|
name: infer-annotation
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: BSD license
|
||||||
|
licenseUrl: https://github.com/facebook/infer/blob/master/LICENSE
|
||||||
|
url: http://fbinfer.com/
|
||||||
|
- artifact: com.facebook.react:react-native:+
|
||||||
|
name: react-native
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: MIT License
|
||||||
|
licenseUrl: https://github.com/facebook/react-native/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/react-native
|
||||||
|
- artifact: com.facebook.soloader:annotation:+
|
||||||
|
name: annotation
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Apache-2
|
||||||
|
licenseUrl: https://github.com/facebook/soloader/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/soloader
|
||||||
|
- artifact: com.facebook.soloader:nativeloader:+
|
||||||
|
name: nativeloader
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Apache-2
|
||||||
|
licenseUrl: https://github.com/facebook/soloader/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/soloader
|
||||||
|
- artifact: com.facebook.soloader:soloader:+
|
||||||
|
name: soloader
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Apache-2
|
||||||
|
licenseUrl: https://github.com/facebook/soloader/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/soloader
|
||||||
|
- artifact: com.facebook.yoga:proguard-annotations:+
|
||||||
|
name: proguard-annotations
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: MIT License
|
||||||
|
licenseUrl: https://github.com/facebook/yoga/blob/master/LICENSE
|
||||||
|
url: https://github.com/facebook/yoga
|
||||||
|
- artifact: com.github.bumptech.glide:annotations:+
|
||||||
|
name: annotations
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Simplified BSD License
|
||||||
|
licenseUrl: http://www.opensource.org/licenses/bsd-license
|
||||||
|
url: https://github.com/bumptech/glide
|
||||||
|
- artifact: com.github.bumptech.glide:disklrucache:+
|
||||||
|
name: disklrucache
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Simplified BSD License
|
||||||
|
licenseUrl: http://www.opensource.org/licenses/bsd-license
|
||||||
|
url: https://github.com/bumptech/glide
|
||||||
|
- artifact: com.github.bumptech.glide:gifdecoder:+
|
||||||
|
name: gifdecoder
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Simplified BSD License
|
||||||
|
licenseUrl: http://www.opensource.org/licenses/bsd-license
|
||||||
|
url: https://github.com/bumptech/glide
|
||||||
|
- artifact: com.github.bumptech.glide:glide:+
|
||||||
|
name: glide
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Simplified BSD License
|
||||||
|
licenseUrl: http://www.opensource.org/licenses/bsd-license
|
||||||
|
url: https://github.com/bumptech/glide
|
||||||
|
- artifact: com.google.android.exoplayer:exoplayer-core:+
|
||||||
|
name: exoplayer-core
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
- artifact: com.google.android.exoplayer:exoplayer-dash:+
|
||||||
|
name: exoplayer-dash
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
- artifact: com.google.android.exoplayer:exoplayer-hls:+
|
||||||
|
name: exoplayer-hls
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
- artifact: com.google.android.exoplayer:exoplayer-smoothstreaming:+
|
||||||
|
name: exoplayer-smoothstreaming
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
- artifact: com.google.android.material:material:+
|
||||||
|
name: material
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://developer.android.com/tools/extras/support-library.html
|
||||||
|
- artifact: com.google.auto.value:auto-value-annotations:+
|
||||||
|
name: auto-value-annotations
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://github.com/google/auto
|
||||||
|
- artifact: com.google.code.findbugs:jsr305:+
|
||||||
|
name: jsr305
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://findbugs.sourceforge.net/
|
||||||
|
- artifact: com.google.errorprone:error_prone_annotations:+
|
||||||
|
name: error_prone_annotations
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Apache 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
- artifact: com.google.guava:failureaccess:+
|
||||||
|
name: failureaccess
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://github.com/google/guava
|
||||||
|
- artifact: com.google.guava:guava:+
|
||||||
|
name: guava
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://github.com/google/guava
|
||||||
|
- artifact: com.google.guava:listenablefuture:+
|
||||||
|
name: listenablefuture
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://github.com/google/guava
|
||||||
|
- artifact: com.google.j2objc:j2objc-annotations:+
|
||||||
|
name: j2objc-annotations
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://github.com/google/j2objc/
|
||||||
|
- artifact: com.google.truth:truth:+
|
||||||
|
name: truth
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://github.com/google/truth
|
||||||
|
- artifact: com.googlecode.java-diff-utils:diffutils:+
|
||||||
|
name: diffutils
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://code.google.com/p/java-diff-utils/
|
||||||
|
- artifact: com.parse.bolts:bolts-tasks:+
|
||||||
|
name: bolts-tasks
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: BSD License
|
||||||
|
licenseUrl: https://github.com/BoltsFramework/Bolts-Android/blob/master/LICENSE
|
||||||
|
url: https://github.com/BoltsFramework/Bolts-Android
|
||||||
|
- artifact: com.squareup.okhttp3:okhttp-urlconnection:+
|
||||||
|
name: okhttp-urlconnection
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Apache-2.0 License
|
||||||
|
licenseUrl: https://github.com/square/okhttp/blob/master/LICENSE.txt
|
||||||
|
url: https://github.com/square/okhttp
|
||||||
|
- artifact: com.squareup.okhttp3:okhttp:+
|
||||||
|
name: okhttp
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Apache-2.0 License
|
||||||
|
licenseUrl: https://github.com/square/okhttp/blob/master/LICENSE.txt
|
||||||
|
url: https://github.com/square/okhttp
|
||||||
|
- artifact: com.squareup.okio:okio:+
|
||||||
|
name: okio
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Apache-2.0 License
|
||||||
|
licenseUrl: https://github.com/square/okio/blob/master/LICENSE.txt
|
||||||
|
url: https://github.com/square/okio
|
||||||
|
- artifact: javax.inject:javax.inject:+
|
||||||
|
name: javax.inject
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://code.google.com/p/atinject/
|
||||||
|
- artifact: junit:junit:+
|
||||||
|
name: junit
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: Eclipse Public License 1.0
|
||||||
|
licenseUrl: http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
url: http://junit.org
|
||||||
|
- artifact: net.bytebuddy:byte-buddy-agent:+
|
||||||
|
name: byte-buddy-agent
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://github.com/raphw/byte-buddy
|
||||||
|
- artifact: net.bytebuddy:byte-buddy:+
|
||||||
|
name: byte-buddy
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://github.com/raphw/byte-buddy
|
||||||
|
- artifact: org.checkerframework:checker-compat-qual:+
|
||||||
|
name: checker-compat-qual
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: GNU General Public License, version 2 (GPL2), with the classpath exception
|
||||||
|
licenseUrl: http://www.gnu.org/software/classpath/license.html
|
||||||
|
url: https://checkerframework.org
|
||||||
|
- artifact: org.checkerframework:checker-qual:+
|
||||||
|
name: checker-qual
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The MIT License
|
||||||
|
licenseUrl: http://opensource.org/licenses/MIT
|
||||||
|
url: https://checkerframework.org
|
||||||
|
- artifact: org.codehaus.mojo:animal-sniffer-annotations:+
|
||||||
|
name: animal-sniffer-annotations
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The MIT License
|
||||||
|
licenseUrl: http://opensource.org/licenses/MIT
|
||||||
|
url: https://github.com/mojohaus/animal-sniffer
|
||||||
|
- artifact: org.hamcrest:hamcrest-core:+
|
||||||
|
name: hamcrest-core
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: BSD License
|
||||||
|
licenseUrl: https://raw.githubusercontent.com/hamcrest/JavaHamcrest/master/LICENSE.txt
|
||||||
|
url: https://github.com/hamcrest/JavaHamcrest
|
||||||
|
- artifact: org.jetbrains.kotlin:kotlin-annotations-jvm:+
|
||||||
|
name: kotlin-annotations-jvm
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://kotlinlang.org/
|
||||||
|
- artifact: org.jetbrains.kotlin:kotlin-stdlib-common:+
|
||||||
|
name: kotlin-stdlib-common
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://kotlinlang.org/
|
||||||
|
- artifact: org.jetbrains.kotlin:kotlin-stdlib:+
|
||||||
|
name: kotlin-stdlib
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://kotlinlang.org/
|
||||||
|
- artifact: org.jetbrains.kotlinx:kotlinx-coroutines-android:+
|
||||||
|
name: kotlinx-coroutines-android
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: https://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://github.com/Kotlin/kotlinx.coroutines
|
||||||
|
- artifact: org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:+
|
||||||
|
name: kotlinx-coroutines-core-jvm
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: https://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: https://github.com/Kotlin/kotlinx.coroutines
|
||||||
|
- artifact: org.jetbrains:annotations:+
|
||||||
|
name: annotations
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://www.jetbrains.org
|
||||||
|
- artifact: org.mockito:mockito-core:+
|
||||||
|
name: mockito-core
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The MIT License
|
||||||
|
licenseUrl: https://github.com/mockito/mockito/blob/master/LICENSE
|
||||||
|
url: https://github.com/mockito/mockito
|
||||||
|
- artifact: org.objenesis:objenesis:+
|
||||||
|
name: objenesis
|
||||||
|
copyrightHolder: Original Author
|
||||||
|
license: The Apache Software License, Version 2.0
|
||||||
|
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
url: http://objenesis.org
|
||||||
@@ -7,3 +7,6 @@ include ':react-native-fs'
|
|||||||
project(':react-native-fs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fs/android')
|
project(':react-native-fs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fs/android')
|
||||||
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
|
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
|
||||||
include ':app'
|
include ':app'
|
||||||
|
gradle.ext.exoplayerRoot = '../submodules/ExoPlayer'
|
||||||
|
gradle.ext.exoplayerModulePrefix = 'exoplayer-'
|
||||||
|
apply from: file("exoplayer_settings.gradle")
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import { FlatList, FlatListProps, useWindowDimensions, View, StyleSheet } from 'react-native'
|
||||||
|
import colors from '@app/styles/colors'
|
||||||
|
import GradientBackground, { GradientBackgroundProps } from '@app/components/GradientBackground'
|
||||||
|
import { useLayout } from '@react-native-community/hooks'
|
||||||
|
import NothingHere from './NothingHere'
|
||||||
|
import ImageGradientBackground, { ImageGradientBackgroundProps } from './ImageGradientBackground'
|
||||||
|
|
||||||
|
export type BackgroundHeaderFlatListPropsBase<ItemT> = FlatListProps<ItemT> & {
|
||||||
|
contentMarginTop?: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BackgroundHeaderFlatListProp<ItemT> = BackgroundHeaderFlatListPropsBase<ItemT> & {
|
||||||
|
BackgroundComponent: typeof ImageGradientBackground | typeof GradientBackground
|
||||||
|
backgroundProps?: ImageGradientBackgroundProps | GradientBackgroundProps
|
||||||
|
}
|
||||||
|
|
||||||
|
function BackgroundHeaderFlatList<ItemT>(props: BackgroundHeaderFlatListProp<ItemT>) {
|
||||||
|
const window = useWindowDimensions()
|
||||||
|
const headerLayout = useLayout()
|
||||||
|
|
||||||
|
let marginBottom = -window.height + (props.contentMarginTop || 0)
|
||||||
|
if (props.ListHeaderComponent) {
|
||||||
|
marginBottom += headerLayout.height || window.height
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerStyle = { marginBottom }
|
||||||
|
|
||||||
|
return (
|
||||||
|
<FlatList
|
||||||
|
{...props}
|
||||||
|
contentContainerStyle={[props.contentContainerStyle, { minHeight: window.height }]}
|
||||||
|
style={[props.style, styles.list]}
|
||||||
|
ListHeaderComponent={
|
||||||
|
<props.BackgroundComponent position="relative" {...props.backgroundProps}>
|
||||||
|
<View onLayout={headerLayout.onLayout}>{props.ListHeaderComponent}</View>
|
||||||
|
</props.BackgroundComponent>
|
||||||
|
}
|
||||||
|
ListHeaderComponentStyle={[headerStyle]}
|
||||||
|
ListEmptyComponent={<NothingHere style={styles.nothing} />}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const styles = StyleSheet.create({
|
||||||
|
list: {
|
||||||
|
backgroundColor: colors.gradient.low,
|
||||||
|
},
|
||||||
|
nothing: {
|
||||||
|
width: '100%',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
export default BackgroundHeaderFlatList
|
||||||
@@ -3,14 +3,27 @@ import { useWindowDimensions, ViewStyle } from 'react-native'
|
|||||||
import LinearGradient from 'react-native-linear-gradient'
|
import LinearGradient from 'react-native-linear-gradient'
|
||||||
import colorStyles from '@app/styles/colors'
|
import colorStyles from '@app/styles/colors'
|
||||||
|
|
||||||
const GradientBackground: React.FC<{
|
export type GradientBackgroundPropsBase = {
|
||||||
height?: number | string
|
height?: number | string
|
||||||
width?: number | string
|
width?: number | string
|
||||||
position?: 'relative' | 'absolute'
|
position?: 'relative' | 'absolute'
|
||||||
style?: ViewStyle
|
style?: ViewStyle
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GradientBackgroundProps = GradientBackgroundPropsBase & {
|
||||||
colors?: string[]
|
colors?: string[]
|
||||||
locations?: number[]
|
locations?: number[]
|
||||||
}> = ({ height, width, position, style, colors, locations, children }) => {
|
}
|
||||||
|
|
||||||
|
const GradientBackground: React.FC<GradientBackgroundProps> = ({
|
||||||
|
height,
|
||||||
|
width,
|
||||||
|
position,
|
||||||
|
style,
|
||||||
|
colors,
|
||||||
|
locations,
|
||||||
|
children,
|
||||||
|
}) => {
|
||||||
const layout = useWindowDimensions()
|
const layout = useWindowDimensions()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,28 +1,13 @@
|
|||||||
|
import GradientBackground, { GradientBackgroundProps } from '@app/components/GradientBackground'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { FlatList, FlatListProps, StyleSheet, useWindowDimensions } from 'react-native'
|
import BackgroundHeaderFlatList, { BackgroundHeaderFlatListPropsBase } from './BackgroundHeaderFlatList'
|
||||||
import colors from '@app/styles/colors'
|
|
||||||
import GradientBackground from '@app/components/GradientBackground'
|
|
||||||
|
|
||||||
function GradientFlatList<ItemT>(props: FlatListProps<ItemT>) {
|
export type GradientFlatListProps<ItemT> = BackgroundHeaderFlatListPropsBase<ItemT> & {
|
||||||
const layout = useWindowDimensions()
|
backgroundProps?: GradientBackgroundProps
|
||||||
|
}
|
||||||
|
|
||||||
const contentContainerStyle = StyleSheet.flatten(props.contentContainerStyle)
|
function GradientFlatList<ItemT>(props: GradientFlatListProps<ItemT>) {
|
||||||
|
return <BackgroundHeaderFlatList BackgroundComponent={GradientBackground} {...props} />
|
||||||
return (
|
|
||||||
<FlatList
|
|
||||||
{...props}
|
|
||||||
style={{
|
|
||||||
...(props.style as any),
|
|
||||||
backgroundColor: colors.gradient.low,
|
|
||||||
}}
|
|
||||||
ListHeaderComponent={() => <GradientBackground position="relative" />}
|
|
||||||
ListHeaderComponentStyle={{
|
|
||||||
marginBottom: -layout.height,
|
|
||||||
marginHorizontal: -(contentContainerStyle.paddingHorizontal || 0),
|
|
||||||
top: -(contentContainerStyle.paddingTop || 0),
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default GradientFlatList
|
export default GradientFlatList
|
||||||
|
|||||||
@@ -1,21 +1,24 @@
|
|||||||
import GradientBackground from '@app/components/GradientBackground'
|
import GradientBackground from '@app/components/GradientBackground'
|
||||||
import colors from '@app/styles/colors'
|
import colors from '@app/styles/colors'
|
||||||
import dimensions from '@app/styles/dimensions'
|
import dimensions from '@app/styles/dimensions'
|
||||||
import React from 'react'
|
import React, { ForwardedRef, PropsWithChildren } from 'react'
|
||||||
import { ScrollViewProps, useWindowDimensions } from 'react-native'
|
import { ScrollView, ScrollViewProps, useWindowDimensions } from 'react-native'
|
||||||
import Animated from 'react-native-reanimated'
|
import Animated from 'react-native-reanimated'
|
||||||
|
|
||||||
const GradientScrollView: React.FC<
|
export type GradientScrollViewProps = PropsWithChildren<
|
||||||
Animated.AnimateProps<ScrollViewProps> & {
|
Animated.AnimateProps<ScrollViewProps> & {
|
||||||
offset?: number
|
offset?: number
|
||||||
}
|
}
|
||||||
> = props => {
|
>
|
||||||
|
|
||||||
|
const GradientScrollView = React.forwardRef<ScrollView, GradientScrollViewProps>((props, ref) => {
|
||||||
const layout = useWindowDimensions()
|
const layout = useWindowDimensions()
|
||||||
|
|
||||||
const minHeight = layout.height - (dimensions.top() + dimensions.bottom())
|
const minHeight = layout.height - (dimensions.top() + dimensions.bottom())
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Animated.ScrollView
|
<Animated.ScrollView
|
||||||
|
ref={ref as ForwardedRef<Animated.ScrollView>}
|
||||||
overScrollMode="never"
|
overScrollMode="never"
|
||||||
{...props}
|
{...props}
|
||||||
style={[props.style, { backgroundColor: colors.gradient.low }]}
|
style={[props.style, { backgroundColor: colors.gradient.low }]}
|
||||||
@@ -24,6 +27,6 @@ const GradientScrollView: React.FC<
|
|||||||
{props.children}
|
{props.children}
|
||||||
</Animated.ScrollView>
|
</Animated.ScrollView>
|
||||||
)
|
)
|
||||||
}
|
})
|
||||||
|
|
||||||
export default GradientScrollView
|
export default GradientScrollView
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
import { useNavigation } from '@react-navigation/native'
|
import { useNavigation } from '@react-navigation/native'
|
||||||
import React, { useEffect, useState } from 'react'
|
import React, { useEffect, useState } from 'react'
|
||||||
import { ViewStyle } from 'react-native'
|
|
||||||
import ImageColors from 'react-native-image-colors'
|
import ImageColors from 'react-native-image-colors'
|
||||||
import { AndroidImageColors } from 'react-native-image-colors/lib/typescript/types'
|
import { AndroidImageColors } from 'react-native-image-colors/lib/typescript/types'
|
||||||
import colors from '@app/styles/colors'
|
import colors from '@app/styles/colors'
|
||||||
import GradientBackground from '@app/components/GradientBackground'
|
import GradientBackground, { GradientBackgroundPropsBase } from '@app/components/GradientBackground'
|
||||||
|
|
||||||
export type ImageGradientBackgroundProps = {
|
export type ImageGradientBackgroundProps = GradientBackgroundPropsBase & {
|
||||||
height?: number | string
|
|
||||||
width?: number | string
|
|
||||||
position?: 'relative' | 'absolute'
|
|
||||||
style?: ViewStyle
|
|
||||||
imagePath?: string
|
imagePath?: string
|
||||||
onGetColor?: (color: string) => void
|
onGetColor?: (color: string) => void
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import BackgroundHeaderFlatList, { BackgroundHeaderFlatListPropsBase } from './BackgroundHeaderFlatList'
|
||||||
|
import ImageGradientBackground, { ImageGradientBackgroundProps } from './ImageGradientBackground'
|
||||||
|
|
||||||
|
export type ImageGradientFlatListProps<ItemT> = BackgroundHeaderFlatListPropsBase<ItemT> & {
|
||||||
|
backgroundProps?: ImageGradientBackgroundProps
|
||||||
|
}
|
||||||
|
|
||||||
|
function ImageGradientFlatList<ItemT>(props: ImageGradientFlatListProps<ItemT>) {
|
||||||
|
return <BackgroundHeaderFlatList BackgroundComponent={ImageGradientBackground} {...props} />
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ImageGradientFlatList
|
||||||
@@ -7,7 +7,7 @@ import colors from '@app/styles/colors'
|
|||||||
import font from '@app/styles/font'
|
import font from '@app/styles/font'
|
||||||
import { useNavigation } from '@react-navigation/native'
|
import { useNavigation } from '@react-navigation/native'
|
||||||
import React, { useCallback } from 'react'
|
import React, { useCallback } from 'react'
|
||||||
import { StyleSheet, Text, View } from 'react-native'
|
import { StyleProp, StyleSheet, Text, View, ViewStyle } from 'react-native'
|
||||||
import IconFA5 from 'react-native-vector-icons/FontAwesome5'
|
import IconFA5 from 'react-native-vector-icons/FontAwesome5'
|
||||||
import IconMat from 'react-native-vector-icons/MaterialIcons'
|
import IconMat from 'react-native-vector-icons/MaterialIcons'
|
||||||
import { AlbumContextPressable, ArtistContextPressable, SongContextPressable } from './ContextMenu'
|
import { AlbumContextPressable, ArtistContextPressable, SongContextPressable } from './ContextMenu'
|
||||||
@@ -55,7 +55,8 @@ const ListItem: React.FC<{
|
|||||||
showStar?: boolean
|
showStar?: boolean
|
||||||
listStyle?: 'big' | 'small'
|
listStyle?: 'big' | 'small'
|
||||||
subtitle?: string
|
subtitle?: string
|
||||||
}> = ({ item, contextId, queueId, onPress, showArt, showStar, subtitle, listStyle }) => {
|
style?: StyleProp<ViewStyle>
|
||||||
|
}> = ({ item, contextId, queueId, onPress, showArt, showStar, subtitle, listStyle, style }) => {
|
||||||
const navigation = useNavigation()
|
const navigation = useNavigation()
|
||||||
const starred = useStarred(item.id, item.itemType)
|
const starred = useStarred(item.id, item.itemType)
|
||||||
|
|
||||||
@@ -156,7 +157,7 @@ const ListItem: React.FC<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[styles.container, sizeStyle.container]}>
|
<View style={[styles.container, sizeStyle.container, style]}>
|
||||||
<PressableComponent>
|
<PressableComponent>
|
||||||
{showArt && coverArt}
|
{showArt && coverArt}
|
||||||
<View style={styles.text}>
|
<View style={styles.text}>
|
||||||
|
|||||||
@@ -1,9 +1,19 @@
|
|||||||
import { GetAlbumList2Type } from '@app/subsonic/params'
|
import { GetAlbumList2Type } from '@app/subsonic/params'
|
||||||
|
|
||||||
export interface Server {
|
export type Server = (TokenPassword | PlainPassword) & {
|
||||||
id: string
|
id: string
|
||||||
address: string
|
address: string
|
||||||
username: string
|
username: string
|
||||||
|
usePlainPassword: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
interface PlainPassword {
|
||||||
|
usePlainPassword: true
|
||||||
|
plainPassword: string
|
||||||
|
}
|
||||||
|
|
||||||
|
interface TokenPassword {
|
||||||
|
usePlainPassword: false
|
||||||
token: string
|
token: string
|
||||||
salt: string
|
salt: string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import SearchResultsView from '@app/screens/SearchResultsView'
|
|||||||
import ServerView from '@app/screens/ServerView'
|
import ServerView from '@app/screens/ServerView'
|
||||||
import SettingsView from '@app/screens/Settings'
|
import SettingsView from '@app/screens/Settings'
|
||||||
import SongListView from '@app/screens/SongListView'
|
import SongListView from '@app/screens/SongListView'
|
||||||
|
import WebViewScreen from '@app/screens/WebViewScreen'
|
||||||
import { selectSettings } from '@app/state/settings'
|
import { selectSettings } from '@app/state/settings'
|
||||||
import { useStore } from '@app/state/store'
|
import { useStore } from '@app/state/store'
|
||||||
import colors from '@app/styles/colors'
|
import colors from '@app/styles/colors'
|
||||||
@@ -122,6 +123,7 @@ const SearchTab = createTabStackNavigator(Search)
|
|||||||
type SettingsStackParamList = {
|
type SettingsStackParamList = {
|
||||||
main: undefined
|
main: undefined
|
||||||
server?: { id?: string }
|
server?: { id?: string }
|
||||||
|
web: { uri: string }
|
||||||
}
|
}
|
||||||
|
|
||||||
type ServerScreenNavigationProp = NativeStackNavigationProp<SettingsStackParamList, 'server'>
|
type ServerScreenNavigationProp = NativeStackNavigationProp<SettingsStackParamList, 'server'>
|
||||||
@@ -130,9 +132,16 @@ type ServerScreenProps = {
|
|||||||
route: ServerScreenRouteProp
|
route: ServerScreenRouteProp
|
||||||
navigation: ServerScreenNavigationProp
|
navigation: ServerScreenNavigationProp
|
||||||
}
|
}
|
||||||
|
|
||||||
const ServerScreen: React.FC<ServerScreenProps> = ({ route }) => <ServerView id={route.params?.id} />
|
const ServerScreen: React.FC<ServerScreenProps> = ({ route }) => <ServerView id={route.params?.id} />
|
||||||
|
|
||||||
|
type WebScreenNavigationProp = NativeStackNavigationProp<SettingsStackParamList, 'web'>
|
||||||
|
type WebScreenRouteProp = RouteProp<SettingsStackParamList, 'web'>
|
||||||
|
type WebScreenProps = {
|
||||||
|
route: WebScreenRouteProp
|
||||||
|
navigation: WebScreenNavigationProp
|
||||||
|
}
|
||||||
|
const WebScreen: React.FC<WebScreenProps> = ({ route }) => <WebViewScreen uri={route.params.uri} />
|
||||||
|
|
||||||
const SettingsStack = createNativeStackNavigator()
|
const SettingsStack = createNativeStackNavigator()
|
||||||
|
|
||||||
const SettingsTab = () => {
|
const SettingsTab = () => {
|
||||||
@@ -150,6 +159,17 @@ const SettingsTab = () => {
|
|||||||
headerTitleStyle: styles.stackheaderTitleStyle,
|
headerTitleStyle: styles.stackheaderTitleStyle,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<SettingsStack.Screen
|
||||||
|
name="web"
|
||||||
|
component={WebScreen}
|
||||||
|
options={{
|
||||||
|
title: 'Web View',
|
||||||
|
headerStyle: styles.stackheaderStyle,
|
||||||
|
headerHideShadow: true,
|
||||||
|
headerTintColor: 'white',
|
||||||
|
headerTitleStyle: styles.stackheaderTitleStyle,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</SettingsStack.Navigator>
|
</SettingsStack.Navigator>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,20 @@ const setNetState = (netState: 'mobile' | 'wifi') => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const rebuildQueue = () => {
|
||||||
|
unstable_batchedUpdates(() => {
|
||||||
|
useStore.getState().rebuildQueue(useStore.getState().playerState === State.Playing)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const setDuckPaused = (duckPaused: boolean) => {
|
||||||
|
unstable_batchedUpdates(() => {
|
||||||
|
useStore.getState().setDuckPaused(duckPaused)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
let serviceCreated = false
|
let serviceCreated = false
|
||||||
|
|
||||||
const createService = async () => {
|
const createService = async () => {
|
||||||
useStore.subscribe(
|
useStore.subscribe(
|
||||||
(currentTrack?: TrackExt) => {
|
(currentTrack?: TrackExt) => {
|
||||||
@@ -40,6 +53,10 @@ const createService = async () => {
|
|||||||
(prev, next) => prev?.id === next?.id,
|
(prev, next) => prev?.id === next?.id,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
NetInfo.fetch().then(state => {
|
||||||
|
setNetState(state.type === NetInfoStateType.cellular ? 'mobile' : 'wifi')
|
||||||
|
})
|
||||||
|
|
||||||
NetInfo.addEventListener(state => {
|
NetInfo.addEventListener(state => {
|
||||||
const currentType = useStore.getState().netState
|
const currentType = useStore.getState().netState
|
||||||
const newType = state.type === NetInfoStateType.cellular ? 'mobile' : 'wifi'
|
const newType = state.type === NetInfoStateType.cellular ? 'mobile' : 'wifi'
|
||||||
@@ -70,9 +87,14 @@ const createService = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (data.paused) {
|
if (data.paused) {
|
||||||
|
let state = useStore.getState().playerState
|
||||||
|
if (state === State.Playing || state === State.Buffering || state === State.Connecting) {
|
||||||
trackPlayerCommands.enqueue(TrackPlayer.pause)
|
trackPlayerCommands.enqueue(TrackPlayer.pause)
|
||||||
} else {
|
setDuckPaused(true)
|
||||||
|
}
|
||||||
|
} else if (useStore.getState().duckPaused) {
|
||||||
trackPlayerCommands.enqueue(TrackPlayer.play)
|
trackPlayerCommands.enqueue(TrackPlayer.play)
|
||||||
|
setDuckPaused(false)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -112,6 +134,15 @@ const createService = async () => {
|
|||||||
await TrackPlayer.seekTo(data.position)
|
await TrackPlayer.seekTo(data.position)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
TrackPlayer.addEventListener(Event.PlaybackError, data => {
|
||||||
|
const { code, message } = data as Record<string, string>
|
||||||
|
|
||||||
|
// fix for ExoPlayer aborting playback while esimating content length
|
||||||
|
if (code === 'playback-source' && message.includes('416')) {
|
||||||
|
rebuildQueue()
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = async function () {
|
module.exports = async function () {
|
||||||
|
|||||||
@@ -72,7 +72,6 @@ const AlbumsList = () => {
|
|||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<GradientFlatList
|
<GradientFlatList
|
||||||
contentContainerStyle={styles.listContent}
|
|
||||||
data={list.map(album => ({ album, size, height }))}
|
data={list.map(album => ({ album, size, height }))}
|
||||||
renderItem={AlbumListRenderItem}
|
renderItem={AlbumListRenderItem}
|
||||||
keyExtractor={item => item.album.id}
|
keyExtractor={item => item.album.id}
|
||||||
@@ -100,9 +99,6 @@ const AlbumsList = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
listContent: {
|
|
||||||
minHeight: '100%',
|
|
||||||
},
|
|
||||||
container: {
|
container: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import React, { useEffect, useState } from 'react'
|
|||||||
import { StyleSheet, View } from 'react-native'
|
import { StyleSheet, View } from 'react-native'
|
||||||
|
|
||||||
const ArtistRenderItem: React.FC<{ item: Artist }> = ({ item }) => (
|
const ArtistRenderItem: React.FC<{ item: Artist }> = ({ item }) => (
|
||||||
<ListItem item={item} showArt={true} showStar={false} listStyle="big" />
|
<ListItem item={item} showArt={true} showStar={false} listStyle="big" style={styles.listItem} />
|
||||||
)
|
)
|
||||||
|
|
||||||
const filterOptions: OptionData[] = [
|
const filterOptions: OptionData[] = [
|
||||||
@@ -44,7 +44,6 @@ const ArtistsList = () => {
|
|||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<GradientFlatList
|
<GradientFlatList
|
||||||
contentContainerStyle={styles.listContent}
|
|
||||||
data={sortedList}
|
data={sortedList}
|
||||||
renderItem={ArtistRenderItem}
|
renderItem={ArtistRenderItem}
|
||||||
keyExtractor={item => item.id}
|
keyExtractor={item => item.id}
|
||||||
@@ -52,6 +51,7 @@ const ArtistsList = () => {
|
|||||||
refreshing={refreshing}
|
refreshing={refreshing}
|
||||||
overScrollMode="never"
|
overScrollMode="never"
|
||||||
windowSize={3}
|
windowSize={3}
|
||||||
|
contentMarginTop={6}
|
||||||
/>
|
/>
|
||||||
<FilterButton
|
<FilterButton
|
||||||
data={filterOptions}
|
data={filterOptions}
|
||||||
@@ -71,10 +71,8 @@ const styles = StyleSheet.create({
|
|||||||
container: {
|
container: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
},
|
},
|
||||||
listContent: {
|
listItem: {
|
||||||
minHeight: '100%',
|
|
||||||
paddingHorizontal: 10,
|
paddingHorizontal: 10,
|
||||||
paddingTop: 6,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import React from 'react'
|
|||||||
import { StyleSheet } from 'react-native'
|
import { StyleSheet } from 'react-native'
|
||||||
|
|
||||||
const PlaylistRenderItem: React.FC<{ item: PlaylistListItem }> = ({ item }) => (
|
const PlaylistRenderItem: React.FC<{ item: PlaylistListItem }> = ({ item }) => (
|
||||||
<ListItem item={item} showArt={true} showStar={false} listStyle="big" />
|
<ListItem item={item} showArt={true} showStar={false} listStyle="big" style={styles.listItem} />
|
||||||
)
|
)
|
||||||
|
|
||||||
const PlaylistsList = () => {
|
const PlaylistsList = () => {
|
||||||
@@ -17,7 +17,6 @@ const PlaylistsList = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<GradientFlatList
|
<GradientFlatList
|
||||||
contentContainerStyle={styles.listContent}
|
|
||||||
data={list}
|
data={list}
|
||||||
renderItem={PlaylistRenderItem}
|
renderItem={PlaylistRenderItem}
|
||||||
keyExtractor={item => item.id}
|
keyExtractor={item => item.id}
|
||||||
@@ -25,15 +24,14 @@ const PlaylistsList = () => {
|
|||||||
refreshing={refreshing}
|
refreshing={refreshing}
|
||||||
overScrollMode="never"
|
overScrollMode="never"
|
||||||
windowSize={5}
|
windowSize={5}
|
||||||
|
contentMarginTop={6}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
listContent: {
|
listItem: {
|
||||||
minHeight: '100%',
|
|
||||||
paddingHorizontal: 10,
|
paddingHorizontal: 10,
|
||||||
paddingTop: 6,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,49 +1,56 @@
|
|||||||
import GradientScrollView from '@app/components/GradientScrollView'
|
import GradientFlatList from '@app/components/GradientFlatList'
|
||||||
import ListItem from '@app/components/ListItem'
|
import ListItem from '@app/components/ListItem'
|
||||||
import NowPlayingBar from '@app/components/NowPlayingBar'
|
import NowPlayingBar from '@app/components/NowPlayingBar'
|
||||||
import { useSkipTo } from '@app/hooks/trackplayer'
|
import { useSkipTo } from '@app/hooks/trackplayer'
|
||||||
|
import { Song } from '@app/models/music'
|
||||||
import { useStore } from '@app/state/store'
|
import { useStore } from '@app/state/store'
|
||||||
import { selectTrackPlayer } from '@app/state/trackplayer'
|
import { selectTrackPlayer } from '@app/state/trackplayer'
|
||||||
import { selectTrackPlayerMap } from '@app/state/trackplayermap'
|
import { selectTrackPlayerMap } from '@app/state/trackplayermap'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { StyleSheet, View } from 'react-native'
|
import { StyleSheet, View } from 'react-native'
|
||||||
|
|
||||||
|
const SongRenderItem: React.FC<{
|
||||||
|
item: {
|
||||||
|
song: Song
|
||||||
|
i: number
|
||||||
|
onPress: () => void
|
||||||
|
}
|
||||||
|
}> = ({ item }) => (
|
||||||
|
<ListItem
|
||||||
|
item={item.song}
|
||||||
|
queueId={item.i}
|
||||||
|
onPress={item.onPress}
|
||||||
|
showArt={true}
|
||||||
|
style={styles.listItem}
|
||||||
|
subtitle={`${item.song.artist} • ${item.song.album}`}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
|
||||||
const NowPlayingQueue = React.memo<{}>(() => {
|
const NowPlayingQueue = React.memo<{}>(() => {
|
||||||
const queue = useStore(selectTrackPlayer.queue)
|
const queue = useStore(selectTrackPlayer.queue)
|
||||||
const mapTrackExtToSong = useStore(selectTrackPlayerMap.mapTrackExtToSong)
|
const mapTrackExtToSong = useStore(selectTrackPlayerMap.mapTrackExtToSong)
|
||||||
const skipTo = useSkipTo()
|
const skipTo = useSkipTo()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.outerContainer}>
|
<View style={styles.container}>
|
||||||
<GradientScrollView style={styles.container}>
|
<GradientFlatList
|
||||||
<View style={styles.content}>
|
data={queue.map(mapTrackExtToSong).map((song, i) => ({ song, i, onPress: () => skipTo(i) }))}
|
||||||
{queue.map(mapTrackExtToSong).map((song, i) => (
|
renderItem={SongRenderItem}
|
||||||
<ListItem
|
keyExtractor={(item, i) => i.toString()}
|
||||||
key={i}
|
overScrollMode="never"
|
||||||
item={song}
|
windowSize={7}
|
||||||
queueId={i}
|
contentMarginTop={10}
|
||||||
onPress={() => skipTo(i)}
|
|
||||||
showArt={true}
|
|
||||||
subtitle={`${song.artist} • ${song.album}`}
|
|
||||||
/>
|
/>
|
||||||
))}
|
|
||||||
</View>
|
|
||||||
</GradientScrollView>
|
|
||||||
<NowPlayingBar />
|
<NowPlayingBar />
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
outerContainer: {
|
|
||||||
flex: 1,
|
|
||||||
},
|
|
||||||
container: {
|
container: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
},
|
},
|
||||||
content: {
|
listItem: {
|
||||||
alignItems: 'center',
|
|
||||||
paddingTop: 10,
|
|
||||||
paddingHorizontal: 20,
|
paddingHorizontal: 20,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -156,13 +156,13 @@ const infoStyles = StyleSheet.create({
|
|||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
height: 28,
|
minHeight: 30,
|
||||||
fontFamily: font.bold,
|
fontFamily: font.bold,
|
||||||
fontSize: 22,
|
fontSize: 22,
|
||||||
color: colors.text.primary,
|
color: colors.text.primary,
|
||||||
},
|
},
|
||||||
artist: {
|
artist: {
|
||||||
height: 20,
|
minHeight: 21,
|
||||||
fontFamily: font.regular,
|
fontFamily: font.regular,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
color: colors.text.secondary,
|
color: colors.text.secondary,
|
||||||
@@ -336,9 +336,9 @@ const PlayerControls = () => {
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View style={controlsStyles.bottom}>
|
<View style={controlsStyles.bottom}>
|
||||||
<PressableOpacity onPress={undefined} disabled={true} hitSlop={16}>
|
{/* <PressableOpacity onPress={undefined} disabled={true} hitSlop={16}>
|
||||||
<IconMatCom name="cast-audio" size={20} color="white" />
|
<IconMatCom name="cast-audio" size={20} color="white" />
|
||||||
</PressableOpacity>
|
</PressableOpacity> */}
|
||||||
<PressableOpacity onPress={() => navigation.navigate('queue')} disabled={disabled} hitSlop={16}>
|
<PressableOpacity onPress={() => navigation.navigate('queue')} disabled={disabled} hitSlop={16}>
|
||||||
<IconMatCom name="playlist-play" size={24} color="white" />
|
<IconMatCom name="playlist-play" size={24} color="white" />
|
||||||
</PressableOpacity>
|
</PressableOpacity>
|
||||||
@@ -361,9 +361,9 @@ const controlsStyles = StyleSheet.create({
|
|||||||
bottom: {
|
bottom: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'flex-end',
|
||||||
paddingTop: 10,
|
paddingTop: 10,
|
||||||
paddingBottom: 54,
|
paddingBottom: 40,
|
||||||
},
|
},
|
||||||
play: {
|
play: {
|
||||||
marginHorizontal: 30,
|
marginHorizontal: 30,
|
||||||
@@ -419,7 +419,6 @@ const NowPlayingView: React.FC<NowPlayingProps> = ({ navigation }) => {
|
|||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
// paddingTop: StatusBar.currentHeight,
|
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import React, { useCallback, useMemo, useRef, useState } from 'react'
|
|||||||
import {
|
import {
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
InteractionManager,
|
InteractionManager,
|
||||||
|
ScrollView,
|
||||||
StatusBar,
|
StatusBar,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
TextInput as ReactTextInput,
|
TextInput as ReactTextInput,
|
||||||
@@ -90,17 +91,20 @@ const Search = () => {
|
|||||||
const [refreshing, setRefreshing] = useState(false)
|
const [refreshing, setRefreshing] = useState(false)
|
||||||
const [text, setText] = useState('')
|
const [text, setText] = useState('')
|
||||||
const searchBarRef = useRef<ReactTextInput>(null)
|
const searchBarRef = useRef<ReactTextInput>(null)
|
||||||
|
const scrollRef = useRef<ScrollView>(null)
|
||||||
|
|
||||||
useFocusEffect(
|
useFocusEffect(
|
||||||
useCallback(() => {
|
useCallback(() => {
|
||||||
const task = InteractionManager.runAfterInteractions(() => {
|
const task = InteractionManager.runAfterInteractions(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setText('')
|
setText('')
|
||||||
|
setResults({ artists: [], albums: [], songs: [] })
|
||||||
searchBarRef.current?.focus()
|
searchBarRef.current?.focus()
|
||||||
|
scrollRef.current?.scrollTo({ y: 0, animated: true })
|
||||||
}, 50)
|
}, 50)
|
||||||
})
|
})
|
||||||
return () => task.cancel()
|
return () => task.cancel()
|
||||||
}, [searchBarRef]),
|
}, [searchBarRef, scrollRef]),
|
||||||
)
|
)
|
||||||
|
|
||||||
useActiveServerRefresh(
|
useActiveServerRefresh(
|
||||||
@@ -131,7 +135,7 @@ const Search = () => {
|
|||||||
const resultsCount = results.albums.length + results.artists.length + results.songs.length
|
const resultsCount = results.albums.length + results.artists.length + results.songs.length
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<GradientScrollView style={styles.scroll} contentContainerStyle={styles.scrollContentContainer}>
|
<GradientScrollView ref={scrollRef} style={styles.scroll} contentContainerStyle={styles.scrollContentContainer}>
|
||||||
<View style={styles.content}>
|
<View style={styles.content}>
|
||||||
<View style={styles.inputBar}>
|
<View style={styles.inputBar}>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ const ResultsListItem: React.FC<{ item: SearchListItemType }> = ({ item }) => {
|
|||||||
showStar={false}
|
showStar={false}
|
||||||
listStyle="small"
|
listStyle="small"
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
|
style={styles.listItem}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -69,25 +70,24 @@ const SearchResultsView: React.FC<{
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<GradientFlatList
|
<GradientFlatList
|
||||||
contentContainerStyle={styles.listContent}
|
|
||||||
data={list}
|
data={list}
|
||||||
renderItem={SearchResultsRenderItem}
|
renderItem={SearchResultsRenderItem}
|
||||||
keyExtractor={item => item.id}
|
keyExtractor={(item, i) => i.toString()}
|
||||||
onRefresh={refresh}
|
onRefresh={refresh}
|
||||||
refreshing={refreshing}
|
refreshing={refreshing}
|
||||||
overScrollMode="never"
|
overScrollMode="never"
|
||||||
onEndReached={fetchNextPage}
|
onEndReached={fetchNextPage}
|
||||||
removeClippedSubviews={true}
|
removeClippedSubviews={true}
|
||||||
onEndReachedThreshold={2}
|
onEndReachedThreshold={2}
|
||||||
|
contentMarginTop={6}
|
||||||
|
windowSize={5}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
listContent: {
|
listItem: {
|
||||||
minHeight: '100%',
|
|
||||||
paddingHorizontal: 10,
|
paddingHorizontal: 10,
|
||||||
paddingTop: 6,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ import md5 from 'md5'
|
|||||||
import React, { useCallback, useState } from 'react'
|
import React, { useCallback, useState } from 'react'
|
||||||
import { StyleSheet, Text, TextInput, View, ViewStyle } from 'react-native'
|
import { StyleSheet, Text, TextInput, View, ViewStyle } from 'react-native'
|
||||||
import { v4 as uuidv4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
|
import SettingsSwitch from '@app/components/SettingsSwitch'
|
||||||
|
|
||||||
|
const PASSWORD_PLACEHOLDER = 'PASSWORD_PLACEHOLDER'
|
||||||
|
|
||||||
const ServerView: React.FC<{
|
const ServerView: React.FC<{
|
||||||
id?: string
|
id?: string
|
||||||
@@ -26,7 +29,12 @@ const ServerView: React.FC<{
|
|||||||
|
|
||||||
const [address, setAddress] = useState(server?.address || '')
|
const [address, setAddress] = useState(server?.address || '')
|
||||||
const [username, setUsername] = useState(server?.username || '')
|
const [username, setUsername] = useState(server?.username || '')
|
||||||
const [password, setPassword] = useState(server?.token ? 'password' : '')
|
|
||||||
|
const [usePlainPassword, setUsePlainPassword] = useState(server?.usePlainPassword ?? false)
|
||||||
|
const [password, setPassword] = useState(
|
||||||
|
server?.usePlainPassword ? server.plainPassword || '' : server?.token ? PASSWORD_PLACEHOLDER : '',
|
||||||
|
)
|
||||||
|
|
||||||
const [testing, setTesting] = useState(false)
|
const [testing, setTesting] = useState(false)
|
||||||
const [removing, setRemoving] = useState(false)
|
const [removing, setRemoving] = useState(false)
|
||||||
const [saving, setSaving] = useState(false)
|
const [saving, setSaving] = useState(false)
|
||||||
@@ -48,11 +56,24 @@ const ServerView: React.FC<{
|
|||||||
}, [navigation])
|
}, [navigation])
|
||||||
|
|
||||||
const createServer = useCallback<() => Server>(() => {
|
const createServer = useCallback<() => Server>(() => {
|
||||||
const salt = server?.salt || uuidv4()
|
if (usePlainPassword) {
|
||||||
|
return {
|
||||||
|
id: server?.id || uuidv4(),
|
||||||
|
usePlainPassword,
|
||||||
|
plainPassword: password,
|
||||||
|
address,
|
||||||
|
username,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let token: string
|
let token: string
|
||||||
if (password === 'password' && server?.token) {
|
let salt: string
|
||||||
|
|
||||||
|
if (server && !server.usePlainPassword && password === PASSWORD_PLACEHOLDER) {
|
||||||
|
salt = server.salt
|
||||||
token = server.token
|
token = server.token
|
||||||
} else {
|
} else {
|
||||||
|
salt = uuidv4()
|
||||||
token = md5(password + salt)
|
token = md5(password + salt)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,10 +81,11 @@ const ServerView: React.FC<{
|
|||||||
id: server?.id || uuidv4(),
|
id: server?.id || uuidv4(),
|
||||||
address,
|
address,
|
||||||
username,
|
username,
|
||||||
|
usePlainPassword,
|
||||||
salt,
|
salt,
|
||||||
token,
|
token,
|
||||||
}
|
}
|
||||||
}, [address, password, server?.id, server?.salt, server?.token, username])
|
}, [usePlainPassword, server, address, username, password])
|
||||||
|
|
||||||
const save = useCallback(() => {
|
const save = useCallback(() => {
|
||||||
if (!validate()) {
|
if (!validate()) {
|
||||||
@@ -105,6 +127,25 @@ const ServerView: React.FC<{
|
|||||||
waitForRemove()
|
waitForRemove()
|
||||||
}, [canRemove, exit, id, removeServer])
|
}, [canRemove, exit, id, removeServer])
|
||||||
|
|
||||||
|
const togglePlainPassword = useCallback(
|
||||||
|
(value: boolean) => {
|
||||||
|
setUsePlainPassword(value)
|
||||||
|
|
||||||
|
if (value) {
|
||||||
|
if (server && server.usePlainPassword) {
|
||||||
|
setPassword(server.plainPassword)
|
||||||
|
} else if (server) {
|
||||||
|
setPassword('')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (server && !server.usePlainPassword) {
|
||||||
|
setPassword(PASSWORD_PLACEHOLDER)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
[server],
|
||||||
|
)
|
||||||
|
|
||||||
const test = useCallback(() => {
|
const test = useCallback(() => {
|
||||||
setTesting(true)
|
setTesting(true)
|
||||||
const potential = createServer()
|
const potential = createServer()
|
||||||
@@ -180,6 +221,16 @@ const ServerView: React.FC<{
|
|||||||
value={password}
|
value={password}
|
||||||
onChangeText={setPassword}
|
onChangeText={setPassword}
|
||||||
/>
|
/>
|
||||||
|
<SettingsSwitch
|
||||||
|
title="Force plain text password"
|
||||||
|
subtitle={
|
||||||
|
usePlainPassword
|
||||||
|
? 'Send password in plain text (legacy, make sure your connection is secure!)'
|
||||||
|
: 'Send password as token + salt'
|
||||||
|
}
|
||||||
|
value={usePlainPassword}
|
||||||
|
setValue={togglePlainPassword}
|
||||||
|
/>
|
||||||
<Button
|
<Button
|
||||||
disabled={disableControls()}
|
disabled={disableControls()}
|
||||||
style={styles.button}
|
style={styles.button}
|
||||||
|
|||||||
@@ -14,9 +14,10 @@ import colors from '@app/styles/colors'
|
|||||||
import font from '@app/styles/font'
|
import font from '@app/styles/font'
|
||||||
import { useNavigation } from '@react-navigation/core'
|
import { useNavigation } from '@react-navigation/core'
|
||||||
import React, { useCallback, useState } from 'react'
|
import React, { useCallback, useState } from 'react'
|
||||||
import { KeyboardTypeOptions, Modal, Pressable, StatusBar, StyleSheet, Text, View } from 'react-native'
|
import { KeyboardTypeOptions, Linking, Modal, Pressable, StatusBar, StyleSheet, Text, View } from 'react-native'
|
||||||
import { ScrollView } from 'react-native-gesture-handler'
|
import { ScrollView } from 'react-native-gesture-handler'
|
||||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
|
||||||
|
import { version } from '../../package.json'
|
||||||
|
|
||||||
const ServerItem = React.memo<{
|
const ServerItem = React.memo<{
|
||||||
server: Server
|
server: Server
|
||||||
@@ -195,8 +196,11 @@ const SettingsContent = React.memo(() => {
|
|||||||
const servers = useStore(selectSettings.servers)
|
const servers = useStore(selectSettings.servers)
|
||||||
const scrobble = useStore(selectSettings.scrobble)
|
const scrobble = useStore(selectSettings.scrobble)
|
||||||
const setScrobble = useStore(selectSettings.setScrobble)
|
const setScrobble = useStore(selectSettings.setScrobble)
|
||||||
const estimateContentLength = useStore(selectSettings.estimateContentLength)
|
|
||||||
const setEstimateContentLength = useStore(selectSettings.setEstimateContentLength)
|
// doesn't seem to ever be a case where we want this off
|
||||||
|
// will remove later if there isn't a use case for disabling
|
||||||
|
// const estimateContentLength = useStore(selectSettings.estimateContentLength)
|
||||||
|
// const setEstimateContentLength = useStore(selectSettings.setEstimateContentLength)
|
||||||
|
|
||||||
const maxBitrateWifi = useStore(selectSettings.maxBitrateWifi)
|
const maxBitrateWifi = useStore(selectSettings.maxBitrateWifi)
|
||||||
const setMaxBitrateWifi = useStore(selectSettings.setMaxBitrateWifi)
|
const setMaxBitrateWifi = useStore(selectSettings.setMaxBitrateWifi)
|
||||||
@@ -245,14 +249,14 @@ const SettingsContent = React.memo(() => {
|
|||||||
buttonStyle="hollow"
|
buttonStyle="hollow"
|
||||||
/>
|
/>
|
||||||
<Header style={styles.header}>Network</Header>
|
<Header style={styles.header}>Network</Header>
|
||||||
<BitrateModal title="Max bitrate (Wi-Fi)" bitrate={maxBitrateWifi} setBitrate={setMaxBitrateWifi} />
|
<BitrateModal title="Maximum bitrate (Wi-Fi)" bitrate={maxBitrateWifi} setBitrate={setMaxBitrateWifi} />
|
||||||
<BitrateModal title="Max bitrate (mobile)" bitrate={maxBitrateMobile} setBitrate={setMaxBitrateMobile} />
|
<BitrateModal title="Maximum bitrate (mobile)" bitrate={maxBitrateMobile} setBitrate={setMaxBitrateMobile} />
|
||||||
<SettingsSwitch
|
{/* <SettingsSwitch
|
||||||
title="Estimate content length"
|
title="Estimate content length"
|
||||||
subtitle='Send the "estimateContentLength" flag when streaming. Helps fix issues with seeking when the server is transcoding songs.'
|
subtitle='Send the "estimateContentLength" flag when streaming. Helps fix issues with seeking when the server is transcoding songs.'
|
||||||
value={estimateContentLength}
|
value={estimateContentLength}
|
||||||
setValue={setEstimateContentLength}
|
setValue={setEstimateContentLength}
|
||||||
/>
|
/> */}
|
||||||
<SettingsTextModal
|
<SettingsTextModal
|
||||||
title="Minimum buffer time"
|
title="Minimum buffer time"
|
||||||
value={minBuffer.toString()}
|
value={minBuffer.toString()}
|
||||||
@@ -278,10 +282,28 @@ const SettingsContent = React.memo(() => {
|
|||||||
<Button
|
<Button
|
||||||
disabled={clearing}
|
disabled={clearing}
|
||||||
style={styles.button}
|
style={styles.button}
|
||||||
title="Clear image cache"
|
title="Clear Image Cache"
|
||||||
onPress={clear}
|
onPress={clear}
|
||||||
buttonStyle="hollow"
|
buttonStyle="hollow"
|
||||||
/>
|
/>
|
||||||
|
<Header style={styles.header}>About</Header>
|
||||||
|
<Text style={styles.text}>
|
||||||
|
<Text style={styles.bold}>Subtracks</Text> version {version}
|
||||||
|
</Text>
|
||||||
|
<Button
|
||||||
|
disabled={clearing}
|
||||||
|
style={styles.button}
|
||||||
|
title="Project Homepage"
|
||||||
|
onPress={() => Linking.openURL('https://github.com/austinried/subtracks')}
|
||||||
|
buttonStyle="hollow"
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
disabled={clearing}
|
||||||
|
style={styles.button}
|
||||||
|
title="Licenses"
|
||||||
|
onPress={() => navigation.navigate('web', { uri: 'file:///android_asset/licenses.html' })}
|
||||||
|
buttonStyle="hollow"
|
||||||
|
/>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
@@ -305,9 +327,6 @@ const styles = StyleSheet.create({
|
|||||||
paddingHorizontal: 20,
|
paddingHorizontal: 20,
|
||||||
paddingBottom: 40,
|
paddingBottom: 40,
|
||||||
},
|
},
|
||||||
text: {
|
|
||||||
color: 'white',
|
|
||||||
},
|
|
||||||
serverActive: {
|
serverActive: {
|
||||||
paddingLeft: 12,
|
paddingLeft: 12,
|
||||||
},
|
},
|
||||||
@@ -317,6 +336,14 @@ const styles = StyleSheet.create({
|
|||||||
button: {
|
button: {
|
||||||
marginTop: 16,
|
marginTop: 16,
|
||||||
},
|
},
|
||||||
|
licenseButton: {
|
||||||
|
marginHorizontal: 10,
|
||||||
|
flex: 1,
|
||||||
|
},
|
||||||
|
licenses: {
|
||||||
|
flexDirection: 'row',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
},
|
||||||
modalBackdrop: {
|
modalBackdrop: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
},
|
},
|
||||||
@@ -365,7 +392,14 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
modalTextSubmit: {
|
modalTextSubmit: {
|
||||||
marginLeft: 15,
|
marginLeft: 15,
|
||||||
// backgroundColor: 'green',
|
},
|
||||||
|
text: {
|
||||||
|
color: 'white',
|
||||||
|
fontFamily: font.regular,
|
||||||
|
fontSize: 16,
|
||||||
|
},
|
||||||
|
bold: {
|
||||||
|
fontFamily: font.bold,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
import CoverArt from '@app/components/CoverArt'
|
import CoverArt from '@app/components/CoverArt'
|
||||||
import GradientBackground from '@app/components/GradientBackground'
|
import GradientBackground from '@app/components/GradientBackground'
|
||||||
import HeaderBar from '@app/components/HeaderBar'
|
import HeaderBar from '@app/components/HeaderBar'
|
||||||
import ImageGradientScrollView from '@app/components/ImageGradientScrollView'
|
import ImageGradientFlatList from '@app/components/ImageGradientFlatList'
|
||||||
import ListItem from '@app/components/ListItem'
|
import ListItem from '@app/components/ListItem'
|
||||||
import ListPlayerControls from '@app/components/ListPlayerControls'
|
import ListPlayerControls from '@app/components/ListPlayerControls'
|
||||||
import NothingHere from '@app/components/NothingHere'
|
|
||||||
import { useCoverArtFile } from '@app/hooks/cache'
|
import { useCoverArtFile } from '@app/hooks/cache'
|
||||||
import { useAlbumWithSongs, usePlaylistWithSongs } from '@app/hooks/music'
|
import { useAlbumWithSongs, usePlaylistWithSongs } from '@app/hooks/music'
|
||||||
import { AlbumWithSongs, PlaylistWithSongs, Song } from '@app/models/music'
|
import { AlbumWithSongs, PlaylistWithSongs, Song } from '@app/models/music'
|
||||||
@@ -23,15 +22,42 @@ const SongListDetailsFallback = React.memo(() => (
|
|||||||
</GradientBackground>
|
</GradientBackground>
|
||||||
))
|
))
|
||||||
|
|
||||||
const Songs = React.memo<{
|
const SongRenderItem: React.FC<{
|
||||||
songs: Song[]
|
item: {
|
||||||
name: string
|
song: Song
|
||||||
|
contextId?: string
|
||||||
|
queueId?: number
|
||||||
|
subtitle?: string
|
||||||
|
onPress?: () => void
|
||||||
|
showArt?: boolean
|
||||||
|
}
|
||||||
|
}> = ({ item }) => (
|
||||||
|
<ListItem
|
||||||
|
item={item.song}
|
||||||
|
contextId={item.contextId}
|
||||||
|
queueId={item.queueId}
|
||||||
|
subtitle={item.subtitle}
|
||||||
|
onPress={item.onPress}
|
||||||
|
showArt={item.showArt}
|
||||||
|
style={styles.listItem}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
|
||||||
|
const SongListDetails = React.memo<{
|
||||||
|
title: string
|
||||||
type: SongListType
|
type: SongListType
|
||||||
itemId: string
|
songList?: AlbumWithSongs | PlaylistWithSongs
|
||||||
}>(({ songs, name, type, itemId }) => {
|
subtitle?: string
|
||||||
|
}>(({ title, songList, subtitle, type }) => {
|
||||||
|
const coverArtFile = useCoverArtFile(songList?.coverArt, 'thumbnail')
|
||||||
|
const [headerColor, setHeaderColor] = useState<string | undefined>(undefined)
|
||||||
const setQueue = useStore(selectTrackPlayer.setQueue)
|
const setQueue = useStore(selectTrackPlayer.setQueue)
|
||||||
|
|
||||||
const _songs = [...songs]
|
if (!songList) {
|
||||||
|
return <SongListDetailsFallback />
|
||||||
|
}
|
||||||
|
|
||||||
|
const _songs = [...songList.songs]
|
||||||
let typeName = ''
|
let typeName = ''
|
||||||
|
|
||||||
if (type === 'album') {
|
if (type === 'album') {
|
||||||
@@ -49,46 +75,6 @@ const Songs = React.memo<{
|
|||||||
typeName = 'Playlist'
|
typeName = 'Playlist'
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<ListPlayerControls
|
|
||||||
style={styles.controls}
|
|
||||||
songs={_songs}
|
|
||||||
typeName={typeName}
|
|
||||||
queueName={name}
|
|
||||||
queueContextId={itemId}
|
|
||||||
queueContextType={type}
|
|
||||||
/>
|
|
||||||
<View style={styles.songs}>
|
|
||||||
{_songs.map((s, i) => (
|
|
||||||
<ListItem
|
|
||||||
key={i}
|
|
||||||
item={s}
|
|
||||||
contextId={itemId}
|
|
||||||
queueId={i}
|
|
||||||
subtitle={s.artist}
|
|
||||||
onPress={() => setQueue(_songs, name, type, itemId, i)}
|
|
||||||
showArt={false}
|
|
||||||
/>
|
|
||||||
))}
|
|
||||||
</View>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
})
|
|
||||||
|
|
||||||
const SongListDetails = React.memo<{
|
|
||||||
title: string
|
|
||||||
type: SongListType
|
|
||||||
songList?: AlbumWithSongs | PlaylistWithSongs
|
|
||||||
subtitle?: string
|
|
||||||
}>(({ title, songList, subtitle, type }) => {
|
|
||||||
const coverArtFile = useCoverArtFile(songList?.coverArt, 'thumbnail')
|
|
||||||
const [headerColor, setHeaderColor] = useState<string | undefined>(undefined)
|
|
||||||
|
|
||||||
if (!songList) {
|
|
||||||
return <SongListDetailsFallback />
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<HeaderBar
|
<HeaderBar
|
||||||
@@ -96,21 +82,43 @@ const SongListDetails = React.memo<{
|
|||||||
title={title}
|
title={title}
|
||||||
contextItem={songList.itemType === 'album' ? songList : undefined}
|
contextItem={songList.itemType === 'album' ? songList : undefined}
|
||||||
/>
|
/>
|
||||||
<ImageGradientScrollView
|
<ImageGradientFlatList
|
||||||
imagePath={coverArtFile?.file?.path}
|
data={_songs.map((s, i) => ({
|
||||||
style={styles.container}
|
song: s,
|
||||||
onGetColor={setHeaderColor}>
|
contextId: songList.id,
|
||||||
|
queueId: i,
|
||||||
|
subtitle: s.artist,
|
||||||
|
onPress: () => setQueue(_songs, songList.name, type, songList.id, i),
|
||||||
|
showArt: songList.itemType === 'playlist',
|
||||||
|
}))}
|
||||||
|
renderItem={SongRenderItem}
|
||||||
|
keyExtractor={(item, i) => i.toString()}
|
||||||
|
backgroundProps={{
|
||||||
|
imagePath: coverArtFile?.file?.path,
|
||||||
|
style: styles.container,
|
||||||
|
onGetColor: setHeaderColor,
|
||||||
|
}}
|
||||||
|
overScrollMode="never"
|
||||||
|
windowSize={7}
|
||||||
|
contentMarginTop={26}
|
||||||
|
ListHeaderComponent={
|
||||||
<View style={styles.content}>
|
<View style={styles.content}>
|
||||||
<CoverArt type="cover" size="original" coverArt={songList.coverArt} style={styles.cover} />
|
<CoverArt type="cover" size="original" coverArt={songList.coverArt} style={styles.cover} />
|
||||||
<Text style={styles.title}>{songList.name}</Text>
|
<Text style={styles.title}>{songList.name}</Text>
|
||||||
{subtitle ? <Text style={styles.subtitle}>{subtitle}</Text> : <></>}
|
{subtitle ? <Text style={styles.subtitle}>{subtitle}</Text> : <></>}
|
||||||
{songList.songs.length > 0 ? (
|
{songList.songs.length > 0 && (
|
||||||
<Songs songs={songList.songs} name={songList.name} type={type} itemId={songList.id} />
|
<ListPlayerControls
|
||||||
) : (
|
style={styles.controls}
|
||||||
<NothingHere height={300} width={250} />
|
songs={_songs}
|
||||||
|
typeName={typeName}
|
||||||
|
queueName={songList.name}
|
||||||
|
queueContextId={songList.id}
|
||||||
|
queueContextType={type}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
</ImageGradientScrollView>
|
}
|
||||||
|
/>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
@@ -185,6 +193,9 @@ const styles = StyleSheet.create({
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
paddingTop: 100,
|
paddingTop: 100,
|
||||||
},
|
},
|
||||||
|
listItem: {
|
||||||
|
paddingHorizontal: 20,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
export default SongListView
|
export default SongListView
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import { WebView } from 'react-native-webview'
|
||||||
|
|
||||||
|
const WebViewScreen: React.FC<{
|
||||||
|
uri: string
|
||||||
|
}> = ({ uri }) => {
|
||||||
|
return <WebView source={{ uri }} />
|
||||||
|
}
|
||||||
|
|
||||||
|
export default WebViewScreen
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
const migrations: Array<(state: any) => any> = [
|
||||||
|
state => {
|
||||||
|
for (let server of state.settings.servers) {
|
||||||
|
server.usePlainPassword = false
|
||||||
|
}
|
||||||
|
|
||||||
|
return state
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
export default migrations
|
||||||
@@ -135,8 +135,7 @@ export const createMusicMapSlice = (set: SetState<Store>, get: GetState<Store>):
|
|||||||
mapPlaylistWithSongs: async playlist => {
|
mapPlaylistWithSongs: async playlist => {
|
||||||
return {
|
return {
|
||||||
...get().mapPlaylistListItem(playlist),
|
...get().mapPlaylistListItem(playlist),
|
||||||
// passing cover art here is a temp fix to improve large playlist performance
|
songs: await get().mapChildrenToSongs(playlist.songs),
|
||||||
songs: await get().mapChildrenToSongs(playlist.songs, playlist.coverArt),
|
|
||||||
coverArt: playlist.coverArt,
|
coverArt: playlist.coverArt,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,10 +4,13 @@ import AsyncStorage from '@react-native-async-storage/async-storage'
|
|||||||
import create from 'zustand'
|
import create from 'zustand'
|
||||||
import { persist, StateStorage } from 'zustand/middleware'
|
import { persist, StateStorage } from 'zustand/middleware'
|
||||||
import { CacheSlice, createCacheSlice } from './cache'
|
import { CacheSlice, createCacheSlice } from './cache'
|
||||||
|
import migrations from './migrations'
|
||||||
import { createMusicMapSlice, MusicMapSlice } from './musicmap'
|
import { createMusicMapSlice, MusicMapSlice } from './musicmap'
|
||||||
import { createTrackPlayerSlice, TrackPlayerSlice } from './trackplayer'
|
import { createTrackPlayerSlice, TrackPlayerSlice } from './trackplayer'
|
||||||
import { createTrackPlayerMapSlice, TrackPlayerMapSlice } from './trackplayermap'
|
import { createTrackPlayerMapSlice, TrackPlayerMapSlice } from './trackplayermap'
|
||||||
|
|
||||||
|
const DB_VERSION = migrations.length
|
||||||
|
|
||||||
export type Store = SettingsSlice &
|
export type Store = SettingsSlice &
|
||||||
MusicSlice &
|
MusicSlice &
|
||||||
MusicMapSlice &
|
MusicMapSlice &
|
||||||
@@ -51,6 +54,7 @@ export const useStore = create<Store>(
|
|||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
name: '@appStore',
|
name: '@appStore',
|
||||||
|
version: DB_VERSION,
|
||||||
getStorage: () => storage,
|
getStorage: () => storage,
|
||||||
whitelist: ['settings', 'cacheFiles'],
|
whitelist: ['settings', 'cacheFiles'],
|
||||||
onRehydrateStorage: _preState => {
|
onRehydrateStorage: _preState => {
|
||||||
@@ -59,6 +63,17 @@ export const useStore = create<Store>(
|
|||||||
postState?.setHydrated(true)
|
postState?.setHydrated(true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
migrate: (persistedState, version) => {
|
||||||
|
if (version > DB_VERSION) {
|
||||||
|
throw new Error('cannot migrate db on a downgrade, delete all data first')
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i = version; i < DB_VERSION; i++) {
|
||||||
|
persistedState = migrations[i](persistedState)
|
||||||
|
}
|
||||||
|
|
||||||
|
return persistedState
|
||||||
|
},
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ export type TrackPlayerSlice = {
|
|||||||
playerState: State
|
playerState: State
|
||||||
setPlayerState: (playerState: State) => void
|
setPlayerState: (playerState: State) => void
|
||||||
|
|
||||||
|
duckPaused: boolean
|
||||||
|
setDuckPaused: (duckPaused: boolean) => void
|
||||||
|
|
||||||
currentTrack?: TrackExt
|
currentTrack?: TrackExt
|
||||||
currentTrackIdx?: number
|
currentTrackIdx?: number
|
||||||
setCurrentTrackIdx: (idx?: number) => void
|
setCurrentTrackIdx: (idx?: number) => void
|
||||||
@@ -64,7 +67,7 @@ export type TrackPlayerSlice = {
|
|||||||
netState: 'mobile' | 'wifi'
|
netState: 'mobile' | 'wifi'
|
||||||
setNetState: (netState: 'mobile' | 'wifi') => Promise<void>
|
setNetState: (netState: 'mobile' | 'wifi') => Promise<void>
|
||||||
|
|
||||||
rebuildQueue: () => Promise<void>
|
rebuildQueue: (forcePlay?: boolean) => Promise<void>
|
||||||
buildStreamUri: (id: string) => string
|
buildStreamUri: (id: string) => string
|
||||||
resetTrackPlayerState: () => void
|
resetTrackPlayerState: () => void
|
||||||
|
|
||||||
@@ -197,6 +200,9 @@ export const createTrackPlayerSlice = (set: SetState<Store>, get: GetState<Store
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
duckPaused: false,
|
||||||
|
setDuckPaused: duckPaused => set({ duckPaused }),
|
||||||
|
|
||||||
queue: [],
|
queue: [],
|
||||||
setQueue: async (songs, name, contextType, contextId, playTrack, shuffle) => {
|
setQueue: async (songs, name, contextType, contextId, playTrack, shuffle) => {
|
||||||
return trackPlayerCommands.enqueue(async () => {
|
return trackPlayerCommands.enqueue(async () => {
|
||||||
@@ -284,7 +290,7 @@ export const createTrackPlayerSlice = (set: SetState<Store>, get: GetState<Store
|
|||||||
get().rebuildQueue()
|
get().rebuildQueue()
|
||||||
},
|
},
|
||||||
|
|
||||||
rebuildQueue: async () => {
|
rebuildQueue: async forcePlay => {
|
||||||
return trackPlayerCommands.enqueue(async () => {
|
return trackPlayerCommands.enqueue(async () => {
|
||||||
const queue = await getQueue()
|
const queue = await getQueue()
|
||||||
if (!queue.length) {
|
if (!queue.length) {
|
||||||
@@ -326,7 +332,7 @@ export const createTrackPlayerSlice = (set: SetState<Store>, get: GetState<Store
|
|||||||
|
|
||||||
await TrackPlayer.seekTo(position)
|
await TrackPlayer.seekTo(position)
|
||||||
|
|
||||||
if (state === State.Playing) {
|
if (state === State.Playing || forcePlay) {
|
||||||
await TrackPlayer.play()
|
await TrackPlayer.play()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Song } from '@app/models/music'
|
import { Song } from '@app/models/music'
|
||||||
|
import userAgent from '@app/util/userAgent'
|
||||||
import { GetState, SetState } from 'zustand'
|
import { GetState, SetState } from 'zustand'
|
||||||
import { Store } from './store'
|
import { Store } from './store'
|
||||||
import { TrackExt } from './trackplayer'
|
import { TrackExt } from './trackplayer'
|
||||||
@@ -29,6 +30,7 @@ export const createTrackPlayerMapSlice = (set: SetState<Store>, get: GetState<St
|
|||||||
artist: song.artist || 'Unknown Artist',
|
artist: song.artist || 'Unknown Artist',
|
||||||
album: song.album || 'Unknown Album',
|
album: song.album || 'Unknown Album',
|
||||||
url: song.streamUri,
|
url: song.streamUri,
|
||||||
|
userAgent,
|
||||||
artwork,
|
artwork,
|
||||||
coverArt: song.coverArt,
|
coverArt: song.coverArt,
|
||||||
duration: song.duration,
|
duration: song.duration,
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import {
|
|||||||
SubsonicResponse,
|
SubsonicResponse,
|
||||||
} from '@app/subsonic/responses'
|
} from '@app/subsonic/responses'
|
||||||
import toast from '@app/util/toast'
|
import toast from '@app/util/toast'
|
||||||
|
import userAgent from '@app/util/userAgent'
|
||||||
import { DOMParser } from 'xmldom'
|
import { DOMParser } from 'xmldom'
|
||||||
|
|
||||||
export class SubsonicApiError extends Error {
|
export class SubsonicApiError extends Error {
|
||||||
@@ -63,9 +64,15 @@ export class SubsonicApiClient {
|
|||||||
|
|
||||||
this.params = new URLSearchParams()
|
this.params = new URLSearchParams()
|
||||||
this.params.append('u', server.username)
|
this.params.append('u', server.username)
|
||||||
|
|
||||||
|
if (server.usePlainPassword) {
|
||||||
|
this.params.append('p', server.plainPassword)
|
||||||
|
} else {
|
||||||
this.params.append('t', server.token)
|
this.params.append('t', server.token)
|
||||||
this.params.append('s', server.salt)
|
this.params.append('s', server.salt)
|
||||||
this.params.append('v', '1.15.0')
|
}
|
||||||
|
|
||||||
|
this.params.append('v', '1.14.0')
|
||||||
this.params.append('c', 'subtracks')
|
this.params.append('c', 'subtracks')
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,14 +85,17 @@ export class SubsonicApiClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return `${this.address}/rest/${method}?${query}`
|
// *.view was present on all method names in API 1.14.0 and earlier
|
||||||
|
return `${this.address}/rest/${method}.view?${query}`
|
||||||
}
|
}
|
||||||
|
|
||||||
private async apiGetXml(method: string, params?: { [key: string]: any }): Promise<Document> {
|
private async apiGetXml(method: string, params?: { [key: string]: any }): Promise<Document> {
|
||||||
let text: string
|
let text: string
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(this.buildUrl(method, params))
|
const response = await fetch(this.buildUrl(method, params), {
|
||||||
|
headers: { 'User-Agent': userAgent },
|
||||||
|
})
|
||||||
text = await response.text()
|
text = await response.text()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
toast(`Network error: ${this.address}`)
|
toast(`Network error: ${this.address}`)
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
import { Platform } from 'react-native'
|
||||||
|
|
||||||
|
export default `subtracks/${Platform.OS}`
|
||||||
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 31 KiB |
@@ -0,0 +1 @@
|
|||||||
|
Initial release
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Initial 1.0.0 release
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
## Changes
|
||||||
|
|
||||||
|
- Remove unused permissions (read/write external storage)
|
||||||
|
- Fix text cutting off on Now Playing screen
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
## New
|
||||||
|
|
||||||
|
- Added ALAC file playback support
|
||||||
|
- Added plain-text password option for older servers
|
||||||
|
- Target API version 1.14.0 (instead of 1.15.0) to support more servers (Ampache, Airsonic Advanced)
|
||||||
|
|
||||||
|
## Fixed
|
||||||
|
|
||||||
|
- Removed non-working cast button until support is added
|
||||||
|
- Fixed Subtracks showing up multiple times in Navidrome clients menu (too many user-agents)
|
||||||
|
- Fixed network error for HTTPS servers using self-signed certificates that the user has trusted
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
## Fixed
|
||||||
|
- Don't resume playback after alarm/call ends if the alarm/call didn't pause playback in the first place
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
Subtracks is an Android open source music streaming app for Subsonic-API-compatible servers (Subsonic, Navidrome, Airsonic, and more). It's designed to give you clean and convenient access to your music in the style of modern media players.
|
||||||
|
|
||||||
|
Features
|
||||||
|
- Album and artist art display by default (full-res in detail/now playing views)
|
||||||
|
- Gapless playback
|
||||||
|
- Mulitple server support
|
||||||
|
- Filterable/sortable album and artist library views
|
||||||
|
- Search artists, albums, and songs
|
||||||
|
- Scrobble support
|
||||||
|
- Max bitrate and buffer size settings
|
||||||
|
- Loop and shuffle playback options
|
||||||
|
- Long-press for context menu shortcuts
|
||||||
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 649 KiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 905 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 437 KiB |
|
After Width: | Height: | Size: 444 KiB |
@@ -0,0 +1 @@
|
|||||||
|
A music streaming app for Subsonic-API-compatible servers
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Subtracks
|
||||||
@@ -1,14 +1,21 @@
|
|||||||
{
|
{
|
||||||
"name": "subtracks",
|
"name": "subtracks",
|
||||||
"version": "1.0.0",
|
"version": "1.1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"android": "react-native run-android",
|
"android": "react-native run-android",
|
||||||
"android-release": "./android/gradlew -p android assembleRelease -PsignReleaseWithDebug=true && adb install -r android/app/build/outputs/apk/release/app-release.apk && adb shell am start -n com.subtracks/.MainActivity",
|
"android:release": "./android/gradlew -p android assembleRelease -PsignReleaseWithDebug=true && adb install -r android/app/build/outputs/apk/release/app-release.apk && adb shell am start -n com.subtracks/.MainActivity",
|
||||||
"start": "react-native start",
|
"start": "react-native start",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
||||||
|
"license:npm": "yarn licenses generate-disclaimer --production | grep -v '^info\\s\"\\?fsevents' > android/app/src/main/assets/licenses/npm.txt",
|
||||||
|
"license:android": "./android/gradlew -p android checkLicenses && ./android/gradlew -p android generateLicensePage",
|
||||||
|
"license:android:update": "./android/gradlew -p android updateLicenses",
|
||||||
|
"license": "yarn license:npm && yarn license:android && scripts/build-license-html.sh",
|
||||||
|
"version:patch": "yarn version --patch --no-git-tag-version && ./android/gradlew -p android bumpPatchVersion",
|
||||||
|
"version:minor": "yarn version --minor --no-git-tag-version && ./android/gradlew -p android bumpMinorVersion",
|
||||||
|
"version:major": "yarn version --major --no-git-tag-version && ./android/gradlew -p android bumpMajorVersion"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@react-native-async-storage/async-storage": "^1.15.5",
|
"@react-native-async-storage/async-storage": "^1.15.5",
|
||||||
@@ -19,7 +26,8 @@
|
|||||||
"@react-navigation/bottom-tabs": "^5.11.11",
|
"@react-navigation/bottom-tabs": "^5.11.11",
|
||||||
"@react-navigation/material-top-tabs": "^5.3.15",
|
"@react-navigation/material-top-tabs": "^5.3.15",
|
||||||
"@react-navigation/native": "^5.9.4",
|
"@react-navigation/native": "^5.9.4",
|
||||||
"immer": "^9.0.5",
|
"@xmldom/xmldom": "^0.7.2",
|
||||||
|
"immer": "^9.0.6",
|
||||||
"lodash.debounce": "^4.0.8",
|
"lodash.debounce": "^4.0.8",
|
||||||
"md5": "^2.3.0",
|
"md5": "^2.3.0",
|
||||||
"react": "17.0.1",
|
"react": "17.0.1",
|
||||||
@@ -34,10 +42,10 @@
|
|||||||
"react-native-safe-area-context": "^3.2.0",
|
"react-native-safe-area-context": "^3.2.0",
|
||||||
"react-native-screens": "^3.4.0",
|
"react-native-screens": "^3.4.0",
|
||||||
"react-native-tab-view": "^2.16.0",
|
"react-native-tab-view": "^2.16.0",
|
||||||
"react-native-track-player": "^2.0.3",
|
"react-native-track-player": "https://github.com/austinried/react-native-track-player",
|
||||||
"react-native-vector-icons": "^8.1.0",
|
"react-native-vector-icons": "^8.1.0",
|
||||||
|
"react-native-webview": "^11.13.0",
|
||||||
"uuid": "^8.3.2",
|
"uuid": "^8.3.2",
|
||||||
"xmldom": "^0.5.0",
|
|
||||||
"zustand": "^3.5.7"
|
"zustand": "^3.5.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -51,7 +59,7 @@
|
|||||||
"@types/react-native-vector-icons": "^6.4.7",
|
"@types/react-native-vector-icons": "^6.4.7",
|
||||||
"@types/react-test-renderer": "^16.9.2",
|
"@types/react-test-renderer": "^16.9.2",
|
||||||
"@types/uuid": "^8.3.0",
|
"@types/uuid": "^8.3.0",
|
||||||
"@types/xmldom": "^0.1.30",
|
"@types/xmldom": "^0.1.31",
|
||||||
"babel-jest": "^26.6.3",
|
"babel-jest": "^26.6.3",
|
||||||
"babel-plugin-module-resolver": "^4.1.0",
|
"babel-plugin-module-resolver": "^4.1.0",
|
||||||
"eslint": "^7.14.0",
|
"eslint": "^7.14.0",
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
dir=$(dirname "$(readlink -f "$0")")
|
||||||
|
root=$(realpath "$dir/..")
|
||||||
|
assets="$root/android/app/src/main/assets"
|
||||||
|
|
||||||
|
for filename in "$assets"/licenses/*.txt; do
|
||||||
|
[ -e "$filename" ] || continue
|
||||||
|
moreLicenses="$moreLicenses"'<hr/><pre style="white-space: pre-wrap;">
|
||||||
|
'$(cat "$filename")'
|
||||||
|
</pre>
|
||||||
|
'
|
||||||
|
done
|
||||||
|
echo "$moreLicenses" > "$assets/moreLicenses"
|
||||||
|
|
||||||
|
awk '
|
||||||
|
/<\/body>/ {
|
||||||
|
system ( "cat \"'"$assets/moreLicenses"'\"" )
|
||||||
|
}
|
||||||
|
{ print }
|
||||||
|
' "$assets/licenses.html" > "$assets/output.html"
|
||||||
|
|
||||||
|
mv "$assets/output.html" "$assets/licenses.html"
|
||||||
|
rm "$assets/moreLicenses"
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
dir=$(dirname "$(readlink -f "$0")")
|
||||||
|
root=$(realpath "$dir/..")
|
||||||
|
|
||||||
|
FFMPEG_EXT_PATH="$root/submodules/ExoPlayer/extensions/ffmpeg/src/main/jni"
|
||||||
|
HOST_PLATFORM="linux-x86_64"
|
||||||
|
ENABLED_DECODERS=(alac)
|
||||||
|
|
||||||
|
ndkLocalPath="$root/ndk/android-ndk-r21e"
|
||||||
|
ndkDownloadZip="$root/ndk/ndk.zip"
|
||||||
|
|
||||||
|
if [ -z "$NDK_PATH" ] && [ ! -e "$ndkLocalPath" ]; then
|
||||||
|
mkdir -p "$root/ndk"
|
||||||
|
|
||||||
|
echo "downloading android-ndk-r21e-linux-x86_64.zip to $ndkDownloadZip..."
|
||||||
|
wget -nv https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip -O "$ndkDownloadZip"
|
||||||
|
echo "done!"
|
||||||
|
|
||||||
|
echo "extracting $ndkDownloadZip..."
|
||||||
|
unzip -q -d "$root/ndk" "$ndkDownloadZip"
|
||||||
|
echo "done!"
|
||||||
|
|
||||||
|
rm "$ndkDownloadZip"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$NDK_PATH" ] && [ -e "$ndkLocalPath" ]; then
|
||||||
|
NDK_PATH="$root/ndk/android-ndk-r21e"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "${FFMPEG_EXT_PATH}"
|
||||||
|
./build_ffmpeg.sh "${FFMPEG_EXT_PATH}" "${NDK_PATH}" "${HOST_PLATFORM}" "${ENABLED_DECODERS[@]}"
|
||||||
|
"${NDK_PATH}/ndk-build" APP_ABI="armeabi-v7a arm64-v8a x86 x86_64" -j4
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
|
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
|
||||||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
||||||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
||||||
"skipLibCheck": false /* Skip type checking of declaration files. */
|
"skipLibCheck": false /* Skip type checking of declaration files. */,
|
||||||
|
|
||||||
/* Source Map Options */
|
/* Source Map Options */
|
||||||
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
||||||
@@ -57,6 +57,7 @@
|
|||||||
/* Experimental Options */
|
/* Experimental Options */
|
||||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
||||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
||||||
|
"resolveJsonModule": true
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
|
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1388,10 +1388,10 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.0.tgz#215c231dff736d5ba92410e6d602050cce7e273f"
|
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.0.tgz#215c231dff736d5ba92410e6d602050cce7e273f"
|
||||||
integrity sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==
|
integrity sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==
|
||||||
|
|
||||||
"@types/xmldom@^0.1.30":
|
"@types/xmldom@^0.1.31":
|
||||||
version "0.1.30"
|
version "0.1.31"
|
||||||
resolved "https://registry.yarnpkg.com/@types/xmldom/-/xmldom-0.1.30.tgz#d36d9a7d64af4693d3b18d5dc02ce432a95be12e"
|
resolved "https://registry.yarnpkg.com/@types/xmldom/-/xmldom-0.1.31.tgz#519b647cfc66debf82cdf50e49763c8fdee553d6"
|
||||||
integrity sha512-edqgAFXMEtVvaBZ3YnhamvmrHjoYpuxETmnb0lbTZmf/dXpAsO9ZKotUO4K2rn2SIZBDFCMOuA7fOe0H6dRZcA==
|
integrity sha512-bVy7s0nvaR5D1mT1a8ZkByHWNOGb6Vn4yi5TWhEdmyKlAG+08SA7Md6+jH+tYmMLueAwNeWvHHpeKrr6S4c4BA==
|
||||||
|
|
||||||
"@types/yargs-parser@*":
|
"@types/yargs-parser@*":
|
||||||
version "20.2.0"
|
version "20.2.0"
|
||||||
@@ -1465,6 +1465,11 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
eslint-visitor-keys "^1.1.0"
|
eslint-visitor-keys "^1.1.0"
|
||||||
|
|
||||||
|
"@xmldom/xmldom@^0.7.2":
|
||||||
|
version "0.7.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.2.tgz#d920079e66806b2626b5311955f6a7c4bed1cba8"
|
||||||
|
integrity sha512-t/Zqo0ewes3iq6zGqEqJNUWI27Acr3jkmSUNp6E3nl0Z2XbtqAG5XYqPNLdYonILmhcxANsIidh69tHzjXtuRg==
|
||||||
|
|
||||||
abab@^2.0.3, abab@^2.0.5:
|
abab@^2.0.3, abab@^2.0.5:
|
||||||
version "2.0.5"
|
version "2.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a"
|
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a"
|
||||||
@@ -2648,16 +2653,16 @@ escape-html@~1.0.3:
|
|||||||
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
|
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
|
||||||
integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=
|
integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=
|
||||||
|
|
||||||
|
escape-string-regexp@2.0.0, escape-string-regexp@^2.0.0:
|
||||||
|
version "2.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
|
||||||
|
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
|
||||||
|
|
||||||
escape-string-regexp@^1.0.5:
|
escape-string-regexp@^1.0.5:
|
||||||
version "1.0.5"
|
version "1.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
|
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
|
||||||
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
|
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
|
||||||
|
|
||||||
escape-string-regexp@^2.0.0:
|
|
||||||
version "2.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
|
|
||||||
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
|
|
||||||
|
|
||||||
escape-string-regexp@^4.0.0:
|
escape-string-regexp@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
|
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
|
||||||
@@ -3409,10 +3414,10 @@ image-size@^0.6.0:
|
|||||||
resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.6.3.tgz#e7e5c65bb534bd7cdcedd6cb5166272a85f75fb2"
|
resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.6.3.tgz#e7e5c65bb534bd7cdcedd6cb5166272a85f75fb2"
|
||||||
integrity sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA==
|
integrity sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA==
|
||||||
|
|
||||||
immer@^9.0.5:
|
immer@^9.0.6:
|
||||||
version "9.0.5"
|
version "9.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.5.tgz#a7154f34fe7064f15f00554cc94c66cc0bf453ec"
|
resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.6.tgz#7a96bf2674d06c8143e327cbf73539388ddf1a73"
|
||||||
integrity sha512-2WuIehr2y4lmYz9gaQzetPR2ECniCifk4ORaQbU3g5EalLt+0IVTosEPJ5BoYl/75ky2mivzdRzV8wWgQGOSYQ==
|
integrity sha512-G95ivKpy+EvVAnAab4fVa4YGYn24J1SpEktnJX7JJ45Bd7xqME/SCplFzYFmTbrkwZbQ4xJK1xMTUYBkN6pWsQ==
|
||||||
|
|
||||||
import-fresh@^2.0.0:
|
import-fresh@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
@@ -3470,7 +3475,7 @@ interpret@^1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e"
|
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e"
|
||||||
integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==
|
integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==
|
||||||
|
|
||||||
invariant@^2.2.4:
|
invariant@2.2.4, invariant@^2.2.4:
|
||||||
version "2.2.4"
|
version "2.2.4"
|
||||||
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
|
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
|
||||||
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
|
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
|
||||||
@@ -5587,10 +5592,9 @@ react-native-tab-view@^2.16.0:
|
|||||||
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-2.16.0.tgz#cae72c7084394bd328fac5fefb86cd966df37a86"
|
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-2.16.0.tgz#cae72c7084394bd328fac5fefb86cd966df37a86"
|
||||||
integrity sha512-ac2DmT7+l13wzIFqtbfXn4wwfgtPoKzWjjZyrK1t+T8sdemuUvD4zIt+UImg03fu3s3VD8Wh/fBrIdcqQyZJWg==
|
integrity sha512-ac2DmT7+l13wzIFqtbfXn4wwfgtPoKzWjjZyrK1t+T8sdemuUvD4zIt+UImg03fu3s3VD8Wh/fBrIdcqQyZJWg==
|
||||||
|
|
||||||
react-native-track-player@^2.0.3:
|
"react-native-track-player@https://github.com/austinried/react-native-track-player":
|
||||||
version "2.0.3"
|
version "2.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/react-native-track-player/-/react-native-track-player-2.0.3.tgz#a2648e2468f8502359b4678655573501d46f0c64"
|
resolved "https://github.com/austinried/react-native-track-player#24cbbb4a4065ade9a38d2bcdeffa5b6a2f5c3d13"
|
||||||
integrity sha512-XV+92szbnf4FcByzfT62fN+iT9o0WhoMgDFl63Jf4gk6vw6VOFchPOoHKHW0XqgnO4vIit8CFc8u945l8vSSuQ==
|
|
||||||
|
|
||||||
react-native-vector-icons@^8.1.0:
|
react-native-vector-icons@^8.1.0:
|
||||||
version "8.1.0"
|
version "8.1.0"
|
||||||
@@ -5606,6 +5610,14 @@ react-native-vector-icons@^8.1.0:
|
|||||||
prop-types "^15.7.2"
|
prop-types "^15.7.2"
|
||||||
yargs "^16.1.1"
|
yargs "^16.1.1"
|
||||||
|
|
||||||
|
react-native-webview@^11.13.0:
|
||||||
|
version "11.13.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-native-webview/-/react-native-webview-11.13.0.tgz#a2eca0f87b2ae9bba0dd8144594aeff9947cc5d6"
|
||||||
|
integrity sha512-jjQAKWv8JzRmcn76fMe4lXD84AAeR7kn43kAmUe1GX312BMLaP+RbKlgpYAlNuOBXL0YirItGKDrpaD0bNROOA==
|
||||||
|
dependencies:
|
||||||
|
escape-string-regexp "2.0.0"
|
||||||
|
invariant "2.2.4"
|
||||||
|
|
||||||
react-native@0.64.1:
|
react-native@0.64.1:
|
||||||
version "0.64.1"
|
version "0.64.1"
|
||||||
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.64.1.tgz#cd38f5b47b085549686f34eb0c9dcd466f307635"
|
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.64.1.tgz#cd38f5b47b085549686f34eb0c9dcd466f307635"
|
||||||
@@ -6508,9 +6520,9 @@ through2@^2.0.1:
|
|||||||
xtend "~4.0.1"
|
xtend "~4.0.1"
|
||||||
|
|
||||||
tmpl@1.0.x:
|
tmpl@1.0.x:
|
||||||
version "1.0.4"
|
version "1.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1"
|
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc"
|
||||||
integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=
|
integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==
|
||||||
|
|
||||||
to-fast-properties@^2.0.0:
|
to-fast-properties@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
|
|||||||