Andrea Prearo
07/07/2020, 5:24 PM|- shared-libraries
\- network
|- network-core
| |- src
| | \- commonMain
| \- build.gradle.kts
|
|- network-ktor
| |- src
| | \- commonMain
| \- build.gradle.kts
|
\- build.gradle.kts
The network
module build script has the following dependencies:
• api(project(":shared-libraries:network:network-core"))
• api(project(":shared-libraries:network:network-ktor"))
Basically, network
is an umbrella module that contains no source code.
For Android, all works fine. I’m able to import :shared-libraries:network
without issues.
For iOS, I’m leveraging FatFrameworkTask
(registered as fatFramework
) to build the umbrella framework. When I run ./gradlew :shared-libraries:network:fatFramework
, Gradle compiles the code but it doesn’t create any iOS framework. I’m not sure why.
Is there a better/easier way to create an iOS umbrella framework for a project structure like the one above?russhwolf
07/07/2020, 5:56 PMnetwork
. Can be empty.Andrea Prearo
07/07/2020, 5:56 PMrusshwolf
07/07/2020, 5:57 PMAndrea Prearo
07/07/2020, 6:01 PMexport(project(":shared-libraries:network:network-core"))
and export(project(":shared-libraries:network:network-ktor"))
in the network
script file. Gradle compiles the source code but it look like the link step is never executed.network
is actually triggering linkDebugFrameworkIosSim
. 😒imple_smile:
Now, I need to solve the following error:
Following dependencies exported in the debugFramework binary are not specified as API-dependencies of a corresponding source set
russhwolf
07/07/2020, 6:04 PMAndrea Prearo
07/07/2020, 6:06 PMexport(project(":shared-libraries:network:network-core"))
. Which was likely the reason of the above Gradle error (I guess due to a circular dependency).granular_auth.framework
.russhwolf
07/07/2020, 6:15 PMAndrea Prearo
07/07/2020, 6:16 PMsvyatoslav.scherbina
07/08/2020, 11:02 AMnetwork
as module name. There are known issues in stable releases, it might clash with Network
platform library.Andrea Prearo
07/08/2020, 1:29 PM