Skip to content

Commit

Permalink
feat: updated android SDK versions, updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jhomlala committed Nov 9, 2023
1 parent 1f0d78b commit b06962e
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 25 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.0
* [BREAKING_CHANGE] Updated min android version to 22 and target/compile version to 34.
* Updated dependencies version

## 0.7.0
* [BREAKING_CHANGE] Update to Flutter 3 by Nico Mexis (https://github.com/ThexXTURBOXx).
* [BREAKING_CHANGE] Update device_info_plus and added android_id plugin by Nico Mexis (https://github.com/ThexXTURBOXx).
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 33
compileSdkVersion 34

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 16
minSdkVersion 22
}
}

Expand Down
9 changes: 3 additions & 6 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,22 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 33
compileSdkVersion 34

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.jhomlala.catcher_example"
minSdkVersion 16
targetSdkVersion 33
minSdkVersion 22
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
9 changes: 5 additions & 4 deletions example/lib/local_notification_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,14 @@ class NotificationReportMode extends ReportMode {
void _initializeNotificationsPlugin() {
_flutterLocalNotificationsPlugin = new FlutterLocalNotificationsPlugin();
var initializationSettingsAndroid = new AndroidInitializationSettings(icon);
var initializationSettingsIOS = new IOSInitializationSettings();
var initializationSettingsIOS = new DarwinInitializationSettings();
var initializationSettings = new InitializationSettings(
android: initializationSettingsAndroid,
iOS: initializationSettingsIOS,
);

_flutterLocalNotificationsPlugin.initialize(initializationSettings,
onSelectNotification: onSelectedNotification);
onDidReceiveNotificationResponse: onSelectedNotification);
}

@override
Expand All @@ -100,7 +101,7 @@ class NotificationReportMode extends ReportMode {
_sendNotification();
}

Future onSelectedNotification(String? payload) {
Future onSelectedNotification(NotificationResponse response) {
onActionConfirmed(_lastReport);
return Future<int>.value(0);
}
Expand All @@ -111,7 +112,7 @@ class NotificationReportMode extends ReportMode {
channelDescription: channelDescription,
importance: Importance.defaultImportance,
priority: Priority.defaultPriority);
var iOSPlatformChannelSpecifics = new IOSNotificationDetails();
var iOSPlatformChannelSpecifics = new DarwinNotificationDetails();
var platformChannelSpecifics = new NotificationDetails(
android: androidPlatformChannelSpecifics,
iOS: iOSPlatformChannelSpecifics);
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ dependencies:
sdk: flutter
path_provider: ^2.0.1
path_provider_macos: ^2.0.0
dio: ^4.0.0
permission_handler: ^8.1.4+2
flutter_local_notifications: ^9.0.0
dio: ^5.3.3
permission_handler: ^11.0.1
flutter_local_notifications: ^16.1.0


# The following adds the Cupertino Icons font to your application.
Expand Down
4 changes: 2 additions & 2 deletions lib/handlers/http_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class HttpHandler extends ReportHandler {
}

final Options options = Options(
sendTimeout: requestTimeout,
receiveTimeout: responseTimeout,
sendTimeout: Duration(milliseconds: requestTimeout),
receiveTimeout: Duration(milliseconds: responseTimeout),
headers: mutableHeaders,
);

Expand Down
14 changes: 7 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ dependencies:
flutter_web_plugins:
sdk: flutter
fluttertoast: ^8.0.8
device_info_plus: ^7.0.0
device_info_plus_platform_interface: ^6.0.0
package_info_plus: ^3.0.0
mailer: ^5.0.2
dio: ^4.0.1
device_info_plus: ^9.1.0
device_info_plus_platform_interface: ^7.0.0
package_info_plus: ^4.2.0
mailer: ^6.0.1
dio: ^5.3.3
flutter_mailer: ^2.0.0
logging: ^1.0.2
sentry: ^6.1.0
sentry: ^7.12.0
universal_io: ^2.0.4

dev_dependencies:
lint: ^1.7.2
lint: ^2.1.2

flutter:
plugin:
Expand Down

0 comments on commit b06962e

Please sign in to comment.