Skip to content

Commit b06962e

Browse files
committed
feat: updated android SDK versions, updated dependencies
1 parent 1f0d78b commit b06962e

File tree

8 files changed

+27
-25
lines changed

8 files changed

+27
-25
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.0
2+
* [BREAKING_CHANGE] Updated min android version to 22 and target/compile version to 34.
3+
* Updated dependencies version
4+
15
## 0.7.0
26
* [BREAKING_CHANGE] Update to Flutter 3 by Nico Mexis (https://github.com/ThexXTURBOXx).
37
* [BREAKING_CHANGE] Update device_info_plus and added android_id plugin by Nico Mexis (https://github.com/ThexXTURBOXx).

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28-
compileSdkVersion 33
28+
compileSdkVersion 34
2929

3030
sourceSets {
3131
main.java.srcDirs += 'src/main/kotlin'
3232
}
3333
defaultConfig {
34-
minSdkVersion 16
34+
minSdkVersion 22
3535
}
3636
}
3737

example/android/app/build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,22 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 33
29+
compileSdkVersion 34
3030

3131
sourceSets {
3232
main.java.srcDirs += 'src/main/kotlin'
3333
}
3434

3535
defaultConfig {
36-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3736
applicationId "com.jhomlala.catcher_example"
38-
minSdkVersion 16
39-
targetSdkVersion 33
37+
minSdkVersion 22
38+
targetSdkVersion 34
4039
versionCode flutterVersionCode.toInteger()
4140
versionName flutterVersionName
4241
}
4342

4443
buildTypes {
4544
release {
46-
// TODO: Add your own signing config for the release build.
47-
// Signing with the debug keys for now, so `flutter run --release` works.
4845
signingConfig signingConfigs.debug
4946
}
5047
}

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ subprojects {
2626
project.evaluationDependsOn(':app')
2727
}
2828

29-
task clean(type: Delete) {
29+
tasks.register("clean", Delete) {
3030
delete rootProject.buildDir
3131
}

example/lib/local_notification_example.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,14 @@ class NotificationReportMode extends ReportMode {
8585
void _initializeNotificationsPlugin() {
8686
_flutterLocalNotificationsPlugin = new FlutterLocalNotificationsPlugin();
8787
var initializationSettingsAndroid = new AndroidInitializationSettings(icon);
88-
var initializationSettingsIOS = new IOSInitializationSettings();
88+
var initializationSettingsIOS = new DarwinInitializationSettings();
8989
var initializationSettings = new InitializationSettings(
9090
android: initializationSettingsAndroid,
9191
iOS: initializationSettingsIOS,
9292
);
93+
9394
_flutterLocalNotificationsPlugin.initialize(initializationSettings,
94-
onSelectNotification: onSelectedNotification);
95+
onDidReceiveNotificationResponse: onSelectedNotification);
9596
}
9697

9798
@override
@@ -100,7 +101,7 @@ class NotificationReportMode extends ReportMode {
100101
_sendNotification();
101102
}
102103

103-
Future onSelectedNotification(String? payload) {
104+
Future onSelectedNotification(NotificationResponse response) {
104105
onActionConfirmed(_lastReport);
105106
return Future<int>.value(0);
106107
}
@@ -111,7 +112,7 @@ class NotificationReportMode extends ReportMode {
111112
channelDescription: channelDescription,
112113
importance: Importance.defaultImportance,
113114
priority: Priority.defaultPriority);
114-
var iOSPlatformChannelSpecifics = new IOSNotificationDetails();
115+
var iOSPlatformChannelSpecifics = new DarwinNotificationDetails();
115116
var platformChannelSpecifics = new NotificationDetails(
116117
android: androidPlatformChannelSpecifics,
117118
iOS: iOSPlatformChannelSpecifics);

example/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ dependencies:
2727
sdk: flutter
2828
path_provider: ^2.0.1
2929
path_provider_macos: ^2.0.0
30-
dio: ^4.0.0
31-
permission_handler: ^8.1.4+2
32-
flutter_local_notifications: ^9.0.0
30+
dio: ^5.3.3
31+
permission_handler: ^11.0.1
32+
flutter_local_notifications: ^16.1.0
3333

3434

3535
# The following adds the Cupertino Icons font to your application.

lib/handlers/http_handler.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class HttpHandler extends ReportHandler {
6565
}
6666

6767
final Options options = Options(
68-
sendTimeout: requestTimeout,
69-
receiveTimeout: responseTimeout,
68+
sendTimeout: Duration(milliseconds: requestTimeout),
69+
receiveTimeout: Duration(milliseconds: responseTimeout),
7070
headers: mutableHeaders,
7171
);
7272

pubspec.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ dependencies:
1414
flutter_web_plugins:
1515
sdk: flutter
1616
fluttertoast: ^8.0.8
17-
device_info_plus: ^7.0.0
18-
device_info_plus_platform_interface: ^6.0.0
19-
package_info_plus: ^3.0.0
20-
mailer: ^5.0.2
21-
dio: ^4.0.1
17+
device_info_plus: ^9.1.0
18+
device_info_plus_platform_interface: ^7.0.0
19+
package_info_plus: ^4.2.0
20+
mailer: ^6.0.1
21+
dio: ^5.3.3
2222
flutter_mailer: ^2.0.0
2323
logging: ^1.0.2
24-
sentry: ^6.1.0
24+
sentry: ^7.12.0
2525
universal_io: ^2.0.4
2626

2727
dev_dependencies:
28-
lint: ^1.7.2
28+
lint: ^2.1.2
2929

3030
flutter:
3131
plugin:

0 commit comments

Comments
 (0)