Skip to content

Commit 9fba851

Browse files
authored
Fix OptionalExpectation false positive when not building Android (#571)
1 parent 209cd74 commit 9fba851

File tree

16 files changed

+28
-7
lines changed

16 files changed

+28
-7
lines changed

library/runtime-service-ui/src/commonMain/kotlin/io/matthewnelson/kmp/tor/runtime/service/ui/AbstractKmpTorServiceUIConfig.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
17+
1618
package io.matthewnelson.kmp.tor.runtime.service.ui
1719

1820
import io.matthewnelson.kmp.tor.common.api.ExperimentalKmpTorApi

library/runtime-service-ui/src/commonMain/kotlin/io/matthewnelson/kmp/tor/runtime/service/ui/KmpTorServiceUIInstanceState.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
17+
1618
package io.matthewnelson.kmp.tor.runtime.service.ui
1719

1820
import io.matthewnelson.immutable.collections.immutableSetOf

library/runtime-service-ui/src/commonMain/kotlin/io/matthewnelson/kmp/tor/runtime/service/ui/internal/-CommonPlatform.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16-
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "KotlinRedundantDiagnosticSuppress")
16+
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "KotlinRedundantDiagnosticSuppress", "OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE", "NOTHING_TO_INLINE")
1717

1818
package io.matthewnelson.kmp.tor.runtime.service.ui.internal
1919

2020
internal expect abstract class NumberFormat {
2121
internal fun format(number: Long): String
2222
}
2323

24-
@Suppress("NOTHING_TO_INLINE")
2524
internal expect inline fun numberFormat(): NumberFormat

library/runtime-service-ui/src/commonMain/kotlin/io/matthewnelson/kmp/tor/runtime/service/ui/internal/ButtonAction.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
17+
1618
package io.matthewnelson.kmp.tor.runtime.service.ui.internal
1719

1820
internal enum class ButtonAction {

library/runtime-service-ui/src/commonMain/kotlin/io/matthewnelson/kmp/tor/runtime/service/ui/internal/IconState.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
17+
1618
package io.matthewnelson.kmp.tor.runtime.service.ui.internal
1719

1820
internal enum class IconState(internal val colorize: Boolean) {

library/runtime-service-ui/src/commonMain/kotlin/io/matthewnelson/kmp/tor/runtime/service/ui/internal/Progress.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
17+
1618
package io.matthewnelson.kmp.tor.runtime.service.ui.internal
1719

1820
import io.matthewnelson.kmp.tor.runtime.TorState

library/runtime-service-ui/src/commonMain/kotlin/io/matthewnelson/kmp/tor/runtime/service/ui/internal/UIState.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
17+
1618
package io.matthewnelson.kmp.tor.runtime.service.ui.internal
1719

1820
import io.matthewnelson.immutable.collections.toImmutableSet

library/runtime-service-ui/src/commonMain/kotlin/io/matthewnelson/kmp/tor/runtime/service/ui/internal/content/ContentAction.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
17+
1618
package io.matthewnelson.kmp.tor.runtime.service.ui.internal.content
1719

1820
import io.matthewnelson.kmp.tor.runtime.Action

library/runtime-service-ui/src/commonMain/kotlin/io/matthewnelson/kmp/tor/runtime/service/ui/internal/content/ContentBandwidth.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
17+
1618
package io.matthewnelson.kmp.tor.runtime.service.ui.internal.content
1719

1820
import io.matthewnelson.kmp.tor.runtime.service.ui.internal.NumberFormat

library/runtime-service-ui/src/commonMain/kotlin/io/matthewnelson/kmp/tor/runtime/service/ui/internal/content/ContentBootstrap.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
17+
1618
package io.matthewnelson.kmp.tor.runtime.service.ui.internal.content
1719

1820
import kotlin.jvm.JvmSynthetic

0 commit comments

Comments
 (0)