This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
kotlinx.serialization.protobuf
instead of google.protobuf
- Remove `UserPreferencesCompat`
- Loading branch information
Showing
37 changed files
with
188 additions
and
335 deletions.
There are no files selected for viewing
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,4 +1 @@ | ||
-repackageclasses dev.sanmer.mrepo | ||
|
||
# Keep DataStore fields | ||
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite* { <fields>; } | ||
-repackageclasses dev.sanmer.mrepo |
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
31 changes: 0 additions & 31 deletions
31
app/src/main/kotlin/dev/sanmer/mrepo/datastore/ModulesMenuCompat.kt
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
app/src/main/kotlin/dev/sanmer/mrepo/datastore/RepositoryMenuCompat.kt
This file was deleted.
Oops, something went wrong.
84 changes: 0 additions & 84 deletions
84
app/src/main/kotlin/dev/sanmer/mrepo/datastore/UserPreferencesCompat.kt
This file was deleted.
Oops, something went wrong.
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
7 changes: 7 additions & 0 deletions
7
app/src/main/kotlin/dev/sanmer/mrepo/datastore/model/DarkMode.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,7 @@ | ||
package dev.sanmer.mrepo.datastore.model | ||
|
||
enum class DarkMode { | ||
FollowSystem, | ||
AlwaysOff, | ||
AlwaysOn | ||
} |
11 changes: 11 additions & 0 deletions
11
app/src/main/kotlin/dev/sanmer/mrepo/datastore/model/ModulesMenu.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,11 @@ | ||
package dev.sanmer.mrepo.datastore.model | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ModulesMenu( | ||
val option: Option = Option.Name, | ||
val descending: Boolean = false, | ||
val pinEnabled: Boolean = false, | ||
val showUpdatedTime: Boolean = false | ||
) |
6 changes: 6 additions & 0 deletions
6
app/src/main/kotlin/dev/sanmer/mrepo/datastore/model/Option.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,6 @@ | ||
package dev.sanmer.mrepo.datastore.model | ||
|
||
enum class Option { | ||
Name, | ||
UpdatedTime | ||
} |
14 changes: 14 additions & 0 deletions
14
app/src/main/kotlin/dev/sanmer/mrepo/datastore/model/RepositoryMenu.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,14 @@ | ||
package dev.sanmer.mrepo.datastore.model | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class RepositoryMenu( | ||
val option: Option = Option.Name, | ||
val descending: Boolean = false, | ||
val pinInstalled: Boolean = true, | ||
val pinUpdatable: Boolean = true, | ||
val showIcon: Boolean = true, | ||
val showLicense: Boolean = true, | ||
val showUpdatedTime: Boolean = false | ||
) |
Oops, something went wrong.