diff --git a/.github/workflows/flutter.analyze-test.action.yaml b/.github/workflows/flutter.analyze-test.action.yaml index da0ead3d..25391f2d 100644 --- a/.github/workflows/flutter.analyze-test.action.yaml +++ b/.github/workflows/flutter.analyze-test.action.yaml @@ -1,63 +1,63 @@ -name: Flutter - Analyze & Test - -on: - workflow_call: - inputs: - flutter_version: - description: 'The Flutter used (ex: 2.5.1)' - required: true - type: string - secrets: - passphrase: - description: 'The passphrase to decrypt the configuration' - required: true - - -jobs: - analyze: - name: 'Analyze' - runs-on: ubuntu-latest - steps: - - name: 'Checkout source code' - uses: actions/checkout@v3 - - name: 'Setup flutter action' - uses: subosito/flutter-action@v2.10.0 - with: - flutter-version: ${{ inputs.flutter_version }} - - name: 'Flutter analyze' - run: flutter analyze - format: - name: 'Format' - runs-on: ubuntu-latest - steps: - - name: 'Checkout source code' - uses: actions/checkout@v3 - - name: 'Setup flutter action' - uses: subosito/flutter-action@v2.10.0 - with: - flutter-version: ${{ inputs.flutter_version }} - - name: 'Flutter format' - run: flutter format lib --set-exit-if-changed - test: - name: 'Test' - runs-on: ubuntu-latest - steps: - - name: 'Checkout source code' - uses: actions/checkout@v3 - - name: 'Decrypt secret configuration' - run: ./.github/scripts/decrypt_secret.sh - env: - PASSPHRASE: ${{ secrets.passphrase }} - - name: 'Check secret configuration' - run: ./.github/scripts/check_secrets_decryption.sh - - name: 'Setup flutter action' - uses: subosito/flutter-action@v2.10.0 - with: - flutter-version: ${{ inputs.flutter_version }} - - name: 'Flutter test (with coverage)' - run: flutter test --coverage --test-randomize-ordering-seed random - - name: 'Upload coverage report' - uses: codecov/codecov-action@v3.1.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} +name: Flutter - Analyze & Test + +on: + workflow_call: + inputs: + flutter_version: + description: 'The Flutter used (ex: 2.5.1)' + required: true + type: string + secrets: + passphrase: + description: 'The passphrase to decrypt the configuration' + required: true + + +jobs: + analyze: + name: 'Analyze' + runs-on: ubuntu-latest + steps: + - name: 'Checkout source code' + uses: actions/checkout@v3 + - name: 'Setup flutter action' + uses: subosito/flutter-action@v2.10.0 + with: + flutter-version: ${{ inputs.flutter_version }} + - name: 'Flutter analyze' + run: flutter analyze + format: + name: 'Format' + runs-on: ubuntu-latest + steps: + - name: 'Checkout source code' + uses: actions/checkout@v3 + - name: 'Setup flutter action' + uses: subosito/flutter-action@v2.10.0 + with: + flutter-version: ${{ inputs.flutter_version }} + - name: 'Flutter format' + run: dart format lib --set-exit-if-changed + test: + name: 'Test' + runs-on: ubuntu-latest + steps: + - name: 'Checkout source code' + uses: actions/checkout@v3 + - name: 'Decrypt secret configuration' + run: ./.github/scripts/decrypt_secret.sh + env: + PASSPHRASE: ${{ secrets.passphrase }} + - name: 'Check secret configuration' + run: ./.github/scripts/check_secrets_decryption.sh + - name: 'Setup flutter action' + uses: subosito/flutter-action@v2.10.0 + with: + flutter-version: ${{ inputs.flutter_version }} + - name: 'Flutter test (with coverage)' + run: flutter test --coverage --test-randomize-ordering-seed random + - name: 'Upload coverage report' + uses: codecov/codecov-action@v3.1.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} directory: ./coverage/ \ No newline at end of file diff --git a/lib/bloc/scroll_status/scroll_status_bloc.dart b/lib/bloc/scroll_status/scroll_status_bloc.dart index 27fb2b50..035a871b 100644 --- a/lib/bloc/scroll_status/scroll_status_bloc.dart +++ b/lib/bloc/scroll_status/scroll_status_bloc.dart @@ -25,10 +25,6 @@ class ScrollStatusBloc extends Bloc { ); } - - - - Future _onScrollChanged( ScrollStatusChanged event, Emitter emit) async { emit( diff --git a/lib/main.dart b/lib/main.dart index ce277661..d322d42b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -18,7 +18,7 @@ void main() async { ); MobileAds.instance.initialize(); - //Bloc.observer = SimpleBlocObserver(); + Bloc.observer = SimpleBlocObserver(); runApp( Chabo(