This file contains hidden or 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
    
  
  
    
  | package some.package | |
| import nl.javadude.gradle.plugins.license.DownloadLicensesExtension | |
| import nl.javadude.gradle.plugins.license.DownloadLicensesReportExtension | |
| import org.gradle.api.GradleException | |
| import org.gradle.api.Plugin | |
| import org.gradle.api.Project | |
| import org.gradle.api.artifacts.Configuration | |
| import org.gradle.api.attributes.Attribute | |
| import org.gradle.api.attributes.AttributeCompatibilityRule | 
  
    
      This file contains hidden or 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
    
  
  
    
  | @file:Suppress("EXPERIMENTAL_API_USAGE", "EXPERIMENTAL_UNSIGNED_LITERALS") | |
| interface ExactSizeIterator<T> : Iterator<T> { | |
| val length: UInt | |
| } | |
| fun <T> Collection<T>.exactSizeIterator() = object : ExactSizeIterator<T> { | |
| private val inner = iterator() | |
| override val length: UInt = size.toUInt() | |
| override fun hasNext(): Boolean = inner.hasNext() | 
  
    
      This file contains hidden or 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
    
  
  
    
  | class HiltFragmentScenario<F : Fragment> private constructor( | |
| private val fragmentClass: Class<F>, | |
| val activityScenario: ActivityScenario<TestHiltActivity> | |
| ) { | |
| @Suppress("UNCHECKED_CAST") | |
| val fragment: F? | |
| get() = activityScenario.getActivity()?.supportFragmentManager?.findFragmentByTag(FRAGMENT_TAG) as? F? | |
| /** | |
| * Moves Fragment state to a new state. | 
  
    
      This file contains hidden or 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
    
  
  
    
  | ... | |
| <application> | |
| <activity | |
| android:name="androidx.activity.ComponentActivity" | |
| android:exported="false"/> | |
| </application> | |
| ... | 
  
    
      This file contains hidden or 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
    
  
  
    
  | import kotlinx.coroutines.CoroutineScope | |
| import kotlinx.coroutines.Dispatchers | |
| import kotlinx.coroutines.Job | |
| import kotlinx.coroutines.cancel | |
| import kotlinx.coroutines.delay | |
| import kotlinx.coroutines.flow.Flow | |
| import kotlinx.coroutines.flow.SharingStarted | |
| import kotlinx.coroutines.flow.flow | |
| import kotlinx.coroutines.flow.onCompletion | |
| import kotlinx.coroutines.flow.shareIn | 
  
    
      This file contains hidden or 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
    
  
  
    
  | @Composable | |
| actual fun <T> Flow<T>.rememberFlowWithLifecycle( | |
| lifecycleOwner: LifecycleOwner | |
| ): Flow<T> { | |
| val thisValue = this | |
| return remember(thisValue, lifecycleOwner) { | |
| thisValue.flowWithLifecycle( | |
| lifecycleOwner.lifecycle, | |
| Lifecycle.State.STARTED | |
| ) | 
OlderNewer