-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
860 additions
and
350 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
53 changes: 53 additions & 0 deletions
53
...es/expected-open-res/androidMainResourceCollectors/my/lib/res/ActualResourceCollectors.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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
@file:OptIn(org.jetbrains.compose.resources.InternalResourceApi::class) | ||
|
||
package my.lib.res | ||
|
||
import kotlin.OptIn | ||
import kotlin.String | ||
import kotlin.collections.Map | ||
import org.jetbrains.compose.resources.DrawableResource | ||
import org.jetbrains.compose.resources.ExperimentalResourceApi | ||
import org.jetbrains.compose.resources.FontResource | ||
import org.jetbrains.compose.resources.PluralStringResource | ||
import org.jetbrains.compose.resources.StringArrayResource | ||
import org.jetbrains.compose.resources.StringResource | ||
|
||
@ExperimentalResourceApi | ||
public actual val Res.allDrawableResources: Map<String, DrawableResource> by lazy { | ||
val map = mutableMapOf<String, DrawableResource>() | ||
_collectCommonMainDrawable0Resources(map) | ||
return@lazy map | ||
} | ||
|
||
|
||
@ExperimentalResourceApi | ||
public actual val Res.allStringResources: Map<String, StringResource> by lazy { | ||
val map = mutableMapOf<String, StringResource>() | ||
_collectAndroidMainString0Resources(map) | ||
_collectCommonMainString0Resources(map) | ||
return@lazy map | ||
} | ||
|
||
|
||
@ExperimentalResourceApi | ||
public actual val Res.allStringArrayResources: Map<String, StringArrayResource> by lazy { | ||
val map = mutableMapOf<String, StringArrayResource>() | ||
return@lazy map | ||
} | ||
|
||
|
||
@ExperimentalResourceApi | ||
public actual val Res.allPluralStringResources: Map<String, PluralStringResource> by lazy { | ||
val map = mutableMapOf<String, PluralStringResource>() | ||
_collectCommonMainPlurals0Resources(map) | ||
return@lazy map | ||
} | ||
|
||
|
||
@ExperimentalResourceApi | ||
public actual val Res.allFontResources: Map<String, FontResource> by lazy { | ||
val map = mutableMapOf<String, FontResource>() | ||
_collectCommonMainFont0Resources(map) | ||
return@lazy map | ||
} | ||
|
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
Oops, something went wrong.