Skip to content

Commit

Permalink
chore: merge main into v8 branch (#1841)
Browse files Browse the repository at this point in the history
* ci: update actions (#1617)

* Add tests for the Android and iOS plugin  (#1587)

* Normalize `data` properties of `SentryUser` and `Breadcrumb` before sending over method channel (#1591)

* chore(deps): update Cocoa SDK to v8.11.0 (#1626)

Co-authored-by: GitHub <noreply@github.com>

* Tracing without performance (#1621)

* implement propagationContext

* remove sampled and parentSpanId for now

* update changelog

* fix build error

* create new propagation context on startTransaction if tracing is disabled

* remove print

* propagate trace for http requests

* add tracing client test

* fix tests

* format

* fix compile

* tests

* fix analysis score

* fix analysis score

* fix compilation

* fix score

* fix score

* fix score

* fix score

* update tests

* [starfish] add attributes to db spans data (#1629)

* add db attibutes to spans

* change variable names

* update changelog

* update changelog

* update tests

* update imports

* update tests

* remove unused import

* couple dbName to db instance

* format

* use path pub

* don't set dbName to null when db close() is called

* [starfish] add http.request.method attribute to http spans (#1633)

* add http.request.method to http spans

* update changelog

* Fix Android & iOS CI issues (#1627)

* Disable scope sync for cloned scopes (#1628)

* chore: update flutter/scripts/update-android.sh to 6.29.0 (#1630)

Co-authored-by: GitHub <noreply@github.com>

* Discard empty stack frames (#1625)

* Introduce workflow dispatch action for`format` & `fix --apply` (#1575)

* feat/refactor: add cocoa FFI binding (#1631)

* refactor: move native code to its own directory (#1638)

* Log SDK errors to the console if the log level is `fatal` even if `debug` is disabled (#1635)

* Fix autoPerformanceTracingEnabled flag in andorid plugin (#1640)

* Add Sampling Decision to Trace Envelope Header (#1639)

* add sampled flag

* fmt

* update changelog

* redo fmt

* fix tests

* chore: update metrics/flutter.properties to 3.13.3 (#1632)

Co-authored-by: GitHub <noreply@github.com>

* fix: add missing FFI depdendency (#1642)

* release: 7.10.1

* ci: macos integration test (#1645)

* fix: generated cocoa bindings (#1648)

* Update uuid (#1647)

Co-authored-by: Ivan Dlugos <6349682+vaind@users.noreply.github.com>

* chore(deps): update Cocoa SDK to v8.12.0 (#1650)

Co-authored-by: GitHub <noreply@github.com>

* Breadcrumbs for file I/O operations (#1649)

* ci: don't run CI on markdown updates (#1651)

* chore(deps): update Flutter SDK (metrics) to v3.13.6 (#1659)

* chore: update metrics/flutter.properties to 3.13.6

* Update flutter.properties

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: Stefano <stefano.siano@sentry.io>

* chore: update flutter/scripts/update-android.sh to 6.30.0 (#1660)

* chore: update flutter/scripts/update-cocoa.sh to 8.13.0 (#1655)

* Generate class diagrams (#1646)

* Rename `options.devMode` to `options.automatedTestMode` (#1664)

* chore: update flutter/scripts/update-cocoa.sh to 8.13.1 (#1677)

Co-authored-by: GitHub <noreply@github.com>

* chore: update flutter/scripts/update-android.sh to 6.31.0 (#1676)

* chore: update metrics/flutter.properties to 3.13.7 (#1674)

Co-authored-by: GitHub <noreply@github.com>

* Add dependabot (#1670)

* Bump codecov/codecov-action from 3.1.1 to 3.1.4 (#1680)

* chore: update flutter/scripts/update-android.sh to 6.32.0 (#1688)

Co-authored-by: GitHub <noreply@github.com>

* chore(deps): update Cocoa SDK to v8.14.2 (#1691)

* chore: update flutter/scripts/update-cocoa.sh to 8.14.2

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* chore: update changelog (#1699)

* Update changelog

* release: 7.11.0

* Bump lints from 2.1.1 to 3.0.0 in /sqflite (#1697)

Bumps [lints](https://github.com/dart-lang/lints) from 2.1.1 to 3.0.0.
- [Release notes](https://github.com/dart-lang/lints/releases)
- [Changelog](https://github.com/dart-lang/lints/blob/main/CHANGELOG.md)
- [Commits](dart-lang/lints@v2.1.1...v3.0.0)

---
updated-dependencies:
- dependency-name: lints
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lints from 2.1.1 to 3.0.0 in /logging (#1696)

Bumps [lints](https://github.com/dart-lang/lints) from 2.1.1 to 3.0.0.
- [Release notes](https://github.com/dart-lang/lints/releases)
- [Changelog](https://github.com/dart-lang/lints/blob/main/CHANGELOG.md)
- [Commits](dart-lang/lints@v2.1.1...v3.0.0)

---
updated-dependencies:
- dependency-name: lints
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lints from 2.1.1 to 3.0.0 in /file (#1694)

Bumps [lints](https://github.com/dart-lang/lints) from 2.1.1 to 3.0.0.
- [Release notes](https://github.com/dart-lang/lints/releases)
- [Changelog](https://github.com/dart-lang/lints/blob/main/CHANGELOG.md)
- [Commits](dart-lang/lints@v2.1.1...v3.0.0)

---
updated-dependencies:
- dependency-name: lints
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lints from 2.1.1 to 3.0.0 in /dio (#1693)

Bumps [lints](https://github.com/dart-lang/lints) from 2.1.1 to 3.0.0.
- [Release notes](https://github.com/dart-lang/lints/releases)
- [Changelog](https://github.com/dart-lang/lints/blob/main/CHANGELOG.md)
- [Commits](dart-lang/lints@v2.1.1...v3.0.0)

---
updated-dependencies:
- dependency-name: lints
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: profiling for iOS/macOS (#1611)

Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
Co-authored-by: Denis Andrašec <denrase@gmail.com>
Co-authored-by: Stefano <stefano.siano91@gmail.com>

* chore: update metrics/flutter.properties to 3.13.9 (#1702)

* chore: log warning if both tracesSampleRate and tracesSampler are set (#1701)

* Log warning if both tracesSampleRate and tracesSampler are set

* Update CHANGELOG

* Update log

* Update CHANGELOG

* chore: flutter symbol collector CLI tool (#1673)

* release: 7.12.0

* Add `SentryNavigatorObserver` current route to `event.app.contexts.viewNames` (#1545)

* fix: coverage not ignoring generated binding.dart (#1707)

* Remove coverage for binding.dart

* Breadcrumbs for database operations (#1656)

* Bump actions/checkout from 3 to 4 (#1683)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ScaCap/action-ktlint from 1.7.1 to 1.8.0 (#1681)

Bumps [ScaCap/action-ktlint](https://github.com/scacap/action-ktlint) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/scacap/action-ktlint/releases)
- [Commits](ScaCap/action-ktlint@2cf245b...0ff81ef)

---
updated-dependencies:
- dependency-name: ScaCap/action-ktlint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 (#1682)

Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](styfle/cancel-workflow-action@b173b6e...01ce38b)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stefano <stefano.siano@sentry.io>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* Bump dart-lang/setup-dart from 1.3.0 to 1.6.0 (#1692)

Bumps [dart-lang/setup-dart](https://github.com/dart-lang/setup-dart) from 1.3.0 to 1.6.0.
- [Release notes](https://github.com/dart-lang/setup-dart/releases)
- [Changelog](https://github.com/dart-lang/setup-dart/blob/main/CHANGELOG.md)
- [Commits](dart-lang/setup-dart@6a218f2...b64355a)

---
updated-dependencies:
- dependency-name: dart-lang/setup-dart
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* chore: update flutter/scripts/update-android.sh to 6.33.0 (#1710)

Co-authored-by: GitHub <noreply@github.com>

* build(deps): bump subosito/flutter-action from 2.10.0 to 2.12.0 (#1711)

Bumps [subosito/flutter-action](https://github.com/subosito/flutter-action) from 2.10.0 to 2.12.0.
- [Release notes](https://github.com/subosito/flutter-action/releases)
- [Commits](subosito/flutter-action@48cafc2...2783a3f)

---
updated-dependencies:
- dependency-name: subosito/flutter-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add `attachScreenshotOnlyWhenResumed` to options (#1700)

* chore: update flutter/scripts/update-android.sh to 6.33.1 (#1713)

Co-authored-by: GitHub <noreply@github.com>

* chore: update flutter/scripts/update-cocoa.sh to 8.15.0 (#1712)

Co-authored-by: GitHub <noreply@github.com>

* chore: update flutter/scripts/update-cocoa.sh to 8.15.1 (#1714)

Co-authored-by: GitHub <noreply@github.com>

* fix: unsupported types with expando (#1690)

* Support string, int, double and bool as throwable for expando

* Rename the test file and move it to utils folder{

* Remvoe ffi import

* Update changelog

* Try other url for dio pubspec doc url

* Change doc url of logging pubspec

* Remove unnecessary code

* Update naming

* Rename

* chore: update flutter/scripts/update-cocoa.sh to 8.15.2 (#1717)

Co-authored-by: GitHub <noreply@github.com>

* Parse message field in `PlatformException.message` (#1716)

* Parse message field

* changelog

* Update CHANGELOG.md

* Bump natiginfo/action-detekt-all from 1.21.0 to 1.23.1 (#1684)

* Bump natiginfo/action-detekt-all from 1.21.0 to 1.23.1

Bumps [natiginfo/action-detekt-all](https://github.com/natiginfo/action-detekt-all) from 1.21.0 to 1.23.1.
- [Release notes](https://github.com/natiginfo/action-detekt-all/releases)
- [Commits](natiginfo/action-detekt-all@e01de6f...be3c187)

---
updated-dependencies:
- dependency-name: natiginfo/action-detekt-all
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix braces

* Add missing trailing comma

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* build(deps): bump natiginfo/action-detekt-all from 1.23.1 to 1.23.3 (#1722)

Bumps [natiginfo/action-detekt-all](https://github.com/natiginfo/action-detekt-all) from 1.23.1 to 1.23.3.
- [Release notes](https://github.com/natiginfo/action-detekt-all/releases)
- [Commits](natiginfo/action-detekt-all@be3c187...68eb02d)

---
updated-dependencies:
- dependency-name: natiginfo/action-detekt-all
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Remove renderer on Dart:io platforms (#1723)

* Remove renderer on dart:io platforms

* Tests + changelog

* Update CHANGELOG.md

* Fix tests

* fix more tests

* feat: drift apm (#1709)

* draft impl

* improve code

* Add open span

* Refactor to extend lazy database

* Update

* SentryTransactionExecutor

* Implement tracing batch and transactions

* Update tests

* update changelog

* Formatting

* Update workflows

* Update deps

* Fix analyze issues

* Format

* Add example

* Update descriptions

* Fix deps

* Update run commands

* Update workflow

* Update example

* Update workflow

* Format

* Fix dart analyze

* Try changing deps

* Add to craft

* Change to flutter test

* Revert flutter test mock

* change dir manually

* download and extract sqlite.dll for windows

* Try downloading sqlite3

* set up dart

* fix path to file

* use pub get

* Use flutter pub get

* fix

* skip windows test

* fix analyze

* fix drift.yml

* format

* Remove redundant test

* Remove debug print

* update trace origin

* Improvements

* Improvements

* Add to flutter example

* fix: setting the correct locale to contexts with navigatorKey (#1724)

* Add localization with navigatorKey

* Update CHANGELOG

* Update tests

* Update tests

* Format

* Remove unused import

* Apply review improvements

* Update CHANGELOG

* APM for hive (#1672)

* setup sentry hive library

* Add SentryBox with first test

* test added spans

* Add sentry hive impl

* introduce base box to avoid duplication

* implement lazy box test

* expose sentry hive and updata documentation

* add hive to flutter example app

* test throwing in base_box, cleanup

* test lazy box error cases

* test sentry hive impl failures

* run fix & format

* fix test failure race condition

* add hive workflow, update other workflows

* add changelog entry

* remove path+provider from dev_dependencies

* add coverage dev dependency

* fix deprecation warnings

* fix changelog

* move span wrapping on own class to avoid duplication

* add sentry box collection

* test added spans, fix imports

* test throwing code

* fix changelog

* change dbSystem value

* change db system

* remove unneccessary async & await

* Fix analyze

* Formatting

* Add changelog symlink

* Ignore hive coverage

* Create symlink for dartdoc_options

---------

Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* release: 7.13.0

* Fixes release of drift & hive (#1729)

* Add integrations

* Readd changelog

* Add drift and hive to bump versions

* Formatting and analyze

* Update CHANGELOG and fix test

* Update changelog

* fix analyze issue

* release: 7.13.1

* Fix formatting and analyze ci issues (#1733)

* Fix analysis

* Update readme

* run format

* Add drift and hive as craft registry target (#1731)

* Add drift and hive as registry target

* build(deps): bump dart-lang/setup-dart from 1.3.0 to 1.6.0 (#1743)

Bumps [dart-lang/setup-dart](https://github.com/dart-lang/setup-dart) from 1.3.0 to 1.6.0.
- [Release notes](https://github.com/dart-lang/setup-dart/releases)
- [Changelog](https://github.com/dart-lang/setup-dart/blob/main/CHANGELOG.md)
- [Commits](dart-lang/setup-dart@v1.3...b64355a)

---
updated-dependencies:
- dependency-name: dart-lang/setup-dart
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): update Android SDK to v6.34.0 (#1746)

* chore: update flutter/scripts/update-android.sh to 6.34.0

* Update CHANGELOG

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* deps: update `package_info_plus` constraints (#1749)

* Update constraints

* Update CHANGELOG

* release: 7.13.2

* build(deps): bump codecov/codecov-action from 3.1.1 to 3.1.4 (#1742)

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.1 to 3.1.4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v3.1.1...eaaf4be)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* build(deps): bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 (#1741)

Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](styfle/cancel-workflow-action@0.11.0...01ce38b)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* build(deps): bump actions/checkout from 3 to 4 (#1740)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* build(deps): bump VeryGoodOpenSource/very_good_coverage (#1739)

Bumps [VeryGoodOpenSource/very_good_coverage](https://github.com/verygoodopensource/very_good_coverage) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/verygoodopensource/very_good_coverage/releases)
- [Changelog](https://github.com/VeryGoodOpenSource/very_good_coverage/blob/main/CHANGELOG.md)
- [Commits](VeryGoodOpenSource/very_good_coverage@e5c91bc...3b47542)

---
updated-dependencies:
- dependency-name: VeryGoodOpenSource/very_good_coverage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* chore: update scripts/update-symbol-collector.sh to 1.13.0 (#1737)

Co-authored-by: GitHub <noreply@github.com>

* chore: update scripts/update-symbol-collector.sh to 1.13.0 (#1754)

Co-authored-by: GitHub <noreply@github.com>

* Add option to opt out of fatal level for automatically collected errors (#1738)

* build(deps): bump natiginfo/action-detekt-all from 1.23.3 to 1.23.4 (#1758)

Bumps [natiginfo/action-detekt-all](https://github.com/natiginfo/action-detekt-all) from 1.23.3 to 1.23.4.
- [Release notes](https://github.com/natiginfo/action-detekt-all/releases)
- [Commits](natiginfo/action-detekt-all@68eb02d...1349d3d)

---
updated-dependencies:
- dependency-name: natiginfo/action-detekt-all
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): update Cocoa SDK to v8.17.0 (#1761)

* chore: update flutter/scripts/update-cocoa.sh to 8.17.0

* Apply format

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* build(deps): bump subosito/flutter-action from 2.10.0 to 2.12.0 (#1759)

Bumps [subosito/flutter-action](https://github.com/subosito/flutter-action) from 2.10.0 to 2.12.0.
- [Release notes](https://github.com/subosito/flutter-action/releases)
- [Commits](subosito/flutter-action@v2.10.0...2783a3f)

---
updated-dependencies:
- dependency-name: subosito/flutter-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* chore: update metrics/flutter.properties to 3.16.1 (#1760)

Co-authored-by: GitHub <noreply@github.com>

* fix(example): web obfuscation not working (#1766)

* Add debug_meta to all events (#1756)

* load_image_list_integration now appends debug_meta info to all non-transaction events with a stacktrace, instead of checking for Exception existence

* chore: Update README to include drift and hive (#1735)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: getsentry-bot <bot@sentry.io>
Co-authored-by: Denis Andrašec <denrase@gmail.com>

* chore: update metrics/flutter.properties to 3.16.2 (#1769)

Co-authored-by: GitHub <noreply@github.com>

* chore(deps): update Cocoa SDK to v8.17.1 (#1771)

* chore: update flutter/scripts/update-cocoa.sh to 8.17.1

* Formatting

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* Add `Hive` breadcrumbs (#1773)

* improvements(example): fix router navigation issue and add improvements (#1767)

* Change http url and add route navigation observer example

* Remove comment

* Improve sample

* Format

* Add padding

* Fix analyze issues

* build(deps): bump actions/setup-java from 3 to 4 (#1772)

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: add new package release process (#1734)

* add docs

* Add flutter example step

* Add analyze info

* Update

* Update new-package-release-checklist.md

* fix(ci): compile error in example using flutter beta channel (#1783)

* fix ci

* chore(deps): update Cocoa SDK to v8.17.2 (#1787)

* chore: update flutter/scripts/update-cocoa.sh to 8.17.2

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* chore: update flutter/scripts/update-android.sh to 7.0.0 (#1768)

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* release: 7.14.0

* Add `ConnectivityIntegration` for web (#1765)

* Fix changelog (#1791)

* build(deps): bump actions/upload-artifact from 3 to 4 (#1789)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* APM for isar (#1726)

* Bump flutter_lints from 2.0.3 to 3.0.0 in /flutter (#1698)

* Bump flutter_lints from 2.0.3 to 3.0.0 in /flutter

Bumps [flutter_lints](https://github.com/flutter/packages/tree/main/packages) from 2.0.3 to 3.0.0.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/pigeon-v3.0.0/packages)

---
updated-dependencies:
- dependency-name: flutter_lints
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Satisfy analyzer

* Satisfy dart analyzer

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* chore: update metrics/flutter.properties to 3.16.5 (#1793)

Co-authored-by: GitHub <noreply@github.com>

* Bump lints from 2.1.1 to 3.0.0 in /dart (#1695)

* Bump lints from 2.1.1 to 3.0.0 in /dart

Bumps [lints](https://github.com/dart-lang/lints) from 2.1.1 to 3.0.0.
- [Release notes](https://github.com/dart-lang/lints/releases)
- [Changelog](https://github.com/dart-lang/lints/blob/main/CHANGELOG.md)
- [Commits](dart-lang/lints@v2.1.1...v3.0.0)

---
updated-dependencies:
- dependency-name: lints
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* update

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* build(deps): bump reactivecircus/android-emulator-runner (#1779)

Bumps [reactivecircus/android-emulator-runner](https://github.com/reactivecircus/android-emulator-runner) from 2.28.0 to 2.29.0.
- [Release notes](https://github.com/reactivecircus/android-emulator-runner/releases)
- [Changelog](https://github.com/ReactiveCircus/android-emulator-runner/blob/main/CHANGELOG.md)
- [Commits](ReactiveCircus/android-emulator-runner@d94c3fb...99a4aac)

---
updated-dependencies:
- dependency-name: reactivecircus/android-emulator-runner
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* build(deps): bump subosito/flutter-action from 2.10.0 to 2.12.0 (#1796)

Bumps [subosito/flutter-action](https://github.com/subosito/flutter-action) from 2.10.0 to 2.12.0.
- [Release notes](https://github.com/subosito/flutter-action/releases)
- [Commits](subosito/flutter-action@v2.10.0...2783a3f)

---
updated-dependencies:
- dependency-name: subosito/flutter-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: spotlight support (#1786)

* Implement spotlight support (screenshots are currently disabled and removed from the envelope)

* build(deps): bump VeryGoodOpenSource/very_good_coverage (#1795)

Bumps [VeryGoodOpenSource/very_good_coverage](https://github.com/verygoodopensource/very_good_coverage) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/verygoodopensource/very_good_coverage/releases)
- [Changelog](https://github.com/VeryGoodOpenSource/very_good_coverage/blob/main/CHANGELOG.md)
- [Commits](VeryGoodOpenSource/very_good_coverage@v2.1.0...3b47542)

---
updated-dependencies:
- dependency-name: VeryGoodOpenSource/very_good_coverage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump actions/setup-java from 3 to 4 (#1797)

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update Path Filters (#1763)

* Add app flavor to `flutter_context` (#1799)

* Add app flavor

* fix changelog

* chore(deps): update Android SDK to v7.1.0 (#1788)

* chore: update flutter/scripts/update-android.sh to 7.1.0

* Fix app start

* format

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* Add isar breadcrumbs (#1800)

* chore: update flutter/scripts/update-cocoa.sh to 8.18.0 (#1803)

Co-authored-by: GitHub <noreply@github.com>

* Add `beforeScreenshotCallback` to `SentryFlutterOptions` (#1805)

* fix typo in docs (#1816)

* chore: update metrics/flutter.properties to 3.16.7 (#1814)

Co-authored-by: GitHub <noreply@github.com>

* Add support for `readTransaction` in `sqflite` (#1819)

* ci: disable some tests temporarily (#1835)

* release: 7.15.0

* Accept `Map<String, dynamic>` in `Hint` class (#1807)

* build(deps): bump actions/cache from 3 to 4 (#1833)

Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* proper changelog

* fix

* pin version

* format ktlint

* fix ktlint

* fix ktlint

* fix ktlint

* update detekt baseline

* build(deps): bump dart-lang/setup-dart from 1.6.0 to 1.6.1 (#1817)

Bumps [dart-lang/setup-dart](https://github.com/dart-lang/setup-dart) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/dart-lang/setup-dart/releases)
- [Changelog](https://github.com/dart-lang/setup-dart/blob/main/CHANGELOG.md)
- [Commits](dart-lang/setup-dart@b64355a...ca7e6fe)

---
updated-dependencies:
- dependency-name: dart-lang/setup-dart
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* chore(deps): update Flutter SDK (metrics) to v3.16.8 (#1825)

* chore: update metrics/flutter.properties to 3.16.8

* update path

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* feat: tracing without performance for dio (#1837)

* feat: tracing without performance for dio

* chore: update CHANGELOG.md

* chore: reenable testing sentry-dart on windows (#1838)

* enable windows again

* test with chrome

* test with chrome

* reenable windows test

* chore: add isar to craft (#1843)

* add isar

* Update Changelog

* chore(deps): update Cocoa SDK to v8.19.0 (#1844)

* chore: update flutter/scripts/update-cocoa.sh to 8.19.0
---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* feat: Add sentry widget that includes other sentry widgets (#1846)

* add sentry widget

* Update CHANGELOG.md

* Update CHANGELOG.md

* build(deps): bump styfle/cancel-workflow-action from 0.12.0 to 0.12.1 (#1849)

Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](styfle/cancel-workflow-action@01ce38b...85880fa)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump reactivecircus/android-emulator-runner (#1848)

Bumps [reactivecircus/android-emulator-runner](https://github.com/reactivecircus/android-emulator-runner) from 2.29.0 to 2.30.1.
- [Release notes](https://github.com/reactivecircus/android-emulator-runner/releases)
- [Changelog](https://github.com/ReactiveCircus/android-emulator-runner/blob/main/CHANGELOG.md)
- [Commits](ReactiveCircus/android-emulator-runner@99a4aac...6b0df4b)

---
updated-dependencies:
- dependency-name: reactivecircus/android-emulator-runner
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump codecov/codecov-action from 3.1.4 to 3.1.5 (#1850)

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@eaaf4be...4fe8c5f)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* chore(deps): update Android SDK to v7.2.0 (#1815)

* chore: update flutter/scripts/update-android.sh to 7.2.0

* Update podfile

* Update podfile

* Update deployment target

* update

* update

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* chore(deps): update Flutter SDK (metrics) to v3.16.9 (#1847)

* chore: update metrics/flutter.properties to 3.16.9

* update

* update

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* chore(deps): update Symbol collector CLI to v1.14.0 (#1827)

* chore: update scripts/update-symbol-collector.sh to 1.14.0

* update

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: GIancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>

* Update CHANGELOG.md (#1845)

* chore: update flutter/scripts/update-android.sh to 7.3.0 (#1852)

Co-authored-by: GitHub <noreply@github.com>

* release: 7.16.0

* Update CHANGELOG.md

* Update .craft.yml

* Update resources in readme

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Ivan Dlugos <6349682+vaind@users.noreply.github.com>
Co-authored-by: Denis Andrašec <denrase@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: getsentry-bot <bot@sentry.io>
Co-authored-by: getsentry-bot <bot@getsentry.com>
Co-authored-by: Jonas Uekötter <ueman@users.noreply.github.com>
Co-authored-by: Stefano <stefano.siano@sentry.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
Co-authored-by: Stefano <stefano.siano91@gmail.com>
Co-authored-by: Oleg Magomedov <69794332+smart7even@users.noreply.github.com>
Co-authored-by: Igor Khramtsov <igor.khramtsov@proton.me>
  • Loading branch information
14 people authored Jan 31, 2024
1 parent 9b28718 commit d99a1e4
Show file tree
Hide file tree
Showing 326 changed files with 98,367 additions and 1,940 deletions.
6 changes: 6 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ targets:
dio:
file:
sqflite:
hive:
drift:
isar:
- name: github
- name: registry
sdks:
Expand All @@ -20,3 +23,6 @@ targets:
pub:sentry_dio:
pub:sentry_file:
pub:sentry_sqflite:
pub:sentry_drift:
pub:sentry_hive:
pub:sentry_isar:
48 changes: 48 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 2
updates:
- package-ecosystem: pub
directory: /dart
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: pub
directory: /flutter
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: pub
directory: /dio
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: pub
directory: /file
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: pub
directory: /logging
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: pub
directory: /sqflite
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
31 changes: 13 additions & 18 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # pin@0.11.0
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # pin@0.12.1
with:
access_token: ${{ github.token }}

analyze:
name: Format, fix & analyze Code
if: ${{ !startsWith(github.ref, 'refs/heads/release/') }}
runs-on: ubuntu-latest
timeout-minutes: 20
defaults:
run:
working-directory: ${{ inputs.package }}
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b # pin@v1
if: ${{ inputs.sdk == 'dart' }}
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # pin@v2.10.0
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # pin@v2.12.0
if: ${{ inputs.sdk == 'flutter' }}

- run: ${{ inputs.sdk }} pub get

- run: dart format .

- run: dart fix --apply

# actions/checkout fetches only a single commit in a detached HEAD state. Therefore
# we need to pass the current branch, otherwise we can't commit the changes.
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
- run: ../scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
if: env.GITHUB_HEAD_REF != null

- run: dart format --set-exit-if-changed ./

- name: dart analyze
uses: invertase/github-action-dart-analyzer@cdd8652b05bf7ed08ffce30f425436780f869f13 # pin@v1
uses: invertase/github-action-dart-analyzer@1cda5922c6369263b1c7e2fbe281f69704f4d63e # pin@v2.0.0
with:
annotate: true
fatal-infos: true
Expand All @@ -69,7 +59,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Apply dependency override
if: ${{ inputs.package == 'flutter' }}
working-directory: ${{ inputs.package }}
run: |
sed -i.bak 's|sentry:.*|sentry:\n path: /github/workspace/dart|g' pubspec.yaml
- uses: axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2 # pin@v3
id: analysis
with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ on:
- main
- release/**
pull_request:
paths-ignore:
- 'logging/**'
- 'dio/**'
- 'file/**'
- 'sqflite/**'
paths:
- "!**/*.md"
- "!**/class-diagram.svg"
- ".github/workflows/dart.yml"
- "dart/**"

jobs:
cancel-previous-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # pin@0.11.0
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # pin@0.12.1
with:
access_token: ${{ github.token }}

Expand All @@ -39,10 +39,10 @@ jobs:
- os: macos-latest
sdk: beta
steps:
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b # pin@v1
with:
sdk: ${{ matrix.sdk }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Test (VM and browser)
run: |
Expand All @@ -68,16 +68,16 @@ jobs:
dart pub get
webdev build
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # pin@v3
- uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # pin@v3
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
name: sentry
files: ./dart/coverage/lcov.info

- uses: VeryGoodOpenSource/very_good_coverage@84e5b54ab888644554e5573dca87d7f76dec9fb3 # pin@v2.0.0
- uses: VeryGoodOpenSource/very_good_coverage@3b475421464c564c0714d92ce02742bd81fa9eda # pin@v2.2.0
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
path: './dart/coverage/lcov.info'
path: "./dart/coverage/lcov.info"
min_coverage: 85

analyze:
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/diagrams.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: diagrams
on:
workflow_dispatch:

jobs:
diagrams:
runs-on: ubuntu-latest
name: "Create class diagrams of all packages"
steps:
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b # pin@v1
with:
sdk: stable

- uses: actions/checkout@v4

- name: dependencies
run: |
dart pub global activate lakos
sudo apt update
sudo apt install graphviz
- name: dart
working-directory: ./dart
run: lakos . -i "{test/**,example/**,example_web/**}" | dot -Tsvg -o class-diagram.svg

- name: flutter
working-directory: ./flutter
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: dio
working-directory: ./dio
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: file
working-directory: ./file
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: sqflite
working-directory: ./sqflite
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: logging
working-directory: ./logging
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: hive
working-directory: ./hive
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: isar
working-directory: ./isar
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

# Source: https://stackoverflow.com/a/58035262
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

# actions/checkout fetches only a single commit in a detached HEAD state. Therefore
# we need to pass the current branch, otherwise we can't commit the changes.
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
- name: Commit & push
run: ./scripts/commit-code.sh ${{ steps.extract_branch.outputs.branch }} "Update class diagrams"
25 changes: 13 additions & 12 deletions .github/workflows/dio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ on:
- main
- release/**
pull_request:
paths-ignore:
- 'logging/**'
- 'flutter/**'
- 'file/**'
- 'sqflite/**'
paths:
- "!**/*.md"
- "!**/class-diagram.svg"
- ".github/workflows/dio.yml"
- "dart/**"
- "dio/**"

jobs:
cancel-previous-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # pin@0.11.0
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # pin@0.12.1
with:
access_token: ${{ github.token }}

Expand All @@ -34,15 +35,15 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
sdk: [stable, beta]
exclude:
- os: windows-latest
- os: windows-latest
sdk: beta
- os: macos-latest
sdk: beta
steps:
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b # pin@v1
with:
sdk: ${{ matrix.sdk }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Test (VM and browser)
run: |
Expand All @@ -51,16 +52,16 @@ jobs:
dart test -p vm --coverage=coverage --test-randomize-ordering-seed=random --chain-stack-traces
dart pub run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # pin@v3
- uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # pin@v3
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
name: sentry_dio
files: ./dio/coverage/lcov.info

- uses: VeryGoodOpenSource/very_good_coverage@84e5b54ab888644554e5573dca87d7f76dec9fb3 # pin@v2.0.0
- uses: VeryGoodOpenSource/very_good_coverage@3b475421464c564c0714d92ce02742bd81fa9eda # pin@v2.2.0
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
path: './dio/coverage/lcov.info'
path: "./dio/coverage/lcov.info"
min_coverage: 81

analyze:
Expand Down
Loading

0 comments on commit d99a1e4

Please sign in to comment.