Skip to content

Commit

Permalink
Merge pull request #87 from rollbar/publish_1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matux authored Dec 8, 2022
2 parents 5c21086 + 595daa5 commit a6a59bd
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 182 deletions.
196 changes: 98 additions & 98 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions rollbar_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 2 additions & 4 deletions rollbar_flutter/example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
73 changes: 0 additions & 73 deletions rollbar_flutter/example/ios/Podfile.lock

This file was deleted.

6 changes: 3 additions & 3 deletions rollbar_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions rollbar_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a6a59bd

Please sign in to comment.