Skip to content

Commit

Permalink
— Updated underlying android SDK to 20.11.9 (#39)
Browse files Browse the repository at this point in the history
— Updated SDK version to 20.11.2 for new release
— Null-safety fixes for StackTrace in crash reporting functions
  • Loading branch information
ijunaid authored Aug 6, 2021
1 parent fc3a95e commit dcb1f60
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- countly_flutter (20.11.3):
- countly_flutter (20.11.4):
- Flutter
- Flutter (1.0.0)

Expand All @@ -14,7 +14,7 @@ EXTERNAL SOURCES:
:path: Flutter

SPEC CHECKSUMS:
countly_flutter: 88db272af15f5cb35c3b2211f7cea6fc70b1c221
countly_flutter: 38419412e193a1faa5babeb5d28a63fda260687d
Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c

PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/CountlyFlutterPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ios/countly_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions lib/countly_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ class Countly {
/// [Map<String, Object> segmentation] - allows to add optional segmentation
static Future<String?> logExceptionEx(Exception exception, bool nonfatal,
{StackTrace? stacktrace, Map<String, Object>? segmentation}) async {
stacktrace ??= StackTrace.current ?? StackTrace.fromString('');
stacktrace ??= StackTrace.current;
final result = logException(
'${exception.toString()}\n\n$stacktrace', nonfatal, segmentation);
return result;
Expand All @@ -1200,7 +1200,7 @@ class Countly {
/// [Map<String, Object> segmentation] - allows to add optional segmentation
static Future<String?> logExceptionManual(String message, bool nonfatal,
{StackTrace? stacktrace, Map<String, Object>? segmentation}) async {
stacktrace ??= StackTrace.current ?? StackTrace.fromString('');
stacktrace ??= StackTrace.current;
final result =
logException('$message\n\n$stacktrace', nonfatal, segmentation);
return result;
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit dcb1f60

Please sign in to comment.