Skip to content

Commit 7c822cd

Browse files
authored
feat/refactor: add cocoa FFI binding (#1631)
1 parent f124efc commit 7c822cd

File tree

6 files changed

+71579
-1
lines changed

6 files changed

+71579
-1
lines changed

.github/workflows/update-deps.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Update Dependencies
33
on:
44
# Run every day.
55
schedule:
6-
- cron: '0 3 * * *'
6+
- cron: "0 3 * * *"
77
# And on on every PR merge so we get the updated dependencies ASAP, and to make sure the changelog doesn't conflict.
88
push:
99
branches:
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
path: flutter/scripts/update-cocoa.sh
2525
name: Cocoa SDK
26+
runs-on: macos-latest
2627
secrets:
2728
api-token: ${{ secrets.CI_DEPLOY_KEY }}
2829

flutter/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ build/
1010
.cxx/
1111

1212
.vscode/launch.json
13+
cocoa_bindings_temp

flutter/ffi-cocoa.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: SentryCocoa
2+
description: Sentry Cocoa SDK FFI binding.
3+
language: objc
4+
output: lib/src/sentry_cocoa.dart
5+
headers:
6+
entry-points:
7+
- ./cocoa_bindings_temp/Sentry.framework/Versions/A/PrivateHeaders/PrivateSentrySDKOnly.h
8+
- ./cocoa_bindings_temp/Sentry.framework/Versions/A/Headers/SentryId.h
9+
compiler-opts:
10+
- -DSENTRY_TARGET_PROFILING_SUPPORTED=1
11+
- -DCOCOAPODS=1
12+
exclude-all-by-default: true
13+
objc-interfaces:
14+
include:
15+
- PrivateSentrySDKOnly
16+
- SentryId

0 commit comments

Comments
 (0)