Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
488879f5
Commit
488879f5
authored
Jun 22, 2020
by
Sergey Minakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export: Fix iOS enabling push notifications capability
parent
6a01fbc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
godot_ios.entitlements
misc/dist/ios_xcode/godot_ios/godot_ios.entitlements
+1
-2
export.cpp
platform/iphone/export/export.cpp
+4
-0
No files found.
misc/dist/ios_xcode/godot_ios/godot_ios.entitlements
View file @
488879f5
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<plist
version=
"1.0"
>
<dict>
<dict>
<key>
aps-environment
</key>
$entitlements_push_notifications
<string>
development
</string>
</dict>
</dict>
</plist>
</plist>
platform/iphone/export/export.cpp
View file @
488879f5
...
@@ -343,6 +343,9 @@ void EditorExportPlatformIOS::_fix_config_file(const Ref<EditorExportPreset> &p_
...
@@ -343,6 +343,9 @@ void EditorExportPlatformIOS::_fix_config_file(const Ref<EditorExportPreset> &p_
}
else
if
(
lines
[
i
].
find
(
"$push_notifications"
)
!=
-
1
)
{
}
else
if
(
lines
[
i
].
find
(
"$push_notifications"
)
!=
-
1
)
{
bool
is_on
=
p_preset
->
get
(
"capabilities/push_notifications"
);
bool
is_on
=
p_preset
->
get
(
"capabilities/push_notifications"
);
strnew
+=
lines
[
i
].
replace
(
"$push_notifications"
,
is_on
?
"1"
:
"0"
)
+
"
\n
"
;
strnew
+=
lines
[
i
].
replace
(
"$push_notifications"
,
is_on
?
"1"
:
"0"
)
+
"
\n
"
;
}
else
if
(
lines
[
i
].
find
(
"$entitlements_push_notifications"
)
!=
-
1
)
{
bool
is_on
=
p_preset
->
get
(
"capabilities/push_notifications"
);
strnew
+=
lines
[
i
].
replace
(
"$entitlements_push_notifications"
,
is_on
?
"<key>aps-environment</key><string>development</string>"
:
""
)
+
"
\n
"
;
}
else
if
(
lines
[
i
].
find
(
"$required_device_capabilities"
)
!=
-
1
)
{
}
else
if
(
lines
[
i
].
find
(
"$required_device_capabilities"
)
!=
-
1
)
{
String
capabilities
;
String
capabilities
;
...
@@ -1066,6 +1069,7 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p
...
@@ -1066,6 +1069,7 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p
files_to_parse
.
insert
(
"godot_ios/dummy.cpp"
);
files_to_parse
.
insert
(
"godot_ios/dummy.cpp"
);
files_to_parse
.
insert
(
"godot_ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata"
);
files_to_parse
.
insert
(
"godot_ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata"
);
files_to_parse
.
insert
(
"godot_ios.xcodeproj/xcshareddata/xcschemes/godot_ios.xcscheme"
);
files_to_parse
.
insert
(
"godot_ios.xcodeproj/xcshareddata/xcschemes/godot_ios.xcscheme"
);
files_to_parse
.
insert
(
"godot_ios/godot_ios.entitlements"
);
IOSConfigData
config_data
=
{
IOSConfigData
config_data
=
{
pkg_name
,
pkg_name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment