mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-11 18:50:58 +00:00
Fixes Android SDK.
This commit is contained in:
parent
4723a0b29a
commit
50655f5c9b
5 changed files with 24 additions and 6 deletions
|
@ -11,6 +11,7 @@
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||||
<uses-permission android:name="com.android.alarm.permission.SET_ALARM"/>
|
<uses-permission android:name="com.android.alarm.permission.SET_ALARM"/>
|
||||||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
|
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
|
||||||
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"/>
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
|
|
|
@ -555,7 +555,7 @@ class Settings : FragmentedStorageFileJson() {
|
||||||
val cookieManager: CookieManager = CookieManager.getInstance();
|
val cookieManager: CookieManager = CookieManager.getInstance();
|
||||||
cookieManager.removeAllCookies(null);
|
cookieManager.removeAllCookies(null);
|
||||||
}
|
}
|
||||||
@FormField(R.string.reinstall_embedded_plugins, FieldForm.BUTTON, R.string.also_removes_any_data_related_plugin_like_login_or_settings, 1)
|
/*@FormField(R.string.reinstall_embedded_plugins, FieldForm.BUTTON, R.string.also_removes_any_data_related_plugin_like_login_or_settings, 1)
|
||||||
fun reinstallEmbedded() {
|
fun reinstallEmbedded() {
|
||||||
StateApp.instance.scopeOrNull!!.launch(Dispatchers.IO) {
|
StateApp.instance.scopeOrNull!!.launch(Dispatchers.IO) {
|
||||||
try {
|
try {
|
||||||
|
@ -574,7 +574,7 @@ class Settings : FragmentedStorageFileJson() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@ package com.futo.platformplayer.api.media.structures
|
||||||
|
|
||||||
import com.futo.platformplayer.api.media.models.contents.IPlatformContent
|
import com.futo.platformplayer.api.media.models.contents.IPlatformContent
|
||||||
import com.futo.platformplayer.api.media.models.video.IPlatformVideo
|
import com.futo.platformplayer.api.media.models.video.IPlatformVideo
|
||||||
|
import com.futo.platformplayer.assume
|
||||||
|
import kotlin.streams.asSequence
|
||||||
import kotlin.streams.toList
|
import kotlin.streams.toList
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,6 +30,7 @@ class PlatformContentPager : IPager<IPlatformContent> {
|
||||||
_page++;
|
_page++;
|
||||||
_currentItems = _items.stream()
|
_currentItems = _items.stream()
|
||||||
.skip((_page * _pageSize).toLong())
|
.skip((_page * _pageSize).toLong())
|
||||||
|
.asSequence()
|
||||||
.toList()
|
.toList()
|
||||||
.take(_pageSize)
|
.take(_pageSize)
|
||||||
.toList();
|
.toList();
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.futo.platformplayer.states
|
package com.futo.platformplayer.states
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
import kotlin.streams.asSequence
|
||||||
import kotlin.streams.toList
|
import kotlin.streams.toList
|
||||||
|
|
||||||
/***
|
/***
|
||||||
|
@ -26,7 +27,7 @@ class StateAssets {
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return (parts1 + parts2.stream().skip(toSkip.toLong()).toList()).joinToString("/");
|
return (parts1 + parts2.stream().skip(toSkip.toLong()).asSequence().toList()).joinToString("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,6 +24,12 @@
|
||||||
<data android:host="www.youtube.com" />
|
<data android:host="www.youtube.com" />
|
||||||
<data android:host="m.youtube.com" />
|
<data android:host="m.youtube.com" />
|
||||||
<data android:host="rumble.com" />
|
<data android:host="rumble.com" />
|
||||||
|
<data android:host="kick.com" />
|
||||||
|
<data android:host="nebula.tv" />
|
||||||
|
<data android:host="odysee.com" />
|
||||||
|
<data android:host="patreon.com" />
|
||||||
|
<data android:host="soundcloud.com" />
|
||||||
|
<data android:host="twitch.tv" />
|
||||||
<data android:pathPrefix="/" />
|
<data android:pathPrefix="/" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
<intent-filter android:autoVerify="true">
|
<intent-filter android:autoVerify="true">
|
||||||
|
@ -33,11 +39,18 @@
|
||||||
|
|
||||||
<data android:mimeType="text/plain" />
|
<data android:mimeType="text/plain" />
|
||||||
|
|
||||||
<data android:host="youtube.com" />
|
<data android:host="youtu.be" />
|
||||||
<data android:host="m.youtube.com" />
|
|
||||||
<data android:host="you.be" />
|
|
||||||
<data android:host="www.you.be" />
|
<data android:host="www.you.be" />
|
||||||
|
<data android:host="youtube.com" />
|
||||||
|
<data android:host="www.youtube.com" />
|
||||||
|
<data android:host="m.youtube.com" />
|
||||||
<data android:host="rumble.com" />
|
<data android:host="rumble.com" />
|
||||||
|
<data android:host="kick.com" />
|
||||||
|
<data android:host="nebula.tv" />
|
||||||
|
<data android:host="odysee.com" />
|
||||||
|
<data android:host="patreon.com" />
|
||||||
|
<data android:host="soundcloud.com" />
|
||||||
|
<data android:host="twitch.tv" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
</application>
|
</application>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue