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:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
| void main() => runApp(const ProviderScope(child: MyApp())); | |
| final userProvider = StateProvider<int>((ref) => 1); | |
| final controllerProvider = StateNotifierProvider<ControllerNotifier, int>( |
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:io'; | |
| import 'dart:math'; | |
| void main() { | |
| final titles = List.generate(12, (i) => '$i'); | |
| // Generate data | |
| final data = [ | |
| titles, | |
| for (int i = 0; i < 200000; i++) |
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
| name: ci | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: |
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
| workflows: | |
| app-preview: | |
| name: App Preview | |
| # All available instance types: | |
| # https://docs.codemagic.io/yaml/yaml-getting-started/#instance-type | |
| instance_type: mac_pro | |
| max_build_duration: 75 | |
| environment: | |
| groups: | |
| - github |
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
| publishing: | |
| scripts: | |
| - name: Authenticate GitHub CLI | |
| script: | | |
| echo $GITHUB_PAT > gh_credentials.txt | |
| gh auth login --with-token < gh_credentials.txt | |
| rm gh_credentials.txt | |
| - name: Post builds to GitHub PR | |
| script: | | |
| export APK_LINK=$(echo $FCI_ARTIFACT_LINKS | jq '.[1] | .url') |
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
| environment: | |
| groups: | |
| - ios-publishing | |
| - certificate_credentials | |
| vars: | |
| BUNDLE_ID: fun.gatch.v2mvp | |
| ... | |
| scripts: | |
| ... | |
| - name: iOS Code signing |
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
| scripts: | |
| ... | |
| - name: Build APK | |
| script: flutter build apk --profile | |
| # Save the path to the builds, so the GitHub CLI can access the build files. | |
| artifacts: | |
| - build/**/outputs/apk/**/*.apk |
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
| workflows: | |
| app-preview: | |
| name: App Preview | |
| # All available instance types: | |
| # https://docs.codemagic.io/yaml/yaml-getting-started/#instance-type | |
| instance_type: mac_pro | |
| max_build_duration: 75 | |
| environment: | |
| flutter: v2.8.1 | |
| when: |
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
| workflows: | |
| app-preview: | |
| name: App Preview | |
| # All available instance types: | |
| # https://docs.codemagic.io/yaml/yaml-getting-started/#instance-type | |
| instance_type: mac_pro | |
| max_build_duration: 75 | |
| environment: | |
| groups: | |
| - github |
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
| # Note: iOS app previews are only available with Codemagic teams. | |
| # IPA needs to be signed. Docs for signing: https://docs.codemagic.io/yaml-code-signing/signing-ios/ | |
| # | |
| # You need to add your GitHub PAT as environment variable to Codemaigc. | |
| # Docs to create PAT: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token | |
| workflows: | |
| app-preview: | |
| name: App Preview | |
| instance_type: mac_pro |