diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f30c0b3..8651388 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,111 +11,111 @@ jobs: name: Flutter version ${{ matrix.flutter_version }} (Android) strategy: matrix: - flutter_version: ['3.0.0'] + flutter_version: ["3.3.0"] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: '11.x' - - uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 - with: - flutter-version: ${{ matrix.flutter_version }} - - name: Cache Dart and Gradle packages - uses: actions/cache@v2 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - ${{ env.PUB_CACHE }} - key: ${{ runner.os }}-deps-${{ matrix.flutter_version }}-${{ hashFiles('**/pubspec.yaml', '**/pubspec.lock', '**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-deps-${{ matrix.flutter_version }}- - - name: Enable pana - run: flutter pub global activate pana - - name: Show Flutter environment - run: | - which flutter - flutter doctor -v - - name: Build rollbar_dart - working-directory: ./rollbar_dart - run: | - flutter pub get && - ../build_tools/run-flutter-analyze ${{ matrix.flutter_version }} && - flutter pub run test - - name: Run rollbar_dart Pana checks - working-directory: ./rollbar_dart - run: ../build_tools/run-pana ${{ matrix.flutter_version }} - - name: Analyze rollbar_dart example - working-directory: ./rollbar_dart/example - run: | - flutter pub get && - ../../build_tools/run-flutter-analyze ${{ matrix.flutter_version }} - - name: Build rollbar_flutter - working-directory: ./rollbar_flutter - run: | - flutter pub get && - ../build_tools/run-flutter-analyze ${{ matrix.flutter_version }} && - flutter test - - name: Run rollbar_flutter Pana checks - working-directory: ./rollbar_flutter - run: ../build_tools/run-pana ${{ matrix.flutter_version }} - - name: Test rollbar_flutter Android plugin - working-directory: ./rollbar_flutter/android - run: | - export FLUTTER_SDK=$(../../build_tools/find-flutter-sdk) - echo $FLUTTER_SDK - ./gradlew check - - name: Build rollbar_flutter Android example - working-directory: ./rollbar_flutter/example/ - run: flutter build apk - - uses: actions/upload-artifact@v2 - if: ${{ always() }} - # We are not supposed to lock our dependencies in packages or plugins, so we'll - # at least keep track of which ones were used in the build, in case a test fails - # and we need to reproduce it locally with the same dependencies. - with: - name: dependencies_used_${{ matrix.flutter_version }} - path: | - rollbar_dart/pubspec.lock - rollbar_dart/example/pubspec.lock - rollbar_flutter/pubspec.lock - rollbar_flutter/example/pubspec.lock + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: "11.x" + - uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 + with: + flutter-version: ${{ matrix.flutter_version }} + - name: Cache Dart and Gradle packages + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + ${{ env.PUB_CACHE }} + key: ${{ runner.os }}-deps-${{ matrix.flutter_version }}-${{ hashFiles('**/pubspec.yaml', '**/pubspec.lock', '**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-deps-${{ matrix.flutter_version }}- + - name: Enable pana + run: flutter pub global activate pana + - name: Show Flutter environment + run: | + which flutter + flutter doctor -v + - name: Build rollbar_dart + working-directory: ./rollbar_dart + run: | + flutter pub get && + ../build_tools/run-flutter-analyze ${{ matrix.flutter_version }} && + flutter pub run test + - name: Run rollbar_dart Pana checks + working-directory: ./rollbar_dart + run: ../build_tools/run-pana ${{ matrix.flutter_version }} + - name: Analyze rollbar_dart example + working-directory: ./rollbar_dart/example + run: | + flutter pub get && + ../../build_tools/run-flutter-analyze ${{ matrix.flutter_version }} + - name: Build rollbar_flutter + working-directory: ./rollbar_flutter + run: | + flutter pub get && + ../build_tools/run-flutter-analyze ${{ matrix.flutter_version }} && + flutter test + - name: Run rollbar_flutter Pana checks + working-directory: ./rollbar_flutter + run: ../build_tools/run-pana ${{ matrix.flutter_version }} + - name: Test rollbar_flutter Android plugin + working-directory: ./rollbar_flutter/android + run: | + export FLUTTER_SDK=$(../../build_tools/find-flutter-sdk) + echo $FLUTTER_SDK + ./gradlew check + - name: Build rollbar_flutter Android example + working-directory: ./rollbar_flutter/example/ + run: flutter build apk + - uses: actions/upload-artifact@v2 + if: ${{ always() }} + # We are not supposed to lock our dependencies in packages or plugins, so we'll + # at least keep track of which ones were used in the build, in case a test fails + # and we need to reproduce it locally with the same dependencies. + with: + name: dependencies_used_${{ matrix.flutter_version }} + path: | + rollbar_dart/pubspec.lock + rollbar_dart/example/pubspec.lock + rollbar_flutter/pubspec.lock + rollbar_flutter/example/pubspec.lock build_ios: runs-on: macos-latest name: Flutter version ${{ matrix.flutter_version }} (iOS) strategy: matrix: - flutter_version: ['3.0.0'] + flutter_version: ["3.3.0"] steps: - - uses: actions/checkout@v2 - - uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 - with: - flutter-version: ${{ matrix.flutter_version }} - - name: Cache pub packages - uses: actions/cache@v2 - with: - path: | - ${{ env.PUB_CACHE }} - key: ${{ runner.os }}-pub-${{ matrix.flutter_version }}-${{ hashFiles('**/pubspec.yaml*') }} - restore-keys: | - ${{ runner.os }}-pub-${{ matrix.flutter_version }}- - - name: Show Flutter environment - run: | - which flutter - flutter doctor -v - - name: Build rollbar_flutter iOS example - working-directory: ./rollbar_flutter/example/ - run: flutter build ios --no-codesign - - uses: actions/upload-artifact@v2 - if: ${{ always() }} - # Save dependencies used - with: - name: dependencies_used_${{ matrix.flutter_version }} - path: | - rollbar_dart/pubspec.lock - rollbar_dart/example/pubspec.lock - rollbar_flutter/pubspec.lock - rollbar_flutter/example/pubspec.lock + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 + with: + flutter-version: ${{ matrix.flutter_version }} + - name: Cache pub packages + uses: actions/cache@v2 + with: + path: | + ${{ env.PUB_CACHE }} + key: ${{ runner.os }}-pub-${{ matrix.flutter_version }}-${{ hashFiles('**/pubspec.yaml*') }} + restore-keys: | + ${{ runner.os }}-pub-${{ matrix.flutter_version }}- + - name: Show Flutter environment + run: | + which flutter + flutter doctor -v + - name: Build rollbar_flutter iOS example + working-directory: ./rollbar_flutter/example/ + run: flutter build ios --no-codesign + - uses: actions/upload-artifact@v2 + if: ${{ always() }} + # Save dependencies used + with: + name: dependencies_used_${{ matrix.flutter_version }} + path: | + rollbar_dart/pubspec.lock + rollbar_dart/example/pubspec.lock + rollbar_flutter/pubspec.lock + rollbar_flutter/example/pubspec.lock diff --git a/rollbar_flutter/CHANGELOG.md b/rollbar_flutter/CHANGELOG.md index f66eaa2..257bef7 100644 --- a/rollbar_flutter/CHANGELOG.md +++ b/rollbar_flutter/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.2.0 +- Updated internal Rollbar Apple SDK from 1.x to 2.3.4. +- Using the newest version of the Rollbar Apple SDK will improve the ability for users to catch _native_ errors and fix them while using the Flutter SDK. +- Fixed compilation issue when running on iOS Simulator with Apple Silicon `arm64`. + ## 1.1.0 - A more robust Persistent HTTP Sender error handling strategy allows for better outcomes and recovery in case of server and client errors. - The Rollbar SDK will now produce more informative logs when dealing with network, HTTP client and/or server errors. diff --git a/rollbar_flutter/example/.gitignore b/rollbar_flutter/example/.gitignore index 11a3c9c..128fcf2 100644 --- a/rollbar_flutter/example/.gitignore +++ b/rollbar_flutter/example/.gitignore @@ -15,10 +15,8 @@ *.iws .idea/ -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ +# Cocoapods +ios/Podfile.lock # Flutter/Dart/Pub related **/doc/api/ diff --git a/rollbar_flutter/example/ios/Podfile.lock b/rollbar_flutter/example/ios/Podfile.lock deleted file mode 100644 index 0d94016..0000000 --- a/rollbar_flutter/example/ios/Podfile.lock +++ /dev/null @@ -1,73 +0,0 @@ -PODS: - - connectivity_plus (0.0.1): - - Flutter - - ReachabilitySwift - - Flutter (1.0.0) - - PLCrashReporter (1.10.2) - - ReachabilitySwift (5.0.0) - - rollbar_flutter (1.2.0): - - Flutter - - RollbarNotifier (~> 2.3.4) - - RollbarPLCrashReporter (~> 2.3.4) - - RollbarCommon (2.3.4) - - RollbarNotifier (2.3.4): - - RollbarCommon (~> 2.3.4) - - RollbarPLCrashReporter (2.3.4): - - PLCrashReporter (~> 1.10.1) - - RollbarCommon (~> 2.3.4) - - sqlite3 (3.39.3): - - sqlite3/common (= 3.39.3) - - sqlite3/common (3.39.3) - - sqlite3/fts5 (3.39.3): - - sqlite3/common - - sqlite3/perf-threadsafe (3.39.3): - - sqlite3/common - - sqlite3/rtree (3.39.3): - - sqlite3/common - - sqlite3_flutter_libs (0.0.1): - - Flutter - - sqlite3 (~> 3.39.3) - - sqlite3/fts5 - - sqlite3/perf-threadsafe - - sqlite3/rtree - -DEPENDENCIES: - - connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`) - - Flutter (from `Flutter`) - - rollbar_flutter (from `.symlinks/plugins/rollbar_flutter/ios`) - - sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/ios`) - -SPEC REPOS: - trunk: - - PLCrashReporter - - ReachabilitySwift - - RollbarCommon - - RollbarNotifier - - RollbarPLCrashReporter - - sqlite3 - -EXTERNAL SOURCES: - connectivity_plus: - :path: ".symlinks/plugins/connectivity_plus/ios" - Flutter: - :path: Flutter - rollbar_flutter: - :path: ".symlinks/plugins/rollbar_flutter/ios" - sqlite3_flutter_libs: - :path: ".symlinks/plugins/sqlite3_flutter_libs/ios" - -SPEC CHECKSUMS: - connectivity_plus: 413a8857dd5d9f1c399a39130850d02fe0feaf7e - Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 - PLCrashReporter: 2a08001f8e6a30abe405ee8f13d2753cfb5d682a - ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825 - rollbar_flutter: 9f339bf9f7dbc80265690846bd6b1cbb6e2e8c8b - RollbarCommon: 9a8198f5141aba65441c63e76b2ec4bc1a05cd2f - RollbarNotifier: 97b177c3493571f74cef5f793801c4a191f4d918 - RollbarPLCrashReporter: bf0e742bd2d799d4c79a83108e4e7bfd6107db87 - sqlite3: 50117e9e063a9ef2b865f7bdf2f2601e5d368e9a - sqlite3_flutter_libs: c6ab7f23670a98fef45a137159452004bc552168 - -PODFILE CHECKSUM: d2243213672c3c48aae53c36642ba411a6be7309 - -COCOAPODS: 1.11.3 diff --git a/rollbar_flutter/example/pubspec.yaml b/rollbar_flutter/example/pubspec.yaml index f8665d5..025bc10 100644 --- a/rollbar_flutter/example/pubspec.yaml +++ b/rollbar_flutter/example/pubspec.yaml @@ -2,16 +2,16 @@ name: rollbar_flutter_example description: Demonstrates how to use the rollbar_flutter plugin. version: 1.1.0 -publish_to: 'none' # Remove this line if you wish to publish to pub.dev +publish_to: "none" # Remove this line if you wish to publish to pub.dev environment: sdk: ">=2.17.0 <3.0.0" - flutter: '>=3.0.0' + flutter: ">=3.0.0" dependencies: flutter: sdk: flutter - rollbar_flutter: ^1.1.0 + rollbar_flutter: ^1.2.0 cupertino_icons: ^1.0.0 dependency_overrides: diff --git a/rollbar_flutter/pubspec.yaml b/rollbar_flutter/pubspec.yaml index 519d1da..34688d9 100644 --- a/rollbar_flutter/pubspec.yaml +++ b/rollbar_flutter/pubspec.yaml @@ -1,19 +1,19 @@ name: rollbar_flutter description: Connect your Flutter applications to Rollbar for error reporting. -version: 1.1.0 +version: 1.2.0 homepage: https://www.rollbar.com documentation: https://docs.rollbar.com/docs/flutter#flutter repository: https://github.com/rollbar/rollbar-flutter environment: - sdk: '>=2.17.0 <3.0.0' - flutter: '>=3.0.0' + sdk: ">=2.17.0 <3.0.0" + flutter: ">=3.0.0" dependencies: flutter: sdk: flutter meta: ^1.7.0 - connectivity_plus: ^2.3.6 + connectivity_plus: ^3.0.0 sqlite3_flutter_libs: ^0.5.9 rollbar_common: ^1.1.0 rollbar_dart: ^1.1.0