https://kotlinlang.org logo
#apollo-kotlin
Title
# apollo-kotlin
b

brandonmcansh

02/28/2024, 2:00 AM
if I'm using apollo in a library module that will be shipped as a standalone SDK - is there a way to not expose the fragments, queries, etc from being visible in the apps that use the SDK?
k

kevin.cianfarini

02/28/2024, 2:15 AM
You can set Apollo to generate models as internal in the gradle plugin
2
b

bod

02/28/2024, 8:33 AM
with:
Copy code
apollo {
  service("service") {
    // ...
    generateAsInternal.set(true)
  }
}
b

brandonmcansh

02/28/2024, 11:36 AM
Legit thank you. Missed this in the config options