-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
SPM Support #2280
base: main
Are you sure you want to change the base?
SPM Support #2280
Changes from all commits
8adbf8e
a0de8e2
0ccc10e
a2afc01
16bae70
0636b64
9a635fa
6034522
acc2ff0
160e5a5
31fcd63
866fe0f
bb6d8ac
a4e2e38
c694a20
249bb1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,6 +143,33 @@ jobs: | |
;; | ||
esac | ||
|
||
spm: | ||
name: "SPM" | ||
runs-on: macos-15 | ||
timeout-minutes: 30 | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: flutter/example | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: [ios, macos] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # [email protected] | ||
with: | ||
channel: main | ||
- run: flutter upgrade | ||
- run: flutter config --enable-swift-package-manager | ||
- name: Run on iOS | ||
if: matrix.target == 'ios' | ||
run: flutter run -d "iPhone 16 Pro" | ||
- name: Run on macOS | ||
if: matrix.target == 'macos' | ||
run: flutter run -d "macOS" | ||
|
||
analyze: | ||
uses: ./.github/workflows/analyze.yml | ||
with: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,8 @@ build/ | |
.cxx/ | ||
|
||
.vscode/launch.json | ||
cocoa_bindings_temp | ||
|
||
ios/sentry_flutter/Package.resolved | ||
|
||
temp |
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// swift-tools-version: 5.9 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "sentry_flutter", | ||
platforms: [ | ||
.iOS("12.0"), | ||
.macOS("10.13") | ||
], | ||
products: [ | ||
.library(name: "sentry-flutter", targets: ["sentry_flutter", "sentry_flutter_objc"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.40.1") | ||
], | ||
targets: [ | ||
.target( | ||
name: "sentry_flutter", | ||
dependencies: [ | ||
"sentry_flutter_objc", | ||
.product(name: "Sentry", package: "sentry-cocoa") | ||
] | ||
), | ||
// SPM does not support mixed-language targets, so we need to move the ObjC files into a separate one | ||
.target( | ||
name: "sentry_flutter_objc", | ||
dependencies: [ | ||
.product(name: "Sentry", package: "sentry-cocoa") | ||
] | ||
) | ||
] | ||
) |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../ios/sentry_flutter/Package.swift |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../ios/sentry_flutter/Sources/sentry_flutter/SentryFlutter.swift |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../ios/sentry_flutter/Sources/sentry_flutter_objc/SentryFlutterReplayBreadcrumbConverter.m |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../ios/sentry_flutter/Sources/sentry_flutter_objc/SentryFlutterReplayScreenshotProvider.m |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../../ios/sentry_flutter/Sources/sentry_flutter_objc/include/SentryFlutterReplayBreadcrumbConverter.h |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../../ios/sentry_flutter/Sources/sentry_flutter_objc/include/SentryFlutterReplayScreenshotProvider.h |
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.
## 8.10.1
.Consider moving the entry to the
## Unreleased
section, please.