Skip to content

Commit 5a1d5b6

Browse files
authored
Merge pull request #183 from Instabug/feature/null-safety
[MOB-5590] Release/9.2.0-nullsafety.0
2 parents 14629fd + ee1df28 commit 5a1d5b6

32 files changed

+1622
-871
lines changed

.circleci/config.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ jobs:
4040
background: true
4141
- run:
4242
name: download flutter SDK
43-
command: if ! test -f "~/flutter_sdk.zip"; then curl -o ~/flutter_sdk.zip https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_1.20.4-stable.zip; fi
43+
command: if ! test -f "~/flutter_sdk.zip"; then curl -o ~/flutter_sdk.zip https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_2.2.3-stable.zip; fi
4444
- run:
4545
name: unzip flutter SDK
4646
command: unzip ~/flutter_sdk.zip -d ~
4747
- run: flutter doctor
4848
- run:
4949
name: Flutter build
50-
command: cd ..; flutter build aot
50+
command: cd ..; flutter build apk
5151
- run:
5252
name: Download Android Dependencies
5353
command: ./gradlew androidDependencies
@@ -86,7 +86,7 @@ jobs:
8686
command: sudo gem install cocoapods
8787
- run:
8888
name: download flutter SDK
89-
command: if ! test -f "~/flutter_sdk.zip"; then curl -o ~/flutter_sdk.zip https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_1.20.4-stable.zip; fi
89+
command: if ! test -f "~/flutter_sdk.zip"; then curl -o ~/flutter_sdk.zip https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_2.2.3-stable.zip; fi
9090
- run:
9191
name: unzip flutter SDK
9292
command: unzip ~/flutter_sdk.zip -d ~
@@ -98,9 +98,6 @@ jobs:
9898
- run:
9999
name: Install Pods
100100
command: cd ios && pod install --repo-update
101-
- run:
102-
name: Flutter build
103-
command: flutter build aot
104101
- run:
105102
name: Build and run tests
106103
command: cd ios && xcodebuild -allowProvisioningUpdates -workspace Runner.xcworkspace -scheme Runner -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12 Pro Max,OS=14.3' test | xcpretty

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
.pub/
3131
pubspec.lock
3232
build/
33+
coverage/
3334

3435
# Android related
3536
**/android/**/gradle-wrapper.jar

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v9.2.0-nullsafety.0 (2021-07-14)
2+
3+
* Adds null safety support.
4+
* Fixes a crash when Instabug.start API is called on Android without Platform check.
5+
* Changes all `void ... async` methods to `Future<void> ... async` so that callers can use `await`.
6+
17
## v9.1.9 (2021-05-11)
28

39
* Adds support for overriding the replies notification string values through `repliesNotificationTeamName`, `repliesNotificationReplyButton`, `repliesNotificationDismissButton`

Dangerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ if github.pr_body.length < 3 && git.lines_of_code > 10
88
end
99

1010
if !git.modified_files.include?("CHANGELOG.md") && !declared_trivial
11-
fail("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/Instabug/Instabug-Flutter/blob/master/CHANGELOG.md).", sticky: false)
11+
warn("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/Instabug/Instabug-Flutter/blob/master/CHANGELOG.md).", sticky: false)
1212
end

analysis_options.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ linter:
4848
- always_put_control_body_on_new_line
4949
# - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
5050
- always_require_non_null_named_parameters
51-
- always_specify_types
51+
# - always_specify_types
5252
- annotate_overrides
5353
# - avoid_annotating_with_dynamic # conflicts with always_specify_types
54-
- avoid_as
5554
# - avoid_bool_literals_in_conditional_expressions # not yet tested
5655
# - avoid_catches_without_on_clauses # we do this commonly
5756
# - avoid_catching_errors # we do this commonly

codecov.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ coverage:
88
informational: false
99

1010
codecov:
11-
require_ci_to_pass: false
11+
require_ci_to_pass: false
12+
13+
ignore:
14+
- "lib/models/"

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ EXTERNAL SOURCES:
2323
:path: ".symlinks/plugins/instabug_flutter/ios"
2424

2525
SPEC CHECKSUMS:
26-
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
26+
Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
2727
Instabug: 28838c071edc50e4f13800e6877645d3b328aab9
2828
instabug_flutter: 65794e9f82acebde599e56cc6a2e74a17b69410e
2929
OCMock: 5ea90566be239f179ba766fd9fbae5885040b992
3030

3131
PODFILE CHECKSUM: 082ec096394aa5e2e9254f7b7845847607911bda
3232

