Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] [iOS] Support multiple plist types in plugin #49803

Merged

Conversation

naithar
Copy link
Contributor

@naithar naithar commented Jun 21, 2021

Same as #49802 for master branch.

Extends current iOS Plugin system and allows to set a specific type for Info.plist key-value pairs.
Implements godot-sdk-integrations/godot-ios-plugins#5
Doesn't break compatibility.

Currently supported types:

  • string - used as a default if no type is specified
  • integer
  • boolean
  • raw - allows to use arrays or dictionaries
  • string_input - allows to set string value for a key when exporting.
Example

gdip config

[plist]
plist_default="string_value"
plist_string:string="string_value"
plist_integer:integer=101
plist_boolean:boolean=true
plist_raw:raw="
<array>
    <string>UIInterfaceOrientationPortrait</string>
</array>
"
plist_input:string_input="default_input"

Editor Export screen:
Снимок экрана 2021-06-21 в 17 45 41

Exported Info.plist:
Снимок экрана 2021-06-21 в 17 45 20

@akien-mga akien-mga merged commit 277db14 into godotengine:master Jun 22, 2021
@akien-mga
Copy link
Member

Thanks!

@naithar naithar deleted the feature/ios-plugin-multitype-plist-4.0 branch June 23, 2021 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants