https://kotlinlang.org logo
m

mkrussel

12/14/2020, 7:25 PM
Should exporting the date time library as part of my framework work.
Copy code
kotlin {
    ios {
        binaries {
            framework {
                baseName = "SharedCode"
                export(Deps.kotlinDateTime)
                export(project(":pangea-core"))
                export(project(":pangea-coroutines"))
                export(project(":pangea-gis"))
                export(project(":pangea-time"))
                export(project(":pangea-data"))
                export(project(":pangea-visual"))
                export(project(":pangea-overlay"))
                export(project(":pangea-source"))
                export(project(":pangea-map"))
                export(project(":pangea-mapbox"))
            }
        }
    }
}
When I do this I do not see anything about KotlinDateTime in the build output. Not listed in the list of libraries that were exported. When opening the produced header for the framework that gets generated. Instant is called
SharedCodeKotlinx_datetimeInstant
which is the pattern I saw for non exported classes. The converter functions for going from Instant to NSDate and back are also not there.
Changing the framework to have
transitiveExport
as true allows the symbols to be exported.
4 Views