-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use explicit API for core/model module
Avoid unintentionally exposing declarations to the public API by using the explicitAPI mode. Fixes #1220
- Loading branch information
Showing
20 changed files
with
59 additions
and
58 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
20 changes: 10 additions & 10 deletions
20
core/model/src/commonMain/kotlin/io/github/droidkaigi/confsched2023/model/AboutItem.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,13 @@ | ||
package io.github.droidkaigi.confsched2023.model | ||
|
||
sealed class AboutItem { | ||
data object Sponsors : AboutItem() | ||
data object Contributors : AboutItem() | ||
data object Staff : AboutItem() | ||
data object CodeOfConduct : AboutItem() | ||
data object License : AboutItem() | ||
data object PrivacyPolicy : AboutItem() | ||
data object YouTube : AboutItem() | ||
data object X : AboutItem() | ||
data object Medium : AboutItem() | ||
public sealed class AboutItem { | ||
public data object Sponsors : AboutItem() | ||
public data object Contributors : AboutItem() | ||
public data object Staff : AboutItem() | ||
public data object CodeOfConduct : AboutItem() | ||
public data object License : AboutItem() | ||
public data object PrivacyPolicy : AboutItem() | ||
public data object YouTube : AboutItem() | ||
public data object X : AboutItem() | ||
public data object Medium : AboutItem() | ||
} |
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
4 changes: 2 additions & 2 deletions
4
...el/src/commonMain/kotlin/io/github/droidkaigi/confsched2023/model/AchievementAnimation.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,11 +1,11 @@ | ||
package io.github.droidkaigi.confsched2023.model | ||
|
||
data class AchievementAnimation( | ||
public data class AchievementAnimation( | ||
val achievement: Achievement, | ||
val hasDrawableResId: Int, | ||
val notHasDrawableResId: Int, | ||
val hasAchievement: Boolean = false, | ||
val contentDescription: String, | ||
) { | ||
fun getDrawableResId() = if (hasAchievement) hasDrawableResId else notHasDrawableResId | ||
public fun getDrawableResId(): Int = if (hasAchievement) hasDrawableResId else notHasDrawableResId | ||
} |
6 changes: 3 additions & 3 deletions
6
...del/src/commonMain/kotlin/io/github/droidkaigi/confsched2023/model/BuildConfigProvider.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,6 +1,6 @@ | ||
package io.github.droidkaigi.confsched2023.model | ||
|
||
interface BuildConfigProvider { | ||
val versionName: String | ||
val debugBuild: Boolean | ||
public interface BuildConfigProvider { | ||
public val versionName: String | ||
public val debugBuild: Boolean | ||
} |
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
2 changes: 1 addition & 1 deletion
2
core/model/src/commonMain/kotlin/io/github/droidkaigi/confsched2023/model/FloorLevel.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
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
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