2
0
Эх сурвалжийг харах

[iOS] Extend plugins documentation

Sergey Minakov 4 жил өмнө
parent
commit
ca1cbee5ea

BIN
tutorials/platform/ios/img/ios_export_preset_plugins_section.png


+ 17 - 2
tutorials/platform/ios/ios_plugin.rst

@@ -95,7 +95,16 @@ To build an iOS plugin:
             linker_flags=["-ObjC"]
             linker_flags=["-ObjC"]
 
 
             [plist]
             [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:
         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.
                 -   **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.

+ 3 - 1
tutorials/platform/ios/plugins_for_ios.rst

@@ -3,11 +3,13 @@
 Plugins for iOS
 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.
 They are using same model of asynchronous calls explained below.
 
 
 ARKit and Camera access are also provided as plugins.
 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
 Accessing plugin singletons
 ---------------------------
 ---------------------------