-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Move Settings.bundle into included iosapp #12607
Conversation
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.
See #12554 (comment).
d625777
to
57847fa
Compare
@1ec5 I went ahead with your suggestion and moved the Settings.bundle into iosapp as well as removed the unused Settings target, please let me know if I've missed something. |
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.
In addition to these changes, package.sh will need to be updated to extract Settings.bundle from the built iosapp bundle in the build products.
Additionally, it may be necessary to update the localization addition process to include manually adding a localization of Root.strings – not sure if Xcode automatically detects that strings file as being localizable when it lies within a Settings.bundle.
57847fa
to
d26aa76
Compare
@julianrex @friedbunny and I spoke about the direction of this PR. Since package.sh currently doesn't build iosapp, having it do so just to copy the Settings.bundle seems inefficient. We agreed that the Settings.bundle should remain in the iosapp but should not be packaged with the framework for now. |
ac70069
to
ee36e05
Compare
Change these two lines:
to: cp -rv platform/ios/app/Settings.bundle ${OUTPUT} and nothing changes about the final built SDK. |
@captainbarbosa Looks like |
@captainbarbosa If we’re going to keep the localizations, please check that they work in their new home. |
ee36e05
to
25f73ec
Compare
@friedbunny I tested on-device by changing the default language and checking the telemetry alert in iosapp: |
@captainbarbosa The strings in that dialog are handled by the maps SDK directly (and will appear regardless of what’s in an app’s Settings.bundle). Settings bundles are where apps define what extra settings will appear in their panels in the system’s settings (“Settings.app”), alongside typical permissions (location, etc). |
@friedbunny Gotcha - I'm now noticing that the settings do localize the first time the language is changed, but then remain stuck on the first localization when the language is changed again. Not sure what the cause is but I'm seeing this on the device and with the simulator. (After changing the default language from English to French and then to Japanese, the Settings remain localized to French.) |
@captainbarbosa That also happens in @1ec5 Does this behavior seem like a bug to you, or are we doing something incorrectly? References |
Did you force-quit Settings between changing languages? If I’m not mistaken, the Settings application does cache its contents until you close it. What happens in other applications that specify localized settings pages? |
@1ec5 force quitting the settings app doesn’t seem to work and other apps localize their custom settings as expected, so this only seems to be occurring with this project. |
25f73ec
to
908bf34
Compare
@friedbunny I added the English localization and its back to working as expected. |
Did this ↓ end up being necessary, @captainbarbosa?
|
@friedbunny No, it was not necessary - @1ec5 and went through it together and localizations seemed to take with no issues 👍 |
[ios] Remove copying of Settings.bundle from packaging script [ios] Move Settings bundle under ios/app in file system [ios] Copy bundle to iosapp in packaging script [ios] Remove stranded Root.strings from SDK [ios] Add English localization to example Settings.bundle
908bf34
to
f039256
Compare
Removes the settings target and gets rid of the included example
Settings.bundle
from this project, which would be moved to theios-sdk-examples
project in mapbox/ios-sdk-examples#204. Closes #12554.This will not require a changelog entry.