Merge pull request #1352 from Materialious/update/1.13.10
Update/1.13.10
This commit is contained in:
@@ -31,7 +31,7 @@ jobs:
|
||||
run: cd ../ && npm install
|
||||
|
||||
- name: Build android nodejs packages
|
||||
run: cd ../static/nodejs-android && npm install
|
||||
run: cd ../static/nodejsAndroid && npm install
|
||||
|
||||
- name: Build package
|
||||
run: cd ../ && npm run build
|
||||
|
||||
@@ -1,46 +1,46 @@
|
||||
name: Check Android
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
android-check:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./materialious/android
|
||||
android-check:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./materialious/android
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: latest
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: latest
|
||||
|
||||
- name: Install modules
|
||||
run: cd ../ && npm install
|
||||
- name: Install modules
|
||||
run: cd ../ && npm install
|
||||
|
||||
- name: Build android nodejs packages
|
||||
run: cd ../static/nodejs-android && npm install
|
||||
- name: Build android nodejs packages
|
||||
run: cd ../static/nodejsAndroid && npm install
|
||||
|
||||
- name: Build package
|
||||
run: cd ../ && npm run build
|
||||
- name: Build package
|
||||
run: cd ../ && npm run build
|
||||
|
||||
- name: Sync package
|
||||
run: cd ../ && npx cap sync
|
||||
- name: Sync package
|
||||
run: cd ../ && npx cap sync
|
||||
|
||||
- name: Setup JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: "zulu"
|
||||
java-version: "21"
|
||||
cache: "gradle"
|
||||
- name: Setup JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: "zulu"
|
||||
java-version: "21"
|
||||
cache: "gradle"
|
||||
|
||||
- name: Build App
|
||||
run: |
|
||||
bash gradlew assembleRelease
|
||||
bash gradlew bundleRelease
|
||||
- name: Build App
|
||||
run: |
|
||||
bash gradlew assembleRelease
|
||||
bash gradlew bundleRelease
|
||||
|
||||
+1
-1
@@ -26,6 +26,6 @@ Materialious desktop builds are handled through GitHub using [prod-desktop.yml](
|
||||
### Android Release
|
||||
Android builds are handled using the workflow [prod-android.yml](../.github/workflows/prod-android.yml).
|
||||
|
||||
- After running the standard `npm install` and `npm run build` commands, we install the modules located in [nodejs-android/](../materialious/static/nodejs-android/) for [Capacitor-NodeJS](https://github.com/hampoelz/Capacitor-NodeJS).
|
||||
- After running the standard `npm install` and `npm run build` commands, we install the modules located in [nodejsAndroid/](../materialious/static/nodejsAndroid/) for [Capacitor-NodeJS](https://github.com/hampoelz/Capacitor-NodeJS).
|
||||
- The `npx cap sync` command is used to synchronize with [Capacitor](https://capacitorjs.com).
|
||||
- The Android build is processed using [setup-java](https://github.com/actions/setup-java/tree/v3/), followed by signing the APK with [sign-android-release](https://github.com/ilharp/sign-android-release/tree/v1.0.4).
|
||||
|
||||
Generated
-3
@@ -1,3 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
@@ -4,14 +4,6 @@
|
||||
<selectionStates>
|
||||
<SelectionState runConfigName="app">
|
||||
<option name="selectionMode" value="DROPDOWN" />
|
||||
<DropdownSelection timestamp="2026-01-25T13:45:42.378164664Z">
|
||||
<Target type="DEFAULT_BOOT">
|
||||
<handle>
|
||||
<DeviceId pluginId="LocalEmulator" identifier="path=/home/ward/.android/avd/Pixel_9.avd" />
|
||||
</handle>
|
||||
</Target>
|
||||
</DropdownSelection>
|
||||
<DialogSelection />
|
||||
</SelectionState>
|
||||
</selectionStates>
|
||||
</component>
|
||||
|
||||
Generated
+1
-6
@@ -1,9 +1,4 @@
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="Android" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK" />
|
||||
</project>
|
||||
@@ -7,8 +7,8 @@ android {
|
||||
applicationId "us.materialio.app"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 193
|
||||
versionName "1.13.9"
|
||||
versionCode 194
|
||||
versionName "1.13.10"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||
|
||||
@@ -9,7 +9,6 @@ android {
|
||||
|
||||
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
|
||||
dependencies {
|
||||
implementation project(':capacitor-community-safe-area')
|
||||
implementation project(':capacitor-app')
|
||||
implementation project(':capacitor-browser')
|
||||
implementation project(':capacitor-clipboard')
|
||||
|
||||
@@ -15,8 +15,7 @@
|
||||
android:label="@string/title_activity_main"
|
||||
android:theme="@style/AppTheme.NoActionBarLaunch"
|
||||
android:launchMode="singleTask"
|
||||
android:exported="true"
|
||||
android:windowOptOutEdgeToEdgeEnforcement="true">
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
@@ -70,25 +69,6 @@
|
||||
android:pathPrefix="/shorts" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="${applicationId}.fileprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
|
||||
</provider>
|
||||
|
||||
<service
|
||||
android:name="us.mediagrid.capacitorjs.plugins.nativeaudio.AudioPlayerService"
|
||||
android:description="@string/audio_player_service_description"
|
||||
android:foregroundServiceType="mediaPlayback"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="androidx.media3.session.MediaSessionService"/>
|
||||
</intent-filter>
|
||||
</service>
|
||||
|
||||
</application>
|
||||
|
||||
<!-- Permissions -->
|
||||
|
||||
@@ -4,6 +4,7 @@ import android.os.Bundle;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebSettings;
|
||||
|
||||
|
||||
import com.getcapacitor.BridgeActivity;
|
||||
|
||||
public class MainActivity extends BridgeActivity {
|
||||
@@ -20,6 +21,7 @@ public class MainActivity extends BridgeActivity {
|
||||
WebView webview = getBridge().getWebView();
|
||||
webview.setOverScrollMode(WebView.OVER_SCROLL_NEVER);
|
||||
webview.setVerticalScrollBarEnabled(false);
|
||||
webview.setHorizontalScrollBarEnabled(false);
|
||||
|
||||
WebSettings settings = webview.getSettings();
|
||||
settings.setMediaPlaybackRequiresUserGesture(false);
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
include ':capacitor-android'
|
||||
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
|
||||
|
||||
include ':capacitor-community-safe-area'
|
||||
project(':capacitor-community-safe-area').projectDir = new File('../node_modules/@capacitor-community/safe-area/android')
|
||||
|
||||
include ':capacitor-app'
|
||||
project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android')
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
org.gradle.jvmargs=-Xmx1536m
|
||||
org.gradle.jvmargs=-Xms1G -Xmx1G
|
||||
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. More details, visit
|
||||
|
||||
@@ -6,10 +6,7 @@ const config: CapacitorConfig = {
|
||||
webDir: 'build',
|
||||
plugins: {
|
||||
CapacitorNodeJS: {
|
||||
nodeDir: 'nodejs-android'
|
||||
},
|
||||
SystemBars: {
|
||||
insetsHandling: 'disable'
|
||||
nodeDir: 'nodejsAndroid'
|
||||
}
|
||||
},
|
||||
server: {
|
||||
|
||||
@@ -6,10 +6,7 @@ const config: CapacitorConfig = {
|
||||
webDir: 'build',
|
||||
plugins: {
|
||||
CapacitorNodeJS: {
|
||||
nodeDir: 'nodejs-android'
|
||||
},
|
||||
SystemBars: {
|
||||
insetsHandling: 'disable'
|
||||
nodeDir: 'nodejsAndroid'
|
||||
}
|
||||
},
|
||||
server: {
|
||||
|
||||
@@ -92,7 +92,11 @@
|
||||
|
||||
|
||||
|
||||
<release version="1.13.9" date="2026-1-26">
|
||||
|
||||
<release version="1.13.10" date="2026-1-27">
|
||||
<url>https://github.com/Materialious/Materialious/releases/tag/1.13.10</url>
|
||||
</release>
|
||||
<release version="1.13.9" date="2026-1-26">
|
||||
<url>https://github.com/Materialious/Materialious/releases/tag/1.13.9</url>
|
||||
</release>
|
||||
<release version="1.13.8" date="2026-1-22">
|
||||
|
||||
Generated
+5
-5
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "Materialious",
|
||||
"version": "1.13.9",
|
||||
"version": "1.13.10",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "Materialious",
|
||||
"version": "1.13.9",
|
||||
"version": "1.13.10",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@capacitor-community/electron": "^5.0.0",
|
||||
@@ -4414,9 +4414,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/lodash": {
|
||||
"version": "4.17.21",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
||||
"version": "4.17.23",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz",
|
||||
"integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Materialious",
|
||||
"version": "1.13.9",
|
||||
"version": "1.13.10",
|
||||
"description": "Modern material design for Invidious.",
|
||||
"author": {
|
||||
"name": "Ward Pearce",
|
||||
@@ -45,4 +45,4 @@
|
||||
"capacitor",
|
||||
"electron"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -67,7 +67,7 @@ export default ts.config(
|
||||
'package-lock.json',
|
||||
'yarn.lock',
|
||||
// Ignore our nodejs android code
|
||||
'**/nodejs-android/*',
|
||||
'**/nodejsAndroid/*',
|
||||
// Ignore electron code from capacitorjs
|
||||
'**/electron/*',
|
||||
// Ignore build files
|
||||
|
||||
Generated
+21
-31
@@ -1,16 +1,15 @@
|
||||
{
|
||||
"name": "materialious",
|
||||
"version": "1.13.6",
|
||||
"version": "1.13.10",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "materialious",
|
||||
"version": "1.13.6",
|
||||
"version": "1.13.10",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@capacitor-community/electron": "^5.0.1",
|
||||
"@capacitor-community/safe-area": "^8.0.1",
|
||||
"@capacitor/android": "^8.0.0",
|
||||
"@capacitor/app": "^8.0.0",
|
||||
"@capacitor/browser": "^8.0.0",
|
||||
@@ -1712,15 +1711,6 @@
|
||||
"ora": "^5.4.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@capacitor-community/safe-area": {
|
||||
"version": "8.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@capacitor-community/safe-area/-/safe-area-8.0.1.tgz",
|
||||
"integrity": "sha512-zVVQ7k94DbOff1mHP8qrZGTJZWyhGZnKHD2eXdcobIoOBFW9CeVphLNZYDCop/DBsHXfv6r8k0/Ac8xMIlwT+A==",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"@capacitor/core": ">=8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@capacitor/android": {
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@capacitor/android/-/android-8.0.0.tgz",
|
||||
@@ -2046,9 +2036,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@capacitor/cli": {
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-8.0.0.tgz",
|
||||
"integrity": "sha512-v9hEBi69xGxuuZhg55N031bMEenKaPSv71Il8C22VOOH6surDyv/MPeImN0oVfFc7eiklaW3rDFYVz6cmXfJWQ==",
|
||||
"version": "8.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-8.0.1.tgz",
|
||||
"integrity": "sha512-okCNTsL8FNYrtPNeHWFjWb1S+PwBMhx5wFLhDC0MZOIrOLm+2ynMBtKu3BnR0Nv1hozoHcOCi6SuTF1TrRpb3w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@ionic/cli-framework-output": "^2.2.8",
|
||||
@@ -2059,7 +2049,7 @@
|
||||
"env-paths": "^2.2.0",
|
||||
"fs-extra": "^11.2.0",
|
||||
"kleur": "^4.1.5",
|
||||
"native-run": "^2.0.1",
|
||||
"native-run": "^2.0.3",
|
||||
"open": "^8.4.0",
|
||||
"plist": "^3.1.0",
|
||||
"prompts": "^2.4.2",
|
||||
@@ -5048,9 +5038,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/beercss": {
|
||||
"version": "3.13.1",
|
||||
"resolved": "https://registry.npmjs.org/beercss/-/beercss-3.13.1.tgz",
|
||||
"integrity": "sha512-729VrZYmaySNf8OXJ7iovXdToiqwiSuMNBABWOTMQxOBnwS78VnV7tRs1Ke0yK5mjij5WYwr6MLx4eSK0S7ThQ==",
|
||||
"version": "3.13.3",
|
||||
"resolved": "https://registry.npmjs.org/beercss/-/beercss-3.13.3.tgz",
|
||||
"integrity": "sha512-tMs2kYBiq+wYqqnE+H2wy0BBIMpzRwy3EKnR40XnE41JUFdkM1CdsCnV+RGMB0fokAQVW2WPaNIik0VPUfitLw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"material-dynamic-colors": "^1.1.2"
|
||||
@@ -9163,9 +9153,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/lodash": {
|
||||
"version": "4.17.21",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
||||
"version": "4.17.23",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz",
|
||||
"integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
@@ -9754,9 +9744,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/native-run": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/native-run/-/native-run-2.0.1.tgz",
|
||||
"integrity": "sha512-XfG1FBZLM50J10xH9361whJRC9SHZ0Bub4iNRhhI61C8Jv0e1ud19muex6sNKB51ibQNUJNuYn25MuYET/rE6w==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/native-run/-/native-run-2.0.3.tgz",
|
||||
"integrity": "sha512-U1PllBuzW5d1gfan+88L+Hky2eZx+9gv3Pf6rNBxKbORxi7boHzqiA6QFGSnqMem4j0A9tZ08NMIs5+0m/VS1Q==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@ionic/utils-fs": "^3.1.7",
|
||||
@@ -11753,9 +11743,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/shaka-player": {
|
||||
"version": "4.16.14",
|
||||
"resolved": "https://registry.npmjs.org/shaka-player/-/shaka-player-4.16.14.tgz",
|
||||
"integrity": "sha512-RDxHFlsibqtcjbMflx7upcioJEr66deRyDOb2GQCMEic2NFv6qKdbeyguV+ZDSO6Bcg5/cFZsoDdim5jDnNpSw==",
|
||||
"version": "4.16.15",
|
||||
"resolved": "https://registry.npmjs.org/shaka-player/-/shaka-player-4.16.15.tgz",
|
||||
"integrity": "sha512-jsA1AkQO5zWdrXI8RW/BK0vbdI2ZrHG0w73qPVLoGRoCggmkpJ1rT26/KjmakoO1X+Z2nkIVofTuE5gvirkV8w==",
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
@@ -12448,9 +12438,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/svelte": {
|
||||
"version": "5.47.1",
|
||||
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.47.1.tgz",
|
||||
"integrity": "sha512-MhSWfWEpG5T57z0Oyfk9D1GhAz/KTZKZZlWtGEsy9zNk2fafpuU7sJQlXNSA8HtvwKxVC9XlDyl5YovXUXjjHA==",
|
||||
"version": "5.48.3",
|
||||
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.48.3.tgz",
|
||||
"integrity": "sha512-w7QZ398cdNherTdiQ/v3SYLLGOO4948Jgjh04PYqtTYVohmBvbmFwLmo7pp8gp4/1tceRWfSTjHgjtfpCVNJmQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@jridgewell/remapping": "^2.3.4",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "materialious",
|
||||
"version": "1.13.9",
|
||||
"version": "1.13.10",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "npm run patch:github && vite dev",
|
||||
@@ -37,13 +37,12 @@
|
||||
"svelte-check": "^4.3.3",
|
||||
"tslib": "^2.7.0",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^7.3.1",
|
||||
"typescript-eslint": "^8.53.1"
|
||||
"typescript-eslint": "^8.53.1",
|
||||
"vite": "^7.3.1"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@capacitor-community/electron": "^5.0.1",
|
||||
"@capacitor-community/safe-area": "^8.0.1",
|
||||
"@capacitor/android": "^8.0.0",
|
||||
"@capacitor/app": "^8.0.0",
|
||||
"@capacitor/browser": "^8.0.0",
|
||||
|
||||
+17
-16
@@ -1,19 +1,20 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%sveltekit.assets%/logo.svg" />
|
||||
<meta name="viewport" content="viewport-fit=cover" />
|
||||
<meta name="description" content="Modern material design for Invidious." />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="invidious,materialious,proxy,youtube,yt,theme,interface,modern"
|
||||
/>
|
||||
<meta name="theme-color" content="#141316" />
|
||||
<title>Materialious</title>
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%sveltekit.assets%/logo.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="Modern material design for Invidious." />
|
||||
<meta name="keywords" content="invidious,materialious,proxy,youtube,yt,theme,interface,modern" />
|
||||
<meta name="theme-color" content="#141316" />
|
||||
<title>Materialious</title>
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
|
||||
<body data-sveltekit-preload-data="hover" style="background-color: #141316">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<body data-sveltekit-preload-data="hover" style="background-color: #141316">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -91,7 +91,7 @@ export async function getVideoTYjs(videoId: string): Promise<VideoPlay> {
|
||||
// https://github.com/LuanRT/googlevideo/issues/42
|
||||
if (video.streaming_data)
|
||||
video.streaming_data.adaptive_formats = video.streaming_data.adaptive_formats.filter(
|
||||
(format) => !format.xtags
|
||||
(format) => format.xtags !== 'CgcKAnZiEgEx'
|
||||
);
|
||||
|
||||
const adaptiveFormats: AdaptiveFormats[] = [];
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { getBestThumbnail } from '$lib/images';
|
||||
import { padTime, videoLength } from '$lib/numbers';
|
||||
import { type PhasedDescription, type Timestamp } from '$lib/timestamps';
|
||||
import { SafeArea, SystemBarsStyle, SystemBarsType } from '@capacitor-community/safe-area';
|
||||
import { SystemBars, SystemBarsStyle, SystemBarType } from '@capacitor/core';
|
||||
import { Capacitor } from '@capacitor/core';
|
||||
import { ScreenOrientation, type ScreenOrientationResult } from '@capacitor/screen-orientation';
|
||||
import { error, type Page } from '@sveltejs/kit';
|
||||
@@ -264,14 +264,12 @@
|
||||
|
||||
if (isFullScreen) {
|
||||
// Ensure bar color is black while in fullscreen
|
||||
await SafeArea.setSystemBarsStyle({
|
||||
style: SystemBarsStyle.Dark
|
||||
await SystemBars.setStyle({ style: SystemBarsStyle.Light });
|
||||
await SystemBars.hide({
|
||||
bar: SystemBarType.NavigationBar
|
||||
});
|
||||
await SafeArea.hideSystemBars({
|
||||
type: SystemBarsType.NavigationBar
|
||||
});
|
||||
await SafeArea.hideSystemBars({
|
||||
type: SystemBarsType.StatusBar
|
||||
await SystemBars.hide({
|
||||
bar: SystemBarType.StatusBar
|
||||
});
|
||||
} else {
|
||||
await setStatusBarColor();
|
||||
@@ -606,6 +604,11 @@
|
||||
onMount(async () => {
|
||||
shaka.polyfill.installAll();
|
||||
if (!shaka.Player.isBrowserSupported()) {
|
||||
addToast({
|
||||
data: {
|
||||
text: 'Browser not supported for playback.'
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -704,12 +707,12 @@
|
||||
isPlaying: true,
|
||||
hasClose: true,
|
||||
dismissable: true,
|
||||
playIcon: 'media_play',
|
||||
pauseIcon: 'media_pause',
|
||||
prevIcon: 'media_prev',
|
||||
nextIcon: 'media_next',
|
||||
closeIcon: 'media_close',
|
||||
notificationIcon: 'notification',
|
||||
playIcon: '',
|
||||
pauseIcon: '',
|
||||
prevIcon: '',
|
||||
nextIcon: '',
|
||||
closeIcon: '',
|
||||
notificationIcon: '',
|
||||
ticker: `Now playing "${data.video.title}"`
|
||||
});
|
||||
|
||||
|
||||
@@ -45,7 +45,16 @@ button,
|
||||
}
|
||||
|
||||
nav.top {
|
||||
padding: 1em 0;
|
||||
padding-bottom: 1em;
|
||||
padding-top: calc(var(--safe-area-inset-top) + 1rem) !important;
|
||||
}
|
||||
|
||||
nav.bottom {
|
||||
padding-bottom: var(--safe-area-inset-bottom) !important;
|
||||
}
|
||||
|
||||
dialog {
|
||||
padding-top: calc(var(--safe-area-inset-top) + 1rem) !important;
|
||||
}
|
||||
|
||||
main.root {
|
||||
|
||||
@@ -181,7 +181,8 @@
|
||||
"tangentJokes": "Füllende Abweichler/Witze",
|
||||
"automatic": "Automatisch überspringen",
|
||||
"manual": "Manuell überspringen",
|
||||
"timeline": "Nur Zeitleiste"
|
||||
"timeline": "Nur Zeitleiste",
|
||||
"musicOffTopic": "Nicht-musikalisches Segment"
|
||||
},
|
||||
"deArrow": {
|
||||
"title": "DeArrow",
|
||||
@@ -194,7 +195,9 @@
|
||||
"expandChapters": "Kapitel standardmäßig ausklappen",
|
||||
"displayThumbnailAvatars": "Vorschaubild-Avatare (Langsam)",
|
||||
"about": "Über",
|
||||
"androidNativeShare": "Natives Teilen nutzen"
|
||||
"androidNativeShare": "Natives Teilen nutzen",
|
||||
"joinSyncParty": "Synchronisationsgruppen-URL eingeben",
|
||||
"shareURL": "URL teilen"
|
||||
},
|
||||
"subscribe": "Abonnieren",
|
||||
"recommendedVideos": "Vorgeschlagene Videos",
|
||||
|
||||
@@ -49,7 +49,8 @@
|
||||
"tangentJokes": "Füllendi Abwiichler/Witz",
|
||||
"automatic": "Automatisch überspringe",
|
||||
"manual": "Manuell überspringe",
|
||||
"timeline": "Nur Ziitleischte"
|
||||
"timeline": "Nur Ziitleischte",
|
||||
"musicOffTopic": "Nöd-musikalischs Segment"
|
||||
},
|
||||
"interface": "Bedienoberflächi",
|
||||
"star": "Sternli uf GitHub vergeh!",
|
||||
@@ -92,7 +93,9 @@
|
||||
"expandDescription": "Beschriibig standardmässig erwiitere",
|
||||
"disableAutoUpdate": "Automatischi Updates deaktiviere",
|
||||
"about": "Über",
|
||||
"androidNativeShare": "Nativs Teile bruche"
|
||||
"androidNativeShare": "Nativs Teile bruche",
|
||||
"shareURL": "URL teile",
|
||||
"joinSyncParty": "Synchronistationsgruppe-URL iigeh"
|
||||
},
|
||||
"videos": "Videos",
|
||||
"cancel": "Abbreche",
|
||||
|
||||
@@ -47,7 +47,8 @@
|
||||
"tangentJokes": "Kitöltő mellékvágányok/poénok",
|
||||
"automatic": "Automatikus átugrás",
|
||||
"manual": "Kézi ugrás",
|
||||
"timeline": "Csak idővonal"
|
||||
"timeline": "Csak idővonal",
|
||||
"musicOffTopic": "Nem zenei szegmens"
|
||||
},
|
||||
"syncPartyWarning": "Vegye figyelembe, hogy IP-címe látható lesz az Ön által meghívott felhasználók számára.",
|
||||
"expandDescription": "Leírás kibontása alapértelmezetten",
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { Capacitor } from '@capacitor/core';
|
||||
import { Capacitor, SystemBarType } from '@capacitor/core';
|
||||
import ui from 'beercss';
|
||||
import { tick } from 'svelte';
|
||||
import { get } from 'svelte/store';
|
||||
import { SafeArea, SystemBarsStyle, SystemBarsType } from '@capacitor-community/safe-area';
|
||||
import { SystemBars, SystemBarsStyle } from '@capacitor/core';
|
||||
import { darkModeStore, interfaceAmoledTheme } from './store';
|
||||
|
||||
export async function getDynamicTheme(mode?: string): Promise<Record<string, string>> {
|
||||
@@ -20,18 +19,14 @@ export async function getDynamicTheme(mode?: string): Promise<Record<string, str
|
||||
|
||||
export async function setStatusBarColor() {
|
||||
if (Capacitor.getPlatform() !== 'android') return;
|
||||
|
||||
await tick();
|
||||
|
||||
await SafeArea.setSystemBarsStyle({
|
||||
await SystemBars.setStyle({
|
||||
style: get(darkModeStore) ? SystemBarsStyle.Dark : SystemBarsStyle.Light
|
||||
});
|
||||
|
||||
await SafeArea.showSystemBars({
|
||||
type: SystemBarsType.NavigationBar
|
||||
await SystemBars.show({
|
||||
bar: SystemBarType.NavigationBar
|
||||
});
|
||||
await SafeArea.showSystemBars({
|
||||
type: SystemBarsType.StatusBar
|
||||
await SystemBars.show({
|
||||
bar: SystemBarType.StatusBar
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -3,7 +3,7 @@ import os
|
||||
import re
|
||||
from datetime import datetime
|
||||
|
||||
LATEST_VERSION = "1.13.9"
|
||||
LATEST_VERSION = "1.13.10"
|
||||
RELEASE_DATE = datetime.now().strftime("%Y-%-m-%d") # Format: YYYY-M-D
|
||||
|
||||
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")
|
||||
|
||||
Reference in New Issue
Block a user