-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gradle] Apply back gradle plugin changes to support plurals with new…
… published library version This reverts commit 7166247.
- Loading branch information
Showing
10 changed files
with
86 additions
and
10 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
26 changes: 26 additions & 0 deletions
26
...plugins/compose/src/test/test-projects/misc/commonResources/expected-open-res/Plurals0.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,26 @@ | ||
@file:OptIn(org.jetbrains.compose.resources.InternalResourceApi::class) | ||
|
||
package my.lib.res | ||
|
||
import kotlin.OptIn | ||
import org.jetbrains.compose.resources.ExperimentalResourceApi | ||
import org.jetbrains.compose.resources.PluralStringResource | ||
|
||
@ExperimentalResourceApi | ||
private object Plurals0 { | ||
public val numberOfSongsAvailable: PluralStringResource by | ||
lazy { init_numberOfSongsAvailable() } | ||
} | ||
|
||
@ExperimentalResourceApi | ||
public val Res.plurals.numberOfSongsAvailable: PluralStringResource | ||
get() = Plurals0.numberOfSongsAvailable | ||
|
||
@ExperimentalResourceApi | ||
private fun init_numberOfSongsAvailable(): PluralStringResource = | ||
org.jetbrains.compose.resources.PluralStringResource( | ||
"plurals:numberOfSongsAvailable", "numberOfSongsAvailable", | ||
setOf( | ||
org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), | ||
) | ||
) |
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 |
---|---|---|
|
@@ -27,5 +27,7 @@ public object Res { | |
|
||
public object string | ||
|
||
public object plurals | ||
|
||
public object font | ||
} |
26 changes: 26 additions & 0 deletions
26
gradle-plugins/compose/src/test/test-projects/misc/commonResources/expected/Plurals0.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,26 @@ | ||
@file:OptIn(org.jetbrains.compose.resources.InternalResourceApi::class) | ||
|
||
package app.group.resources_test.generated.resources | ||
|
||
import kotlin.OptIn | ||
import org.jetbrains.compose.resources.ExperimentalResourceApi | ||
import org.jetbrains.compose.resources.PluralStringResource | ||
|
||
@ExperimentalResourceApi | ||
private object Plurals0 { | ||
public val numberOfSongsAvailable: PluralStringResource by | ||
lazy { init_numberOfSongsAvailable() } | ||
} | ||
|
||
@ExperimentalResourceApi | ||
internal val Res.plurals.numberOfSongsAvailable: PluralStringResource | ||
get() = Plurals0.numberOfSongsAvailable | ||
|
||
@ExperimentalResourceApi | ||
private fun init_numberOfSongsAvailable(): PluralStringResource = | ||
org.jetbrains.compose.resources.PluralStringResource( | ||
"plurals:numberOfSongsAvailable", "numberOfSongsAvailable", | ||
setOf( | ||
org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), | ||
) | ||
) |
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 |
---|---|---|
|
@@ -27,5 +27,7 @@ internal object Res { | |
|
||
public object string | ||
|
||
public object plurals | ||
|
||
public object font | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,7 @@ internal object Res { | |
|
||
public object string | ||
|
||
public object plurals | ||
|
||
public object font | ||
} |
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 |
---|---|---|
|
@@ -27,5 +27,7 @@ internal object Res { | |
|
||
public object string | ||
|
||
public object plurals | ||
|
||
public object font | ||
} |
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