[iOS] Extend plugins documentation

(cherry picked from commit ca1cbee5ea)
This commit is contained in:
Sergey Minakov
2021-07-13 21:48:19 +03:00
committed by Rémi Verschelde
parent 599b039194
commit af794c5c7e
3 changed files with 20 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 244 KiB

View File

@@ -95,7 +95,16 @@ To build an iOS plugin:
linker_flags=["-ObjC"]
[plist]
PlistKey="Some Info.plist key you might need"
PlistKeyWithDefaultType="Some Info.plist key you might need"
StringPlistKey:string="String value"
IntegerPlistKey:integer=42
BooleanPlistKey:boolean=true
RawPlistKey:raw="
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
"
StringPlistKeyToInput:string_input="Type something"
The ``config`` section and fields are required and defined as follow:
@@ -124,4 +133,10 @@ To build an iOS plugin:
- **linker_flags**: contains a list of linker flags to add to the Xcode project when exporting the plugin.
- **plist**: should have keys and values that should be present in ``Info.plist`` file following pattern: ``KeyName="key value"``
- **plist**: should have keys and values that should be present in ``Info.plist`` file.
- Each line should follow pattern: ``KeyName:KeyType=KeyValue``
- Supported values for ``KeyType`` are ``string``, ``integer``, ``boolean``, ``raw``, ``string_input``
- If no type is used (e.g.: ``KeyName="KeyValue"``) ``string`` type will be used.
- If ``raw`` type is used value for coresponding key will be stored in ``Info.plist`` as is.
- If ``string_input`` type is used you will be able to modify value in Export window.

View File

@@ -3,11 +3,13 @@
Plugins for iOS
===============
At the moment Godot provides StoreKit, GameCenter, iCloud services plugins.
Godot provides StoreKit, GameCenter, iCloud services and other plugins.
They are using same model of asynchronous calls explained below.
ARKit and Camera access are also provided as plugins.
Latest updates, documentation and source code can be found at `Godot iOS plugins repository <https://github.com/godotengine/godot-ios-plugins>`_
Accessing plugin singletons
---------------------------