From 36a6d9639f9d17e3b7c22aa2f92f8c7c9acdf38d Mon Sep 17 00:00:00 2001 From: Gustavo Maciel Date: Mon, 2 Mar 2026 22:58:08 -0300 Subject: [PATCH 1/2] Add Swift Package Manager (SPM) dependency configuration and for iOS plugins. --- tutorials/platform/ios/ios_plugin.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tutorials/platform/ios/ios_plugin.rst b/tutorials/platform/ios/ios_plugin.rst index 032f7cf2cf9..25a64e2ff9a 100644 --- a/tutorials/platform/ios/ios_plugin.rst +++ b/tutorials/platform/ios/ios_plugin.rst @@ -104,6 +104,14 @@ To build an iOS plugin: linker_flags=["-ObjC"] + spm_packages=[ + { + "url": "https://github.com/googleads/swift-package-manager-google-mobile-ads.git", + "version": "12.14.0", + "products": ["GoogleMobileAds"] + } + ] + [plist] PlistKeyWithDefaultType="Some Info.plist key you might need" StringPlistKey:string="String value" @@ -143,6 +151,8 @@ To build an iOS plugin: - **linker_flags**: contains a list of linker flags to add to the Xcode project when exporting the plugin. + - **spm_packages**: contains a list of Swift Package Manager dependencies, specifying exact versions. Each package should be a `Dictionary` with ``url`` (string), ``version`` (string, exact version), and ``products`` (array of strings, listing the libraries to link). + - **plist**: should have keys and values that should be present in ``Info.plist`` file. - Each line should follow pattern: ``KeyName:KeyType=KeyValue`` From 5ae043d761caa39928a7ff9e891a620fba7d2f00 Mon Sep 17 00:00:00 2001 From: Gustavo Maciel Date: Tue, 3 Mar 2026 21:34:43 -0300 Subject: [PATCH 2/2] Update tutorials/platform/ios/ios_plugin.rst Co-authored-by: Hugo Locurcio --- tutorials/platform/ios/ios_plugin.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/platform/ios/ios_plugin.rst b/tutorials/platform/ios/ios_plugin.rst index 25a64e2ff9a..bdf118b99b6 100644 --- a/tutorials/platform/ios/ios_plugin.rst +++ b/tutorials/platform/ios/ios_plugin.rst @@ -82,7 +82,7 @@ To build an iOS plugin: - The configuration file extension must be ``gdip`` (e.g.: ``MyPlugin.gdip``). - - The configuration file format is as follow: + - The configuration file format is as follows: ::