-
Notifications
You must be signed in to change notification settings - Fork 18
Bridge .analyticsScreen View modifier
#52
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
base: main
Are you sure you want to change the base?
Conversation
I haven't looked closely at it, but the CI failure for the PR seems to be related to bridging of a type that has a "+" in the file name (a known problem, even though I haven't filed an issue for it yet). I'm not sure if this is the same issue as you are seeing, but maybe try putting it in a file without a "+" character?
Merged!
Apache and (L)GPL are compatible, so there shouldn't be any issue with licensing. But I think that code is trivial enough to not need to copy over their license anyway. |
1db90f4 to
d584c7b
Compare
|
It was the |
|
I don't reproduce this build failure on my machine when I run |
|
The problem is coming from the The error is the same issue as with the "+" in the filename, but this time with a "-": Maybe just call the file |
29c6240 to
9526f9d
Compare
9526f9d to
47e9412
Compare
|
I'm not 100% sure I fixed this build the "right way." The build was failing because, in this PR, I've added code that depends on SwiftUI, providing our own View extension and ViewModifier. That works fine in Skip Lite mode, but doesn't work when I Other targets in this build depend on Anyway, I wasn't really able to rely on their example, and instead I added my dependency on I don't know if that's the right thing to do, but it seemed to work when I did it. |
Fixes #49
This is marked as a draft PR, for three reasons.It doesn't build, and I don't know why. I'm importing SwiftUI, but it's failing to resolve any UI stuff.
It's a stacked PR on top of Add Firebase Analytics constants #51. That PR should probably merge first.
I'm a little unclear on what to do about the license. I copied this code wholesale from https://github.com/firebase/firebase-ios-sdk/blob/9cb17fca6368d49c2df4854f8e4099073395156d/FirebaseAnalytics/Sources/Analytics%2BSwiftUI.swift which is copyright Google under an Apache license.
skip-firebaseis licensed LGPL.My opinion is that the code in question is teeny tiny, and necessary for compatibility, so it should be legal to simply use it (and even relicense it) under fair use.Skip Pull Request Checklist:
swift test