33-
COCOAPODS: 1.9.1
33+
COCOAPODS: 1.10.1

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@
607607
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
608608
CLANG_ENABLE_MODULES = YES;
609609
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
610+
DEVELOPMENT_TEAM = 56S6Q9SA8U;
610611
ENABLE_BITCODE = NO;
611612
FRAMEWORK_SEARCH_PATHS = (
612613
"$(inherited)",
@@ -621,7 +622,7 @@
621622
"$(inherited)",
622623
"$(PROJECT_DIR)/Flutter",
623624
);
624-
PRODUCT_BUNDLE_IDENTIFIER = com.example.InstabugSample;
625+
PRODUCT_BUNDLE_IDENTIFIER = com.instabug.InstabugSample;
625626
PRODUCT_NAME = "$(TARGET_NAME)";
626627
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
627628
SWIFT_VERSION = 5.0;
@@ -743,6 +744,7 @@
743744
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
744745
CLANG_ENABLE_MODULES = YES;
745746
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
747+
DEVELOPMENT_TEAM = 56S6Q9SA8U;
746748
ENABLE_BITCODE = NO;
747749
FRAMEWORK_SEARCH_PATHS = (
748750
"$(inherited)",
@@ -757,7 +759,7 @@
757759
"$(inherited)",
758760
"$(PROJECT_DIR)/Flutter",
759761
);
760-
PRODUCT_BUNDLE_IDENTIFIER = com.example.InstabugSample;
762+
PRODUCT_BUNDLE_IDENTIFIER = com.instabug.InstabugSample;
761763
PRODUCT_NAME = "$(TARGET_NAME)";
762764
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
763765
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -773,6 +775,7 @@
773775
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
774776
CLANG_ENABLE_MODULES = YES;
775777
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
778+
DEVELOPMENT_TEAM = 56S6Q9SA8U;
776779
ENABLE_BITCODE = NO;
777780
FRAMEWORK_SEARCH_PATHS = (
778781
"$(inherited)",
@@ -787,7 +790,7 @@
787790
"$(inherited)",
788791
"$(PROJECT_DIR)/Flutter",
789792
);
790-
PRODUCT_BUNDLE_IDENTIFIER = com.example.InstabugSample;
793+
PRODUCT_BUNDLE_IDENTIFIER = com.instabug.InstabugSample;
791794
PRODUCT_NAME = "$(TARGET_NAME)";
792795
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
793796
SWIFT_VERSION = 5.0;
@@ -808,7 +811,7 @@
808811
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
809812
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
810813
CODE_SIGN_STYLE = Automatic;
811-
DEVELOPMENT_TEAM = C3ZD2T892Z;
814+
DEVELOPMENT_TEAM = 56S6Q9SA8U;
812815
GCC_C_LANGUAGE_STANDARD = gnu11;
813816
INFOPLIST_FILE = InstabugSampleTests/Info.plist;
814817
IPHONEOS_DEPLOYMENT_TARGET = 14.3;
@@ -839,7 +842,7 @@
839842
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
840843
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
841844
CODE_SIGN_STYLE = Automatic;
842-
DEVELOPMENT_TEAM = C3ZD2T892Z;
845+
DEVELOPMENT_TEAM = 56S6Q9SA8U;
843846
GCC_C_LANGUAGE_STANDARD = gnu11;
844847
INFOPLIST_FILE = InstabugSampleTests/Info.plist;
845848
IPHONEOS_DEPLOYMENT_TARGET = 14.3;
@@ -869,7 +872,7 @@
869872
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
870873
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
871874
CODE_SIGN_STYLE = Automatic;
872-
DEVELOPMENT_TEAM = C3ZD2T892Z;
875+
DEVELOPMENT_TEAM = 56S6Q9SA8U;
873876
GCC_C_LANGUAGE_STANDARD = gnu11;
874877
INFOPLIST_FILE = InstabugSampleTests/Info.plist;
875878
IPHONEOS_DEPLOYMENT_TARGET = 14.3;
@@ -898,7 +901,7 @@
898901
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
899902
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
900903
CODE_SIGN_STYLE = Automatic;
901-
DEVELOPMENT_TEAM = C3ZD2T892Z;
904+
DEVELOPMENT_TEAM = 56S6Q9SA8U;
902905
GCC_C_LANGUAGE_STANDARD = gnu11;
903906
INFOPLIST_FILE = InstabugSampleUITests/Info.plist;
904907
IPHONEOS_DEPLOYMENT_TARGET = 14.3;
@@ -928,7 +931,7 @@
928931
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
929932
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
930933
CODE_SIGN_STYLE = Automatic;
931-
DEVELOPMENT_TEAM = C3ZD2T892Z;
934+
DEVELOPMENT_TEAM = 56S6Q9SA8U;
932935
GCC_C_LANGUAGE_STANDARD = gnu11;
933936
INFOPLIST_FILE = InstabugSampleUITests/Info.plist;
934937
IPHONEOS_DEPLOYMENT_TARGET = 14.3;
@@ -957,7 +960,7 @@
957960
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
958961
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
959962
CODE_SIGN_STYLE = Automatic;
960-
DEVELOPMENT_TEAM = C3ZD2T892Z;
963+
DEVELOPMENT_TEAM = 56S6Q9SA8U;
961964
GCC_C_LANGUAGE_STANDARD = gnu11;
962965
INFOPLIST_FILE = InstabugSampleUITests/Info.plist;
963966
IPHONEOS_DEPLOYMENT_TARGET = 14.3;

0 commit comments

Comments
 (0)