File tree Expand file tree Collapse file tree 10 files changed +47
-24
lines changed
example/bugsnag_performance_example
packages/bugsnag_flutter_performance Expand file tree Collapse file tree 10 files changed +47
-24
lines changed Original file line number Diff line number Diff line change 11Changelog
22=========
33
4+ ## 1.7.0 (2025-09-22)
5+
6+ ### Changes
7+
8+ * Reduced the batch timeout in dev builds to 5 seconds allowing for easier testing and debugging [ #119 ] ( https://github.com/bugsnag/bugsnag-flutter-performance/pull/119 )
9+
410## 1.6.0 (2025-09-10)
511
612### Changes
Original file line number Diff line number Diff line change 1- 1.6 .0
1+ 1.7 .0
Original file line number Diff line number Diff line change 1+ plugins {
2+ id " com.android.application"
3+ id " kotlin-android"
4+ id " dev.flutter.flutter-gradle-plugin"
5+ }
6+
17def localProperties = new Properties ()
28def localPropertiesFile = rootProject. file(' local.properties' )
39if (localPropertiesFile. exists()) {
@@ -21,22 +27,18 @@ if (flutterVersionName == null) {
2127 flutterVersionName = ' 1.0'
2228}
2329
24- apply plugin : ' com.android.application'
25- apply plugin : ' kotlin-android'
26- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27-
2830android {
2931 namespace " com.example.bugsnag_performance_example"
3032 compileSdkVersion flutter. compileSdkVersion
3133 ndkVersion flutter. ndkVersion
3234
3335 compileOptions {
34- sourceCompatibility JavaVersion . VERSION_1_8
35- targetCompatibility JavaVersion . VERSION_1_8
36+ sourceCompatibility JavaVersion . VERSION_11
37+ targetCompatibility JavaVersion . VERSION_11
3638 }
3739
3840 kotlinOptions {
39- jvmTarget = ' 1.8 '
41+ jvmTarget = ' 11 '
4042 }
4143
4244 sourceSets {
Original file line number Diff line number Diff line change 11buildscript {
2- ext. kotlin_version = ' 1.7 .10'
2+ ext. kotlin_version = ' 1.9 .10'
33 repositories {
44 google()
55 mavenCentral()
66 }
77
88 dependencies {
9- classpath ' com.android.tools.build:gradle:7.3 .0'
9+ classpath ' com.android.tools.build:gradle:8.6 .0'
1010 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1111 }
1212}
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22distributionPath =wrapper/dists
33zipStoreBase =GRADLE_USER_HOME
44zipStorePath =wrapper/dists
5- distributionUrl =https\://services.gradle.org/distributions/gradle-7.5 -all.zip
5+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.7 -all.zip
Original file line number Diff line number Diff line change 1- include ' :app'
1+ pluginManagement {
2+ def flutterSdkPath = {
3+ def properties = new Properties ()
4+ file(" local.properties" ). withInputStream { properties. load(it) }
5+ def flutterSdkPath = properties. getProperty(" flutter.sdk" )
6+ assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
7+ return flutterSdkPath
8+ }()
29
3- def localPropertiesFile = new File (rootProject. projectDir, " local.properties" )
4- def properties = new Properties ()
10+ includeBuild(" $flutterSdkPath /packages/flutter_tools/gradle" )
511
6- assert localPropertiesFile. exists()
7- localPropertiesFile. withReader(" UTF-8" ) { reader -> properties. load(reader) }
12+ repositories {
13+ google()
14+ mavenCentral()
15+ gradlePluginPortal()
16+ }
17+ }
818
9- def flutterSdkPath = properties. getProperty(" flutter.sdk" )
10- assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
11- apply from : " $flutterSdkPath /packages/flutter_tools/gradle/app_plugin_loader.gradle"
19+ plugins {
20+ id " dev.flutter.flutter-plugin-loader" version " 1.0.0"
21+ id " com.android.application" version " 8.6.0" apply false
22+ id " org.jetbrains.kotlin.android" version " 2.1.0" apply false
23+ }
24+
25+ include " :app"
Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ dependencies:
3030 # The following adds the Cupertino Icons font to your application.
3131 # Use with the CupertinoIcons class for iOS style icons.
3232 cupertino_icons : ^1.0.2
33- bugsnag_http_client :
34- path : ../../packages/bugsnag-flutter-http-client
33+ bugsnag_http_client : ^2.1.0
3534dev_dependencies :
3635 flutter_test :
3736 sdk : flutter
Original file line number Diff line number Diff line change 1+ import 'package:flutter/foundation.dart' ;
2+
13class BugsnagPerformanceConfiguration {
24 BugsnagPerformanceConfiguration ({
35 this .apiKey,
@@ -15,7 +17,7 @@ class BugsnagPerformanceConfiguration {
1517 String ? apiKey;
1618 Uri ? endpoint;
1719 int maxBatchSize = 100 ;
18- int maxBatchAge = 60 * 1000 ; // milliseconds
20+ int maxBatchAge = kDebugMode ? 5 * 1000 : 60 * 1000 ; // 5 seconds for debug, 60 seconds for release
1921 int probabilityRequestsPause = 30000 ;
2022 int probabilityValueExpireTime = 24 * 3600 * 1000 ;
2123 bool instrumentAppStart = true ;
Original file line number Diff line number Diff line change @@ -196,5 +196,5 @@ class ResourceAttributesProviderImpl implements ResourceAttributesProvider {
196196 return "Unknown" ;
197197 }
198198
199- static String get _getSDKVersion => '1.6 .0' ;
199+ static String get _getSDKVersion => '1.7 .0' ;
200200}
Original file line number Diff line number Diff line change 11name : bugsnag_flutter_performance
22description : BugSnag performance monitoring tool for Flutter apps
3- version : 1.6 .0
3+ version : 1.7 .0
44homepage : https://www.bugsnag.com/
55documentation : https://docs.bugsnag.com/performance/flutter/
66repository : https://github.com/bugsnag/bugsnag-flutter-performance
You can’t perform that action at this time.
0 commit comments