Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tutorials/platform/ios/ios_plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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``
Expand Down