Skip to content

Commit ca7f531

Browse files
github-actions[bot]web-flowbuenaflor
authored
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 <[email protected]> Co-authored-by: GIancarlo Buenaflor <[email protected]>
1 parent bde5f6b commit ca7f531

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
- APM for isar ([#1726](https://github.com/getsentry/sentry-dart/pull/1726))
1212
- Starting with Flutter 3.16, Sentry adds the [`appFlavor`](https://api.flutter.dev/flutter/services/appFlavor-constant.html) to the `flutter_context` ([#1799](https://github.com/getsentry/sentry-dart/pull/1799))
1313

14+
### Dependencies
15+
16+
- Bump Android SDK from v7.0.0 to v7.1.0 ([#1788](https://github.com/getsentry/sentry-dart/pull/1788))
17+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#710)
18+
- [diff](https://github.com/getsentry/sentry-java/compare/7.0.0...7.1.0)
19+
1420
## 7.14.0
1521

1622
- Add option to opt out of fatal level for automatically collected errors ([#1738](https://github.com/getsentry/sentry-dart/pull/1738))

flutter/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ android {
6060
}
6161

6262
dependencies {
63-
api 'io.sentry:sentry-android:7.0.0'
63+
api 'io.sentry:sentry-android:7.1.0'
6464
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
6565

6666
// Required -- JUnit 4 framework

flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ import io.sentry.SentryEvent
1919
import io.sentry.SentryLevel
2020
import io.sentry.SentryOptions
2121
import io.sentry.android.core.ActivityFramesTracker
22-
import io.sentry.android.core.AppStartState
2322
import io.sentry.android.core.BuildConfig.VERSION_NAME
2423
import io.sentry.android.core.LoadClass
2524
import io.sentry.android.core.SentryAndroid
2625
import io.sentry.android.core.SentryAndroidOptions
26+
import io.sentry.android.core.performance.AppStartMetrics
2727
import io.sentry.protocol.DebugImage
2828
import io.sentry.protocol.SdkVersion
2929
import io.sentry.protocol.SentryId
@@ -140,8 +140,9 @@ class SentryFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAware {
140140
result.success(null)
141141
return
142142
}
143-
val appStartTime = AppStartState.getInstance().appStartTime
144-
val isColdStart = AppStartState.getInstance().isColdStart
143+
144+
val appStartTime = AppStartMetrics.getInstance().appStartTimeSpan.startTimestamp
145+
val isColdStart = AppStartMetrics.getInstance().appStartType == AppStartMetrics.AppStartType.COLD
145146

146147
if (appStartTime == null) {
147148
Log.w("Sentry", "App start won't be sent due to missing appStartTime")

0 commit comments

Comments
 (0)