This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Load SkyX files on iOS where available #320
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,6 +56,10 @@ template("resource_copy_ios") { | |
| set_sources_assignment_filter([]) | ||
| sources = _resources | ||
| outputs = [ "$root_build_dir/$_app_name.app/$_bundle_directory/{{source_file_part}}" ] | ||
|
|
||
| if (defined(invoker.deps)) { | ||
| deps = invoker.deps | ||
| } | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -115,14 +119,14 @@ template("ios_app") { | |
| script = ios_app_script | ||
|
|
||
| sources = [ invoker.info_plist ] | ||
| outputs = [ "$root_build_dir/Info.plist" ] | ||
| outputs = [ "$root_build_dir/plist/$app_name/Info.plist" ] | ||
|
|
||
| args = [ | ||
| "plist", | ||
| "-i", | ||
| rebase_path(invoker.info_plist, root_build_dir), | ||
| "-o", | ||
| rebase_path(root_build_dir), | ||
| rebase_path("$root_build_dir/plist/$app_name"), | ||
| ] | ||
| } | ||
|
|
||
|
|
@@ -131,7 +135,7 @@ template("ios_app") { | |
| copy_gen_target_name = target_name + "_copy" | ||
| copy(copy_gen_target_name) { | ||
| sources = [ | ||
| "$root_build_dir/Info.plist", | ||
| "$root_build_dir/plist/$app_name/Info.plist", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. root_build_dir seems wrong. That's like out/ios_sim_Debug, I think you want $target_gen_dir or something?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it matter if we are still giving the intermediate plist files from each target their own directory? |
||
| "$root_build_dir/$app_name", | ||
| ] | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <key>CFBundleDevelopmentRegion</key> | ||
| <string>en</string> | ||
|
|
||
| <!-- | ||
| This executable name must match the name of the app provided to the | ||
| ios_app GN template | ||
| --> | ||
| <key>CFBundleExecutable</key> | ||
| <string>game_app</string> | ||
|
|
||
| <key>CFBundleIdentifier</key> | ||
| <string>org.domokit.sky.game</string> | ||
|
|
||
| <key>CFBundleInfoDictionaryVersion</key> | ||
| <string>6.0</string> | ||
| <key>CFBundleName</key> | ||
| <string>game_app</string> | ||
| <key>CFBundlePackageType</key> | ||
| <string>APPL</string> | ||
| <key>CFBundleShortVersionString</key> | ||
| <string>1.0</string> | ||
| <key>CFBundleVersion</key> | ||
| <string>1</string> | ||
| <key>LSRequiresIPhoneOS</key> | ||
| <true/> | ||
| <key>UIRequiredDeviceCapabilities</key> | ||
| <array> | ||
| <string>armv7</string> | ||
| </array> | ||
| <key>DTPlatformName</key> | ||
| <string>iphonesimulator</string> | ||
| <key>DTSDKName</key> | ||
| <string>iphonesimulator8.3</string> | ||
| <key>LSRequiresIPhoneOS</key> | ||
| <true/> | ||
| <key>MinimumOSVersion</key> | ||
| <string>8.3</string> | ||
| <key>UIDeviceFamily</key> | ||
| <array> | ||
| <integer>1</integer> | ||
| <integer>2</integer> | ||
| </array> | ||
| <key>CFBundleSupportedPlatforms</key> | ||
| <array> | ||
| <string>iPhoneSimulator</string> | ||
| </array> | ||
| </dict> | ||
| </plist> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still not a big fan of adding a new top level build directory, but we can fix this in another pass.