forked from LawnchairLauncher/lawnicons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark stable classes and enable Compose Compiler reports (LawnchairLau…
…ncher#2280) * Remove org.jetbrains.kotlinx:kotlinx-collections-immutable * Enable stabilityConfigurationFile and reportsDestination https://developer.android.com/develop/ui/compose/performance/stability/fix#configuration-file
- Loading branch information
Showing
11 changed files
with
31 additions
and
35 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kotlin.collections.* | ||
kotlin.time.Duration | ||
|
||
kotlinx.coroutines.CoroutineScope | ||
|
||
// All models should be stable. | ||
app.lawnchair.lawnicons.model.* |
6 changes: 2 additions & 4 deletions
6
app/src/main/kotlin/app/lawnchair/lawnicons/model/IconInfoModel.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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
package app.lawnchair.lawnicons.model | ||
|
||
import kotlinx.collections.immutable.ImmutableList | ||
|
||
/** | ||
* Data class to hold information about icons. | ||
* | ||
* @property iconInfo A list of `IconInfo` objects. | ||
* @property iconCount The total number of icons. | ||
*/ | ||
data class IconInfoModel( | ||
val iconInfo: ImmutableList<IconInfo>, | ||
val iconCount: Int, | ||
val iconInfo: List<IconInfo> = emptyList(), | ||
val iconCount: Int = 0, | ||
) |
4 changes: 1 addition & 3 deletions
4
app/src/main/kotlin/app/lawnchair/lawnicons/model/IconRequestModel.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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
package app.lawnchair.lawnicons.model | ||
|
||
import kotlinx.collections.immutable.ImmutableList | ||
|
||
data class IconRequest( | ||
val label: String, | ||
val componentName: String, | ||
) | ||
|
||
data class IconRequestModel( | ||
val list: ImmutableList<IconRequest>, | ||
val list: List<IconRequest>, | ||
val iconCount: Int, | ||
) |
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
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