Skip to content

Commit

Permalink
Remove workaround for HiddenFromObjC
Browse files Browse the repository at this point in the history
  • Loading branch information
eygraber committed Nov 5, 2024
1 parent 58c04a6 commit 62c6c69
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ package com.eygraber.vice.samples.nav.shared
import com.eygraber.vice.ViceCompositor
import com.eygraber.vice.ViceEffects
import com.eygraber.vice.nav.ViceDestination
import kotlin.experimental.ExperimentalObjCRefinement
import kotlin.native.HiddenFromObjC

@OptIn(ExperimentalObjCRefinement::class)
@HiddenFromObjC
abstract class SampleDestination<I, C, S> : ViceDestination<I, C, ViceEffects, S>()
where C : ViceCompositor<I, S>, I : Any, S : Any {
override val effects = ViceEffects.None
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package com.eygraber.vice.samples.nav.shared.about

import com.eygraber.vice.samples.nav.shared.SampleDestination
import kotlin.experimental.ExperimentalObjCRefinement
import kotlin.native.HiddenFromObjC

@OptIn(ExperimentalObjCRefinement::class)
@HiddenFromObjC
class AboutUsDestination(
onNavigateBack: () -> Unit,
) : SampleDestination<AboutUsIntent, AboutUsCompositor, AboutUsViewState>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ package com.eygraber.vice.samples.nav.shared.details

import com.eygraber.vice.samples.nav.shared.Routes
import com.eygraber.vice.samples.nav.shared.SampleDestination
import kotlin.experimental.ExperimentalObjCRefinement
import kotlin.native.HiddenFromObjC

@OptIn(ExperimentalObjCRefinement::class)
@HiddenFromObjC
class DetailsDestination(
op: Routes.Details,
onNavigateBack: () -> Unit,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package com.eygraber.vice.samples.nav.shared.home

import com.eygraber.vice.samples.nav.shared.SampleDestination
import kotlin.experimental.ExperimentalObjCRefinement
import kotlin.native.HiddenFromObjC

@OptIn(ExperimentalObjCRefinement::class)
@HiddenFromObjC
class HomeDestination(
onNavigateToCreateItem: () -> Unit,
onNavigateToUpdateItem: (String) -> Unit,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package com.eygraber.vice.samples.nav.shared.settings

import com.eygraber.vice.samples.nav.shared.SampleDestination
import kotlin.experimental.ExperimentalObjCRefinement
import kotlin.native.HiddenFromObjC

@OptIn(ExperimentalObjCRefinement::class)
@HiddenFromObjC
class SettingsDestination(
onNavigateBack: () -> Unit,
onNavigateToAboutUs: () -> Unit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharedFlow
import kotlinx.coroutines.launch
import kotlin.experimental.ExperimentalObjCRefinement
import kotlin.native.HiddenFromObjC

@OptIn(ExperimentalObjCRefinement::class)
@HiddenFromObjC
public abstract class ViceContainer<I, C, E, S>(
vararg intentFilters: ViceIntentFilter = arrayOf(ThrottlingIntentFilter()),
private val intents: SharedFlow<I> = MutableSharedFlow(extraBufferCapacity = 64),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ package com.eygraber.vice.nav
import com.eygraber.vice.ViceCompositor
import com.eygraber.vice.ViceContainer
import com.eygraber.vice.ViceEffects
import kotlin.experimental.ExperimentalObjCRefinement
import kotlin.native.HiddenFromObjC

@OptIn(ExperimentalObjCRefinement::class)
@HiddenFromObjC
public abstract class ViceDestination<I, C, E, S> : ViceContainer<I, C, E, S>()
where C : ViceCompositor<I, S>, I : Any, E : ViceEffects, S : Any
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import com.eygraber.portal.compose.ComposePortal
import com.eygraber.vice.ViceCompositor
import com.eygraber.vice.ViceContainer
import com.eygraber.vice.ViceEffects
import kotlin.experimental.ExperimentalObjCRefinement
import kotlin.native.HiddenFromObjC

@OptIn(ExperimentalObjCRefinement::class)
@HiddenFromObjC
public abstract class VicePortal<K, I, C, E, S> : ComposePortal<K>, ViceContainer<I, C, E, S>()
where C : ViceCompositor<I, S>, I : Any, E : ViceEffects, S : Any {
@Composable
Expand Down

0 comments on commit 62c6c69

Please sign in to comment.