jamireh
10/25/2024, 5:16 PMinternal fun mangled() existed in an Android module :nested:library within its debug sourceset, then the mangled name generated by the compiler is mangled$nested_library_debug. However, KSP is returning mangled$library . Doing a quick test, the compiler seems generate mangled names differently?
// Within src/main for a given JVM library, :nested:library
// Within src/debug for a given Android library, :nested:library
package dev.jonamireh
class MangledClass {
internal fun mangled(): Boolean = true
}
In a JVM module, the compiler generates mangled$library . In an Android module, the compiler generates mangled$nested_library_debug . It seems as though KSP is only using the JVM variant of generating mangled names. Is there an open issue for this or how can I report this effectively? I'm not even sure which right 😅jamireh
10/28/2024, 10:15 PMTing-Yuan Huang
10/28/2024, 10:19 PMjamireh
10/28/2024, 10:19 PMTing-Yuan Huang
10/28/2024, 10:20 PMjamireh
10/30/2024, 4:48 PM$<module_name>_<sourceset> in Android libraries instead of what I'm experiencing which is $<module__path_>_<sourceset> 🫠I'll keep investigating though
Edit: Figured it out, see below!jamireh
10/30/2024, 5:44 PMjamireh
10/30/2024, 6:20 PMjamireh
10/30/2024, 10:49 PMarchiveName. Evidently, this is what determines the module name for Android 🙃