From 2f5471db88a9558d6d7cfa1388ce229d314191aa Mon Sep 17 00:00:00 2001 From: Artem Daugel-Dauge Date: Wed, 15 Nov 2023 15:19:10 +0100 Subject: [PATCH] Set CocoaPods headers through DSL There's a designated DSL property for this, no need to configure the task manually. --- docs/topics/native/native-cocoapods.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/docs/topics/native/native-cocoapods.md b/docs/topics/native/native-cocoapods.md index db441523c4a..2ac46631484 100644 --- a/docs/topics/native/native-cocoapods.md +++ b/docs/topics/native/native-cocoapods.md @@ -257,19 +257,14 @@ name, specify it explicitly: moduleName = "AppsFlyerLib" } ``` -#### Check the definition file +#### Specify headers -If the Pod doesn't contain a `.modulemap` file, like the `pod("NearbyMessages")`, in the generated `.def` file, replace -modules with headers with the pointing main header: +If the Pod doesn't contain a `.modulemap` file, like the `pod("NearbyMessages")`, specify the main header explicitly: ```kotlin -tasks.named("generateDefNearbyMessages").configure { - doLast { - outputFile.writeText(""" - language = Objective-C - headers = GNSMessages.h - """.trimIndent()) - } +pod("NearbyMessages") { + version = "1.1.1" + headers = "GNSMessages.h" } ```