Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
⬆️ update dependencies
Browse files Browse the repository at this point in the history
- updated dependencies to the newest non-breaking version
- fixed android build compatibility issues
- fixed compatibility issues with Flutter 2.5
  • Loading branch information
jozsefsallai committed Sep 25, 2021
1 parent c355b75 commit dee0936
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 53 deletions.
3 changes: 1 addition & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,4 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
implementation 'com.onesignal:OneSignal:[3.11.2, 3.99.99]'
}
}
Empty file modified android/gradle/wrapper/gradle-wrapper.jar
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zip
6 changes: 3 additions & 3 deletions lib/services/push_notifications/push_notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class PushNotificationsService {
Future subscribeToPushNotifications() async {
bool permissionGranted = await this._getPermissionsState();

if (permissionGranted) {
if (!permissionGranted) {
throw new Exception(
'Tried to subscribe to push notifications without push notification permission');
}
Expand Down Expand Up @@ -162,10 +162,10 @@ class PushNotificationsService {
void _onSubscriptionChanged(OSSubscriptionStateChanges changes) {
OSSubscriptionState toState = changes.to;
OSSubscriptionState fromState = changes.from;
if (!fromState.subscribed && toState.subscribed) {
if (!fromState.isSubscribed && toState.isSubscribed) {
// User just subscribed for notifications
_onSubscribedToPushNotifications();
} else if (fromState.subscribed && !toState.subscribed) {
} else if (fromState.isSubscribed&& !toState.isSubscribed) {
// User just unsubscribed for notifications
_onUnsubscribedFromPushNotifications();
}
Expand Down
81 changes: 51 additions & 30 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.1"
version: "1.7.2"
archive:
dependency: transitive
description:
Expand All @@ -35,7 +35,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.8.1"
back_button_interceptor:
dependency: "direct main"
description:
Expand All @@ -56,7 +56,21 @@ packages:
name: cached_network_image
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
version: "3.1.0"
cached_network_image_platform_interface:
dependency: transitive
description:
name: cached_network_image_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
cached_network_image_web:
dependency: transitive
description:
name: cached_network_image_web
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
characters:
dependency: transitive
description:
Expand All @@ -70,7 +84,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
cli_util:
dependency: transitive
description:
Expand Down Expand Up @@ -127,6 +141,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
cross_file:
dependency: transitive
description:
name: cross_file
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.1+5"
crypto:
dependency: transitive
description:
Expand Down Expand Up @@ -252,21 +273,21 @@ packages:
name: flutter_colorpicker
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.4"
version: "0.6.0"
flutter_ffmpeg:
dependency: "direct main"
description:
name: flutter_ffmpeg
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.0"
version: "0.4.2"
flutter_image_compress:
dependency: "direct main"
description:
name: flutter_image_compress
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.1.0"
flutter_launcher_icons:
dependency: "direct dev"
description:
Expand All @@ -285,7 +306,7 @@ packages:
name: flutter_markdown
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.2"
version: "0.6.6"
flutter_pagewise:
dependency: "direct main"
description:
Expand All @@ -306,7 +327,7 @@ packages:
name: flutter_secure_storage
url: "https://pub.dartlang.org"
source: hosted
version: "4.2.0"
version: "4.2.1"
flutter_slidable:
dependency: "direct main"
description:
Expand Down Expand Up @@ -379,28 +400,28 @@ packages:
name: image_cropper
url: "https://pub.dartlang.org"
source: hosted
version: "1.4.0"
version: "1.4.1"
image_picker:
dependency: "direct main"
description:
name: image_picker
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.5+3"
version: "0.8.4+2"
image_picker_for_web:
dependency: transitive
description:
name: image_picker_for_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.1.3"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.4.1"
intercom_flutter:
dependency: "direct main"
description:
Expand Down Expand Up @@ -465,7 +486,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.7.0"
mime:
dependency: "direct main"
description:
Expand All @@ -486,7 +507,7 @@ packages:
name: onesignal_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
version: "3.2.3"
open_iconic_flutter:
dependency: "direct main"
description:
Expand Down Expand Up @@ -626,7 +647,7 @@ packages:
name: photo_view
url: "https://pub.dartlang.org"
source: hosted
version: "0.11.1"
version: "0.12.0"
pigment:
dependency: "direct main"
description:
Expand Down Expand Up @@ -689,7 +710,7 @@ packages:
name: rxdart
url: "https://pub.dartlang.org"
source: hosted
version: "0.27.1"
version: "0.27.2"
screen:
dependency: "direct main"
description:
Expand Down Expand Up @@ -759,7 +780,7 @@ packages:
name: shared_preferences
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.6"
version: "2.0.8"
shared_preferences_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -813,7 +834,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
sprintf:
dependency: "direct main"
description:
Expand Down Expand Up @@ -883,7 +904,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.4.2"
throttling:
dependency: "direct main"
description:
Expand All @@ -897,7 +918,7 @@ packages:
name: timeago
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.2"
version: "3.1.0"
tinycolor:
dependency: "direct main"
description:
Expand Down Expand Up @@ -939,7 +960,7 @@ packages:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.4"
version: "6.0.12"
url_launcher_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -1011,7 +1032,7 @@ packages:
name: video_thumbnail
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.3"
version: "0.4.3"
visibility_detector:
dependency: "direct main"
description:
Expand All @@ -1025,35 +1046,35 @@ packages:
name: wakelock
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.2"
version: "0.5.6"
wakelock_macos:
dependency: transitive
description:
name: wakelock_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0+1"
version: "0.4.0"
wakelock_platform_interface:
dependency: transitive
description:
name: wakelock_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.1+1"
version: "0.3.0"
wakelock_web:
dependency: transitive
description:
name: wakelock_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0+1"
version: "0.4.0"
wakelock_windows:
dependency: transitive
description:
name: wakelock_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
version: "0.2.0"
watcher:
dependency: transitive
description:
Expand Down Expand Up @@ -1090,5 +1111,5 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
34 changes: 17 additions & 17 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,60 +20,60 @@ dependencies:
html: ^0.15.0
expandable: ^5.0.1
uuid: ^3.0.4
flutter_image_compress: ^1.0.0
flutter_image_compress: ^1.1.0
inview_notifier_list:
git:
url: https://github.com/OkunaOrg/inview_notifier_list.git
ref: e52a3bb077dfb8815e6b7ac51f98ae1603ff26b2
connectivity: ^3.0.6
visibility_detector: ^0.2.0
http_retry: ^0.2.0
video_thumbnail: ^0.3.3
flutter_ffmpeg: ^0.4.0
video_thumbnail: ^0.4.3
flutter_ffmpeg: ^0.4.2
open_iconic_flutter: ^0.3.0
retry: ^3.1.0
shared_preferences: ^2.0.6
flutter_markdown: ^0.6.2
shared_preferences: ^2.0.8
flutter_markdown: ^0.6.6
file_picker: ^3.0.2+2
sentry_flutter: ^5.0.0
screen: ^0.0.5
back_button_interceptor: ^5.0.0
flutter_colorpicker: any
flutter_colorpicker: ^0.6.0
intercom_flutter: ^3.2.1
device_info: ^2.0.2
flutter_pagewise: ^2.0.1
tinycolor: ^1.0.2
onesignal_flutter: ^3.0.0
tinycolor: ^1.0.3
onesignal_flutter: ^3.2.3
flutter_advanced_networkimage:
git:
url: https://github.com/jozsefsallai/flutter_advanced_networkimage.git
ref: 0b2c9775f8ab375c47f812a459f276b9feb107b8
dcache: ^0.4.0
validators: ^3.0.0
url_launcher: ^6.0.4
url_launcher: ^6.0.12
uni_links: ^0.5.1
flutter_slidable: "^0.6.0"
flutter_cache_manager: ^3.1.0
cached_network_image: ^3.0.0
timeago: ^3.0.2
cached_network_image: ^3.1.0
timeago: ^3.1.0
public_suffix: ^3.0.0
pigment: ^1.0.4
photo_view: ^0.11.1
photo_view: ^0.12.0
flutter_svg: ^0.22.0
flutter_secure_storage: ^4.2.0
flutter_secure_storage: ^4.2.1
mime: ^1.0.0
http: ^0.13.3
throttling: ^1.0.0
wakelock: ^0.5.2
rxdart: ^0.27.1
wakelock: ^0.5.6
rxdart: ^0.27.2
video_player:
git:
url: https://github.com/jozsefsallai/flutter-plugins.git
ref: nullsafety
path: packages/video_player
sprintf: "^6.0.0"
image_picker: ^0.7.5+3
image_cropper: ^1.4.0
image_picker: ^0.8.4+2
image_cropper: ^1.4.1
shimmer: ^2.0.0
share_plus: ^2.1.4
path: ^1.8.0
Expand Down

0 comments on commit dee0936

Please sign in to comment.