This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.shivamkumarjha.media_common.model | |
| import com.shivamkumarjha.network_common.HttpRequestData | |
| import com.shivamkumarjha.network_common.ellipsize | |
| import com.shivamkumarjha.network_common.removeDuplicateWordsIgnoreCase | |
| import kotlinx.serialization.Serializable | |
| @Serializable | |
| data class Media( | |
| val httpRequestData: HttpRequestData, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.shivamkumarjha.network_common | |
| import kotlinx.serialization.Serializable | |
| @Serializable | |
| data class HttpRequestData( | |
| val url: String, | |
| val headers: Map<String, String> = emptyMap(), | |
| val queries: Map<String, String> = emptyMap(), | |
| val body: String? = null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 8e307bb49681fa229205676b9cd23c30428ead9c Mon Sep 17 00:00:00 2001 | |
| From: ShivamKumarJha <[email protected]> | |
| Date: Sat, 11 Oct 2025 19:27:26 +0530 | |
| Subject: [PATCH] SourcePirateXPlay | |
| Signed-off-by: ShivamKumarJha <[email protected]> | |
| --- | |
| settings.gradle.kts | 1 + | |
| source/all/build.gradle.kts | 1 + | |
| .../com/shivamkumarjha/source_all/Get.kt | 2 + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.shivamkumarjha.media_extractor.decrypt | |
| import dev.whyoleg.cryptography.CryptographyProvider | |
| import dev.whyoleg.cryptography.DelicateCryptographyApi | |
| import dev.whyoleg.cryptography.algorithms.AES | |
| @OptIn(DelicateCryptographyApi::class) | |
| internal suspend fun aesCbcDecrypt(data: ByteArray, key: ByteArray, iv: ByteArray): String { | |
| val aesCtr = CryptographyProvider.Default.get(AES.CBC) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "minimum_supported_version": 12, | |
| "latest_supported_version": 17, | |
| "update_message": "", | |
| "update_url": "https://drive.google.com/file/d/1rxSkIsvip2JLgm9knAOQFDREaeq3ci6q/view?usp=drive_link", | |
| "update_messages": [ | |
| { | |
| "code": 2, | |
| "message": "📦 StreamVault App — Version 2.0.0 Changelog:\nInitial public release." | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.rideblitzandroidapp.common.ui | |
| import android.content.Context | |
| import android.graphics.Canvas | |
| import android.graphics.Paint | |
| import android.util.AttributeSet | |
| import android.view.View | |
| import com.example.rideblitzandroidapp.R | |
| import com.example.rideblitzandroidapp.common.util.extension.dp | |
| import com.example.rideblitzandroidapp.common.util.extension.getColorById |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.shivamkumarjha.animov.ui.player | |
| import android.net.Uri | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.LaunchedEffect | |
| import androidx.compose.runtime.remember | |
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.platform.LocalContext | |
| import androidx.compose.ui.viewinterop.AndroidView | |
| import org.videolan.libvlc.LibVLC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import androidx.lifecycle.LiveData | |
| import androidx.lifecycle.MediatorLiveData | |
| fun <T, K, R> LiveData<T>.combineWith( | |
| liveData: LiveData<K>, | |
| block: (T?, K?) -> R | |
| ): LiveData<R> { | |
| val result = MediatorLiveData<R>() | |
| result.addSource(this) { | |
| result.value = block(this.value, liveData.value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.net.ConnectivityManager | |
| import android.net.NetworkCapabilities | |
| import android.os.Build | |
| class NetworkHelper(private val connectivityManager: ConnectivityManager) { | |
| fun isNetworkConnected(): Boolean { | |
| var result = false | |
| when { | |
| Build.VERSION.SDK_INT >= Build.VERSION_CODES.M -> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| recyclerview.addOnScrollListener(object : RecyclerView.OnScrollListener() { | |
| override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) { | |
| super.onScrollStateChanged(recyclerView, newState) | |
| when (newState) { | |
| RecyclerView.SCROLL_STATE_DRAGGING -> { | |
| Log.d(TAG, "dragging") | |
| } | |
| RecyclerView.SCROLL_STATE_IDLE -> { | |
| Log.d(TAG, "idle") | |
| } |
NewerOlder