This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include: package:effective_dart/analysis_options.yaml | |
analyzer: | |
errors: | |
missing_required_param: error | |
missing_return: error | |
exclude: | |
- "**/*.g.dart" | |
linter: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:dio/dio.dart'; | |
import 'package:sentry_flutter/sentry_flutter.dart'; | |
class SentryInterceptor extends InterceptorsWrapper { | |
@override | |
Future onResponse(Response response) { | |
Sentry.addBreadcrumb( | |
Breadcrumb( | |
type: 'http', | |
category: 'http', |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(base) rspls-mbp-5:j2objc-common-libs-e2e-test myUser$ ./run-test.sh libraryBuilds/org.apache.commons-commons-math3 | |
if [[ "$PWD" =~ libraryBuilds ]]; then | |
echo "Should be run from project root and not libraryBuilds directory" | |
exit 1 | |
fi | |
TEST_DIR=$1 | |
pushd $TEST_DIR | |
~/Documents/J2ObjC/j2objc-common-libs-e2e-test/libraryBuilds/org.apache.commons-commons-math3 ~/Documents/J2ObjC/j2objc-common-libs-e2e-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Drawing; | |
using System.Collections.Generic; | |
using CoreGraphics; | |
using CoreText; | |
using System.Collections.ObjectModel; | |
using System.Diagnostics; | |
using System.Security.Cryptography; | |
#if __UNIFIED__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *format = @"yyyy:MM:dd HH:mm:ss"; | |
NSString *dummyDateString = @"2014:09:10 01:34:10"; | |
NSString *desiredFormat = @"EEEE, MMMM dd, yyyy, hh:mm a"; | |
NSDateFormatter *df =[[NSDateFormatter alloc] init]; | |
[df setDateFormat:format]; | |
NSDate *currentDate = [df dateFromString:dummyDateString]; | |
[df setDateFormat:desiredFormat]; | |
NSString *finalDateString = [df stringFromDate:currentDate]; |