Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Conversation

@Goooler
Copy link
Owner

@Goooler Goooler commented Feb 18, 2022

Comment on lines +35 to +37
fun <T : Any> create(service: Class<T>): T = retrofit.create(service)

inline fun <reified T> create(): T = create(T::class.java)
inline fun <reified T : Any> create(): T = create(T::class.java)
Copy link
Owner Author

Choose a reason for hiding this comment

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

Public-API inline function cannot access non-public-API 'private final val retrofit: Retrofit defined in io.goooler.demoapp.base.network.BaseRetrofitHelper'

@Goooler Goooler merged commit 9c484c4 into kotlin Feb 18, 2022
@Goooler Goooler deleted the retrofit branch February 18, 2022 09:12
@Goooler Goooler added the enhancement New feature or request label Feb 18, 2022
@Goooler Goooler added this to the 1.6.0 milestone Feb 18, 2022
@Goooler Goooler added housekeeping and removed enhancement New feature or request labels Mar 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants