kasy-cli 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/bin/kasy.js +529 -0
- package/docs/cli-reference.md +251 -0
- package/lib/commands/add.js +777 -0
- package/lib/commands/check.js +240 -0
- package/lib/commands/codemagic.js +161 -0
- package/lib/commands/deploy.js +257 -0
- package/lib/commands/docs.js +47 -0
- package/lib/commands/doctor.js +227 -0
- package/lib/commands/features.js +36 -0
- package/lib/commands/ios.js +206 -0
- package/lib/commands/new.js +1870 -0
- package/lib/commands/notifications.js +207 -0
- package/lib/commands/remove.js +466 -0
- package/lib/commands/run.js +75 -0
- package/lib/commands/update.js +382 -0
- package/lib/commands/validate.js +131 -0
- package/lib/scaffold/CHANGELOG.json +6 -0
- package/lib/scaffold/backends/api/.flutter-plugins-dependencies +1 -0
- package/lib/scaffold/backends/api/analysis_options.yaml +5 -0
- package/lib/scaffold/backends/api/generator.js +76 -0
- package/lib/scaffold/backends/api/patch/README.md +85 -0
- package/lib/scaffold/backends/api/patch/android/app/src/main/AndroidManifest.xml +87 -0
- package/lib/scaffold/backends/api/patch/ios/Runner/AppDelegate.swift +61 -0
- package/lib/scaffold/backends/api/patch/lib/core/data/api/meta_ads_api.dart +80 -0
- package/lib/scaffold/backends/api/patch/lib/core/data/api/storage_api.dart +117 -0
- package/lib/scaffold/backends/api/patch/lib/core/data/api/user_api.dart +148 -0
- package/lib/scaffold/backends/api/patch/lib/core/data/entities/json_converters.dart +35 -0
- package/lib/scaffold/backends/api/patch/lib/core/data/entities/user_entity.dart +48 -0
- package/lib/scaffold/backends/api/patch/lib/core/rating/widgets/review_popup.dart +211 -0
- package/lib/scaffold/backends/api/patch/lib/environnements.dart +151 -0
- package/lib/scaffold/backends/api/patch/lib/features/authentication/api/authentication_api.dart +303 -0
- package/lib/scaffold/backends/api/patch/lib/features/authentication/api/authentication_api_interface.dart +80 -0
- package/lib/scaffold/backends/api/patch/lib/features/authentication/repositories/authentication_repository.dart +406 -0
- package/lib/scaffold/backends/api/patch/lib/features/camera/xfile_extension.dart +6 -0
- package/lib/scaffold/backends/api/patch/lib/features/feedbacks/api/entities/feature_request_entity.dart +24 -0
- package/lib/scaffold/backends/api/patch/lib/features/feedbacks/api/entities/feature_vote_entity.dart +21 -0
- package/lib/scaffold/backends/api/patch/lib/features/feedbacks/api/feature_request_api.dart +52 -0
- package/lib/scaffold/backends/api/patch/lib/features/feedbacks/api/feature_vote_api.dart +60 -0
- package/lib/scaffold/backends/api/patch/lib/features/llm_chat/api/llm_chat_api.dart +58 -0
- package/lib/scaffold/backends/api/patch/lib/features/llm_chat/api/llm_chat_message_entity.dart +29 -0
- package/lib/scaffold/backends/api/patch/lib/features/notifications/api/device_api.dart +398 -0
- package/lib/scaffold/backends/api/patch/lib/features/notifications/api/entities/device_entity.dart +39 -0
- package/lib/scaffold/backends/api/patch/lib/features/notifications/api/entities/notifications_entity.dart +23 -0
- package/lib/scaffold/backends/api/patch/lib/features/notifications/api/notifications_api.dart +333 -0
- package/lib/scaffold/backends/api/patch/lib/features/notifications/providers/models/notification.dart +185 -0
- package/lib/scaffold/backends/api/patch/lib/features/onboarding/api/entities/user_info_entity.dart +26 -0
- package/lib/scaffold/backends/api/patch/lib/features/onboarding/api/user_infos_api.dart +107 -0
- package/lib/scaffold/backends/api/patch/lib/features/onboarding/models/user_info.dart +94 -0
- package/lib/scaffold/backends/api/patch/lib/features/onboarding/repositories/user_infos_repository.dart +29 -0
- package/lib/scaffold/backends/api/patch/lib/features/onboarding/ui/animations/movefade_anim.dart +34 -0
- package/lib/scaffold/backends/api/patch/lib/features/onboarding/ui/components/onboarding_att_setup.dart +66 -0
- package/lib/scaffold/backends/api/patch/lib/features/onboarding/ui/components/onboarding_notifications_setup.dart +73 -0
- package/lib/scaffold/backends/api/patch/lib/features/onboarding/ui/widgets/onboarding_radio_question.dart +173 -0
- package/lib/scaffold/backends/api/patch/lib/features/settings/ui/widgets/avatar_utils.dart +33 -0
- package/lib/scaffold/backends/api/patch/lib/features/subscription/api/entities/subscription_entity.dart +34 -0
- package/lib/scaffold/backends/api/patch/lib/features/subscription/api/subscription_api.dart +49 -0
- package/lib/scaffold/backends/api/patch/lib/features/subscription/shared/maybeshow_premium.dart +88 -0
- package/lib/scaffold/backends/api/patch/lib/main.dart +256 -0
- package/lib/scaffold/backends/api/patch/lib/router.dart +133 -0
- package/lib/scaffold/backends/api/pubspec.yaml.tpl +108 -0
- package/lib/scaffold/backends/firebase/deploy.js +1006 -0
- package/lib/scaffold/backends/firebase/generator.js +24 -0
- package/lib/scaffold/backends/firebase/setup-from-scratch.js +1008 -0
- package/lib/scaffold/backends/firebase/tokens.js +113 -0
- package/lib/scaffold/backends/supabase/.flutter-plugins-dependencies +1 -0
- package/lib/scaffold/backends/supabase/analysis_options.yaml +5 -0
- package/lib/scaffold/backends/supabase/config.toml +34 -0
- package/lib/scaffold/backends/supabase/deploy.js +485 -0
- package/lib/scaffold/backends/supabase/edge-functions/delete-user-account/README.md +15 -0
- package/lib/scaffold/backends/supabase/edge-functions/delete-user-account/index.ts +97 -0
- package/lib/scaffold/backends/supabase/edge-functions/llm-chat/index.ts +156 -0
- package/lib/scaffold/backends/supabase/edge-functions/meta-track-event/index.ts +292 -0
- package/lib/scaffold/backends/supabase/edge-functions/revenuecat-webhook/README.md +30 -0
- package/lib/scaffold/backends/supabase/edge-functions/revenuecat-webhook/index.ts +488 -0
- package/lib/scaffold/backends/supabase/edge-functions/send-push-notification/README.md +35 -0
- package/lib/scaffold/backends/supabase/edge-functions/send-push-notification/index.ts +314 -0
- package/lib/scaffold/backends/supabase/generator.js +108 -0
- package/lib/scaffold/backends/supabase/migrations/20240101000001_initial_schema.sql +149 -0
- package/lib/scaffold/backends/supabase/migrations/20240101000002_storage_bucket.sql +40 -0
- package/lib/scaffold/backends/supabase/migrations/20240101000005_vote_triggers.sql +34 -0
- package/lib/scaffold/backends/supabase/migrations/20240101000006_notification_webhook.sql +36 -0
- package/lib/scaffold/backends/supabase/migrations/20240101000007_welcome_notification.sql +64 -0
- package/lib/scaffold/backends/supabase/migrations/20240101000008_user_feature_requests.sql +2 -0
- package/lib/scaffold/backends/supabase/migrations/20240101000009_llm_messages.sql +22 -0
- package/lib/scaffold/backends/supabase/migrations/20240101000010_notification_image.sql +2 -0
- package/lib/scaffold/backends/supabase/patch/README.md +121 -0
- package/lib/scaffold/backends/supabase/patch/android/app/src/main/AndroidManifest.xml +87 -0
- package/lib/scaffold/backends/supabase/patch/ios/Runner/AppDelegate.swift +61 -0
- package/lib/scaffold/backends/supabase/patch/lib/core/data/api/meta_ads_api.dart +75 -0
- package/lib/scaffold/backends/supabase/patch/lib/core/data/api/storage_api.dart +83 -0
- package/lib/scaffold/backends/supabase/patch/lib/core/data/api/user_api.dart +143 -0
- package/lib/scaffold/backends/supabase/patch/lib/core/data/entities/json_converters.dart +35 -0
- package/lib/scaffold/backends/supabase/patch/lib/core/data/entities/user_entity.dart +48 -0
- package/lib/scaffold/backends/supabase/patch/lib/core/rating/widgets/review_popup.dart +211 -0
- package/lib/scaffold/backends/supabase/patch/lib/environnements.dart +149 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/authentication/api/authentication_api.dart +546 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/authentication/repositories/authentication_repository.dart +410 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/camera/xfile_extension.dart +6 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/feedbacks/api/entities/feature_request_entity.dart +25 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/feedbacks/api/entities/feature_vote_entity.dart +21 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/feedbacks/api/feature_request_api.dart +59 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/feedbacks/api/feature_vote_api.dart +85 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/feedbacks/ui/component/add_feature_form.dart +199 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/llm_chat/api/llm_chat_api.dart +47 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/llm_chat/api/llm_chat_message_entity.dart +30 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/llm_chat/providers/llm_chat_notifier.dart +266 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/notifications/api/device_api.dart +410 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/notifications/api/entities/device_entity.dart +51 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/notifications/api/entities/notifications_entity.dart +26 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/notifications/api/notifications_api.dart +317 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/notifications/providers/models/notification.dart +174 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/onboarding/api/entities/user_info_entity.dart +26 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/onboarding/api/user_infos_api.dart +90 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/onboarding/models/user_info.dart +94 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/onboarding/repositories/user_infos_repository.dart +29 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/onboarding/ui/animations/movefade_anim.dart +34 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/onboarding/ui/components/onboarding_att_setup.dart +66 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/onboarding/ui/components/onboarding_notifications_setup.dart +73 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/onboarding/ui/widgets/onboarding_radio_question.dart +173 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/settings/ui/widgets/avatar_utils.dart +35 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/subscription/api/entities/subscription_entity.dart +35 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/subscription/api/subscription_api.dart +44 -0
- package/lib/scaffold/backends/supabase/patch/lib/features/subscription/shared/maybeshow_premium.dart +85 -0
- package/lib/scaffold/backends/supabase/patch/lib/google_auth_options.dart +23 -0
- package/lib/scaffold/backends/supabase/patch/lib/main.dart +288 -0
- package/lib/scaffold/backends/supabase/patch/lib/router.dart +133 -0
- package/lib/scaffold/backends/supabase/pubspec.yaml.tpl +110 -0
- package/lib/scaffold/backends/supabase/tokens.js +9 -0
- package/lib/scaffold/catalog.js +177 -0
- package/lib/scaffold/engine.js +230 -0
- package/lib/scaffold/features/README.md +152 -0
- package/lib/scaffold/features/analytics/lib/core/data/api/analytics_api.dart +124 -0
- package/lib/scaffold/features/ci/.github/ISSUE_TEMPLATE/BUG.es.md +35 -0
- package/lib/scaffold/features/ci/.github/ISSUE_TEMPLATE/BUG.md +35 -0
- package/lib/scaffold/features/ci/.github/ISSUE_TEMPLATE/BUG.pt.md +35 -0
- package/lib/scaffold/features/ci/.github/ISSUE_TEMPLATE/feature_request.es.md +12 -0
- package/lib/scaffold/features/ci/.github/ISSUE_TEMPLATE/feature_request.md +12 -0
- package/lib/scaffold/features/ci/.github/ISSUE_TEMPLATE/feature_request.pt.md +12 -0
- package/lib/scaffold/features/ci/.github/PULL_REQUEST_TEMPLATE.es.md +17 -0
- package/lib/scaffold/features/ci/.github/PULL_REQUEST_TEMPLATE.md +17 -0
- package/lib/scaffold/features/ci/.github/PULL_REQUEST_TEMPLATE.pt.md +17 -0
- package/lib/scaffold/features/ci/.github/dependabot.yml +16 -0
- package/lib/scaffold/features/ci/.github/workflows/app.yml +20 -0
- package/lib/scaffold/features/ci/.gitlab/templates/deploy.yaml +14 -0
- package/lib/scaffold/features/ci/.gitlab/templates/dropbox.yaml +19 -0
- package/lib/scaffold/features/ci/.gitlab/templates/flutter.yaml +163 -0
- package/lib/scaffold/features/ci/.gitlab/templates/mailgun.yaml +28 -0
- package/lib/scaffold/features/ci/.gitlab-ci.yml +37 -0
- package/lib/scaffold/features/ci/codemagic.yaml +157 -0
- package/lib/scaffold/features/facebook/lib/core/data/api/tracking_api.dart +111 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/api/entities/feature_request_entity.dart +27 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/api/entities/feature_vote_entity.dart +27 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/api/feature_request_api.dart +50 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/api/feature_vote_api.dart +79 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/models/feature_requests.dart +48 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/models/feedback_state.dart +42 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/providers/feedback_page_notifier.dart +147 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/repositories/feature_request_repository.dart +95 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/ui/component/add_feature_form.dart +199 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/ui/feedback_page.dart +175 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/ui/widgets/add_feature_button.dart +76 -0
- package/lib/scaffold/features/feedback/lib/features/feedbacks/ui/widgets/feature_card.dart +279 -0
- package/lib/scaffold/features/ios-release/.kasy/apple.env.example +8 -0
- package/lib/scaffold/features/ios-release/.kasy/codemagic.env.example +7 -0
- package/lib/scaffold/features/ios-release/docs/codemagic-release.en.md +50 -0
- package/lib/scaffold/features/ios-release/docs/codemagic-release.es.md +50 -0
- package/lib/scaffold/features/ios-release/docs/codemagic-release.pt.md +50 -0
- package/lib/scaffold/features/ios-release/docs/ios-release.en.md +41 -0
- package/lib/scaffold/features/ios-release/docs/ios-release.es.md +41 -0
- package/lib/scaffold/features/ios-release/docs/ios-release.pt.md +41 -0
- package/lib/scaffold/features/ios-release/scripts/bump-ios-version.js +38 -0
- package/lib/scaffold/features/ios-release/scripts/release-ios.sh +137 -0
- package/lib/scaffold/features/llm_chat/lib/features/llm_chat/llm_chat_page.dart +301 -0
- package/lib/scaffold/features/local_notifications/lib/features/local_reminder/providers/reminder_notifier.dart +81 -0
- package/lib/scaffold/features/local_notifications/lib/features/local_reminder/repositories/reminder_preferences.dart +76 -0
- package/lib/scaffold/features/local_notifications/lib/features/local_reminder/ui/reminder_page.dart +282 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/api/entities/user_info_entity.dart +24 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/api/user_infos_api.dart +71 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/models/user_info.dart +92 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/providers/onboarding_model.dart +15 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/providers/onboarding_provider.dart +78 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/repositories/user_infos_repository.dart +29 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/animations/page_transitions.dart +30 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/components/onboarding_att_setup.dart +66 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/components/onboarding_features.dart +72 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/components/onboarding_loader.dart +92 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/components/onboarding_notifications_setup.dart +73 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/components/onboarding_questions.dart +89 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/onboarding_page.dart +94 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/widgets/onboarding_background.dart +80 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/widgets/onboarding_feature.dart +139 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/widgets/onboarding_illustration_scaffold.dart +110 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/widgets/onboarding_progress.dart +84 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/widgets/onboarding_radio_question.dart +173 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/widgets/onboarding_reassurance.dart +45 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/widgets/onboarding_sticky_footer.dart +77 -0
- package/lib/scaffold/features/onboarding/lib/features/onboarding/ui/widgets/selectable_row_tile.dart +392 -0
- package/lib/scaffold/features/revenuecat/lib/core/data/api/tracking_api.dart +116 -0
- package/lib/scaffold/features/revenuecat/lib/core/data/models/subscription.dart +322 -0
- package/lib/scaffold/features/revenuecat/lib/core/home_widgets/home_widget_background_task.dart +41 -0
- package/lib/scaffold/features/revenuecat/lib/core/states/user_state_notifier.dart +305 -0
- package/lib/scaffold/features/widget/lib/core/home_widgets/home_widget_background_task.dart +41 -0
- package/lib/scaffold/features/widget/lib/core/home_widgets/home_widget_mywidget_service.dart +57 -0
- package/lib/scaffold/features/widget/lib/core/home_widgets/home_widget_service.dart +54 -0
- package/lib/scaffold/features/widget/lib/features/settings/ui/components/admin/admin_home_widgets.dart +32 -0
- package/lib/scaffold/generate.js +370 -0
- package/lib/scaffold/patch.js +395 -0
- package/lib/scaffold/shared/backend-config.js +74 -0
- package/lib/scaffold/shared/fcm-service-account.js +126 -0
- package/lib/scaffold/shared/generator-utils.js +1664 -0
- package/lib/scaffold/shared/post-build.js +809 -0
- package/lib/scaffold/shared/template-strings.js +112 -0
- package/lib/utils/apple-release.js +273 -0
- package/lib/utils/checks.js +319 -0
- package/lib/utils/codemagic-release.js +127 -0
- package/lib/utils/fs.js +122 -0
- package/lib/utils/i18n.js +2123 -0
- package/lib/utils/license-gate.js +72 -0
- package/lib/utils/license.js +64 -0
- package/lib/utils/prompts.js +213 -0
- package/lib/utils/updates.js +97 -0
- package/package.json +55 -0
- package/templates/firebase/.env.example +24 -0
- package/templates/firebase/.firebaserc +5 -0
- package/templates/firebase/.kasy/apple.env.example +8 -0
- package/templates/firebase/.kasy/codemagic.env.example +7 -0
- package/templates/firebase/.metadata +30 -0
- package/templates/firebase/.windsurfrules +95 -0
- package/templates/firebase/Makefile +30 -0
- package/templates/firebase/README.en.md +180 -0
- package/templates/firebase/README.es.md +180 -0
- package/templates/firebase/README.md +180 -0
- package/templates/firebase/analysis_options.yaml +37 -0
- package/templates/firebase/android/app/build.gradle.kts +80 -0
- package/templates/firebase/android/app/src/debug/AndroidManifest.xml +7 -0
- package/templates/firebase/android/app/src/main/AndroidManifest.xml +93 -0
- package/templates/firebase/android/app/src/main/kotlin/com/aicrus/firebase/kit/MainActivity.kt +36 -0
- package/templates/firebase/android/app/src/main/kotlin/com/aicrus/firebase/kit/MyWidget.kt +50 -0
- package/templates/firebase/android/app/src/main/kotlin/com/aicrus/firebase/kit/MyWidgetReceiver.kt +7 -0
- package/templates/firebase/android/app/src/main/res/drawable/background.png +0 -0
- package/templates/firebase/android/app/src/main/res/drawable/launch_background.xml +9 -0
- package/templates/firebase/android/app/src/main/res/drawable-hdpi/splash.png +0 -0
- package/templates/firebase/android/app/src/main/res/drawable-mdpi/splash.png +0 -0
- package/templates/firebase/android/app/src/main/res/drawable-v21/background.png +0 -0
- package/templates/firebase/android/app/src/main/res/drawable-v21/launch_background.xml +9 -0
- package/templates/firebase/android/app/src/main/res/drawable-xhdpi/splash.png +0 -0
- package/templates/firebase/android/app/src/main/res/drawable-xxhdpi/splash.png +0 -0
- package/templates/firebase/android/app/src/main/res/drawable-xxxhdpi/splash.png +0 -0
- package/templates/firebase/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/firebase/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/firebase/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/firebase/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/firebase/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/firebase/android/app/src/main/res/values/strings.xml +6 -0
- package/templates/firebase/android/app/src/main/res/values/styles.xml +22 -0
- package/templates/firebase/android/app/src/main/res/values-night/styles.xml +22 -0
- package/templates/firebase/android/app/src/main/res/values-night-v31/styles.xml +20 -0
- package/templates/firebase/android/app/src/main/res/values-v31/styles.xml +20 -0
- package/templates/firebase/android/app/src/main/res/xml/locales_config.xml +7 -0
- package/templates/firebase/android/app/src/main/res/xml/mywidget_info.xml +11 -0
- package/templates/firebase/android/app/src/profile/AndroidManifest.xml +7 -0
- package/templates/firebase/android/build.gradle.kts +28 -0
- package/templates/firebase/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/templates/firebase/android/gradle.properties +2 -0
- package/templates/firebase/android/settings.gradle.kts +29 -0
- package/templates/firebase/assets/icons/apple.png +0 -0
- package/templates/firebase/assets/icons/facebook.png +0 -0
- package/templates/firebase/assets/icons/google.png +0 -0
- package/templates/firebase/assets/icons/google_play_games.png +0 -0
- package/templates/firebase/assets/images/app_icon.png +0 -0
- package/templates/firebase/assets/images/empty_notifications.jpg +0 -0
- package/templates/firebase/assets/images/icon.png +0 -0
- package/templates/firebase/assets/images/onboarding/authentication-login-template.jpg +0 -0
- package/templates/firebase/assets/images/onboarding/img1.jpg +0 -0
- package/templates/firebase/assets/images/onboarding/img2.jpg +0 -0
- package/templates/firebase/assets/images/onboarding/img3.jpg +0 -0
- package/templates/firebase/assets/images/onboarding/notifications.png +0 -0
- package/templates/firebase/assets/images/onboarding/onboarding.png +0 -0
- package/templates/firebase/assets/images/onboarding/purchase.png +0 -0
- package/templates/firebase/assets/images/premium-bg.jpg +0 -0
- package/templates/firebase/assets/images/premium-switch-header.png +0 -0
- package/templates/firebase/assets/images/review.png +0 -0
- package/templates/firebase/assets/images/splashscreen.png +0 -0
- package/templates/firebase/assets/images/update.png +0 -0
- package/templates/firebase/build.yaml +13 -0
- package/templates/firebase/devtools_options.yaml +3 -0
- package/templates/firebase/docs/auth-setup.en.md +145 -0
- package/templates/firebase/docs/auth-setup.es.md +145 -0
- package/templates/firebase/docs/auth-setup.pt.md +145 -0
- package/templates/firebase/docs/codemagic-release.en.md +50 -0
- package/templates/firebase/docs/codemagic-release.es.md +50 -0
- package/templates/firebase/docs/codemagic-release.pt.md +50 -0
- package/templates/firebase/docs/ios-release.en.md +41 -0
- package/templates/firebase/docs/ios-release.es.md +41 -0
- package/templates/firebase/docs/ios-release.pt.md +54 -0
- package/templates/firebase/docs/navigation-transitions.md +80 -0
- package/templates/firebase/docs/revenuecat-setup.es.md +341 -0
- package/templates/firebase/docs/revenuecat-setup.pt.md +341 -0
- package/templates/firebase/firebase.json +1 -0
- package/templates/firebase/firestore.indexes.json +25 -0
- package/templates/firebase/firestore.rules +51 -0
- package/templates/firebase/functions/.eslintrc.js +45 -0
- package/templates/firebase/functions/jest.config.js +16 -0
- package/templates/firebase/functions/package-lock.json +6876 -0
- package/templates/firebase/functions/package.json +33 -0
- package/templates/firebase/functions/src/authentication/functions.ts +30 -0
- package/templates/firebase/functions/src/authentication/triggers.ts +103 -0
- package/templates/firebase/functions/src/core/api/meta_ads_api.ts +390 -0
- package/templates/firebase/functions/src/core/data/entities/entity_utils.ts +87 -0
- package/templates/firebase/functions/src/core/data/entities/notification_entity.ts +74 -0
- package/templates/firebase/functions/src/core/data/entities/page.ts +4 -0
- package/templates/firebase/functions/src/core/data/entities/subscription_entity.ts +76 -0
- package/templates/firebase/functions/src/core/data/entities/user_device_entity.ts +64 -0
- package/templates/firebase/functions/src/core/data/entities/user_entity.ts +43 -0
- package/templates/firebase/functions/src/core/data/repositories/repositories.ts +16 -0
- package/templates/firebase/functions/src/core/data/repositories/subscription_repository.ts +42 -0
- package/templates/firebase/functions/src/core/data/repositories/user_device_repository.ts +31 -0
- package/templates/firebase/functions/src/core/data/repositories/user_notifications_repository.ts +58 -0
- package/templates/firebase/functions/src/core/data/repositories/user_repository.ts +84 -0
- package/templates/firebase/functions/src/core/logger/logger.ts +13 -0
- package/templates/firebase/functions/src/core/storage/storage_manager.ts +52 -0
- package/templates/firebase/functions/src/core/utils/async_utils.ts +5 -0
- package/templates/firebase/functions/src/feature_requests/triggers.ts +3 -0
- package/templates/firebase/functions/src/index.ts +24 -0
- package/templates/firebase/functions/src/llm_chat/index.ts +181 -0
- package/templates/firebase/functions/src/notifications/admin_functions.ts +91 -0
- package/templates/firebase/functions/src/notifications/models/notification.ts +61 -0
- package/templates/firebase/functions/src/notifications/notifications_api.ts +147 -0
- package/templates/firebase/functions/src/notifications/triggers.ts +102 -0
- package/templates/firebase/functions/src/subscriptions/models/revenuecat_events.ts +162 -0
- package/templates/firebase/functions/src/subscriptions/models/subscription_status.ts +18 -0
- package/templates/firebase/functions/src/subscriptions/models/subscriptions.ts +173 -0
- package/templates/firebase/functions/src/subscriptions/subscriptions_functions.ts +135 -0
- package/templates/firebase/functions/src/subscriptions/triggers.ts +35 -0
- package/templates/firebase/functions/src/test/core/data/entities/entity_utils.spec.ts +44 -0
- package/templates/firebase/functions/tsconfig.dev.json +5 -0
- package/templates/firebase/functions/tsconfig.json +18 -0
- package/templates/firebase/home_widget_config.json +30 -0
- package/templates/firebase/ios/Flutter/AppFrameworkInfo.plist +24 -0
- package/templates/firebase/ios/Flutter/Debug.xcconfig +2 -0
- package/templates/firebase/ios/Flutter/Profile.xcconfig +2 -0
- package/templates/firebase/ios/Flutter/Release.xcconfig +2 -0
- package/templates/firebase/ios/HomeWidgetExtension/HomeWidgetBundle.swift +13 -0
- package/templates/firebase/ios/HomeWidgetExtension/Info.plist +29 -0
- package/templates/firebase/ios/HomeWidgetExtension/MyWidget.swift +86 -0
- package/templates/firebase/ios/HomeWidgetExtension.entitlements +10 -0
- package/templates/firebase/ios/NotificationService/Info.plist +31 -0
- package/templates/firebase/ios/NotificationService/NotificationService.swift +76 -0
- package/templates/firebase/ios/Podfile +111 -0
- package/templates/firebase/ios/Runner/AppDelegate.swift +75 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +1 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json +21 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +23 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png +0 -0
- package/templates/firebase/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +5 -0
- package/templates/firebase/ios/Runner/Base.lproj/LaunchScreen.storyboard +44 -0
- package/templates/firebase/ios/Runner/Base.lproj/Main.storyboard +26 -0
- package/templates/firebase/ios/Runner/Info.plist +132 -0
- package/templates/firebase/ios/Runner/Runner-Bridging-Header.h +1 -0
- package/templates/firebase/ios/Runner/Runner.entitlements +14 -0
- package/templates/firebase/ios/Runner/es.lproj/InfoPlist.strings +10 -0
- package/templates/firebase/ios/Runner/pt-BR.lproj/InfoPlist.strings +10 -0
- package/templates/firebase/ios/Runner/pt.lproj/InfoPlist.strings +10 -0
- package/templates/firebase/ios/Runner.xcodeproj/project.pbxproj +1108 -0
- package/templates/firebase/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/templates/firebase/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/templates/firebase/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/templates/firebase/ios/Runner.xcodeproj/xcshareddata/xcschemes/NotificationService.xcscheme +58 -0
- package/templates/firebase/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +101 -0
- package/templates/firebase/ios/Runner.xcworkspace/contents.xcworkspacedata +10 -0
- package/templates/firebase/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/templates/firebase/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/templates/firebase/ios/RunnerTests/RunnerTests.swift +12 -0
- package/templates/firebase/lib/components/components.dart +27 -0
- package/templates/firebase/lib/components/kasy_accordion.dart +384 -0
- package/templates/firebase/lib/components/kasy_alert.dart +266 -0
- package/templates/firebase/lib/components/kasy_app_bar.dart +536 -0
- package/templates/firebase/lib/components/kasy_avatar.dart +549 -0
- package/templates/firebase/lib/components/kasy_avatar_presets.dart +104 -0
- package/templates/firebase/lib/components/kasy_badge.dart +278 -0
- package/templates/firebase/lib/components/kasy_bottom_sheet.dart +338 -0
- package/templates/firebase/lib/components/kasy_button.dart +926 -0
- package/templates/firebase/lib/components/kasy_card.dart +128 -0
- package/templates/firebase/lib/components/kasy_checkbox.dart +429 -0
- package/templates/firebase/lib/components/kasy_chip.dart +83 -0
- package/templates/firebase/lib/components/kasy_dialog.dart +789 -0
- package/templates/firebase/lib/components/kasy_otp_verification_bottom_sheet.dart +233 -0
- package/templates/firebase/lib/components/kasy_skeleton.dart +225 -0
- package/templates/firebase/lib/components/kasy_text_area.dart +392 -0
- package/templates/firebase/lib/components/kasy_text_field.dart +591 -0
- package/templates/firebase/lib/components/kasy_text_field_otp.dart +532 -0
- package/templates/firebase/lib/components/kasy_toast.dart +803 -0
- package/templates/firebase/lib/core/ads/ads_provider.dart +136 -0
- package/templates/firebase/lib/core/ads/ads_state.dart +15 -0
- package/templates/firebase/lib/core/animations/bottomfade_anim.dart +37 -0
- package/templates/firebase/lib/core/animations/movefade_anim.dart +34 -0
- package/templates/firebase/lib/core/animations/slideright_anim.dart +38 -0
- package/templates/firebase/lib/core/bottom_menu/bart_inner_paths.dart +5 -0
- package/templates/firebase/lib/core/bottom_menu/bottom_menu.dart +127 -0
- package/templates/firebase/lib/core/bottom_menu/bottom_router.dart +281 -0
- package/templates/firebase/lib/core/bottom_menu/kasy_bart_navigation.dart +22 -0
- package/templates/firebase/lib/core/bottom_menu/kasy_bottom_bar_factory.dart +127 -0
- package/templates/firebase/lib/core/bottom_menu/notification_bottom_item.dart +48 -0
- package/templates/firebase/lib/core/config/app_env.dart +100 -0
- package/templates/firebase/lib/core/config/features.dart +15 -0
- package/templates/firebase/lib/core/data/api/analytics_api.dart +124 -0
- package/templates/firebase/lib/core/data/api/base_api_exceptions.dart +28 -0
- package/templates/firebase/lib/core/data/api/firestore_retry.dart +29 -0
- package/templates/firebase/lib/core/data/api/http_client.dart +38 -0
- package/templates/firebase/lib/core/data/api/image.dart +52 -0
- package/templates/firebase/lib/core/data/api/remote_config_api.dart +170 -0
- package/templates/firebase/lib/core/data/api/storage_api.dart +115 -0
- package/templates/firebase/lib/core/data/api/tracking_api.dart +119 -0
- package/templates/firebase/lib/core/data/api/user_api.dart +115 -0
- package/templates/firebase/lib/core/data/entities/json_converters.dart +39 -0
- package/templates/firebase/lib/core/data/entities/upload_result.dart +48 -0
- package/templates/firebase/lib/core/data/entities/user_entity.dart +54 -0
- package/templates/firebase/lib/core/data/models/pageable.dart +12 -0
- package/templates/firebase/lib/core/data/models/subscription.dart +322 -0
- package/templates/firebase/lib/core/data/models/user.dart +107 -0
- package/templates/firebase/lib/core/data/repositories/user_repository.dart +130 -0
- package/templates/firebase/lib/core/dev_inspector/dev_inspector.dart +464 -0
- package/templates/firebase/lib/core/dev_inspector/dev_inspector_highlight.dart +88 -0
- package/templates/firebase/lib/core/dev_inspector/dev_inspector_info.dart +70 -0
- package/templates/firebase/lib/core/dev_inspector/dev_inspector_panel.dart +204 -0
- package/templates/firebase/lib/core/dev_inspector/dev_inspector_service.dart +321 -0
- package/templates/firebase/lib/core/extensions/date.ext.dart +32 -0
- package/templates/firebase/lib/core/guards/authenticated_guard.dart +37 -0
- package/templates/firebase/lib/core/guards/guard.dart +68 -0
- package/templates/firebase/lib/core/guards/user_info_guard.dart +55 -0
- package/templates/firebase/lib/core/haptics/haptic_feedback_notifier.dart +19 -0
- package/templates/firebase/lib/core/haptics/kasy_haptics.dart +27 -0
- package/templates/firebase/lib/core/home_widgets/home_widget_background_task.dart +41 -0
- package/templates/firebase/lib/core/home_widgets/home_widget_mywidget_service.dart +57 -0
- package/templates/firebase/lib/core/home_widgets/home_widget_service.dart +54 -0
- package/templates/firebase/lib/core/icons/kasy_icons.dart +86 -0
- package/templates/firebase/lib/core/initializer/models/run_state.dart +14 -0
- package/templates/firebase/lib/core/initializer/onstart_service.dart +38 -0
- package/templates/firebase/lib/core/initializer/onstart_widget.dart +83 -0
- package/templates/firebase/lib/core/initializer/pending_notification_handler.dart +48 -0
- package/templates/firebase/lib/core/keyboard_fix/keyboard_flicker_fix.dart +164 -0
- package/templates/firebase/lib/core/navigation/kasy_fade_page_transitions_builder.dart +34 -0
- package/templates/firebase/lib/core/navigation/kasy_material_page_route.dart +41 -0
- package/templates/firebase/lib/core/navigation/kasy_navigation_config.dart +29 -0
- package/templates/firebase/lib/core/navigation/kasy_page_transition.dart +40 -0
- package/templates/firebase/lib/core/navigation/kasy_route_transition.dart +68 -0
- package/templates/firebase/lib/core/navigation/kasy_transition_kind.dart +17 -0
- package/templates/firebase/lib/core/navigation/navigation.dart +6 -0
- package/templates/firebase/lib/core/rating/api/rating_api.dart +99 -0
- package/templates/firebase/lib/core/rating/models/rating.dart +52 -0
- package/templates/firebase/lib/core/rating/models/review.dart +70 -0
- package/templates/firebase/lib/core/rating/providers/rating_repository.dart +75 -0
- package/templates/firebase/lib/core/rating/widgets/rate_banner.dart +190 -0
- package/templates/firebase/lib/core/rating/widgets/rate_popup.dart +54 -0
- package/templates/firebase/lib/core/rating/widgets/review_popup.dart +175 -0
- package/templates/firebase/lib/core/security/biometric_copy_slot.dart +20 -0
- package/templates/firebase/lib/core/security/biometric_guard.dart +114 -0
- package/templates/firebase/lib/core/security/biometric_preference_notifier.dart +17 -0
- package/templates/firebase/lib/core/security/biometric_service.dart +79 -0
- package/templates/firebase/lib/core/security/biometric_ui_bundle.dart +136 -0
- package/templates/firebase/lib/core/security/secured_storage.dart +46 -0
- package/templates/firebase/lib/core/shared_preferences/shared_preferences.dart +70 -0
- package/templates/firebase/lib/core/sidebar/kasy_sidebar.dart +2021 -0
- package/templates/firebase/lib/core/states/components/maybe_ask_biometric_setup.dart +88 -0
- package/templates/firebase/lib/core/states/components/maybe_ask_rating.dart +49 -0
- package/templates/firebase/lib/core/states/components/maybe_show_update_bottom_sheet.dart +86 -0
- package/templates/firebase/lib/core/states/components/maybeshow_component.dart +110 -0
- package/templates/firebase/lib/core/states/events_dispatcher.dart +103 -0
- package/templates/firebase/lib/core/states/models/event_model.dart +118 -0
- package/templates/firebase/lib/core/states/models/user_state.dart +22 -0
- package/templates/firebase/lib/core/states/notifications_dispatcher.dart +81 -0
- package/templates/firebase/lib/core/states/translations.dart +11 -0
- package/templates/firebase/lib/core/states/user_state_notifier.dart +321 -0
- package/templates/firebase/lib/core/theme/colors.dart +262 -0
- package/templates/firebase/lib/core/theme/extensions/theme_extension.dart +48 -0
- package/templates/firebase/lib/core/theme/providers/kasy_theme.dart +76 -0
- package/templates/firebase/lib/core/theme/providers/theme_provider.dart +212 -0
- package/templates/firebase/lib/core/theme/radius.dart +33 -0
- package/templates/firebase/lib/core/theme/shadows.dart +64 -0
- package/templates/firebase/lib/core/theme/spacing.dart +44 -0
- package/templates/firebase/lib/core/theme/texts.dart +176 -0
- package/templates/firebase/lib/core/theme/theme.dart +24 -0
- package/templates/firebase/lib/core/theme/theme_data/theme_data.dart +32 -0
- package/templates/firebase/lib/core/theme/theme_data/theme_data_factory.dart +15 -0
- package/templates/firebase/lib/core/theme/universal_theme.dart +210 -0
- package/templates/firebase/lib/core/toast/toast_service.dart +55 -0
- package/templates/firebase/lib/core/ui/app_dialog.dart +26 -0
- package/templates/firebase/lib/core/web_device_preview/web_device_preview.dart +1126 -0
- package/templates/firebase/lib/core/widgets/debouncer.dart +31 -0
- package/templates/firebase/lib/core/widgets/kasy_hover.dart +166 -0
- package/templates/firebase/lib/core/widgets/kasy_pressable.dart +2 -0
- package/templates/firebase/lib/core/widgets/kasy_pressable_depth.dart +161 -0
- package/templates/firebase/lib/core/widgets/kasy_scroll_behavior.dart +17 -0
- package/templates/firebase/lib/core/widgets/keyboard_visibility.dart +75 -0
- package/templates/firebase/lib/core/widgets/page_background.dart +71 -0
- package/templates/firebase/lib/core/widgets/page_not_found.dart +15 -0
- package/templates/firebase/lib/core/widgets/responsive_layout.dart +215 -0
- package/templates/firebase/lib/core/widgets/update_bottom_sheet.dart +192 -0
- package/templates/firebase/lib/environnements.dart +160 -0
- package/templates/firebase/lib/features/authentication/api/authentication_api.dart +528 -0
- package/templates/firebase/lib/features/authentication/api/authentication_api_interface.dart +84 -0
- package/templates/firebase/lib/features/authentication/providers/models/email.dart +36 -0
- package/templates/firebase/lib/features/authentication/providers/models/password.dart +37 -0
- package/templates/firebase/lib/features/authentication/providers/models/phone_signin_state.dart +21 -0
- package/templates/firebase/lib/features/authentication/providers/models/recover_state.dart +21 -0
- package/templates/firebase/lib/features/authentication/providers/models/signin_state.dart +20 -0
- package/templates/firebase/lib/features/authentication/providers/models/signup_state.dart +20 -0
- package/templates/firebase/lib/features/authentication/providers/phone_auth_notifier.dart +132 -0
- package/templates/firebase/lib/features/authentication/providers/recover_provider.dart +51 -0
- package/templates/firebase/lib/features/authentication/providers/signin_state_provider.dart +166 -0
- package/templates/firebase/lib/features/authentication/providers/signup_state_provider.dart +67 -0
- package/templates/firebase/lib/features/authentication/repositories/authentication_repository.dart +399 -0
- package/templates/firebase/lib/features/authentication/repositories/exceptions/authentication_exceptions.dart +85 -0
- package/templates/firebase/lib/features/authentication/ui/components/apple_signin.dart +19 -0
- package/templates/firebase/lib/features/authentication/ui/components/facebook_signin.dart +19 -0
- package/templates/firebase/lib/features/authentication/ui/components/google_signin.dart +32 -0
- package/templates/firebase/lib/features/authentication/ui/components/otp_verification.dart +100 -0
- package/templates/firebase/lib/features/authentication/ui/components/phone_input.dart +109 -0
- package/templates/firebase/lib/features/authentication/ui/phone_auth_page.dart +60 -0
- package/templates/firebase/lib/features/authentication/ui/recover_password_page.dart +101 -0
- package/templates/firebase/lib/features/authentication/ui/signin_page.dart +321 -0
- package/templates/firebase/lib/features/authentication/ui/signup_page.dart +310 -0
- package/templates/firebase/lib/features/authentication/ui/widgets/auth_brand.dart +35 -0
- package/templates/firebase/lib/features/authentication/ui/widgets/auth_page_back_button.dart +149 -0
- package/templates/firebase/lib/features/authentication/ui/widgets/otp_input.dart +194 -0
- package/templates/firebase/lib/features/authentication/ui/widgets/recover_password_result.dart +62 -0
- package/templates/firebase/lib/features/authentication/ui/widgets/round_signin.dart +73 -0
- package/templates/firebase/lib/features/authentication/ui/widgets/social_separator.dart +26 -0
- package/templates/firebase/lib/features/dev/keyboard_test_page.dart +93 -0
- package/templates/firebase/lib/features/feedbacks/api/entities/feature_request_entity.dart +27 -0
- package/templates/firebase/lib/features/feedbacks/api/entities/feature_vote_entity.dart +27 -0
- package/templates/firebase/lib/features/feedbacks/api/feature_request_api.dart +51 -0
- package/templates/firebase/lib/features/feedbacks/api/feature_vote_api.dart +79 -0
- package/templates/firebase/lib/features/feedbacks/models/feature_requests.dart +48 -0
- package/templates/firebase/lib/features/feedbacks/models/feedback_state.dart +43 -0
- package/templates/firebase/lib/features/feedbacks/providers/feedback_page_notifier.dart +147 -0
- package/templates/firebase/lib/features/feedbacks/repositories/feature_request_repository.dart +92 -0
- package/templates/firebase/lib/features/feedbacks/ui/component/add_feature_form.dart +112 -0
- package/templates/firebase/lib/features/feedbacks/ui/feedback_page.dart +184 -0
- package/templates/firebase/lib/features/feedbacks/ui/widgets/add_feature_button.dart +66 -0
- package/templates/firebase/lib/features/feedbacks/ui/widgets/feature_card.dart +266 -0
- package/templates/firebase/lib/features/home/design_system_page.dart +552 -0
- package/templates/firebase/lib/features/home/home_components_page.dart +314 -0
- package/templates/firebase/lib/features/home/home_components_preview_page.dart +791 -0
- package/templates/firebase/lib/features/home/home_components_preview_registry.dart +7712 -0
- package/templates/firebase/lib/features/home/home_features_page.dart +207 -0
- package/templates/firebase/lib/features/home/home_page.dart +348 -0
- package/templates/firebase/lib/features/llm_chat/api/llm_chat_api.dart +50 -0
- package/templates/firebase/lib/features/llm_chat/api/llm_chat_message_entity.dart +35 -0
- package/templates/firebase/lib/features/llm_chat/llm_chat_page.dart +352 -0
- package/templates/firebase/lib/features/llm_chat/providers/llm_chat_notifier.dart +315 -0
- package/templates/firebase/lib/features/llm_chat/ui/widgets/llm_chat_avatars.dart +148 -0
- package/templates/firebase/lib/features/llm_chat/ui/widgets/llm_chat_composer.dart +124 -0
- package/templates/firebase/lib/features/local_reminder/providers/reminder_notifier.dart +81 -0
- package/templates/firebase/lib/features/local_reminder/repositories/reminder_preferences.dart +76 -0
- package/templates/firebase/lib/features/local_reminder/ui/reminder_page.dart +288 -0
- package/templates/firebase/lib/features/notifications/api/device_api.dart +433 -0
- package/templates/firebase/lib/features/notifications/api/entities/device_entity.dart +62 -0
- package/templates/firebase/lib/features/notifications/api/entities/notifications_entity.dart +35 -0
- package/templates/firebase/lib/features/notifications/api/local_notifier.dart +409 -0
- package/templates/firebase/lib/features/notifications/api/notifications_api.dart +319 -0
- package/templates/firebase/lib/features/notifications/providers/models/device.dart +27 -0
- package/templates/firebase/lib/features/notifications/providers/models/notification.dart +196 -0
- package/templates/firebase/lib/features/notifications/providers/models/notification_list.dart +38 -0
- package/templates/firebase/lib/features/notifications/providers/notifications_provider.dart +120 -0
- package/templates/firebase/lib/features/notifications/repositories/background_notification_handler.dart +13 -0
- package/templates/firebase/lib/features/notifications/repositories/device_repository.dart +137 -0
- package/templates/firebase/lib/features/notifications/repositories/notifications_repository.dart +214 -0
- package/templates/firebase/lib/features/notifications/shared/att_permission.dart +75 -0
- package/templates/firebase/lib/features/notifications/shared/notification_permission_bottom_sheet.dart +144 -0
- package/templates/firebase/lib/features/notifications/ui/components/notification_settings_sheet.dart +169 -0
- package/templates/firebase/lib/features/notifications/ui/components/notification_tile.dart +46 -0
- package/templates/firebase/lib/features/notifications/ui/components/notifications_header.dart +32 -0
- package/templates/firebase/lib/features/notifications/ui/components/push_notification_switcher.dart +106 -0
- package/templates/firebase/lib/features/notifications/ui/notifications_page.dart +202 -0
- package/templates/firebase/lib/features/notifications/ui/request_notification_permission.dart +84 -0
- package/templates/firebase/lib/features/notifications/ui/widgets/empty_notifications.dart +73 -0
- package/templates/firebase/lib/features/notifications/ui/widgets/notification_tile.dart +362 -0
- package/templates/firebase/lib/features/onboarding/api/entities/user_info_entity.dart +24 -0
- package/templates/firebase/lib/features/onboarding/api/user_infos_api.dart +71 -0
- package/templates/firebase/lib/features/onboarding/models/user_info.dart +92 -0
- package/templates/firebase/lib/features/onboarding/providers/onboarding_model.dart +15 -0
- package/templates/firebase/lib/features/onboarding/providers/onboarding_provider.dart +78 -0
- package/templates/firebase/lib/features/onboarding/repositories/user_infos_repository.dart +29 -0
- package/templates/firebase/lib/features/onboarding/ui/animations/page_transitions.dart +33 -0
- package/templates/firebase/lib/features/onboarding/ui/components/onboarding_att_setup.dart +66 -0
- package/templates/firebase/lib/features/onboarding/ui/components/onboarding_features.dart +76 -0
- package/templates/firebase/lib/features/onboarding/ui/components/onboarding_loader.dart +92 -0
- package/templates/firebase/lib/features/onboarding/ui/components/onboarding_notifications_setup.dart +76 -0
- package/templates/firebase/lib/features/onboarding/ui/components/onboarding_questions.dart +89 -0
- package/templates/firebase/lib/features/onboarding/ui/onboarding_page.dart +108 -0
- package/templates/firebase/lib/features/onboarding/ui/widgets/onboarding_background.dart +80 -0
- package/templates/firebase/lib/features/onboarding/ui/widgets/onboarding_feature.dart +145 -0
- package/templates/firebase/lib/features/onboarding/ui/widgets/onboarding_illustration_scaffold.dart +125 -0
- package/templates/firebase/lib/features/onboarding/ui/widgets/onboarding_progress.dart +84 -0
- package/templates/firebase/lib/features/onboarding/ui/widgets/onboarding_radio_question.dart +173 -0
- package/templates/firebase/lib/features/onboarding/ui/widgets/onboarding_reassurance.dart +44 -0
- package/templates/firebase/lib/features/onboarding/ui/widgets/onboarding_sticky_footer.dart +77 -0
- package/templates/firebase/lib/features/onboarding/ui/widgets/selectable_row_tile.dart +392 -0
- package/templates/firebase/lib/features/settings/settings_page.dart +460 -0
- package/templates/firebase/lib/features/settings/ui/components/admin/admin_bottom_sheet.dart +301 -0
- package/templates/firebase/lib/features/settings/ui/components/admin/admin_home_widgets.dart +38 -0
- package/templates/firebase/lib/features/settings/ui/components/admin/admin_paywalls.dart +53 -0
- package/templates/firebase/lib/features/settings/ui/components/admin/admin_routes.dart +22 -0
- package/templates/firebase/lib/features/settings/ui/components/admin/send_push_notification_page.dart +366 -0
- package/templates/firebase/lib/features/settings/ui/components/admin/send_push_notifier.dart +40 -0
- package/templates/firebase/lib/features/settings/ui/components/avatar_component.dart +430 -0
- package/templates/firebase/lib/features/settings/ui/components/delete_user_component.dart +28 -0
- package/templates/firebase/lib/features/settings/ui/components/language_switcher.dart +163 -0
- package/templates/firebase/lib/features/settings/ui/widgets/admin_card.dart +59 -0
- package/templates/firebase/lib/features/settings/ui/widgets/avatar_utils.dart +51 -0
- package/templates/firebase/lib/features/settings/ui/widgets/round_progress.dart +151 -0
- package/templates/firebase/lib/features/settings/ui/widgets/settings_bottom_sheet_option_tile.dart +52 -0
- package/templates/firebase/lib/features/settings/ui/widgets/settings_tile.dart +163 -0
- package/templates/firebase/lib/features/subscription/api/entities/subscription_entity.dart +40 -0
- package/templates/firebase/lib/features/subscription/api/inapp_subscription_api.dart +389 -0
- package/templates/firebase/lib/features/subscription/api/subscription_api.dart +39 -0
- package/templates/firebase/lib/features/subscription/providers/models/premium_state.dart +35 -0
- package/templates/firebase/lib/features/subscription/providers/premium_page_provider.dart +259 -0
- package/templates/firebase/lib/features/subscription/repositories/subscription_repository.dart +177 -0
- package/templates/firebase/lib/features/subscription/shared/maybeshow_premium.dart +85 -0
- package/templates/firebase/lib/features/subscription/ui/component/active_premium_content.dart +171 -0
- package/templates/firebase/lib/features/subscription/ui/component/paywall_minimal.dart +146 -0
- package/templates/firebase/lib/features/subscription/ui/component/paywall_row.dart +332 -0
- package/templates/firebase/lib/features/subscription/ui/component/paywall_with_switch.dart +207 -0
- package/templates/firebase/lib/features/subscription/ui/component/premium_content.dart +157 -0
- package/templates/firebase/lib/features/subscription/ui/component/premium_page_factory.dart +161 -0
- package/templates/firebase/lib/features/subscription/ui/premium_page.dart +139 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/comparison_table.dart +346 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/feature_line.dart +131 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/paywall_empty_state.dart +68 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/premium_background.dart +63 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/premium_background_gradient.dart +53 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/premium_banner.dart +80 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/premium_bottom_menu.dart +102 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/premium_card.dart +26 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/premium_close_button.dart +61 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/premium_feature.dart +39 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/selectable_col.dart +377 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/selectable_row.dart +436 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/trial_switcher.dart +85 -0
- package/templates/firebase/lib/features/subscription/ui/widgets/unsubscribe_feedback_popup.dart +123 -0
- package/templates/firebase/lib/firebase_options.dart +75 -0
- package/templates/firebase/lib/google_auth_options.dart +10 -0
- package/templates/firebase/lib/i18n/app_locale_display.dart +17 -0
- package/templates/firebase/lib/i18n/en.i18n.json +514 -0
- package/templates/firebase/lib/i18n/es.i18n.json +514 -0
- package/templates/firebase/lib/i18n/pt.i18n.json +514 -0
- package/templates/firebase/lib/i18n/widgets/locale_code_badge.dart +47 -0
- package/templates/firebase/lib/main.dart +263 -0
- package/templates/firebase/lib/router.dart +226 -0
- package/templates/firebase/login-redesign-preview.png +0 -0
- package/templates/firebase/pubspec.yaml +177 -0
- package/templates/firebase/scripts/bump-ios-version.js +38 -0
- package/templates/firebase/scripts/release-ios.sh +137 -0
- package/templates/firebase/slang.yaml +7 -0
- package/templates/firebase/storage.rules +12 -0
- package/templates/firebase/test/core/data/api/analytics_api_fake.dart +25 -0
- package/templates/firebase/test/core/data/api/fake_remote_config_api.dart +45 -0
- package/templates/firebase/test/core/data/api/storage_api_fake.dart +28 -0
- package/templates/firebase/test/core/data/models/subscription_test.dart +42 -0
- package/templates/firebase/test/core/data/repositories/user_repository_test.dart +56 -0
- package/templates/firebase/test/core/guards/guard_test.dart +78 -0
- package/templates/firebase/test/core/navigation/kasy_page_transition_test.dart +30 -0
- package/templates/firebase/test/core/onstart_service_test.dart +18 -0
- package/templates/firebase/test/core/rating/rating_api_fake.dart +58 -0
- package/templates/firebase/test/core/rating/rating_banner_test.dart +117 -0
- package/templates/firebase/test/core/rating/rating_test.dart +60 -0
- package/templates/firebase/test/core/security/secured_storage_fake.dart +33 -0
- package/templates/firebase/test/core/states/event_dispatcher_test.dart +269 -0
- package/templates/firebase/test/core/states/user_state_notifier_test.dart +244 -0
- package/templates/firebase/test/core/widgets/responsive_layout_test.dart +50 -0
- package/templates/firebase/test/device_test_utils.dart +98 -0
- package/templates/firebase/test/features/authentication/data/api/auth_api_fake.dart +169 -0
- package/templates/firebase/test/features/authentication/data/api/user_api_fake.dart +86 -0
- package/templates/firebase/test/features/authentication/lost_password_page_test.dart +59 -0
- package/templates/firebase/test/features/authentication/repositories/authentication_repository_test.dart +88 -0
- package/templates/firebase/test/features/authentication/signin_page_test.dart +133 -0
- package/templates/firebase/test/features/authentication/signup_page_test.dart +136 -0
- package/templates/firebase/test/features/notifications/data/device_api_fake.dart +66 -0
- package/templates/firebase/test/features/notifications/data/fake_facebook_api.dart +40 -0
- package/templates/firebase/test/features/notifications/data/local_notifier_fake.dart +59 -0
- package/templates/firebase/test/features/notifications/data/notifications_api_fake.dart +120 -0
- package/templates/firebase/test/features/notifications/data/notifications_settings_fake.dart +34 -0
- package/templates/firebase/test/features/notifications/providers/device_repository_test.dart +68 -0
- package/templates/firebase/test/features/notifications/providers/notifications_repository_test.dart +74 -0
- package/templates/firebase/test/features/notifications/ui/notifications_page_test.dart +69 -0
- package/templates/firebase/test/features/subscription/api/fake_inapp_subscription_api.dart +85 -0
- package/templates/firebase/test/features/subscription/api/fake_revenuecat_product.dart +186 -0
- package/templates/firebase/test/features/subscription/api/fake_subscription_api.dart +11 -0
- package/templates/firebase/test/features/subscription/subscription_page_test.dart +119 -0
- package/templates/firebase/test/firebase_test_utils.dart +25 -0
- package/templates/firebase/test/test_utils.dart +272 -0
- package/templates/firebase/web/favicon.png +0 -0
- package/templates/firebase/web/firebase-messaging-sw.js +27 -0
- package/templates/firebase/web/icons/Icon-192.png +0 -0
- package/templates/firebase/web/icons/Icon-512.png +0 -0
- package/templates/firebase/web/icons/Icon-maskable-192.png +0 -0
- package/templates/firebase/web/icons/Icon-maskable-512.png +0 -0
- package/templates/firebase/web/index.html +110 -0
- package/templates/firebase/web/local_notifications.js +31 -0
- package/templates/firebase/web/manifest.json +35 -0
- package/templates/firebase/web/splash/img/dark-1x.png +0 -0
- package/templates/firebase/web/splash/img/dark-2x.png +0 -0
- package/templates/firebase/web/splash/img/dark-3x.png +0 -0
- package/templates/firebase/web/splash/img/dark-4x.png +0 -0
- package/templates/firebase/web/splash/img/light-1x.png +0 -0
- package/templates/firebase/web/splash/img/light-2x.png +0 -0
- package/templates/firebase/web/splash/img/light-3x.png +0 -0
- package/templates/firebase/web/splash/img/light-4x.png +0 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import 'package:device_preview/device_preview.dart';
|
|
2
|
+
import 'package:firebase_core/firebase_core.dart';
|
|
3
|
+
import 'package:firebase_messaging/firebase_messaging.dart';
|
|
4
|
+
import 'package:flutter/foundation.dart';
|
|
5
|
+
import 'package:flutter/material.dart';
|
|
6
|
+
import 'package:flutter/services.dart';
|
|
7
|
+
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
8
|
+
import 'package:flutter_native_splash/flutter_native_splash.dart';
|
|
9
|
+
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
10
|
+
import 'package:jiffy/jiffy.dart';
|
|
11
|
+
import 'package:kasy_kit/core/config/app_env.dart';
|
|
12
|
+
import 'package:kasy_kit/core/data/api/analytics_api.dart';
|
|
13
|
+
import 'package:kasy_kit/core/data/api/remote_config_api.dart';
|
|
14
|
+
import 'package:kasy_kit/core/data/api/tracking_api.dart';
|
|
15
|
+
import 'package:kasy_kit/core/dev_inspector/dev_inspector.dart';
|
|
16
|
+
import 'package:kasy_kit/core/home_widgets/home_widget_service.dart';
|
|
17
|
+
import 'package:kasy_kit/core/initializer/onstart_widget.dart';
|
|
18
|
+
import 'package:kasy_kit/core/keyboard_fix/keyboard_flicker_fix.dart';
|
|
19
|
+
import 'package:kasy_kit/core/shared_preferences/shared_preferences.dart';
|
|
20
|
+
import 'package:kasy_kit/core/states/user_state_notifier.dart';
|
|
21
|
+
import 'package:kasy_kit/core/theme/theme.dart';
|
|
22
|
+
import 'package:kasy_kit/core/web_device_preview/web_device_preview.dart';
|
|
23
|
+
import 'package:kasy_kit/environnements.dart';
|
|
24
|
+
import 'package:kasy_kit/features/authentication/api/authentication_api.dart';
|
|
25
|
+
import 'package:kasy_kit/features/notifications/api/local_notifier.dart';
|
|
26
|
+
import 'package:kasy_kit/features/notifications/repositories/background_notification_handler.dart';
|
|
27
|
+
import 'package:kasy_kit/features/notifications/repositories/notifications_repository.dart';
|
|
28
|
+
import 'package:kasy_kit/features/subscription/repositories/subscription_repository.dart';
|
|
29
|
+
import 'package:kasy_kit/firebase_options_dev.dart' as firebase_dev;
|
|
30
|
+
import 'package:kasy_kit/i18n/translations.g.dart';
|
|
31
|
+
import 'package:kasy_kit/router.dart';
|
|
32
|
+
import 'package:logger/logger.dart';
|
|
33
|
+
import 'package:sentry_flutter/sentry_flutter.dart';
|
|
34
|
+
import 'package:shared_preferences/shared_preferences.dart';
|
|
35
|
+
|
|
36
|
+
void main() async {
|
|
37
|
+
final widgetsBinding = KasyBinding.ensureInitialized();
|
|
38
|
+
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
|
|
39
|
+
await AppEnv.load();
|
|
40
|
+
final env = Environment.fromEnv();
|
|
41
|
+
final logger = Logger();
|
|
42
|
+
logger.i('Starting app in ${env.name} mode');
|
|
43
|
+
// I like to force portrait mode on mobile devices
|
|
44
|
+
// What is the last time you used an app in landscape mode?
|
|
45
|
+
SystemChrome.setPreferredOrientations([
|
|
46
|
+
DeviceOrientation.portraitUp,
|
|
47
|
+
DeviceOrientation.portraitDown,
|
|
48
|
+
]);
|
|
49
|
+
|
|
50
|
+
// initialize shared preferences for theme and locale
|
|
51
|
+
final sharedPrefs = await SharedPreferences.getInstance();
|
|
52
|
+
|
|
53
|
+
// Restore saved locale; fall back to device locale if none saved.
|
|
54
|
+
// Supported locales: en, pt, es. If the device locale is not one of these,
|
|
55
|
+
// the base locale (en) is used as fallback (configured in slang.yaml).
|
|
56
|
+
// To change the default locale, update `base_locale` in slang.yaml.
|
|
57
|
+
final savedLocale = sharedPrefs.getString('app_locale');
|
|
58
|
+
if (savedLocale != null) {
|
|
59
|
+
final appLocale = AppLocale.values.firstWhere(
|
|
60
|
+
(l) => l.languageCode == savedLocale,
|
|
61
|
+
orElse: () => AppLocale.en,
|
|
62
|
+
);
|
|
63
|
+
LocaleSettings.setLocale(appLocale);
|
|
64
|
+
} else {
|
|
65
|
+
LocaleSettings.useDeviceLocale();
|
|
66
|
+
}
|
|
67
|
+
// initialize firebase app for notifications
|
|
68
|
+
await switch (env) {
|
|
69
|
+
DevEnvironment() => Firebase.initializeApp(
|
|
70
|
+
options: firebase_dev.DefaultFirebaseOptions.currentPlatform,
|
|
71
|
+
),
|
|
72
|
+
ProdEnvironment() => Firebase.initializeApp(
|
|
73
|
+
// SETUP REQUIRED: For production, create a separate Firebase project and run:
|
|
74
|
+
// flutterfire configure --project=<your-prod-project> --out=lib/firebase_options_prod.dart
|
|
75
|
+
// Then replace this import with firebase_options_prod.dart for this case.
|
|
76
|
+
// Using the dev project in production is only safe for early-stage development.
|
|
77
|
+
options: firebase_dev.DefaultFirebaseOptions.currentPlatform,
|
|
78
|
+
),
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// Jiffy locale must be set AFTER Firebase init because Firebase resets
|
|
82
|
+
// Intl.defaultLocale internally, which would override our setting.
|
|
83
|
+
await Jiffy.setLocale(LocaleSettings.instance.currentLocale.languageCode);
|
|
84
|
+
|
|
85
|
+
// MUST be registered at the top-level BEFORE runApp().
|
|
86
|
+
FirebaseMessaging.onBackgroundMessage(onBackgroundMessage);
|
|
87
|
+
|
|
88
|
+
// initialize sentry for error reporting in production only
|
|
89
|
+
if (env is DevEnvironment) {
|
|
90
|
+
run(sharedPrefs);
|
|
91
|
+
} else if (env is ProdEnvironment) {
|
|
92
|
+
SentryFlutter.init((options) {
|
|
93
|
+
options.dsn = env.sentryDsn;
|
|
94
|
+
// 20% of traces will be sent to Sentry server. You should start with 1 and decrease it once you have more users.
|
|
95
|
+
options.tracesSampleRate = 0.2;
|
|
96
|
+
options.environment = env.name;
|
|
97
|
+
}, appRunner: () => run(sharedPrefs));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
void run(SharedPreferences prefs) => runApp(
|
|
102
|
+
TranslationProvider(
|
|
103
|
+
child: ProviderScope(child: MyApp(sharedPreferences: prefs)),
|
|
104
|
+
),
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
// use this if you want to define different themes for different platforms
|
|
108
|
+
// notifier: AppTheme.adaptive(
|
|
109
|
+
// defaultTextTheme: KasyTextTheme.build(),
|
|
110
|
+
// ios: const IosThemeFactory(),
|
|
111
|
+
// android: const AndroidThemeFactory(),
|
|
112
|
+
// web: const WebThemeFactory(),
|
|
113
|
+
// lightColors: KasyColors.light(),
|
|
114
|
+
// darkColors: KasyColors.dark(),
|
|
115
|
+
// mode: ThemeMode.dark,
|
|
116
|
+
// ),
|
|
117
|
+
// See ./docs/theme.md for more details
|
|
118
|
+
class MyApp extends ConsumerWidget {
|
|
119
|
+
final SharedPreferences sharedPreferences;
|
|
120
|
+
|
|
121
|
+
const MyApp({super.key, required this.sharedPreferences});
|
|
122
|
+
|
|
123
|
+
// This widget is the root of your application.
|
|
124
|
+
@override
|
|
125
|
+
Widget build(BuildContext context, WidgetRef ref) {
|
|
126
|
+
ErrorWidget.builder = (FlutterErrorDetails details) {
|
|
127
|
+
return AppErrorWidget(error: details);
|
|
128
|
+
};
|
|
129
|
+
final goRouter = ref.watch(goRouterProvider);
|
|
130
|
+
|
|
131
|
+
return ThemeProvider(
|
|
132
|
+
notifier: AppTheme.uniform(
|
|
133
|
+
sharedPreferences: sharedPreferences,
|
|
134
|
+
themeFactory: const UniversalThemeFactory(),
|
|
135
|
+
lightColors: KasyColors.light(),
|
|
136
|
+
darkColors: KasyColors.dark(),
|
|
137
|
+
textTheme: KasyTextTheme.build(),
|
|
138
|
+
defaultMode: ThemeMode.light,
|
|
139
|
+
),
|
|
140
|
+
child: Builder(
|
|
141
|
+
builder: (context) {
|
|
142
|
+
return WebDevicePreview.wrap(
|
|
143
|
+
child: DevInspector.wrap(
|
|
144
|
+
child: MaterialApp.router(
|
|
145
|
+
title: 'Kasy',
|
|
146
|
+
scaffoldMessengerKey: devInspectorRootScaffoldMessengerKey,
|
|
147
|
+
theme: ThemeProvider.of(context).light,
|
|
148
|
+
darkTheme: ThemeProvider.of(context).dark,
|
|
149
|
+
themeMode: ThemeProvider.of(context).mode,
|
|
150
|
+
themeAnimationDuration: Duration.zero,
|
|
151
|
+
routerConfig: goRouter,
|
|
152
|
+
localizationsDelegates: const [
|
|
153
|
+
GlobalMaterialLocalizations.delegate,
|
|
154
|
+
GlobalWidgetsLocalizations.delegate,
|
|
155
|
+
GlobalCupertinoLocalizations.delegate,
|
|
156
|
+
],
|
|
157
|
+
locale: TranslationProvider.of(context).flutterLocale,
|
|
158
|
+
supportedLocales: AppLocaleUtils.supportedLocales,
|
|
159
|
+
builder: (context, child) => Initializer(
|
|
160
|
+
services: [
|
|
161
|
+
authenticationApiProvider,
|
|
162
|
+
sharedPreferencesProvider,
|
|
163
|
+
remoteConfigApiProvider,
|
|
164
|
+
notificationsSettingsProvider,
|
|
165
|
+
notificationRepositoryProvider,
|
|
166
|
+
subscriptionRepositoryProvider,
|
|
167
|
+
userStateNotifierProvider.notifier,
|
|
168
|
+
homeWidgetsManagerProvider,
|
|
169
|
+
analyticsApiProvider,
|
|
170
|
+
facebookEventApiProvider,
|
|
171
|
+
],
|
|
172
|
+
onReady: DevicePreview.appBuilder(context, child),
|
|
173
|
+
onError: (_, error) => InitializationErrorPage(error: error),
|
|
174
|
+
onLoading: Scaffold(
|
|
175
|
+
body: Center(
|
|
176
|
+
child: CircularProgressIndicator.adaptive(
|
|
177
|
+
valueColor: AlwaysStoppedAnimation<Color>(
|
|
178
|
+
context.colors.primary,
|
|
179
|
+
),
|
|
180
|
+
),
|
|
181
|
+
),
|
|
182
|
+
),
|
|
183
|
+
),
|
|
184
|
+
),
|
|
185
|
+
),
|
|
186
|
+
);
|
|
187
|
+
},
|
|
188
|
+
),
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/// This is an example of a more user friendly error widget
|
|
194
|
+
/// By default Flutter will show a red screen with the error in debug mode
|
|
195
|
+
/// and a grey screen in release mode
|
|
196
|
+
class AppErrorWidget extends StatelessWidget {
|
|
197
|
+
final FlutterErrorDetails? error;
|
|
198
|
+
|
|
199
|
+
const AppErrorWidget({super.key, this.error});
|
|
200
|
+
|
|
201
|
+
@override
|
|
202
|
+
Widget build(BuildContext context) {
|
|
203
|
+
return Container(
|
|
204
|
+
padding: const EdgeInsets.all(16),
|
|
205
|
+
color: Colors.orangeAccent,
|
|
206
|
+
child: Column(
|
|
207
|
+
mainAxisAlignment: MainAxisAlignment.center,
|
|
208
|
+
children: [
|
|
209
|
+
const Text(
|
|
210
|
+
'Oups!',
|
|
211
|
+
style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
|
|
212
|
+
),
|
|
213
|
+
const SizedBox(height: 8),
|
|
214
|
+
const Text(
|
|
215
|
+
'Sorry, Something went wrong',
|
|
216
|
+
style: TextStyle(color: Colors.white),
|
|
217
|
+
),
|
|
218
|
+
const SizedBox(height: 8),
|
|
219
|
+
Text(
|
|
220
|
+
'${error?.exception}\n',
|
|
221
|
+
style: const TextStyle(color: Colors.white, fontSize: 10),
|
|
222
|
+
),
|
|
223
|
+
],
|
|
224
|
+
),
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
class InitializationErrorPage extends StatelessWidget {
|
|
230
|
+
final String error;
|
|
231
|
+
|
|
232
|
+
const InitializationErrorPage({super.key, required this.error});
|
|
233
|
+
|
|
234
|
+
@override
|
|
235
|
+
Widget build(BuildContext context) {
|
|
236
|
+
return Scaffold(
|
|
237
|
+
body: Padding(
|
|
238
|
+
padding: const EdgeInsets.all(24.0),
|
|
239
|
+
child: Column(
|
|
240
|
+
mainAxisAlignment: MainAxisAlignment.center,
|
|
241
|
+
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
242
|
+
spacing: 8,
|
|
243
|
+
children: [
|
|
244
|
+
Text('Cannot start app', style: context.textTheme.titleLarge),
|
|
245
|
+
Text(
|
|
246
|
+
'Check your internet connection and start again',
|
|
247
|
+
style: context.textTheme.bodyLarge?.copyWith(
|
|
248
|
+
color: context.colors.muted,
|
|
249
|
+
),
|
|
250
|
+
),
|
|
251
|
+
if (kDebugMode)
|
|
252
|
+
Text(
|
|
253
|
+
"developper mode error: $error",
|
|
254
|
+
style: context.textTheme.bodyLarge?.copyWith(
|
|
255
|
+
color: context.colors.error,
|
|
256
|
+
),
|
|
257
|
+
),
|
|
258
|
+
],
|
|
259
|
+
),
|
|
260
|
+
),
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import 'package:flutter/foundation.dart';
|
|
2
|
+
import 'package:flutter/material.dart';
|
|
3
|
+
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
4
|
+
import 'package:go_router/go_router.dart';
|
|
5
|
+
import 'package:kasy_kit/core/bottom_menu/bottom_menu.dart';
|
|
6
|
+
import 'package:kasy_kit/core/config/features.dart';
|
|
7
|
+
import 'package:kasy_kit/core/data/api/analytics_api.dart';
|
|
8
|
+
import 'package:kasy_kit/core/guards/user_info_guard.dart';
|
|
9
|
+
import 'package:kasy_kit/core/navigation/kasy_navigation_config.dart';
|
|
10
|
+
import 'package:kasy_kit/core/navigation/kasy_page_transition.dart';
|
|
11
|
+
import 'package:kasy_kit/core/security/biometric_guard.dart';
|
|
12
|
+
import 'package:kasy_kit/core/widgets/page_not_found.dart';
|
|
13
|
+
import 'package:kasy_kit/features/authentication/ui/phone_auth_page.dart';
|
|
14
|
+
import 'package:kasy_kit/features/authentication/ui/recover_password_page.dart';
|
|
15
|
+
import 'package:kasy_kit/features/authentication/ui/signin_page.dart';
|
|
16
|
+
import 'package:kasy_kit/features/authentication/ui/signup_page.dart';
|
|
17
|
+
import 'package:kasy_kit/features/dev/keyboard_test_page.dart';
|
|
18
|
+
import 'package:kasy_kit/features/feedbacks/ui/feedback_page.dart';
|
|
19
|
+
import 'package:kasy_kit/features/llm_chat/llm_chat_page.dart';
|
|
20
|
+
import 'package:kasy_kit/features/local_reminder/ui/reminder_page.dart';
|
|
21
|
+
import 'package:kasy_kit/features/onboarding/ui/onboarding_page.dart';
|
|
22
|
+
import 'package:kasy_kit/features/settings/ui/components/admin/admin_home_widgets.dart';
|
|
23
|
+
import 'package:kasy_kit/features/settings/ui/components/admin/admin_paywalls.dart';
|
|
24
|
+
import 'package:kasy_kit/features/settings/ui/components/admin/admin_routes.dart';
|
|
25
|
+
import 'package:kasy_kit/features/settings/ui/components/admin/send_push_notification_page.dart';
|
|
26
|
+
import 'package:kasy_kit/features/subscription/ui/component/premium_page_factory.dart';
|
|
27
|
+
import 'package:kasy_kit/features/subscription/ui/premium_page.dart';
|
|
28
|
+
|
|
29
|
+
final goRouterProvider = Provider<GoRouter>((ref) => generateRouter());
|
|
30
|
+
|
|
31
|
+
extension GoRouterRiverpod on Ref {
|
|
32
|
+
GoRouter get goRouter => read(goRouterProvider);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
final navigatorKey = GlobalKey<NavigatorState>();
|
|
36
|
+
|
|
37
|
+
GoRouter generateRouter({
|
|
38
|
+
String? initialLocation,
|
|
39
|
+
List<GoRoute>? additionalRoutes,
|
|
40
|
+
List<NavigatorObserver>? observers,
|
|
41
|
+
}) {
|
|
42
|
+
return GoRouter(
|
|
43
|
+
initialLocation: '/',
|
|
44
|
+
navigatorKey: navigatorKey,
|
|
45
|
+
errorBuilder: (context, state) => const PageNotFound(),
|
|
46
|
+
observers: [
|
|
47
|
+
AnalyticsObserver(analyticsApi: MixpanelAnalyticsApi.instance()),
|
|
48
|
+
|
|
49
|
+
...?observers,
|
|
50
|
+
],
|
|
51
|
+
routes: [
|
|
52
|
+
GoRoute(
|
|
53
|
+
name: 'home',
|
|
54
|
+
path: '/',
|
|
55
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
56
|
+
key: state.pageKey,
|
|
57
|
+
child: const UserInfosGuard(
|
|
58
|
+
fallbackRoute: '/onboarding',
|
|
59
|
+
child: BiometricGuard(child: BottomMenu()),
|
|
60
|
+
),
|
|
61
|
+
),
|
|
62
|
+
),
|
|
63
|
+
GoRoute(
|
|
64
|
+
name: 'onboarding',
|
|
65
|
+
path: '/onboarding',
|
|
66
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
67
|
+
key: state.pageKey,
|
|
68
|
+
child: const OnboardingPage(),
|
|
69
|
+
),
|
|
70
|
+
),
|
|
71
|
+
GoRoute(
|
|
72
|
+
name: 'signup',
|
|
73
|
+
path: '/signup',
|
|
74
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
75
|
+
key: state.pageKey,
|
|
76
|
+
transition: KasyNavigationConfig.authPeer,
|
|
77
|
+
child: const SignupPage(),
|
|
78
|
+
),
|
|
79
|
+
),
|
|
80
|
+
GoRoute(
|
|
81
|
+
name: 'signin',
|
|
82
|
+
path: '/signin',
|
|
83
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
84
|
+
key: state.pageKey,
|
|
85
|
+
transition: KasyNavigationConfig.authPeer,
|
|
86
|
+
child: const SigninPage(),
|
|
87
|
+
),
|
|
88
|
+
),
|
|
89
|
+
GoRoute(
|
|
90
|
+
name: 'signinWithPhone',
|
|
91
|
+
path: '/signinWithPhone',
|
|
92
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
93
|
+
key: state.pageKey,
|
|
94
|
+
child: const PhoneAuthPage(),
|
|
95
|
+
),
|
|
96
|
+
),
|
|
97
|
+
if (withRevenuecat)
|
|
98
|
+
GoRoute(
|
|
99
|
+
name: 'premium',
|
|
100
|
+
path: '/premium',
|
|
101
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
102
|
+
key: state.pageKey,
|
|
103
|
+
child: const PremiumPage(paywall: PaywallFactory.minimal),
|
|
104
|
+
),
|
|
105
|
+
),
|
|
106
|
+
if (withFeedback)
|
|
107
|
+
GoRoute(
|
|
108
|
+
name: 'feedback',
|
|
109
|
+
path: '/feedback',
|
|
110
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
111
|
+
key: state.pageKey,
|
|
112
|
+
child: const FeedbackPage(),
|
|
113
|
+
),
|
|
114
|
+
),
|
|
115
|
+
if (withLlmChat)
|
|
116
|
+
GoRoute(
|
|
117
|
+
name: 'assistant',
|
|
118
|
+
path: '/assistant',
|
|
119
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
120
|
+
key: state.pageKey,
|
|
121
|
+
child: const LlmChatPage(),
|
|
122
|
+
),
|
|
123
|
+
),
|
|
124
|
+
if (withLocalNotifications)
|
|
125
|
+
GoRoute(
|
|
126
|
+
name: 'reminder',
|
|
127
|
+
path: '/reminder',
|
|
128
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
129
|
+
key: state.pageKey,
|
|
130
|
+
child: const ReminderPage(),
|
|
131
|
+
),
|
|
132
|
+
),
|
|
133
|
+
GoRoute(
|
|
134
|
+
name: 'notifications',
|
|
135
|
+
path: '/notifications',
|
|
136
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
137
|
+
key: state.pageKey,
|
|
138
|
+
child: const UserInfosGuard(
|
|
139
|
+
fallbackRoute: '/onboarding',
|
|
140
|
+
child: BiometricGuard(child: BottomMenu(initialRoute: 'notifications')),
|
|
141
|
+
),
|
|
142
|
+
),
|
|
143
|
+
),
|
|
144
|
+
GoRoute(
|
|
145
|
+
name: 'settings',
|
|
146
|
+
path: '/settings',
|
|
147
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
148
|
+
key: state.pageKey,
|
|
149
|
+
child: const UserInfosGuard(
|
|
150
|
+
fallbackRoute: '/onboarding',
|
|
151
|
+
child: BiometricGuard(child: BottomMenu(initialRoute: 'settings')),
|
|
152
|
+
),
|
|
153
|
+
),
|
|
154
|
+
),
|
|
155
|
+
GoRoute(
|
|
156
|
+
name: 'recover_password',
|
|
157
|
+
path: '/recover_password',
|
|
158
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
159
|
+
key: state.pageKey,
|
|
160
|
+
child: const RecoverPasswordPage(),
|
|
161
|
+
),
|
|
162
|
+
),
|
|
163
|
+
if (kDebugMode) ...[
|
|
164
|
+
GoRoute(
|
|
165
|
+
name: 'admin_paywalls',
|
|
166
|
+
path: adminRoutePaywalls,
|
|
167
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
168
|
+
key: state.pageKey,
|
|
169
|
+
child: const AdminPaywalls(),
|
|
170
|
+
),
|
|
171
|
+
),
|
|
172
|
+
GoRoute(
|
|
173
|
+
name: 'admin_home_widgets',
|
|
174
|
+
path: adminRouteHomeWidgets,
|
|
175
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
176
|
+
key: state.pageKey,
|
|
177
|
+
child: const AdminHomeWidgets(),
|
|
178
|
+
),
|
|
179
|
+
),
|
|
180
|
+
GoRoute(
|
|
181
|
+
name: 'admin_premium_preview',
|
|
182
|
+
path: '/admin/premium/:variant',
|
|
183
|
+
pageBuilder: (context, state) {
|
|
184
|
+
final paywall = paywallFactoryFromAdminRoute(
|
|
185
|
+
state.pathParameters['variant'],
|
|
186
|
+
);
|
|
187
|
+
if (paywall == null || !withRevenuecat) {
|
|
188
|
+
return kasyTransitionPage(
|
|
189
|
+
key: state.pageKey,
|
|
190
|
+
child: const PageNotFound(),
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
return kasyTransitionPage(
|
|
194
|
+
key: state.pageKey,
|
|
195
|
+
child: PremiumPage(paywall: paywall),
|
|
196
|
+
);
|
|
197
|
+
},
|
|
198
|
+
),
|
|
199
|
+
],
|
|
200
|
+
GoRoute(
|
|
201
|
+
name: 'send_push',
|
|
202
|
+
path: adminRouteSendPush,
|
|
203
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
204
|
+
key: state.pageKey,
|
|
205
|
+
child: const SendPushNotificationPage(),
|
|
206
|
+
),
|
|
207
|
+
),
|
|
208
|
+
GoRoute(
|
|
209
|
+
name: 'keyboard_test',
|
|
210
|
+
path: adminRouteKeyboardTest,
|
|
211
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
212
|
+
key: state.pageKey,
|
|
213
|
+
child: const KeyboardTestPage(),
|
|
214
|
+
),
|
|
215
|
+
),
|
|
216
|
+
GoRoute(
|
|
217
|
+
name: '404',
|
|
218
|
+
path: '/404',
|
|
219
|
+
pageBuilder: (context, state) => kasyTransitionPage(
|
|
220
|
+
key: state.pageKey,
|
|
221
|
+
child: const PageNotFound(),
|
|
222
|
+
),
|
|
223
|
+
),
|
|
224
|
+
],
|
|
225
|
+
);
|
|
226
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
name: kasy_kit
|
|
2
|
+
description: "A new Flutter project."
|
|
3
|
+
# The following line prevents the package from being accidentally published to
|
|
4
|
+
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
|
5
|
+
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|
6
|
+
|
|
7
|
+
# The following defines the version and build number for your application.
|
|
8
|
+
# A version number is three numbers separated by dots, like 1.2.43
|
|
9
|
+
# followed by an optional build number separated by a +.
|
|
10
|
+
# Both the version and the builder number may be overridden in flutter
|
|
11
|
+
# build by specifying --build-name and --build-number, respectively.
|
|
12
|
+
# In Android, build-name is used as versionName while build-number used as versionCode.
|
|
13
|
+
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
|
|
14
|
+
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
|
|
15
|
+
# Read more about iOS versioning at
|
|
16
|
+
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
|
17
|
+
# In Windows, build-name is used as the major, minor, and patch parts
|
|
18
|
+
# of the product and file versions while build-number is used as the build suffix.
|
|
19
|
+
version: 1.0.0+23
|
|
20
|
+
|
|
21
|
+
environment:
|
|
22
|
+
sdk: ^3.11.0
|
|
23
|
+
|
|
24
|
+
# Dependencies specify other packages that your package needs in order to work.
|
|
25
|
+
# To automatically upgrade your package dependencies to the latest versions
|
|
26
|
+
# consider running `flutter pub upgrade --major-versions`. Alternatively,
|
|
27
|
+
# dependencies can be manually updated by changing the version numbers below to
|
|
28
|
+
# the latest version available on pub.dev. To see which dependencies have newer
|
|
29
|
+
# versions available, run `flutter pub outdated`.
|
|
30
|
+
dependencies:
|
|
31
|
+
# The following adds the Cupertino Icons font to your application.
|
|
32
|
+
# Use with the CupertinoIcons class for iOS style icons.
|
|
33
|
+
animations: ^2.1.1
|
|
34
|
+
another_flushbar: ^1.12.32
|
|
35
|
+
background_fetch: ^1.5.0
|
|
36
|
+
bart: ^1.4.1
|
|
37
|
+
better_skeleton: ^0.1.0
|
|
38
|
+
cloud_firestore: ^6.1.2
|
|
39
|
+
cloud_functions: ^6.0.6
|
|
40
|
+
cross_file: ^0.3.5+2
|
|
41
|
+
cupertino_icons: ^1.0.8
|
|
42
|
+
device_info_plus: ^12.3.0
|
|
43
|
+
device_preview: ^1.3.1
|
|
44
|
+
dio: ^5.9.2
|
|
45
|
+
facebook_app_events: ^0.24.0
|
|
46
|
+
firebase_app_installations: ^0.4.0+7
|
|
47
|
+
firebase_auth: ^6.1.4
|
|
48
|
+
firebase_core: ^4.5.0
|
|
49
|
+
firebase_messaging: ^16.1.2
|
|
50
|
+
firebase_remote_config: ^6.2.0
|
|
51
|
+
firebase_storage: ^13.0.6
|
|
52
|
+
flutter:
|
|
53
|
+
sdk: flutter
|
|
54
|
+
flutter_animate: ^4.5.2
|
|
55
|
+
flutter_dotenv: ^6.0.0
|
|
56
|
+
flutter_facebook_auth: ^7.1.5
|
|
57
|
+
flutter_local_notifications: ^20.1.0
|
|
58
|
+
flutter_localizations:
|
|
59
|
+
sdk: flutter
|
|
60
|
+
flutter_native_splash: ^2.4.7
|
|
61
|
+
flutter_riverpod: ^3.1.0
|
|
62
|
+
flutter_secure_storage: ^9.2.4
|
|
63
|
+
flutter_timezone: ^5.0.1
|
|
64
|
+
freezed_annotation: ^3.1.0
|
|
65
|
+
go_router: ^17.1.0
|
|
66
|
+
google_fonts: ^8.0.2
|
|
67
|
+
google_sign_in: ^7.2.0
|
|
68
|
+
home_widget: ^0.9.0
|
|
69
|
+
image: ^4.8.0
|
|
70
|
+
image_picker: ^1.2.1
|
|
71
|
+
in_app_review: ^2.0.11
|
|
72
|
+
intl: ^0.20.2
|
|
73
|
+
jiffy: ^6.4.4
|
|
74
|
+
json_annotation: ^4.9.0
|
|
75
|
+
local_auth: ^3.0.1
|
|
76
|
+
logger: ^2.6.2
|
|
77
|
+
lucide_icons_flutter: ^3.1.10
|
|
78
|
+
mixpanel_flutter: ^2.5.0
|
|
79
|
+
open_filex: ^4.7.0
|
|
80
|
+
package_info_plus: ^8.3.0
|
|
81
|
+
path_provider: ^2.1.5
|
|
82
|
+
permission_handler: ^12.0.1
|
|
83
|
+
provider: ^6.1.0
|
|
84
|
+
pub_semver: ^2.2.0
|
|
85
|
+
purchases_flutter: ^9.12.3
|
|
86
|
+
riverpod_annotation: ^4.0.0
|
|
87
|
+
sentry_flutter: ^9.14.0
|
|
88
|
+
shared_preferences: ^2.5.4
|
|
89
|
+
sign_in_with_apple: ^7.0.1
|
|
90
|
+
slang: ^4.12.1
|
|
91
|
+
slang_flutter: ^4.12.1
|
|
92
|
+
timezone: ^0.10.1
|
|
93
|
+
universal_html: ^2.3.0
|
|
94
|
+
universal_io: ^2.3.1
|
|
95
|
+
url_launcher: ^6.3.2
|
|
96
|
+
|
|
97
|
+
dev_dependencies:
|
|
98
|
+
# The "flutter_lints" package below contains a set of recommended lints to
|
|
99
|
+
# encourage good coding practices. The lint set provided by the package is
|
|
100
|
+
# activated in the `analysis_options.yaml` file located at the root of your
|
|
101
|
+
# package. See that file for information about deactivating specific lint
|
|
102
|
+
# rules and activating additional ones.
|
|
103
|
+
build_runner: ^2.11.1
|
|
104
|
+
change_app_package_name: ^1.5.0
|
|
105
|
+
flutter_launcher_icons: ^0.14.4
|
|
106
|
+
flutter_lints: ^6.0.0
|
|
107
|
+
flutter_local_notifications_platform_interface: any
|
|
108
|
+
flutter_test:
|
|
109
|
+
sdk: flutter
|
|
110
|
+
freezed: ^3.2.3
|
|
111
|
+
json_serializable: ^6.11.2
|
|
112
|
+
lint: ^2.8.0
|
|
113
|
+
permission_handler_platform_interface: any
|
|
114
|
+
riverpod_generator: ^4.0.0+1
|
|
115
|
+
sort_pubspec_dependencies: ^0.0.2
|
|
116
|
+
|
|
117
|
+
# For information on the generic Dart part of this file, see the
|
|
118
|
+
# following page: https://dart.dev/tools/pub/pubspec
|
|
119
|
+
|
|
120
|
+
# The following section is specific to Flutter packages.
|
|
121
|
+
flutter:
|
|
122
|
+
uses-material-design: true
|
|
123
|
+
assets:
|
|
124
|
+
- .env
|
|
125
|
+
- assets/images/
|
|
126
|
+
- assets/images/onboarding/
|
|
127
|
+
- assets/icons/
|
|
128
|
+
flutter_launcher_icons:
|
|
129
|
+
image_path: assets/images/icon.png
|
|
130
|
+
android: ic_launcher
|
|
131
|
+
ios: true
|
|
132
|
+
remove_alpha_ios: true
|
|
133
|
+
flutter_native_splash:
|
|
134
|
+
color: "#FFFFFF"
|
|
135
|
+
color_dark: "#000000"
|
|
136
|
+
fullscreen: true
|
|
137
|
+
preserve: true
|
|
138
|
+
ios: true
|
|
139
|
+
android: true
|
|
140
|
+
image: assets/images/splashscreen.png
|
|
141
|
+
image_dark: assets/images/splashscreen.png
|
|
142
|
+
android_12:
|
|
143
|
+
color: "#FFFFFF"
|
|
144
|
+
color_dark: "#000000"
|
|
145
|
+
image: assets/images/splashscreen.png
|
|
146
|
+
image_dark: assets/images/splashscreen.png
|
|
147
|
+
|
|
148
|
+
# To add assets to your application, add an assets section, like this:
|
|
149
|
+
# assets:
|
|
150
|
+
# - images/a_dot_burr.jpeg
|
|
151
|
+
# - images/a_dot_ham.jpeg
|
|
152
|
+
|
|
153
|
+
# An image asset can refer to one or more resolution-specific "variants", see
|
|
154
|
+
# https://flutter.dev/to/resolution-aware-images
|
|
155
|
+
|
|
156
|
+
# For details regarding adding assets from package dependencies, see
|
|
157
|
+
# https://flutter.dev/to/asset-from-package
|
|
158
|
+
|
|
159
|
+
# To add custom fonts to your application, add a fonts section here,
|
|
160
|
+
# in this "flutter" section. Each entry in this list should have a
|
|
161
|
+
# "family" key with the font family name, and a "fonts" key with a
|
|
162
|
+
# list giving the asset and other descriptors for the font. For
|
|
163
|
+
# example:
|
|
164
|
+
# fonts:
|
|
165
|
+
# - family: Schyler
|
|
166
|
+
# fonts:
|
|
167
|
+
# - asset: fonts/Schyler-Regular.ttf
|
|
168
|
+
# - asset: fonts/Schyler-Italic.ttf
|
|
169
|
+
# style: italic
|
|
170
|
+
# - family: Trajan Pro
|
|
171
|
+
# fonts:
|
|
172
|
+
# - asset: fonts/TrajanPro.ttf
|
|
173
|
+
# - asset: fonts/TrajanPro_Bold.ttf
|
|
174
|
+
# weight: 700
|
|
175
|
+
#
|
|
176
|
+
# For details regarding fonts from package dependencies,
|
|
177
|
+
# see https://flutter.dev/to/font-from-package
|