-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Disentangle MainViewModel. * Add Download Progress for Play Source and GitHub source. * Improve play token refresh. * TV UI is now default. * ApkMirror is disabled by default. * Random delay on Alarm is reduced to -5 +5 if ApkMirror is disabled.
- Loading branch information
Showing
26 changed files
with
343 additions
and
189 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
app/src/main/kotlin/com/apkupdater/data/snack/InstallSnack.kt
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
app/src/main/kotlin/com/apkupdater/data/snack/TextSnack.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.apkupdater.data.snack | ||
|
||
import androidx.compose.material3.SnackbarDuration | ||
import androidx.compose.material3.SnackbarVisuals | ||
|
||
|
||
class TextSnack( | ||
override val message: String, | ||
override val actionLabel: String? = null, | ||
override val duration: SnackbarDuration = SnackbarDuration.Short, | ||
override val withDismissAction: Boolean = true | ||
): SnackbarVisuals |
3 changes: 3 additions & 0 deletions
3
app/src/main/kotlin/com/apkupdater/data/ui/AppInstallProgress.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.apkupdater.data.ui | ||
|
||
data class AppInstallProgress(val id: Int, val progress: Long = 0L, val total: Long = 0L) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package com.apkupdater.data.ui | ||
|
||
import com.aurora.gplayapi.data.models.File | ||
|
||
|
||
sealed class Link { | ||
data object Empty: Link() | ||
data class Url(val link: String): Link() | ||
data class Url(val link: String, val size: Long = 0L): Link() | ||
data class Xapk(val link: String): Link() | ||
data class Play(val getInstallFiles: () -> List<String>): Link() | ||
data class Play(val getInstallFiles: () -> List<File>): Link() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.