feat: Add CustomDumpCoreLocation trait#159
feat: Add CustomDumpCoreLocation trait#159maximkrouk wants to merge 5 commits intopointfreeco:mainfrom
Conversation
|
Hi @maximkrouk, we can't really take this change since it is a breaking one. If anything it would need to be a But can you please explain more about what exactly is happening in App Store Connect? Can you share screenshots/messages you are seeing? And is it just a warning? Not an error? |
|
Yep, that would require a major update, I understand I guess I'll update the PR later, also I'll test the upload with a fork to provide more context
|
|
Hey @maximkrouk, actually @stephencelis mentioned that you could use default traits to keep it as If you are feeling brave you could also add similar traits for some of the other frameworks we have in this library (e.g. CoreMotion, GameKit, etc.). But no pressure for that, happy to take just CoreLocation for now (or do the others in a followup PR). |
|
Hmm, actually I just noticed that my implementation is likely to remove CoreLocation helpers completely for Swift 6.1 😅 Package traits is a pretty fresh feature and I may not understand smth correctly, but doesn't it make sense to opt-out non-core traits by default? For example
Afaiu compiler will see that the trait is required for package A, therefore Maybe I'm missing smth 💁♂️
Note Swift version check is needed anyway |
|
UPD: The only real downside I see is that libraries should never enable the |
That is what my comment about
Yes that would be nice, but that's a breaking change. What I am suggesting is a non-breaking change, allows those who care about the App Store Connect warning to fix it, and then in 2.0 traits will be opt-in instead of opt-out. |
|
Alright, I can update it, but I also want to check if Traits are propagated to child dependencies, afaiu - they are not, so if my check (probably on Monday) succeeds we could dump the "CustomDump" prefix to keep traits cleaner Note I took Package.swift from swift-configuration as a reference, and they do use simple names for traits, so I think it would be nice to get rid of the prefix if it can't possible conflict with other packages' traits with the same name I also have a few other PRs that could benefit from this check: |
|
Some details about the update:
Note - I didn't check if it removes AppStoreConnect warning yet |
|
Can this problem be solved by adding a |
|
I think traits make sense anyway, however if xcprivacy manifest supports specifying such info, it probably should be added as well 🤔 |

I'm not sure if that's the reason, but seems like dependency on
swift-custom-dumpis the reason for a warning in AppStoreConnectThe warning prompts to add "location usage description" plist key even tho the app doesn't use CoreLocation APIs
swift-custom-dumpis the only place whereCoreLocationis imported, so this may fix the issue 🤔Even if it doesn't I feel like it's a good thing to provide such extensions as opt-ins anyway c: