Skip to content

Commit c362892

Browse files
authored
Merge pull request #120 from bugsnag/releases/v1.7.0
Release v1.7.0
2 parents 335cf2c + 4f72907 commit c362892

File tree

10 files changed

+47
-24
lines changed

10 files changed

+47
-24
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
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

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.0
1+
1.7.0

example/bugsnag_performance_example/android/app/build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (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-
2830
android {
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 {

example/bugsnag_performance_example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
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
}

example/bugsnag_performance_example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=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
Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
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"

example/bugsnag_performance_example/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
3534
dev_dependencies:
3635
flutter_test:
3736
sdk: flutter

packages/bugsnag_flutter_performance/lib/src/configuration.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'package:flutter/foundation.dart';
2+
13
class 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;

packages/bugsnag_flutter_performance/lib/src/extensions/resource_attributes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

packages/bugsnag_flutter_performance/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: bugsnag_flutter_performance
22
description: BugSnag performance monitoring tool for Flutter apps
3-
version: 1.6.0
3+
version: 1.7.0
44
homepage: https://www.bugsnag.com/
55
documentation: https://docs.bugsnag.com/performance/flutter/
66
repository: https://github.com/bugsnag/bugsnag-flutter-performance

0 commit comments

Comments
 (0)