Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark all resources public API as experimental. #4146

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

terrakok
Copy link
Member

And all public but only for generated code API as @InternalResourceApi

And all public but only for generated code API as @InternalResourceApi
@@ -5,6 +5,7 @@ import kotlinx.cinterop.usePinned
import platform.Foundation.NSFileManager
import platform.posix.memcpy

@OptIn(ExperimentalResourceApi::class)
actual suspend fun readResourceBytes(path: String): ByteArray {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to mark these actuals with @InternalResourceApi as the expect is marked with it?

@@ -5,6 +5,7 @@ import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.font.*

@ExperimentalResourceApi
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MalformedXMLException isn't marked with it.

Also sealed class Resource, but marking it Experimental can be too much, not sure 🤔.

@terrakok terrakok merged commit c31c761 into master Jan 19, 2024
6 checks passed
@terrakok terrakok deleted the k.tskh/res-experimental-restore branch January 19, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants