diff --git a/tutorials/platform/ios/img/ios_export_preset_plugins_section.png b/tutorials/platform/ios/img/ios_export_preset_plugins_section.png index 333ff245a..e576501f5 100644 Binary files a/tutorials/platform/ios/img/ios_export_preset_plugins_section.png and b/tutorials/platform/ios/img/ios_export_preset_plugins_section.png differ diff --git a/tutorials/platform/ios/ios_plugin.rst b/tutorials/platform/ios/ios_plugin.rst index 61e0c7196..936a9b8f5 100644 --- a/tutorials/platform/ios/ios_plugin.rst +++ b/tutorials/platform/ios/ios_plugin.rst @@ -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=" + + UIInterfaceOrientationPortrait + + " + 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. diff --git a/tutorials/platform/ios/plugins_for_ios.rst b/tutorials/platform/ios/plugins_for_ios.rst index cc911a148..06a3f71d9 100644 --- a/tutorials/platform/ios/plugins_for_ios.rst +++ b/tutorials/platform/ios/plugins_for_ios.rst @@ -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 `_ + Accessing plugin singletons ---------------------------