This file contains hidden or 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
| image: cirrusci/flutter:latest | |
| pipelines: | |
| default: | |
| - step: | |
| script: | |
| - flutter test test |
This file contains hidden or 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
| <?php | |
| // Usgae | |
| // test that posts api return a 15 post/page paginated response. | |
| $this->get('api/posts')->assertPaginated(15); | |
| /** | |
| * If you use Laravel API resources and want test if an endpoint | |
| * is paginated use can use: $this->get('...')->assertPaginated(); | |
| * |
This file contains hidden or 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
| test( | |
| 'should get invaled data from login use case on error data', | |
| () async { | |
| mockPost( | |
| url: Constant.api + "login", | |
| response: fixture('login', "failed.json"), | |
| status: 422, | |
| ); | |
| var authBloc = sl<AuthBloc>(); |
This file contains hidden or 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 'dart:convert'; | |
| import 'package:equatable/equatable.dart'; | |
| import 'package:iStoria/core/models/links.dart'; | |
| import 'package:iStoria/core/models/meta.dart'; | |
| import 'package:iStoria/core/models/response_converter.dart'; | |
| import 'package:json_annotation/json_annotation.dart'; | |
| part 'list_response.g.dart'; |
This file contains hidden or 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
| echo "Building flutter Android release" | |
| flutter build apk --release -t lib/main_staging.dart --flavor staging | |
| echo "Distribut Android release" | |
| firebase appdistribution:distribute \ | |
| ./build/app/outputs/flutter-apk/app-staging-release.apk \ | |
| --app 1:612834649949:android:b8f54d1cdb7c3f611caab4 \ | |
| --release-notes-file ./release_notes.txt \ | |
| --groups="internal-testers" |
This file contains hidden or 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
| # Easily change laravel routes from strings to static class references | |
| 1. Open your route file in your prefered IDE | |
| 2. Find and replace using regex | |
| 3. Find \'([A-Za-z]*)\@([A-Za-z]*)\' | |
| 4. Replace with [App\\Http\\Controllers\\$1::class,'$2'] | |
| 5. Find \'([A-Za-z]*Controller)\' | |
| 6. Replace with App\\Http\\Controllers\\$1::class | |
| 5. Done! |
OlderNewer