From dcb1f6084242a7b4b8e4edd4b180a42ad7f595ca Mon Sep 17 00:00:00 2001 From: ijunaid Date: Fri, 6 Aug 2021 15:22:25 +0500 Subject: [PATCH] =?UTF-8?q?=E2=80=94=20Updated=20underlying=20android=20SD?= =?UTF-8?q?K=20to=2020.11.9=20(#39)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit — Updated SDK version to 20.11.2 for new release — Null-safety fixes for StackTrace in crash reporting functions --- CHANGELOG.md | 5 +++++ android/build.gradle | 2 +- .../ly/count/dart/countly_flutter/CountlyFlutterPlugin.java | 2 +- example/android/app/build.gradle | 3 +-- example/ios/Podfile.lock | 4 ++-- ios/Classes/CountlyFlutterPlugin.m | 2 +- ios/countly_flutter.podspec | 2 +- lib/countly_flutter.dart | 6 +++--- pubspec.yaml | 2 +- 9 files changed, 16 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89c75441..afdd1059 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 20.11.4 +* Moving a push related broadcast receiver declaration to the manifest to comply with 'PendingIntent' checks +* Updated underlying android SDK to 20.11.9 +* Underlying iOS SDK version is 20.11.1 + ## 20.11.3 * Migrated to null safety. * Updated Flutter SDK constraint to >= 2.0.0. diff --git a/android/build.gradle b/android/build.gradle index e8dcf8a3..40295e5d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -36,6 +36,6 @@ android { } dependencies { - implementation 'ly.count.android:sdk:20.11.8' + implementation 'ly.count.android:sdk:20.11.9' implementation 'com.google.firebase:firebase-messaging:20.2.1' } diff --git a/android/src/main/java/ly/count/dart/countly_flutter/CountlyFlutterPlugin.java b/android/src/main/java/ly/count/dart/countly_flutter/CountlyFlutterPlugin.java index fbc63c72..8ca14380 100644 --- a/android/src/main/java/ly/count/dart/countly_flutter/CountlyFlutterPlugin.java +++ b/android/src/main/java/ly/count/dart/countly_flutter/CountlyFlutterPlugin.java @@ -60,7 +60,7 @@ public class CountlyFlutterPlugin implements MethodCallHandler, FlutterPlugin, ActivityAware, DefaultLifecycleObserver { private static final String TAG = "CountlyFlutterPlugin"; - private String COUNTLY_FLUTTER_SDK_VERSION_STRING = "20.11.3"; + private String COUNTLY_FLUTTER_SDK_VERSION_STRING = "20.11.4"; private String COUNTLY_FLUTTER_SDK_NAME = "dart-flutterb-android"; /** * Plugin registration. diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 67b9408f..6d4ae590 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -59,8 +59,7 @@ dependencies { testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' - - implementation 'ly.count.android:sdk:20.11.3' + implementation 'ly.count.android:sdk:20.11.9' implementation 'com.google.firebase:firebase-messaging:20.2.1' } apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 68baeea3..254abac5 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - countly_flutter (20.11.3): + - countly_flutter (20.11.4): - Flutter - Flutter (1.0.0) @@ -14,7 +14,7 @@ EXTERNAL SOURCES: :path: Flutter SPEC CHECKSUMS: - countly_flutter: 88db272af15f5cb35c3b2211f7cea6fc70b1c221 + countly_flutter: 38419412e193a1faa5babeb5d28a63fda260687d Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c diff --git a/ios/Classes/CountlyFlutterPlugin.m b/ios/Classes/CountlyFlutterPlugin.m index 994d1078..63f47e2d 100644 --- a/ios/Classes/CountlyFlutterPlugin.m +++ b/ios/Classes/CountlyFlutterPlugin.m @@ -15,7 +15,7 @@ @interface CountlyFeedbackWidget () + (CountlyFeedbackWidget *)createWithDictionary:(NSDictionary *)dictionary; @end -NSString* const kCountlyFlutterSDKVersion = @"20.11.3"; +NSString* const kCountlyFlutterSDKVersion = @"20.11.4"; NSString* const kCountlyFlutterSDKName = @"dart-flutterb-ios"; FlutterResult notificationListener = nil; diff --git a/ios/countly_flutter.podspec b/ios/countly_flutter.podspec index 9f6460ec..9b5b032d 100644 --- a/ios/countly_flutter.podspec +++ b/ios/countly_flutter.podspec @@ -3,7 +3,7 @@ # Pod::Spec.new do |s| s.name = 'countly_flutter' - s.version = '20.11.3' + s.version = '20.11.4' s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.' s.homepage = 'https://github.com/Countly/countly-sdk-flutter-bridge' s.social_media_url = 'https://twitter.com/gocountly' diff --git a/lib/countly_flutter.dart b/lib/countly_flutter.dart index 044e976c..9e6bf3b5 100644 --- a/lib/countly_flutter.dart +++ b/lib/countly_flutter.dart @@ -1183,7 +1183,7 @@ class Countly { /// [Map segmentation] - allows to add optional segmentation static Future logExceptionEx(Exception exception, bool nonfatal, {StackTrace? stacktrace, Map? segmentation}) async { - stacktrace ??= StackTrace.current ?? StackTrace.fromString(''); + stacktrace ??= StackTrace.current; final result = logException( '${exception.toString()}\n\n$stacktrace', nonfatal, segmentation); return result; @@ -1200,7 +1200,7 @@ class Countly { /// [Map segmentation] - allows to add optional segmentation static Future logExceptionManual(String message, bool nonfatal, {StackTrace? stacktrace, Map? segmentation}) async { - stacktrace ??= StackTrace.current ?? StackTrace.fromString(''); + stacktrace ??= StackTrace.current; final result = logException('$message\n\n$stacktrace', nonfatal, segmentation); return result; @@ -1218,7 +1218,7 @@ class Countly { } unawaited( - _internalRecordError(details.exceptionAsString(), details.stack!)); + _internalRecordError(details.exceptionAsString(), details.stack)); } /// Callback to catch and report Dart errors, [enableCrashReporting()] must call before [init] to make it work. diff --git a/pubspec.yaml b/pubspec.yaml index 95804e05..ee66a600 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: countly_flutter description: Countly is an innovative, real-time, open source mobile analytics and push notifications platform. -version: 20.11.3 +version: 20.11.4 homepage: https://support.count.ly/hc/en-us/articles/360037944212-Flutter environment: