com.freeletics.mad.whetstone.codegen.util.External.kt Maven / Gradle / Ivy
package com.freeletics.mad.whetstone.codegen.util
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.MemberName
import com.squareup.kotlinpoet.MemberName.Companion.member
import org.jetbrains.kotlin.name.FqName
// Whetstone Public API
internal val rendererFragment = ClassName("com.freeletics.mad.whetstone", "RendererFragment")
internal val rendererFragmentFqName = FqName(rendererFragment.canonicalName)
internal val rendererDialogFragment = ClassName("com.freeletics.mad.whetstone", "RendererDialogFragment")
internal val rendererDialogFragmentFqName = FqName(rendererDialogFragment.canonicalName)
internal val composeFragment = ClassName("com.freeletics.mad.whetstone", "ComposeFragment")
internal val composeFragmentFqName = FqName(composeFragment.canonicalName)
internal val composeDialogFragment = ClassName("com.freeletics.mad.whetstone", "ComposeDialogFragment")
internal val composeDialogFragmentFqName = FqName(composeDialogFragment.canonicalName)
internal val compose = ClassName("com.freeletics.mad.whetstone", "ComposeScreen")
internal val composeFqName = FqName(compose.canonicalName)
internal val scopeTo = ClassName("com.freeletics.mad.whetstone", "ScopeTo")
internal val navEntryComponent = ClassName("com.freeletics.mad.whetstone", "NavEntryComponent")
internal val navEntryComponentFqName = FqName(navEntryComponent.canonicalName)
internal val navEntryComponentGetter = ClassName("com.freeletics.mad.whetstone", "NavEntryComponentGetter")
internal val navEntryIdScope = ClassName("com.freeletics.mad.whetstone", "NavEntryId")
// Whetstone Internal API
internal val emptyNavigationHandler = ClassName("com.freeletics.mad.whetstone.internal", "EmptyNavigationHandler")
internal val emptyNavigator = ClassName("com.freeletics.mad.whetstone.internal", "EmptyNavigator")
internal val internalWhetstoneApi = ClassName("com.freeletics.mad.whetstone.internal", "InternalWhetstoneApi")
internal val viewModelProvider = MemberName("com.freeletics.mad.whetstone.internal", "viewModelProvider")
internal val rememberViewModelProvider = MemberName("com.freeletics.mad.whetstone.internal", "rememberViewModelProvider")
internal val navEntryComponentGetterKey = ClassName("com.freeletics.mad.whetstone.internal", "NavEntryComponentGetterKey")
internal val composeProviderValueModule = ClassName("com.freeletics.mad.whetstone.internal", "ComposeProviderValueModule")
// Navigator
internal val navigationHandler = ClassName("com.freeletics.mad.navigator", "NavigationHandler")
internal val navigationHandlerHandle = navigationHandler.member("handle")
// Renderer
internal val rendererConnect = MemberName("com.gabrielittner.renderer.connect", "connect")
// Kotlin
internal val optIn = ClassName("kotlin", "OptIn")
// Coroutines
internal val coroutineScope = ClassName("kotlinx.coroutines", "CoroutineScope")
internal val coroutineScopeCancel = MemberName("kotlinx.coroutines", "cancel")
internal val mainScope = MemberName("kotlinx.coroutines", "MainScope")
internal val launch = MemberName("kotlinx.coroutines", "launch")
// RxJava
internal val compositeDisposable = ClassName("io.reactivex.disposables", "CompositeDisposable")
// Dagger
internal val inject = ClassName("javax.inject", "Inject")
internal val component = ClassName("dagger", "Component")
internal val componentFactory = component.nestedClass("Factory")
internal val subcomponent = ClassName("dagger", "Subcomponent")
internal val subcomponentFactory = subcomponent.nestedClass("Factory")
internal val binds = ClassName("dagger", "Binds")
internal val intoMap = ClassName("dagger.multibindings", "IntoMap")
internal val bindsInstance = ClassName("dagger", "BindsInstance")
internal val module = ClassName("dagger", "Module")
internal val moduleFqName = FqName(module.canonicalName)
// AndroidX
internal val fragment = ClassName("androidx.fragment.app", "Fragment")
internal val dialogFragment = ClassName("androidx.fragment.app", "DialogFragment")
internal val localOnBackPressedDispatcherOwner = ClassName("androidx.activity.compose", "LocalOnBackPressedDispatcherOwner")
internal val viewModel = ClassName("androidx.lifecycle", "ViewModel")
internal val savedStateHandle = ClassName("androidx.lifecycle", "SavedStateHandle")
internal val navController = ClassName("androidx.navigation", "NavController")
internal val navBackStackEntry = ClassName("androidx.navigation", "NavBackStackEntry")
internal val findNavController = MemberName("androidx.navigation.fragment", "findNavController")
// Compose
internal val composable = ClassName("androidx.compose.runtime", "Composable")
internal val launchedEffect = MemberName("androidx.compose.runtime", "LaunchedEffect")
internal val collectAsState = MemberName("androidx.compose.runtime", "collectAsState")
internal val getValue = MemberName("androidx.compose.runtime", "getValue")
internal val rememberCoroutineScope = MemberName("androidx.compose.runtime", "rememberCoroutineScope")
internal val compositionLocalProvider = ClassName("androidx.compose.runtime", "CompositionLocalProvider")
internal val providedValue = ClassName("androidx.compose.runtime", "ProvidedValue")
internal val composeView = ClassName("androidx.compose.ui.platform", "ComposeView")
internal val viewCompositionStrategy = ClassName("androidx.compose.ui.platform", "ViewCompositionStrategy")
internal val disposeOnLifecycleDestroyed = viewCompositionStrategy.nestedClass("DisposeOnLifecycleDestroyed")
// Accompanist
internal val localWindowInsets = ClassName("com.google.accompanist.insets", "LocalWindowInsets")
internal val viewWindowInsetsObserver = ClassName("com.google.accompanist.insets", "ViewWindowInsetObserver")
// Android
internal val layoutInflater = ClassName("android.view", "LayoutInflater")
internal val viewGroup = ClassName("android.view", "ViewGroup")
internal val view = ClassName("android.view", "View")
internal val bundle = ClassName("android.os", "Bundle")
internal val context = ClassName("android.content", "Context")
internal val layoutParams = viewGroup.nestedClass("LayoutParams")
© 2015 - 2025 Weber Informatics LLC | Privacy Policy