@umacloud/knowledge 1.0.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/00-governance/governance-capabilities.md +557 -0
- package/00-governance/knowledge-map.md +39 -0
- package/00-governance/maintenance-policy.md +76 -0
- package/00-governance/review-checklist.md +81 -0
- package/README.md +13 -0
- package/ai/01-standards/agent-development-complete.md +691 -0
- package/ai/01-standards/llm-application-complete.md +488 -0
- package/ai/01-standards/mlops-complete.md +798 -0
- package/ai/01-standards/prompt-engineering-complete.md +646 -0
- package/ai/01-standards/rag-architecture-complete.md +649 -0
- package/ai/02-playbooks/llm-evaluation-playbook.md +847 -0
- package/ai/03-checklists/ai-project-checklist.md +215 -0
- package/ai/04-antipatterns/ai-antipatterns.md +661 -0
- package/ai/05-cases/case-rag-production.md +147 -0
- package/ai/06-glossary/ai-glossary.md +162 -0
- package/ai/agent-evaluation-benchmark.md +53 -0
- package/ai/ai-agent-memory-context-management.md +41 -0
- package/ai/ai-cost-capacity-optimization-playbook.md +42 -0
- package/ai/ai-data-security-and-compliance-playbook.md +37 -0
- package/ai/ai-domain-index-and-checklist.md +40 -0
- package/ai/ai-governance-maturity-model.md +50 -0
- package/ai/ai-model-selection-and-routing-strategy.md +47 -0
- package/ai/ai-observability-and-oncall-runbook.md +52 -0
- package/ai/ai-rag-engineering-playbook.md +42 -0
- package/ai/ai-red-team-and-safety-evaluation.md +42 -0
- package/ai/ai-release-readiness-and-rollback-gate.md +42 -0
- package/ai/llm-agent-engineering-deep-dive.md +57 -0
- package/ai/prompt-and-tool-guardrails.md +52 -0
- package/api/01-standards/enterprise-api-standards.md +198 -0
- package/api/01-standards/rest-api-design-guide.md +63 -0
- package/api/02-playbooks/api-pagination-playbook.md +93 -0
- package/api/02-playbooks/graphql-production-playbook.md +176 -0
- package/api/03-checklists/api-review-checklist.md +55 -0
- package/api/04-antipatterns/api-antipatterns.md +112 -0
- package/architecture/01-standards/api-gateway-patterns.md +496 -0
- package/architecture/01-standards/cloud-native-patterns.md +644 -0
- package/architecture/01-standards/distributed-systems-patterns.md +591 -0
- package/architecture/01-standards/event-driven-architecture.md +595 -0
- package/architecture/01-standards/microservices-patterns-complete.md +968 -0
- package/architecture/01-standards/microservices-patterns.md +495 -0
- package/architecture/01-standards/system-design-interview.md +664 -0
- package/architecture/02-playbooks/microservices-patterns-playbook.md +137 -0
- package/architecture/02-playbooks/migration-playbook.md +780 -0
- package/architecture/02-playbooks/system-design-playbook.md +779 -0
- package/architecture/03-checklists/architecture-decision-checklist.md +297 -0
- package/architecture/04-antipatterns/architecture-antipatterns.md +417 -0
- package/architecture/05-cases/case-netflix-microservices.md +413 -0
- package/architecture/06-glossary/architecture-glossary.md +164 -0
- package/architecture/adr-template-and-examples.md +38 -0
- package/architecture/api-gateway-deep-dive.md +1291 -0
- package/architecture/configuration-management.md +1162 -0
- package/architecture/distributed-transactions.md +1220 -0
- package/architecture/microservices-complete.md +735 -0
- package/architecture/resilience-and-disaster-patterns.md +37 -0
- package/architecture/service-governance.md +1198 -0
- package/architecture/system-architecture-deep-dive.md +37 -0
- package/backend/01-standards/analytics-and-growth.md +65 -0
- package/backend/01-standards/api-and-error-conventions.md +120 -0
- package/backend/01-standards/application-layering-and-packaging.md +160 -0
- package/backend/01-standards/auth-implementation.md +104 -0
- package/backend/01-standards/backend-framework-idioms.md +74 -0
- package/backend/01-standards/background-jobs-and-async.md +66 -0
- package/backend/01-standards/caching-strategies-complete.md +390 -0
- package/backend/01-standards/config-and-observability.md +77 -0
- package/backend/01-standards/data-modeling-and-persistence.md +94 -0
- package/backend/01-standards/django-complete.md +1765 -0
- package/backend/01-standards/email-and-notifications.md +64 -0
- package/backend/01-standards/fastapi-complete.md +925 -0
- package/backend/01-standards/file-upload-and-storage.md +66 -0
- package/backend/01-standards/graphql-api-complete.md +416 -0
- package/backend/01-standards/llm-application-standard.md +78 -0
- package/backend/01-standards/message-queue-patterns.md +379 -0
- package/backend/01-standards/microservices-and-distributed.md +78 -0
- package/backend/01-standards/nestjs-complete.md +2167 -0
- package/backend/01-standards/payment-integration.md +80 -0
- package/backend/01-standards/rate-limiting-complete.md +451 -0
- package/backend/01-standards/realtime-and-websocket.md +65 -0
- package/backend/01-standards/search-and-filtering.md +64 -0
- package/backend/01-standards/spring-boot-complete.md +445 -0
- package/backend/02-playbooks/api-design-playbook.md +718 -0
- package/backend/02-playbooks/email-send-playbook.md +130 -0
- package/backend/02-playbooks/file-upload-s3-playbook.md +153 -0
- package/backend/02-playbooks/typescript-enterprise-playbook.md +133 -0
- package/backend/02-playbooks/websocket-realtime-playbook.md +154 -0
- package/backend/03-checklists/api-launch-checklist.md +189 -0
- package/backend/04-antipatterns/backend-antipatterns.md +1051 -0
- package/blockchain/01-standards/blockchain-basics.md +557 -0
- package/blockchain/01-standards/smart-contract-development.md +1315 -0
- package/cicd/01-standards/deployment-and-delivery-standard.md +96 -0
- package/cicd/01-standards/github-actions-complete.md +473 -0
- package/cicd/01-standards/release-and-store-submission.md +75 -0
- package/cicd/02-playbooks/cicd-pipeline-playbook.md +144 -0
- package/cicd/02-playbooks/release-management-playbook.md +605 -0
- package/cicd/03-checklists/pipeline-security-checklist.md +168 -0
- package/cicd/04-antipatterns/cicd-antipatterns.md +589 -0
- package/cicd/05-cases/case-deployment-automation.md +221 -0
- package/cicd/05-cases/case-gitops-transformation.md +212 -0
- package/cicd/06-glossary/cicd-glossary.md +114 -0
- package/cicd/cicd-blueprint-deep-dive.md +38 -0
- package/cicd/release-readiness-gate.md +37 -0
- package/cloud-native/01-standards/container-security.md +741 -0
- package/cloud-native/01-standards/kubernetes-complete.md +812 -0
- package/cloud-native/02-playbooks/api-gateway-playbook.md +155 -0
- package/cloud-native/02-playbooks/gitops-with-argocd.md +760 -0
- package/cloud-native/02-playbooks/k8s-troubleshooting-playbook.md +1942 -0
- package/cloud-native/02-playbooks/message-queue-playbook.md +129 -0
- package/cloud-native/02-playbooks/multicloud-governance.md +726 -0
- package/cloud-native/02-playbooks/serverless-patterns.md +788 -0
- package/cloud-native/02-playbooks/service-mesh-playbook.md +612 -0
- package/cloud-native/02-playbooks/terraform-iac-playbook.md +143 -0
- package/cloud-native/03-checklists/container-security-checklist.md +431 -0
- package/cloud-native/03-checklists/k8s-production-readiness-checklist.md +460 -0
- package/cloud-native/04-antipatterns/container-antipatterns.md +660 -0
- package/cloud-native/04-antipatterns/k8s-antipatterns.md +743 -0
- package/cloud-native/05-cases/case-k8s-migration.md +478 -0
- package/cloud-native/05-cases/case-k8s-scaling.md +642 -0
- package/cloud-native/05-cases/case-k8s-security-incident.md +397 -0
- package/cloud-native/06-glossary/cloud-native-glossary.md +337 -0
- package/cross-platform/01-standards/cross-platform-frameworks.md +83 -0
- package/cross-platform/01-standards/platform-selection-and-architecture.md +77 -0
- package/data/01-standards/elasticsearch-complete.md +2098 -0
- package/data/01-standards/postgresql-complete.md +1613 -0
- package/data/01-standards/redis-complete.md +1527 -0
- package/data/02-playbooks/database-optimization-playbook.md +403 -0
- package/data/02-playbooks/elasticsearch-production-playbook.md +132 -0
- package/data/03-checklists/database-launch-checklist.md +187 -0
- package/data/04-antipatterns/database-antipatterns.md +873 -0
- package/data/05-cases/case-database-migration.md +310 -0
- package/data/06-glossary/database-glossary.md +440 -0
- package/data/data-governance-and-modeling-deep-dive.md +39 -0
- package/data-engineering/01-standards/airflow-complete.md +523 -0
- package/data-engineering/01-standards/kafka-complete.md +1521 -0
- package/data-engineering/02-playbooks/spark-etl-playbook.md +496 -0
- package/data-engineering/03-checklists/pipeline-launch-checklist.md +194 -0
- package/data-engineering/04-antipatterns/data-pipeline-antipatterns.md +684 -0
- package/data-engineering/05-cases/case-real-time-pipeline.md +355 -0
- package/data-engineering/06-glossary/data-engineering-glossary.md +429 -0
- package/database/01-standards/database-schema-standards.md +147 -0
- package/database/02-playbooks/postgresql-optimization-quick.md +52 -0
- package/database/02-playbooks/postgresql-performance-optimization.md +58 -0
- package/database/02-playbooks/postgresql-production-playbook.md +146 -0
- package/database/02-playbooks/redis-caching-playbook.md +117 -0
- package/database/03-checklists/database-review-checklist.md +50 -0
- package/database/04-antipatterns/database-antipatterns.md +112 -0
- package/design/01-standards/ui-design-system-complete.md +423 -0
- package/design/02-playbooks/design-handoff-playbook.md +254 -0
- package/design/02-playbooks/design-review-playbook.md +388 -0
- package/design/03-checklists/design-review-checklist.md +246 -0
- package/design/04-antipatterns/design-antipatterns.md +378 -0
- package/design/05-cases/case-design-system-adoption.md +328 -0
- package/design/06-glossary/design-glossary.md +329 -0
- package/design/ui-full-lifecycle-cross-platform-playbook.md +571 -0
- package/design/ux-system-deep-dive.md +38 -0
- package/design-systems/00-craft-rules.md +71 -0
- package/design-systems/aesthetic-families.md +43 -0
- package/design-systems/anti-ai-slop.md +162 -0
- package/design-systems/bold-geometric.md +120 -0
- package/design-systems/brutalist-bold.md +103 -0
- package/design-systems/editorial-clean.md +109 -0
- package/design-systems/glass-aurora.md +108 -0
- package/design-systems/modern-minimal.md +145 -0
- package/design-systems/premium-luxury.md +106 -0
- package/design-systems/product-type-design-map.md +48 -0
- package/design-systems/soft-warm.md +123 -0
- package/design-systems/tech-utility.md +113 -0
- package/desktop/01-standards/desktop-app-standard.md +72 -0
- package/desktop/01-standards/desktop-design.md +71 -0
- package/development/00-governance/document-template.md +41 -0
- package/development/01-standards/api-versioning-strategies.md +432 -0
- package/development/01-standards/authentication-patterns-complete.md +479 -0
- package/development/01-standards/css-architecture-complete.md +550 -0
- package/development/01-standards/database-migration-strategies.md +484 -0
- package/development/01-standards/elasticsearch-complete.md +347 -0
- package/development/01-standards/git-complete.md +371 -0
- package/development/01-standards/golang-complete.md +1565 -0
- package/development/01-standards/graphql-complete.md +298 -0
- package/development/01-standards/javascript-bundlers-complete.md +469 -0
- package/development/01-standards/javascript-typescript-complete.md +528 -0
- package/development/01-standards/jest-complete.md +275 -0
- package/development/01-standards/linux-complete.md +234 -0
- package/development/01-standards/logging-observability-complete.md +526 -0
- package/development/01-standards/microservices-communication.md +502 -0
- package/development/01-standards/mongodb-complete.md +406 -0
- package/development/01-standards/oauth2-complete.md +285 -0
- package/development/01-standards/performance-optimization-complete.md +289 -0
- package/development/01-standards/playwright-complete.md +247 -0
- package/development/01-standards/postgresql-complete.md +456 -0
- package/development/01-standards/pytest-complete.md +340 -0
- package/development/01-standards/python-async-programming.md +902 -0
- package/development/01-standards/python-complete.md +956 -0
- package/development/01-standards/python-decorators-complete.md +799 -0
- package/development/01-standards/python-design-patterns.md +2854 -0
- package/development/01-standards/python-packaging-distribution.md +420 -0
- package/development/01-standards/python-testing-strategies.md +607 -0
- package/development/01-standards/python-web-frameworks-comparison.md +471 -0
- package/development/01-standards/redis-complete.md +317 -0
- package/development/01-standards/rest-api-complete.md +316 -0
- package/development/01-standards/rust-complete.md +578 -0
- package/development/01-standards/typescript-advanced-types.md +1513 -0
- package/development/01-standards/web-security-complete.md +292 -0
- package/development/02-playbooks/api-design-playbook.md +810 -0
- package/development/02-playbooks/database-migration-playbook.md +580 -0
- package/development/02-playbooks/debugging-playbook.md +692 -0
- package/development/02-playbooks/feature-delivery-playbook.md +430 -0
- package/development/02-playbooks/incident-hotfix-playbook.md +387 -0
- package/development/02-playbooks/performance-optimization-playbook.md +531 -0
- package/development/02-playbooks/performance-tuning-playbook.md +652 -0
- package/development/02-playbooks/refactor-playbook.md +403 -0
- package/development/02-playbooks/release-playbook.md +469 -0
- package/development/03-checklists/architecture-review-checklist.md +168 -0
- package/development/03-checklists/data-migration-checklist.md +157 -0
- package/development/03-checklists/oncall-handover-checklist.md +173 -0
- package/development/03-checklists/pr-checklist.md +158 -0
- package/development/03-checklists/production-readiness-checklist.md +190 -0
- package/development/03-checklists/release-readiness-checklist.md +154 -0
- package/development/03-checklists/security-review-checklist.md +182 -0
- package/development/04-antipatterns/api-antipatterns.md +657 -0
- package/development/04-antipatterns/architecture-antipatterns.md +686 -0
- package/development/04-antipatterns/backend-antipatterns.md +648 -0
- package/development/04-antipatterns/cicd-antipatterns.md +540 -0
- package/development/04-antipatterns/code-smell-antipatterns.md +571 -0
- package/development/04-antipatterns/data-antipatterns.md +658 -0
- package/development/04-antipatterns/database-antipatterns.md +578 -0
- package/development/04-antipatterns/frontend-antipatterns.md +635 -0
- package/development/04-antipatterns/reliability-antipatterns.md +700 -0
- package/development/04-antipatterns/security-antipatterns.md +747 -0
- package/development/05-cases/case-api-version-migration.md +428 -0
- package/development/05-cases/case-authorization-hardening.md +383 -0
- package/development/05-cases/case-bluegreen-rollback.md +466 -0
- package/development/05-cases/case-cache-snowball-protection.md +485 -0
- package/development/05-cases/case-ci-cd-pipeline.md +544 -0
- package/development/05-cases/case-database-scaling.md +500 -0
- package/development/05-cases/case-db-hotspot-optimization.md +487 -0
- package/development/05-cases/case-incident-mttr-reduction.md +563 -0
- package/development/05-cases/case-microservice-migration.md +375 -0
- package/development/05-cases/case-performance-optimization.md +406 -0
- package/development/05-cases/case-security-incident-response.md +345 -0
- package/development/06-glossary/full-stack-glossary.md +166 -0
- package/development/09-maturity/quarterly-audit-template.md +35 -0
- package/development/11-ui-excellence/ui-aesthetic-system.md +41 -0
- package/development/11-ui-excellence/ui-engineering-excellence.md +435 -0
- package/development/12-scenarios/development-scenarios-guide.md +565 -0
- package/development/13-implementation-assets/implementation-toolkit.md +282 -0
- package/development/13-implementation-assets/knowledge-gates-execution.md +43 -0
- package/development/14-full-lifecycle/software-lifecycle-gates.md +511 -0
- package/development/15-lifecycle-templates/project-templates-collection.md +791 -0
- package/development/api-contract-and-versioning-guide.md +36 -0
- package/development/api-governance-complete.md +43 -0
- package/development/backend-engineering-complete.md +43 -0
- package/development/code-review-quality-complete.md +43 -0
- package/development/concurrency-reliability-complete.md +43 -0
- package/development/database-engineering-complete.md +43 -0
- package/development/engineering-effectiveness-complete.md +43 -0
- package/development/engineering-standards-deep-dive.md +38 -0
- package/development/frontend-engineering-complete.md +43 -0
- package/development/performance-capacity-complete.md +43 -0
- package/development/refactor-migration-complete.md +42 -0
- package/development/refactoring-and-techdebt-playbook.md +37 -0
- package/development/security-in-development-complete.md +43 -0
- package/devops/01-standards/cicd-pipeline-complete.md +262 -0
- package/devops/01-standards/docker-complete.md +1490 -0
- package/devops/01-standards/github-actions-complete.md +337 -0
- package/devops/01-standards/kubernetes-complete.md +638 -0
- package/devops/01-standards/terraform-complete.md +2117 -0
- package/devops/02-playbooks/docker-compose-playbook.md +233 -0
- package/devops/02-playbooks/docker-k8s-production-playbook.md +186 -0
- package/devops/02-playbooks/docker-production-playbook.md +952 -0
- package/edge-iot/01-standards/edge-iot-complete.md +473 -0
- package/experts/architect/api-design.md +178 -0
- package/experts/architect/methodology.md +124 -0
- package/experts/architect/security.md +75 -0
- package/experts/backend-lead/methodology.md +216 -0
- package/experts/devops/methodology.md +160 -0
- package/experts/frontend-lead/methodology.md +178 -0
- package/experts/product-manager/industry/ecommerce.md +43 -0
- package/experts/product-manager/industry/saas.md +40 -0
- package/experts/product-manager/methodology.md +97 -0
- package/experts/qa-lead/methodology.md +123 -0
- package/experts/qa-lead/test-strategy.md +128 -0
- package/experts/uiux-designer/methodology.md +125 -0
- package/frontend/01-standards/accessibility-complete.md +532 -0
- package/frontend/01-standards/accessibility-standard.md +74 -0
- package/frontend/01-standards/admin-dashboard-and-crud.md +72 -0
- package/frontend/01-standards/design-tokens-complete.md +444 -0
- package/frontend/01-standards/forms-and-validation.md +77 -0
- package/frontend/01-standards/frontend-architecture-and-layering.md +119 -0
- package/frontend/01-standards/i18n-and-localization.md +65 -0
- package/frontend/01-standards/nextjs-complete.md +451 -0
- package/frontend/01-standards/react-complete.md +713 -0
- package/frontend/01-standards/react-hooks-complete-guide.md +1100 -0
- package/frontend/01-standards/react-hooks-complete.md +1171 -0
- package/frontend/01-standards/seo-and-web-vitals.md +77 -0
- package/frontend/01-standards/state-management-complete.md +444 -0
- package/frontend/01-standards/vue-complete.md +499 -0
- package/frontend/01-standards/vue3-complete.md +2002 -0
- package/frontend/01-standards/web-framework-best-practices.md +64 -0
- package/frontend/01-standards/web-performance-complete.md +495 -0
- package/frontend/02-playbooks/accessibility-a11y-playbook.md +161 -0
- package/frontend/02-playbooks/frontend-performance-playbook.md +707 -0
- package/frontend/02-playbooks/i18n-internationalization-playbook.md +120 -0
- package/frontend/02-playbooks/performance-optimization-playbook.md +163 -0
- package/frontend/02-playbooks/react-nextjs-production-playbook.md +167 -0
- package/frontend/02-playbooks/react-state-management-playbook.md +173 -0
- package/frontend/03-checklists/component-quality-checklist.md +166 -0
- package/frontend/03-checklists/frontend-launch-checklist.md +299 -0
- package/frontend/04-antipatterns/frontend-antipatterns.md +886 -0
- package/frontend/05-cases/case-performance-optimization.md +274 -0
- package/harmony/01-standards/harmonyos-arkts-standard.md +75 -0
- package/harmony/01-standards/harmonyos-design.md +65 -0
- package/high-quality-engineering-playbook.md +54 -0
- package/incident/01-standards/incident-response-complete.md +303 -0
- package/incident/02-playbooks/chaos-engineering-playbook.md +883 -0
- package/incident/02-playbooks/postmortem-playbook.md +398 -0
- package/incident/03-checklists/incident-readiness-checklist.md +181 -0
- package/incident/04-antipatterns/incident-antipatterns.md +490 -0
- package/incident/05-cases/case-cascade-failure.md +176 -0
- package/incident/06-glossary/incident-glossary.md +114 -0
- package/incident/postmortem-and-response-deep-dive.md +39 -0
- package/industries/ecommerce/ecommerce-complete.md +631 -0
- package/industries/education/education-complete.md +555 -0
- package/industries/fintech/fintech-complete.md +501 -0
- package/industries/gaming/gaming-complete.md +587 -0
- package/industries/healthcare/healthcare-complete.md +452 -0
- package/low-code/01-standards/low-code-complete.md +944 -0
- package/miniprogram/01-standards/ai-common-mistakes.md +61 -0
- package/miniprogram/01-standards/miniprogram-custom-navbar-capsule.md +77 -0
- package/miniprogram/01-standards/miniprogram-design.md +61 -0
- package/miniprogram/01-standards/miniprogram-standard.md +81 -0
- package/mobile/01-standards/android-material-design.md +70 -0
- package/mobile/01-standards/flutter-complete.md +384 -0
- package/mobile/01-standards/ios-design-hig.md +78 -0
- package/mobile/01-standards/mobile-app-standard.md +85 -0
- package/mobile/01-standards/react-native-complete.md +352 -0
- package/mobile/02-playbooks/mobile-cross-platform-playbook.md +175 -0
- package/mobile/02-playbooks/mobile-performance.md +473 -0
- package/mobile/03-checklists/mobile-release-checklist.md +234 -0
- package/mobile/04-antipatterns/mobile-antipatterns.md +798 -0
- package/mobile/05-cases/case-app-performance.md +500 -0
- package/mobile/05-cases/case-app-startup-optimization.md +218 -0
- package/mobile/06-glossary/mobile-glossary.md +484 -0
- package/observability/01-standards/observability-standards.md +103 -0
- package/observability/02-playbooks/prometheus-grafana-playbook.md +135 -0
- package/observability/02-playbooks/structured-logging-playbook.md +73 -0
- package/observability/03-checklists/observability-checklist.md +54 -0
- package/observability/04-antipatterns/observability-antipatterns.md +106 -0
- package/operations/01-standards/prometheus-monitoring-complete.md +1578 -0
- package/operations/02-playbooks/capacity-planning-playbook.md +620 -0
- package/operations/03-checklists/production-launch-checklist.md +365 -0
- package/operations/04-antipatterns/operations-antipatterns.md +664 -0
- package/operations/05-cases/case-sre-practices.md +581 -0
- package/operations/06-glossary/operations-glossary.md +120 -0
- package/operations/aiops-anomaly-detection.md +758 -0
- package/operations/capacity-planning.md +1061 -0
- package/operations/chaos-engineering.md +659 -0
- package/operations/incident-command-system.md +38 -0
- package/operations/observability-complete.md +442 -0
- package/operations/slo-sli-playbook.md +517 -0
- package/operations/sre-operations-deep-dive.md +39 -0
- package/package.json +8 -0
- package/performance/01-standards/performance-and-scalability.md +80 -0
- package/performance/01-standards/performance-standards.md +156 -0
- package/performance/02-playbooks/query-optimization-playbook.md +103 -0
- package/performance/03-checklists/performance-checklist.md +56 -0
- package/performance/04-antipatterns/performance-antipatterns.md +146 -0
- package/product/01-standards/product-management-complete.md +285 -0
- package/product/02-playbooks/feature-launch-playbook.md +207 -0
- package/product/02-playbooks/user-research-playbook.md +532 -0
- package/product/03-checklists/feature-launch-checklist.md +275 -0
- package/product/04-antipatterns/product-antipatterns.md +355 -0
- package/product/05-cases/case-mvp-to-scale.md +384 -0
- package/product/06-glossary/product-glossary.md +462 -0
- package/product/feature-prioritization-framework.md +40 -0
- package/product/kpi-and-metric-tree.md +37 -0
- package/product/product-discovery-and-prd-deep-dive.md +41 -0
- package/quantum/01-standards/quantum-complete.md +1186 -0
- package/security/01-standards/api-security-complete.md +511 -0
- package/security/01-standards/container-runtime-security.md +574 -0
- package/security/01-standards/data-protection-gdpr.md +543 -0
- package/security/01-standards/owasp-top10-complete.md +1890 -0
- package/security/01-standards/secure-coding-baseline.md +90 -0
- package/security/01-standards/supply-chain-security.md +441 -0
- package/security/01-standards/web-security-checklist.md +108 -0
- package/security/01-standards/zero-trust-architecture.md +521 -0
- package/security/02-playbooks/auth-sso-playbook.md +166 -0
- package/security/02-playbooks/incident-response-security-playbook.md +588 -0
- package/security/02-playbooks/owasp-api-security-playbook.md +129 -0
- package/security/02-playbooks/payment-integration-playbook.md +119 -0
- package/security/02-playbooks/penetration-testing-playbook.md +517 -0
- package/security/03-checklists/security-audit-checklist.md +356 -0
- package/security/04-antipatterns/security-coding-antipatterns.md +580 -0
- package/security/05-cases/case-log4shell-incident.md +537 -0
- package/security/05-cases/case-major-breaches.md +468 -0
- package/security/06-glossary/security-glossary.md +212 -0
- package/security/compliance-automation.md +993 -0
- package/security/container-security.md +680 -0
- package/security/devsecops-complete.md +426 -0
- package/security/sast-dast-sca.md +775 -0
- package/security/secrets-management.md +594 -0
- package/security/security-architecture-deep-dive.md +37 -0
- package/security/threat-modeling-stride-playbook.md +40 -0
- package/seed-templates/auth-system.md +59 -0
- package/seed-templates/blog-content.md +94 -0
- package/seed-templates/dashboard.md +89 -0
- package/seed-templates/docs-site.md +73 -0
- package/seed-templates/e-commerce.md +50 -0
- package/seed-templates/saas-landing.md +92 -0
- package/seed-templates/settings-page.md +51 -0
- package/testing/01-standards/test-strategy-and-layering.md +83 -0
- package/testing/01-standards/testing-strategy-complete.md +422 -0
- package/testing/01-standards/unit-testing-best-practices.md +118 -0
- package/testing/02-playbooks/e2e-testing-playbook.md +988 -0
- package/testing/02-playbooks/testing-strategy-playbook.md +126 -0
- package/testing/03-checklists/test-strategy-checklist.md +208 -0
- package/testing/04-antipatterns/testing-antipatterns.md +718 -0
- package/testing/05-cases/case-testing-transformation.md +300 -0
- package/testing/06-glossary/testing-glossary.md +110 -0
- package/testing/risk-based-test-matrix.md +36 -0
- package/testing/testing-strategy-deep-dive.md +37 -0
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 移动应用性能优化手册
|
|
3
|
+
category: mobile/playbooks
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
last_updated: 2026-03-20
|
|
6
|
+
maintainer: Excellent(11964948@qq.com)
|
|
7
|
+
knowledge_score: 9.0/10
|
|
8
|
+
domain: mobile
|
|
9
|
+
difficulty: intermediate
|
|
10
|
+
quality_score: 70
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 开发:Excellent(11964948@qq.com)
|
|
14
|
+
|
|
15
|
+
## 移动应用性能优化手册
|
|
16
|
+
|
|
17
|
+
### 执行步骤
|
|
18
|
+
|
|
19
|
+
#### 1. 性能基线建立
|
|
20
|
+
- 定义关键指标:启动时间、FPS、内存占用、包体积。
|
|
21
|
+
- 建立性能测试环境和监控工具。
|
|
22
|
+
- 收集不同设备的性能数据作为基线。
|
|
23
|
+
- 设置性能预算和告警阈值。
|
|
24
|
+
|
|
25
|
+
#### 2. 性能瓶颈定位
|
|
26
|
+
- 使用性能分析工具(Xcode Instruments、Android Profiler、Flipper)。
|
|
27
|
+
- 分析启动流程、渲染性能、内存使用。
|
|
28
|
+
- 定位网络请求、数据库查询、图片加载瓶颈。
|
|
29
|
+
- 识别主线程阻塞和 ANR(Application Not Responding)。
|
|
30
|
+
|
|
31
|
+
#### 3. 启动时间优化
|
|
32
|
+
- 延迟加载非关键模块。
|
|
33
|
+
- 优化初始化流程,避免同步阻塞。
|
|
34
|
+
- 减少主线程任务,使用后台线程。
|
|
35
|
+
- 预加载关键资源和数据。
|
|
36
|
+
- 目标:冷启动 < 2 秒,热启动 < 0.5 秒。
|
|
37
|
+
|
|
38
|
+
#### 4. UI 渲染优化
|
|
39
|
+
- 保持 60 FPS,避免卡顿(每帧 < 16.67ms)。
|
|
40
|
+
- 减少视图层级,避免过度绘制。
|
|
41
|
+
- 使用虚拟列表渲染长列表。
|
|
42
|
+
- 优化图片加载和缓存策略。
|
|
43
|
+
- 避免在滚动时执行耗时操作。
|
|
44
|
+
|
|
45
|
+
#### 5. 内存优化
|
|
46
|
+
- 及时释放不再使用的资源。
|
|
47
|
+
- 避免内存泄漏(监听器未取消、闭包引用)。
|
|
48
|
+
- 优化图片内存占用(压缩、采样、复用)。
|
|
49
|
+
- 使用对象池复用对象。
|
|
50
|
+
- 监控内存峰值和 OOM 崩溃。
|
|
51
|
+
|
|
52
|
+
#### 6. 网络优化
|
|
53
|
+
- 减少 HTTP 请求次数(合并、批量)。
|
|
54
|
+
- 启用 Gzip 压缩和 HTTPS。
|
|
55
|
+
- 使用 CDN 加速静态资源。
|
|
56
|
+
- 实施离线缓存策略(Cache-First、Network-First)。
|
|
57
|
+
- 预加载和懒加载结合。
|
|
58
|
+
|
|
59
|
+
#### 7. 包体积优化
|
|
60
|
+
- 压缩图片资源(WebP、TinyPNG)。
|
|
61
|
+
- 移除未使用的代码和资源。
|
|
62
|
+
- 启用代码混淆和 Tree Shaking。
|
|
63
|
+
- 按需加载功能模块。
|
|
64
|
+
- 目标:Android APK < 50MB,iOS IPA < 100MB。
|
|
65
|
+
|
|
66
|
+
#### 8. 数据库优化
|
|
67
|
+
- 创建合适的索引加速查询。
|
|
68
|
+
- 避免在大表上执行全表扫描。
|
|
69
|
+
- 批量插入和更新操作。
|
|
70
|
+
- 使用事务保证数据一致性。
|
|
71
|
+
- 定期清理过期数据。
|
|
72
|
+
|
|
73
|
+
#### 9. 电量优化
|
|
74
|
+
- 减少后台任务和轮询。
|
|
75
|
+
- 优化定位策略(精度、频率)。
|
|
76
|
+
- 避免频繁的网络请求和唤醒。
|
|
77
|
+
- 使用 JobScheduler 或 WorkManager 调度任务。
|
|
78
|
+
- 监控电量消耗。
|
|
79
|
+
|
|
80
|
+
#### 10. 持续监控与回归
|
|
81
|
+
- 建立性能监控平台(Firebase Performance、Sentry)。
|
|
82
|
+
- 设置性能门禁,失败自动阻断发布。
|
|
83
|
+
- 定期性能回归测试。
|
|
84
|
+
- 收集线上用户真实性能数据。
|
|
85
|
+
|
|
86
|
+
### 常见优化策略
|
|
87
|
+
|
|
88
|
+
#### React Native 优化
|
|
89
|
+
```typescript
|
|
90
|
+
/**
|
|
91
|
+
* 开发:Excellent(11964948@qq.com)
|
|
92
|
+
* 功能:优化 FlatList 性能
|
|
93
|
+
* 作用:通过配置优化参数提升长列表渲染性能
|
|
94
|
+
* 创建时间:2026-03-20
|
|
95
|
+
* 最后修改:2026-03-20
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
import React, { useCallback, useMemo } from 'react';
|
|
99
|
+
import { FlatList, View, Text, StyleSheet } from 'react-native';
|
|
100
|
+
|
|
101
|
+
interface Item {
|
|
102
|
+
id: string;
|
|
103
|
+
title: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const OptimizedList: React.FC<{ items: Item[] }> = ({ items }) => {
|
|
107
|
+
// 使用 useCallback 避免重复创建函数
|
|
108
|
+
const renderItem = useCallback(
|
|
109
|
+
({ item }: { item: Item }) => (
|
|
110
|
+
<View style={styles.item}>
|
|
111
|
+
<Text style={styles.title}>{item.title}</Text>
|
|
112
|
+
</View>
|
|
113
|
+
),
|
|
114
|
+
[]
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
// 使用 useMemo 缓存计算结果
|
|
118
|
+
const keyExtractor = useCallback(
|
|
119
|
+
(item: Item) => item.id,
|
|
120
|
+
[]
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
// 使用 getItemLayout 提升性能(如果 item 高度固定)
|
|
124
|
+
const getItemLayout = useCallback(
|
|
125
|
+
(_: any, index: number) => ({
|
|
126
|
+
length: 60,
|
|
127
|
+
offset: 60 * index,
|
|
128
|
+
index,
|
|
129
|
+
}),
|
|
130
|
+
[]
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
return (
|
|
134
|
+
<FlatList
|
|
135
|
+
data={items}
|
|
136
|
+
renderItem={renderItem}
|
|
137
|
+
keyExtractor={keyExtractor}
|
|
138
|
+
getItemLayout={getItemLayout}
|
|
139
|
+
// 性能优化参数
|
|
140
|
+
initialNumToRender={10}
|
|
141
|
+
maxToRenderPerBatch={10}
|
|
142
|
+
windowSize={5}
|
|
143
|
+
removeClippedSubviews={true}
|
|
144
|
+
updateCellsBatchingPeriod={50}
|
|
145
|
+
onEndReachedThreshold={0.5}
|
|
146
|
+
/>
|
|
147
|
+
);
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const styles = StyleSheet.create({
|
|
151
|
+
item: {
|
|
152
|
+
height: 60,
|
|
153
|
+
justifyContent: 'center',
|
|
154
|
+
paddingHorizontal: 16,
|
|
155
|
+
borderBottomWidth: 1,
|
|
156
|
+
borderBottomColor: '#e0e0e0',
|
|
157
|
+
},
|
|
158
|
+
title: {
|
|
159
|
+
fontSize: 16,
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
export default OptimizedList;
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
#### Flutter 优化
|
|
167
|
+
```dart
|
|
168
|
+
// 开发:Excellent(11964948@qq.com)
|
|
169
|
+
// 功能:优化 ListView 性能
|
|
170
|
+
// 作用:通过 const 和 builder 提升长列表渲染性能
|
|
171
|
+
// 创建时间:2026-03-20
|
|
172
|
+
// 最后修改:2026-03-20
|
|
173
|
+
|
|
174
|
+
import 'package:flutter/material.dart';
|
|
175
|
+
|
|
176
|
+
class Item {
|
|
177
|
+
final String id;
|
|
178
|
+
final String title;
|
|
179
|
+
|
|
180
|
+
const Item({required this.id, required this.title});
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
class OptimizedList extends StatelessWidget {
|
|
184
|
+
final List<Item> items;
|
|
185
|
+
|
|
186
|
+
const OptimizedList({Key? key, required this.items}) : super(key: key);
|
|
187
|
+
|
|
188
|
+
@override
|
|
189
|
+
Widget build(BuildContext context) {
|
|
190
|
+
return ListView.builder(
|
|
191
|
+
itemCount: items.length,
|
|
192
|
+
// 使用 const 提升性能
|
|
193
|
+
itemBuilder: (context, index) {
|
|
194
|
+
final item = items[index];
|
|
195
|
+
return _ItemTile(item: item);
|
|
196
|
+
},
|
|
197
|
+
// 添加缓存扩展
|
|
198
|
+
cacheExtent: 1000,
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// 提取为独立的 StatelessWidget 并使用 const 构造函数
|
|
204
|
+
class _ItemTile extends StatelessWidget {
|
|
205
|
+
final Item item;
|
|
206
|
+
|
|
207
|
+
const _ItemTile({Key? key, required this.item}) : super(key: key);
|
|
208
|
+
|
|
209
|
+
@override
|
|
210
|
+
Widget build(BuildContext context) {
|
|
211
|
+
return Container(
|
|
212
|
+
height: 60,
|
|
213
|
+
padding: const EdgeInsets.symmetric(horizontal: 16),
|
|
214
|
+
alignment: Alignment.centerLeft,
|
|
215
|
+
decoration: const BoxDecoration(
|
|
216
|
+
border: Border(
|
|
217
|
+
bottom: BorderSide(color: Color(0xFFE0E0E0)),
|
|
218
|
+
),
|
|
219
|
+
),
|
|
220
|
+
child: Text(
|
|
221
|
+
item.title,
|
|
222
|
+
style: const TextStyle(fontSize: 16),
|
|
223
|
+
),
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### 性能监控代码示例
|
|
230
|
+
|
|
231
|
+
#### React Native 性能监控
|
|
232
|
+
```typescript
|
|
233
|
+
/**
|
|
234
|
+
* 开发:Excellent(11964948@qq.com)
|
|
235
|
+
* 功能:性能监控工具
|
|
236
|
+
* 作用:记录和上报关键性能指标
|
|
237
|
+
* 创建时间:2026-03-20
|
|
238
|
+
* 最后修改:2026-03-20
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
import { Platform, NativeModules } from 'react-native';
|
|
242
|
+
|
|
243
|
+
interface PerformanceMetric {
|
|
244
|
+
name: string;
|
|
245
|
+
duration: number;
|
|
246
|
+
timestamp: number;
|
|
247
|
+
metadata?: Record<string, any>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
class PerformanceMonitor {
|
|
251
|
+
private static instance: PerformanceMonitor;
|
|
252
|
+
private metrics: PerformanceMetric[] = [];
|
|
253
|
+
|
|
254
|
+
static getInstance(): PerformanceMonitor {
|
|
255
|
+
if (!PerformanceMonitor.instance) {
|
|
256
|
+
PerformanceMonitor.instance = new PerformanceMonitor();
|
|
257
|
+
}
|
|
258
|
+
return PerformanceMonitor.instance;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// 记录启动时间
|
|
262
|
+
markAppStart() {
|
|
263
|
+
const startTime = Date.now();
|
|
264
|
+
this.recordMetric('app_start', 0, { startTime });
|
|
265
|
+
return startTime;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// 记录启动完成
|
|
269
|
+
markAppReady(startTime: number) {
|
|
270
|
+
const duration = Date.now() - startTime;
|
|
271
|
+
this.recordMetric('app_ready', duration);
|
|
272
|
+
this.uploadMetrics();
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// 记录屏幕渲染时间
|
|
276
|
+
markScreenRender(screenName: string, duration: number) {
|
|
277
|
+
this.recordMetric('screen_render', duration, { screenName });
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// 记录 API 请求时间
|
|
281
|
+
markApiRequest(endpoint: string, duration: number, success: boolean) {
|
|
282
|
+
this.recordMetric('api_request', duration, {
|
|
283
|
+
endpoint,
|
|
284
|
+
success,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
private recordMetric(
|
|
289
|
+
name: string,
|
|
290
|
+
duration: number,
|
|
291
|
+
metadata?: Record<string, any>
|
|
292
|
+
) {
|
|
293
|
+
this.metrics.push({
|
|
294
|
+
name,
|
|
295
|
+
duration,
|
|
296
|
+
timestamp: Date.now(),
|
|
297
|
+
metadata,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// 上报性能数据
|
|
302
|
+
private async uploadMetrics() {
|
|
303
|
+
if (this.metrics.length === 0) return;
|
|
304
|
+
|
|
305
|
+
try {
|
|
306
|
+
// 上报到监控平台
|
|
307
|
+
await fetch('https://monitoring.example.com/api/performance', {
|
|
308
|
+
method: 'POST',
|
|
309
|
+
headers: { 'Content-Type': 'application/json' },
|
|
310
|
+
body: JSON.stringify({
|
|
311
|
+
platform: Platform.OS,
|
|
312
|
+
version: Platform.Version,
|
|
313
|
+
metrics: this.metrics,
|
|
314
|
+
}),
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
this.metrics = [];
|
|
318
|
+
} catch (error) {
|
|
319
|
+
console.error('Failed to upload performance metrics:', error);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export const performanceMonitor = PerformanceMonitor.getInstance();
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
#### Flutter 性能监控
|
|
328
|
+
```dart
|
|
329
|
+
// 开发:Excellent(11964948@qq.com)
|
|
330
|
+
// 功能:性能监控工具
|
|
331
|
+
// 作用:记录和上报关键性能指标
|
|
332
|
+
// 创建时间:2026-03-20
|
|
333
|
+
// 最后修改:2026-03-20
|
|
334
|
+
|
|
335
|
+
import 'dart:async';
|
|
336
|
+
import 'dart:io';
|
|
337
|
+
import 'package:flutter/foundation.dart';
|
|
338
|
+
import 'package:dio/dio.dart';
|
|
339
|
+
|
|
340
|
+
class PerformanceMetric {
|
|
341
|
+
final String name;
|
|
342
|
+
final int duration;
|
|
343
|
+
final int timestamp;
|
|
344
|
+
final Map<String, dynamic>? metadata;
|
|
345
|
+
|
|
346
|
+
PerformanceMetric({
|
|
347
|
+
required this.name,
|
|
348
|
+
required this.duration,
|
|
349
|
+
required this.timestamp,
|
|
350
|
+
this.metadata,
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
Map<String, dynamic> toJson() => {
|
|
354
|
+
'name': name,
|
|
355
|
+
'duration': duration,
|
|
356
|
+
'timestamp': timestamp,
|
|
357
|
+
'metadata': metadata,
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
class PerformanceMonitor {
|
|
362
|
+
static final PerformanceMonitor _instance = PerformanceMonitor._internal();
|
|
363
|
+
factory PerformanceMonitor() => _instance;
|
|
364
|
+
PerformanceMonitor._internal();
|
|
365
|
+
|
|
366
|
+
final List<PerformanceMetric> _metrics = [];
|
|
367
|
+
final Dio _dio = Dio();
|
|
368
|
+
|
|
369
|
+
// 记录启动时间
|
|
370
|
+
int markAppStart() {
|
|
371
|
+
final startTime = DateTime.now().millisecondsSinceEpoch;
|
|
372
|
+
_recordMetric('app_start', 0, {'startTime': startTime});
|
|
373
|
+
return startTime;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// 记录启动完成
|
|
377
|
+
void markAppReady(int startTime) {
|
|
378
|
+
final duration = DateTime.now().millisecondsSinceEpoch - startTime;
|
|
379
|
+
_recordMetric('app_ready', duration);
|
|
380
|
+
_uploadMetrics();
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// 记录屏幕渲染时间
|
|
384
|
+
void markScreenRender(String screenName, int duration) {
|
|
385
|
+
_recordMetric('screen_render', duration, {'screenName': screenName});
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// 记录 API 请求时间
|
|
389
|
+
void markApiRequest(String endpoint, int duration, bool success) {
|
|
390
|
+
_recordMetric('api_request', duration, {
|
|
391
|
+
'endpoint': endpoint,
|
|
392
|
+
'success': success,
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
void _recordMetric(
|
|
397
|
+
String name,
|
|
398
|
+
int duration, [
|
|
399
|
+
Map<String, dynamic>? metadata,
|
|
400
|
+
]) {
|
|
401
|
+
_metrics.add(PerformanceMetric(
|
|
402
|
+
name: name,
|
|
403
|
+
duration: duration,
|
|
404
|
+
timestamp: DateTime.now().millisecondsSinceEpoch,
|
|
405
|
+
metadata: metadata,
|
|
406
|
+
));
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// 上报性能数据
|
|
410
|
+
Future<void> _uploadMetrics() async {
|
|
411
|
+
if (_metrics.isEmpty) return;
|
|
412
|
+
|
|
413
|
+
try {
|
|
414
|
+
await _dio.post(
|
|
415
|
+
'https://monitoring.example.com/api/performance',
|
|
416
|
+
data: {
|
|
417
|
+
'platform': Platform.operatingSystem,
|
|
418
|
+
'version': Platform.version,
|
|
419
|
+
'metrics': _metrics.map((m) => m.toJson()).toList(),
|
|
420
|
+
},
|
|
421
|
+
);
|
|
422
|
+
_metrics.clear();
|
|
423
|
+
} catch (e) {
|
|
424
|
+
debugPrint('Failed to upload performance metrics: $e');
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
final performanceMonitor = PerformanceMonitor();
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
### 性能优化检查清单
|
|
433
|
+
|
|
434
|
+
#### 启动性能
|
|
435
|
+
- [ ] 冷启动时间 < 2 秒
|
|
436
|
+
- [ ] 热启动时间 < 0.5 秒
|
|
437
|
+
- [ ] 延迟加载非关键模块
|
|
438
|
+
- [ ] 优化初始化流程
|
|
439
|
+
- [ ] 预加载关键数据
|
|
440
|
+
|
|
441
|
+
#### UI 渲染性能
|
|
442
|
+
- [ ] FPS 稳定在 60 帧
|
|
443
|
+
- [ ] 避免过度绘制(Overdraw < 2x)
|
|
444
|
+
- [ ] 使用虚拟列表渲染长列表
|
|
445
|
+
- [ ] 优化图片加载策略
|
|
446
|
+
- [ ] 避免在滚动时执行耗时操作
|
|
447
|
+
|
|
448
|
+
#### 内存优化
|
|
449
|
+
- [ ] 内存峰值 < 200MB
|
|
450
|
+
- [ ] 无内存泄漏
|
|
451
|
+
- [ ] 及时释放资源
|
|
452
|
+
- [ ] 优化图片内存占用
|
|
453
|
+
- [ ] 监控 OOM 崩溃率
|
|
454
|
+
|
|
455
|
+
#### 网络性能
|
|
456
|
+
- [ ] 首屏数据加载 < 1 秒
|
|
457
|
+
- [ ] 启用 Gzip 压缩
|
|
458
|
+
- [ ] 实施 CDN 加速
|
|
459
|
+
- [ ] 离线缓存策略
|
|
460
|
+
- [ ] 减少请求次数
|
|
461
|
+
|
|
462
|
+
#### 包体积
|
|
463
|
+
- [ ] Android APK < 50MB
|
|
464
|
+
- [ ] iOS IPA < 100MB
|
|
465
|
+
- [ ] 压缩图片资源
|
|
466
|
+
- [ ] 移除未使用代码
|
|
467
|
+
- [ ] 启用代码混淆
|
|
468
|
+
|
|
469
|
+
### 参考资料
|
|
470
|
+
- React Native 性能优化:https://reactnative.dev/docs/performance
|
|
471
|
+
- Flutter 性能优化:https://flutter.dev/docs/performance/rendering
|
|
472
|
+
- Android 性能优化:https://developer.android.com/topic/performance
|
|
473
|
+
- iOS 性能优化:https://developer.apple.com/documentation/performance
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 移动应用发布检查清单
|
|
3
|
+
category: mobile/checklists
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
last_updated: 2026-03-20
|
|
6
|
+
maintainer: Excellent(11964948@qq.com)
|
|
7
|
+
knowledge_score: 9.1/10
|
|
8
|
+
domain: mobile
|
|
9
|
+
difficulty: intermediate
|
|
10
|
+
quality_score: 70
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 开发:Excellent(11964948@qq.com)
|
|
14
|
+
|
|
15
|
+
## 移动应用发布检查清单
|
|
16
|
+
|
|
17
|
+
### 一、功能完整性检查
|
|
18
|
+
|
|
19
|
+
#### 核心功能验证
|
|
20
|
+
- [ ] 所有核心功能流程端到端测试通过
|
|
21
|
+
- [ ] 关键业务逻辑单元测试覆盖率 >= 80%
|
|
22
|
+
- [ ] 集成测试覆盖主要场景
|
|
23
|
+
- [ ] E2E 测试通过率 100%
|
|
24
|
+
- [ ] 回归测试通过,无新增缺陷
|
|
25
|
+
- [ ] 边界条件和异常场景测试完成
|
|
26
|
+
|
|
27
|
+
#### 用户体验验证
|
|
28
|
+
- [ ] 关键路径用户旅程测试完成
|
|
29
|
+
- [ ] 交互响应时间符合预期(< 300ms)
|
|
30
|
+
- [ ] 加载状态和空态展示正确
|
|
31
|
+
- [ ] 错误提示友好且可操作
|
|
32
|
+
- [ ] 表单验证逻辑完整
|
|
33
|
+
- [ ] 深度链接功能正常
|
|
34
|
+
|
|
35
|
+
### 二、性能与稳定性检查
|
|
36
|
+
|
|
37
|
+
#### 性能指标
|
|
38
|
+
- [ ] 冷启动时间 < 2 秒
|
|
39
|
+
- [ ] 热启动时间 < 0.5 秒
|
|
40
|
+
- [ ] FPS 稳定在 60 帧,无明显卡顿
|
|
41
|
+
- [ ] 内存峰值 < 200MB
|
|
42
|
+
- [ ] CPU 占用率 < 30%(正常使用)
|
|
43
|
+
- [ ] 电池消耗测试通过
|
|
44
|
+
|
|
45
|
+
#### 稳定性指标
|
|
46
|
+
- [ ] 崩溃率 < 0.1%
|
|
47
|
+
- [ ] ANR 率 < 0.05%(Android)
|
|
48
|
+
- [ ] 无内存泄漏检测
|
|
49
|
+
- [ ] 长时间运行稳定性测试通过(2 小时+)
|
|
50
|
+
- [ ] 弱网环境测试通过
|
|
51
|
+
- [ ] 断网重连机制验证
|
|
52
|
+
|
|
53
|
+
### 三、兼容性测试
|
|
54
|
+
|
|
55
|
+
#### 设备兼容性
|
|
56
|
+
- [ ] 覆盖主流厂商设备测试(Top 20)
|
|
57
|
+
- [ ] 不同屏幕尺寸适配(4.7" - 7")
|
|
58
|
+
- [ ] 不同分辨率适配(720p - 2K)
|
|
59
|
+
- [ ] 刘海屏、挖孔屏适配
|
|
60
|
+
- [ ] 横竖屏切换测试(如适用)
|
|
61
|
+
- [ ] 平板适配测试(如适用)
|
|
62
|
+
|
|
63
|
+
#### 系统兼容性
|
|
64
|
+
- [ ] Android 8.0+(API 26+)兼容性测试
|
|
65
|
+
- [ ] iOS 12.0+ 兼容性测试
|
|
66
|
+
- [ ] 最新系统版本兼容性测试
|
|
67
|
+
- [ ] 系统升级兼容性验证
|
|
68
|
+
- [ ] 系统特性降级处理(如权限)
|
|
69
|
+
|
|
70
|
+
### 四、安全与合规检查
|
|
71
|
+
|
|
72
|
+
#### 安全检查
|
|
73
|
+
- [ ] 敏感数据加密存储(Keychain/Keystore)
|
|
74
|
+
- [ ] HTTPS 强制启用,证书校验严格
|
|
75
|
+
- [ ] 无硬编码密钥和敏感信息
|
|
76
|
+
- [ ] 代码混淆和加固完成
|
|
77
|
+
- [ ] 反调试和反逆向措施
|
|
78
|
+
- [ ] WebView 安全配置正确
|
|
79
|
+
|
|
80
|
+
#### 隐私合规
|
|
81
|
+
- [ ] 隐私政策和用户协议更新
|
|
82
|
+
- [ ] 权限申请说明文案清晰
|
|
83
|
+
- [ ] 用户授权流程符合规范
|
|
84
|
+
- [ ] 数据收集和使用符合 GDPR/CCPA
|
|
85
|
+
- [ ] 未成年人保护机制(如适用)
|
|
86
|
+
- [ ] 用户数据导出和删除功能
|
|
87
|
+
|
|
88
|
+
### 五、网络与数据检查
|
|
89
|
+
|
|
90
|
+
#### 网络功能
|
|
91
|
+
- [ ] HTTPS 证书有效且未过期
|
|
92
|
+
- [ ] API 接口版本兼容性验证
|
|
93
|
+
- [ ] 网络超时和重试机制正常
|
|
94
|
+
- [ ] 离线模式功能正常(如适用)
|
|
95
|
+
- [ ] 网络切换(WiFi/4G/5G)无异常
|
|
96
|
+
- [ ] 代理和 VPN 环境测试
|
|
97
|
+
|
|
98
|
+
#### 数据管理
|
|
99
|
+
- [ ] 数据库迁移脚本测试通过
|
|
100
|
+
- [ ] 数据备份和恢复功能正常
|
|
101
|
+
- [ ] 缓存清理功能正常
|
|
102
|
+
- [ ] 数据同步机制验证
|
|
103
|
+
- [ ] 大数据量场景测试
|
|
104
|
+
|
|
105
|
+
### 六、国际化与本地化
|
|
106
|
+
|
|
107
|
+
#### 多语言支持
|
|
108
|
+
- [ ] 主要语言翻译完成并验证
|
|
109
|
+
- [ ] 文案长度适配(不同语言长度差异)
|
|
110
|
+
- [ ] 日期、时间、货币格式本地化
|
|
111
|
+
- [ ] 数字格式本地化
|
|
112
|
+
- [ ] 单复数处理正确
|
|
113
|
+
- [ ] RTL 语言支持(阿拉伯语、希伯来语)
|
|
114
|
+
|
|
115
|
+
#### 地区适配
|
|
116
|
+
- [ ] 时区处理正确
|
|
117
|
+
- [ ] 地区特定功能适配(支付、地图)
|
|
118
|
+
- [ ] 法律法规合规性检查
|
|
119
|
+
- [ ] 文化禁忌审查
|
|
120
|
+
|
|
121
|
+
### 七、应用商店准备
|
|
122
|
+
|
|
123
|
+
#### Android(Google Play)
|
|
124
|
+
- [ ] 应用签名密钥准备
|
|
125
|
+
- [ ] AAB(Android App Bundle)构建
|
|
126
|
+
- [ ] 应用图标和启动屏素材
|
|
127
|
+
- [ ] 应用截图(不同尺寸)
|
|
128
|
+
- [ ] 应用描述和更新日志
|
|
129
|
+
- [ ] 内容分级问卷填写
|
|
130
|
+
- [ ] 隐私政策链接提供
|
|
131
|
+
- [ ] 目标受众和内容声明
|
|
132
|
+
|
|
133
|
+
#### iOS(App Store)
|
|
134
|
+
- [ ] 开发者和发布证书配置
|
|
135
|
+
- [ ] Provisioning Profile 配置
|
|
136
|
+
- [ ] IPA 构建和验证
|
|
137
|
+
- [ ] App Store 素材准备(图标、截图)
|
|
138
|
+
- [ ] 应用描述和关键词
|
|
139
|
+
- [ ] 版本更新说明
|
|
140
|
+
- [ ] 隐私政策和使用条款
|
|
141
|
+
- [ ] App 审核信息填写
|
|
142
|
+
|
|
143
|
+
#### 国内应用商店(如适用)
|
|
144
|
+
- [ ] 软著证书准备
|
|
145
|
+
- [ ] ICP 备案(如需)
|
|
146
|
+
- [ ] 各商店账号和资质审核
|
|
147
|
+
- [ ] 素材适配各商店要求
|
|
148
|
+
- [ ] 首发和更新策略规划
|
|
149
|
+
|
|
150
|
+
### 八、监控与运维准备
|
|
151
|
+
|
|
152
|
+
#### 监控配置
|
|
153
|
+
- [ ] 崩溃监控集成(Crashlytics/Sentry)
|
|
154
|
+
- [ ] 性能监控配置(Firebase Performance)
|
|
155
|
+
- [ ] 业务埋点和统计配置
|
|
156
|
+
- [ ] 日志收集和上报机制
|
|
157
|
+
- [ ] 告警规则配置
|
|
158
|
+
|
|
159
|
+
#### 运维准备
|
|
160
|
+
- [ ] 灰度发布策略制定
|
|
161
|
+
- [ ] 回滚方案准备和演练
|
|
162
|
+
- [ ] 热修复能力验证(如支持)
|
|
163
|
+
- [ ] 应急响应流程明确
|
|
164
|
+
- [ ] 值班人员安排确认
|
|
165
|
+
- [ ] 用户反馈渠道就绪
|
|
166
|
+
|
|
167
|
+
### 九、法律与合规文件
|
|
168
|
+
|
|
169
|
+
#### 法律文件
|
|
170
|
+
- [ ] 隐私政策更新并发布
|
|
171
|
+
- [ ] 用户服务协议更新
|
|
172
|
+
- [ ] 第三方库许可证声明
|
|
173
|
+
- [ ] 商标和版权检查
|
|
174
|
+
- [ ] 数据处理协议(DPA)签署(如需)
|
|
175
|
+
|
|
176
|
+
#### 合规认证
|
|
177
|
+
- [ ] GDPR 合规性检查(如面向欧洲)
|
|
178
|
+
- [ ] CCPA 合规性检查(如面向加州)
|
|
179
|
+
- [ ] COPPA 合规性检查(如涉及儿童)
|
|
180
|
+
- [ ] 等保测评(如需)
|
|
181
|
+
- [ ] 行业特定合规要求(金融、医疗等)
|
|
182
|
+
|
|
183
|
+
### 十、发布前最终确认
|
|
184
|
+
|
|
185
|
+
#### 内部验收
|
|
186
|
+
- [ ] 产品团队验收通过
|
|
187
|
+
- [ ] 设计团队 UI/UX 验收通过
|
|
188
|
+
- [ ] 测试团队验收通过
|
|
189
|
+
- [ ] 安全团队审计通过
|
|
190
|
+
- [ ] 法务团队合规审查通过
|
|
191
|
+
|
|
192
|
+
#### 技术确认
|
|
193
|
+
- [ ] 版本号和构建号正确
|
|
194
|
+
- [ ] Git 分支和标签创建
|
|
195
|
+
- [ ] 构建产物验证和签名
|
|
196
|
+
- [ ] 生产环境配置正确
|
|
197
|
+
- [ ] API 后端服务就绪
|
|
198
|
+
- [ ] CDN 和静态资源就绪
|
|
199
|
+
|
|
200
|
+
#### 发布窗口确认
|
|
201
|
+
- [ ] 发布时间窗口确认
|
|
202
|
+
- [ ] 依赖服务发布时间协调
|
|
203
|
+
- [ ] 值班人员到位
|
|
204
|
+
- [ ] 应急预案准备就绪
|
|
205
|
+
- [ ] 用户通知准备(如需)
|
|
206
|
+
|
|
207
|
+
### 十一、发布后验证
|
|
208
|
+
|
|
209
|
+
#### 线上验证
|
|
210
|
+
- [ ] 生产环境冒烟测试通过
|
|
211
|
+
- [ ] 关键功能流程验证
|
|
212
|
+
- [ ] 监控数据正常
|
|
213
|
+
- [ ] 用户反馈监控
|
|
214
|
+
- [ ] 应用商店审核通过
|
|
215
|
+
|
|
216
|
+
#### 数据验证
|
|
217
|
+
- [ ] 用户数据迁移验证
|
|
218
|
+
- [ ] 数据统计准确性验证
|
|
219
|
+
- [ ] 业务指标监控正常
|
|
220
|
+
- [ ] 异常数据告警配置
|
|
221
|
+
|
|
222
|
+
### 十二、复盘与优化
|
|
223
|
+
|
|
224
|
+
#### 发布复盘
|
|
225
|
+
- [ ] 发布过程记录和总结
|
|
226
|
+
- [ ] 问题和解决方案归档
|
|
227
|
+
- [ ] 检查清单优化更新
|
|
228
|
+
- [ ] 团队经验分享
|
|
229
|
+
- [ ] 下次发布改进计划
|
|
230
|
+
|
|
231
|
+
### 参考资料
|
|
232
|
+
- Google Play 发布指南:https://developer.android.com/distribute
|
|
233
|
+
- App Store 发布指南:https://developer.apple.com/app-store/
|
|
234
|
+
- 移动应用安全最佳实践:https://owasp.org/www-project-mobile-security/
|