Skip to content
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

feat: add support for macOS #217

Merged
merged 9 commits into from
Jan 14, 2025
Merged

feat: add support for macOS #217

merged 9 commits into from
Jan 14, 2025

Conversation

chungdaniel
Copy link
Contributor

@chungdaniel chungdaniel commented Jan 14, 2025

Primary changes:

Extra:

Note:

  • PR should probably be focused mostly on non-example files

Addresses #46
Jira: [SDK - Flutter] Flutter macOS Support

@chungdaniel chungdaniel requested review from izaaz and Mercy811 January 14, 2025 02:30
README.md Outdated
Comment on lines 25 to 28
| Dart | Flutter | Amplitude Flutter | Gradle | Android Gradle Plugin | Kotlin Gradle Plugin |
|---------|---------|-------------------|-------|-----------------------|-----------------------|
| `3.7.0+`|`3.3+` | `4.+` | `8.2` | `8.2.2` | `1.9.22` |

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What requires Dart version? sharedDarwinSource requires Flutter 3.7 right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch. Yes, Flutter requires 3.7 for sharedDarwinSource, but we need dart 3.3+ to support Flutter web after adopting js_interop. I'll swap those around


s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
s.swift_version = '5.9'
s.dependency 'AmplitudeSwift', '~> 1.6'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update to the latest version of the SDK as the min version?

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to add this? The underlying SDK also has a privacy manifest which is more up to date.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was added by default when I tried adding macOS as a platform as a result of me updating to latest flutter locally. I think it should be fine to remove it.

Copy link

@izaaz izaaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM with a few minor comments.

Copy link
Contributor

@Mercy811 Mercy811 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @chungdaniel, LGTM other than flutter & dart version requirements.

- swap dart and flutter versions correctly
- use latest version of amplitude swift
- remove privacyinfo.xcprivacy
@chungdaniel chungdaniel merged commit eb66de8 into beta Jan 14, 2025
3 checks passed
@chungdaniel chungdaniel deleted the AMP-35292-macos-4.x branch January 14, 2025 23:25
justin-fiedler pushed a commit that referenced this pull request Jan 15, 2025
# [4.0.0-beta.7](v4.0.0-beta.6...v4.0.0-beta.7) (2025-01-15)

### Features

* add support for macOS ([#217](#217)) ([eb66de8](eb66de8)), closes [#156](#156) [#211](#211) [#46](#46)
Copy link

🎉 This PR is included in version 4.0.0-beta.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants