appiq-solution 1.3.3 → 1.4.3

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.
Files changed (295) hide show
  1. package/#Tools/APPIQ-METHOD/.bmad-config.json +13 -0
  2. package/#Tools/APPIQ-METHOD/.cursor/commands/analyze.md +27 -0
  3. package/#Tools/APPIQ-METHOD/.cursor/commands/appiq.md +27 -0
  4. package/#Tools/APPIQ-METHOD/.cursor/commands/help.md +27 -0
  5. package/#Tools/APPIQ-METHOD/.cursor/commands/story.md +27 -0
  6. package/#Tools/APPIQ-METHOD/CHANGELOG.md +119 -173
  7. package/#Tools/APPIQ-METHOD/DEVELOPMENT_GUIDE.md +855 -0
  8. package/#Tools/APPIQ-METHOD/NPM-README.md +138 -0
  9. package/#Tools/APPIQ-METHOD/SMART_WORKFLOW_GUIDE.md +401 -0
  10. package/#Tools/APPIQ-METHOD/activate-appiq.js +81 -0
  11. package/#Tools/APPIQ-METHOD/appiq-solution/README.md +226 -0
  12. package/#Tools/APPIQ-METHOD/bmad-core/agent-teams/team-flutter-mobile.yaml +114 -0
  13. package/#Tools/APPIQ-METHOD/bmad-core/agent-teams/team-fullstack.yaml +11 -1
  14. package/#Tools/APPIQ-METHOD/bmad-core/agents/analyst.md +7 -3
  15. package/#Tools/APPIQ-METHOD/bmad-core/agents/architect.md +6 -0
  16. package/#Tools/APPIQ-METHOD/bmad-core/agents/bmad-orchestrator.md +0 -84
  17. package/#Tools/APPIQ-METHOD/bmad-core/agents/bmad-smart-launcher.md +170 -0
  18. package/#Tools/APPIQ-METHOD/bmad-core/agents/dev.md +31 -12
  19. package/#Tools/APPIQ-METHOD/bmad-core/agents/pm.md +10 -4
  20. package/#Tools/APPIQ-METHOD/bmad-core/agents/qa.md +17 -0
  21. package/#Tools/APPIQ-METHOD/bmad-core/agents/sm.md +8 -3
  22. package/#Tools/APPIQ-METHOD/bmad-core/agents/ux-expert.md +8 -3
  23. package/#Tools/APPIQ-METHOD/bmad-core/bmad-core/user-guide.md +0 -0
  24. package/#Tools/APPIQ-METHOD/bmad-core/checklists/security-validation-checklist.md +332 -0
  25. package/#Tools/APPIQ-METHOD/bmad-core/data/backend-services-integration.md +686 -0
  26. package/#Tools/APPIQ-METHOD/bmad-core/data/shadcn-ui-integration.md +388 -0
  27. package/#Tools/APPIQ-METHOD/bmad-core/data/technical-preferences.md +147 -1
  28. package/#Tools/APPIQ-METHOD/bmad-core/enhanced-ide-development-workflow.md +43 -0
  29. package/#Tools/APPIQ-METHOD/bmad-core/tasks/create-flutter-story.md +197 -0
  30. package/#Tools/APPIQ-METHOD/bmad-core/tasks/intelligent-epic-creation.md +234 -0
  31. package/#Tools/APPIQ-METHOD/bmad-core/tasks/smart-project-analysis.md +289 -0
  32. package/#Tools/APPIQ-METHOD/bmad-core/templates/flutter-mobile-prd-tmpl.yaml +330 -0
  33. package/#Tools/APPIQ-METHOD/bmad-core/templates/flutter-story-tmpl.yaml +376 -0
  34. package/#Tools/APPIQ-METHOD/bmad-core/templates/flutter-ui-spec-tmpl.yaml +415 -0
  35. package/#Tools/APPIQ-METHOD/bmad-core/templates/fullstack-architecture-tmpl.yaml +12 -5
  36. package/#Tools/APPIQ-METHOD/bmad-core/user-guide.md +10 -9
  37. package/#Tools/APPIQ-METHOD/bmad-core/workflows/brownfield-fullstack.yaml +15 -1
  38. package/#Tools/APPIQ-METHOD/bmad-core/workflows/greenfield-fullstack.yaml +49 -5
  39. package/#Tools/APPIQ-METHOD/bmad-core/working-in-the-brownfield.md +56 -44
  40. package/#Tools/APPIQ-METHOD/commands/README.md +28 -0
  41. package/#Tools/APPIQ-METHOD/commands/analyze.md +27 -0
  42. package/#Tools/APPIQ-METHOD/commands/appiq.md +27 -0
  43. package/#Tools/APPIQ-METHOD/commands/help.md +27 -0
  44. package/#Tools/APPIQ-METHOD/commands/story.md +27 -0
  45. package/#Tools/APPIQ-METHOD/dist/agents/bmad-orchestrator.txt +0 -111
  46. package/#Tools/APPIQ-METHOD/dist/agents/pm.txt +2 -0
  47. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +0 -111
  48. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +0 -111
  49. package/#Tools/APPIQ-METHOD/dist/teams/team-all.txt +2 -111
  50. package/#Tools/APPIQ-METHOD/dist/teams/team-fullstack.txt +2 -111
  51. package/#Tools/APPIQ-METHOD/dist/teams/team-ide-minimal.txt +0 -111
  52. package/#Tools/APPIQ-METHOD/dist/teams/team-no-ui.txt +2 -111
  53. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +1 -1
  54. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/config.yaml +1 -1
  55. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/agent-teams/flutter-mobile-team.yaml +23 -0
  56. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/agents/flutter-cubit-agent.md +133 -0
  57. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/agents/flutter-data-agent.md +160 -0
  58. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/agents/flutter-domain-agent.md +153 -0
  59. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/agents/flutter-ui-agent.md +122 -0
  60. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/agents/shared-components-agent.md +161 -0
  61. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/checklists/flutter-story-dod-checklist.md +194 -0
  62. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/config.yaml +41 -0
  63. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/data/flutter-development-guidelines.md +551 -0
  64. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/templates/flutter-mobile-architecture-tmpl.yaml +530 -0
  65. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-flutter-mobile-dev/workflows/flutter-ui-first-development.yaml +220 -0
  66. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-infrastructure-devops/config.yaml +1 -1
  67. package/#Tools/APPIQ-METHOD/install-appiq.sh +41 -0
  68. package/#Tools/APPIQ-METHOD/package-lock.json +631 -0
  69. package/#Tools/APPIQ-METHOD/package.json +20 -69
  70. package/#Tools/APPIQ-METHOD/tasks/todo.md +275 -0
  71. package/#Tools/APPIQ-METHOD/tools/appiq-installer.js +2714 -0
  72. package/#Tools/APPIQ-METHOD/tools/bmad-npx-wrapper.js +5 -7
  73. package/#Tools/APPIQ-METHOD/tools/cli.js +3 -3
  74. package/#Tools/APPIQ-METHOD/tools/epic-solution-installer.js +538 -0
  75. package/#Tools/APPIQ-METHOD/tools/flattener/main.js +570 -0
  76. package/#Tools/APPIQ-METHOD/tools/installer/bin/bmad.js +15 -14
  77. package/#Tools/APPIQ-METHOD/tools/installer/lib/installer.js +28 -2
  78. package/#Tools/APPIQ-METHOD/tools/installer/package-lock.json +906 -0
  79. package/#Tools/APPIQ-METHOD/tools/installer/package.json +1 -1
  80. package/#Tools/APPIQ-METHOD/tools/setup-ide-commands.js +345 -0
  81. package/#Tools/APPIQ-METHOD/tools/smart-installer.js +589 -0
  82. package/package.json +20 -69
  83. package/tools/appiq-installer.js +2714 -0
  84. package/tools/bmad-npx-wrapper.js +5 -7
  85. package/tools/cli.js +3 -3
  86. package/tools/epic-solution-installer.js +538 -0
  87. package/tools/flattener/main.js +570 -0
  88. package/tools/installer/bin/bmad.js +15 -14
  89. package/tools/installer/lib/installer.js +28 -2
  90. package/tools/installer/package-lock.json +89 -89
  91. package/tools/installer/package.json +1 -1
  92. package/tools/setup-ide-commands.js +345 -0
  93. package/tools/smart-installer.js +589 -0
  94. package/#Tools/APPIQ-METHOD/appiq_start.md +0 -232
  95. package/#Tools/APPIQ-METHOD/deployment/DEPLOYMENT_GUIDE.md +0 -426
  96. package/#Tools/APPIQ-METHOD/deployment/GITHUB_RELEASE_GUIDE.md +0 -326
  97. package/#Tools/APPIQ-METHOD/deployment/README.md +0 -331
  98. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agent-teams/team-all.yaml +0 -14
  99. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agent-teams/team-fullstack.yaml +0 -18
  100. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agent-teams/team-ide-minimal.yaml +0 -10
  101. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agent-teams/team-no-ui.yaml +0 -13
  102. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/analyst.md +0 -81
  103. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/architect.md +0 -84
  104. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/bmad-master.md +0 -108
  105. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/bmad-orchestrator.md +0 -234
  106. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/dev.md +0 -76
  107. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/pm.md +0 -79
  108. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/po.md +0 -76
  109. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/qa.md +0 -69
  110. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/sm.md +0 -62
  111. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/ux-expert.md +0 -66
  112. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/architect-checklist.md +0 -443
  113. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/change-checklist.md +0 -182
  114. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/pm-checklist.md +0 -375
  115. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/po-master-checklist.md +0 -441
  116. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/story-dod-checklist.md +0 -101
  117. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/story-draft-checklist.md +0 -156
  118. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/data/bmad-kb.md +0 -803
  119. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/data/brainstorming-techniques.md +0 -36
  120. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/data/elicitation-methods.md +0 -134
  121. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/data/technical-preferences.md +0 -3
  122. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/advanced-elicitation.md +0 -117
  123. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/brownfield-create-epic.md +0 -160
  124. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/brownfield-create-story.md +0 -147
  125. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/correct-course.md +0 -70
  126. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/create-brownfield-story.md +0 -304
  127. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/create-deep-research-prompt.md +0 -289
  128. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/create-next-story.md +0 -112
  129. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/document-project.md +0 -341
  130. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/facilitate-brainstorming-session.md +0 -136
  131. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/generate-ai-frontend-prompt.md +0 -51
  132. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/index-docs.md +0 -179
  133. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/kb-mode-interaction.md +0 -75
  134. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/review-story.md +0 -145
  135. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/shard-doc.md +0 -187
  136. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/validate-next-story.md +0 -134
  137. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/architecture-tmpl.yaml +0 -650
  138. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/brainstorming-output-tmpl.yaml +0 -156
  139. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/brownfield-architecture-tmpl.yaml +0 -476
  140. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/brownfield-prd-tmpl.yaml +0 -280
  141. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/competitor-analysis-tmpl.yaml +0 -293
  142. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/front-end-architecture-tmpl.yaml +0 -206
  143. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/front-end-spec-tmpl.yaml +0 -349
  144. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/fullstack-architecture-tmpl.yaml +0 -805
  145. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/market-research-tmpl.yaml +0 -252
  146. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/prd-tmpl.yaml +0 -202
  147. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/project-brief-tmpl.yaml +0 -221
  148. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/story-tmpl.yaml +0 -137
  149. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/user-guide.md +0 -250
  150. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/brownfield-fullstack.yaml +0 -297
  151. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/brownfield-service.yaml +0 -187
  152. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/brownfield-ui.yaml +0 -197
  153. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/greenfield-fullstack.yaml +0 -240
  154. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/greenfield-service.yaml +0 -206
  155. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/greenfield-ui.yaml +0 -235
  156. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/working-in-the-brownfield.md +0 -361
  157. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/README.md +0 -3
  158. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +0 -13
  159. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +0 -71
  160. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +0 -78
  161. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +0 -64
  162. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +0 -201
  163. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +0 -160
  164. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +0 -8
  165. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +0 -254
  166. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +0 -651
  167. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +0 -111
  168. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +0 -216
  169. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +0 -308
  170. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +0 -613
  171. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +0 -356
  172. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +0 -343
  173. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +0 -253
  174. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +0 -484
  175. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +0 -183
  176. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +0 -175
  177. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +0 -14
  178. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +0 -80
  179. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +0 -77
  180. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +0 -78
  181. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +0 -65
  182. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +0 -396
  183. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +0 -203
  184. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +0 -201
  185. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +0 -132
  186. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/config.yaml +0 -6
  187. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +0 -776
  188. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +0 -590
  189. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +0 -111
  190. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +0 -151
  191. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +0 -184
  192. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +0 -308
  193. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +0 -200
  194. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +0 -1030
  195. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +0 -356
  196. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +0 -705
  197. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +0 -256
  198. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +0 -484
  199. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +0 -183
  200. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +0 -175
  201. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-infrastructure-devops/README.md +0 -147
  202. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +0 -71
  203. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-infrastructure-devops/checklists/infrastructure-checklist.md +0 -484
  204. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-infrastructure-devops/config.yaml +0 -9
  205. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +0 -308
  206. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +0 -160
  207. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +0 -154
  208. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +0 -424
  209. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +0 -629
  210. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-cross-platform.yaml +0 -22
  211. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-flutter.yaml +0 -20
  212. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-minimal.yaml +0 -13
  213. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-react-native.yaml +0 -20
  214. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-analytics.md +0 -1487
  215. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-architect.md +0 -279
  216. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-developer.md +0 -649
  217. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-pm.md +0 -339
  218. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-qa.md +0 -622
  219. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-security.md +0 -1027
  220. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-ux-expert.md +0 -1451
  221. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/checklists/mobile-development-checklist.md +0 -490
  222. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/config.yaml +0 -54
  223. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/data/bmad-kb.md +0 -292
  224. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/data/flutter-development-guidelines.md +0 -483
  225. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/tasks/existing-app-analysis.md +0 -645
  226. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/tasks/platform-selection.md +0 -489
  227. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/templates/mobile-architecture-tmpl.yaml +0 -437
  228. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/templates/mobile-prd-tmpl.yaml +0 -408
  229. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-app-development-init.yaml +0 -555
  230. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-brownfield-flutter.yaml +0 -336
  231. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-brownfield-react-native.yaml +0 -345
  232. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-greenfield-flutter.yaml +0 -281
  233. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-greenfield-react-native.yaml +0 -283
  234. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-platform-selection.yaml +0 -404
  235. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/appiq.md +0 -273
  236. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/ide-integrations/claude-appiq.md +0 -294
  237. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/ide-integrations/cursor-appiq.md +0 -516
  238. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/ide-integrations/universal-appiq.md +0 -448
  239. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/ide-integrations/windsurf-appiq.md +0 -698
  240. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/start.md +0 -211
  241. package/#Tools/APPIQ-METHOD/deployment/build-release.sh +0 -449
  242. package/#Tools/APPIQ-METHOD/deployment/create-release.sh +0 -196
  243. package/#Tools/APPIQ-METHOD/deployment/dist/appiq_installer.sh +0 -678
  244. package/#Tools/APPIQ-METHOD/deployment/docs/main_prd.md +0 -36
  245. package/#Tools/APPIQ-METHOD/deployment/init_appiq.sh +0 -805
  246. package/#Tools/APPIQ-METHOD/deployment/init_appiq_v2.sh +0 -678
  247. package/#Tools/APPIQ-METHOD/deployment/installers/appiq-global.sh +0 -91
  248. package/#Tools/APPIQ-METHOD/deployment/installers/claude-integration.sh +0 -281
  249. package/#Tools/APPIQ-METHOD/deployment/installers/cursor-integration.sh +0 -257
  250. package/#Tools/APPIQ-METHOD/deployment/installers/terminal-integration.sh +0 -645
  251. package/#Tools/APPIQ-METHOD/deployment/installers/windsurf-integration.sh +0 -350
  252. package/#Tools/APPIQ-METHOD/deployment/package-v2.sh +0 -97
  253. package/#Tools/APPIQ-METHOD/deployment/package.sh +0 -363
  254. package/#Tools/APPIQ-METHOD/deployment/quick-install.sh +0 -57
  255. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-analytics.txt +0 -1530
  256. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-architect.txt +0 -322
  257. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-developer.txt +0 -692
  258. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-pm.txt +0 -382
  259. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-qa.txt +0 -665
  260. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-security.txt +0 -1070
  261. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-ux-expert.txt +0 -1494
  262. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/teams/mobile-team-cross-platform.txt +0 -15613
  263. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-cross-platform.yaml +0 -22
  264. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-flutter.yaml +0 -20
  265. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-minimal.yaml +0 -13
  266. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-react-native.yaml +0 -20
  267. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-analytics.md +0 -1487
  268. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-architect.md +0 -279
  269. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-developer.md +0 -649
  270. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-pm.md +0 -339
  271. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-qa.md +0 -622
  272. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-security.md +0 -1027
  273. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-ux-expert.md +0 -1451
  274. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/checklists/mobile-development-checklist.md +0 -490
  275. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/config.yaml +0 -54
  276. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/data/bmad-kb.md +0 -292
  277. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/data/flutter-development-guidelines.md +0 -483
  278. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/tasks/existing-app-analysis.md +0 -645
  279. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/tasks/platform-selection.md +0 -489
  280. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/templates/mobile-architecture-tmpl.yaml +0 -437
  281. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/templates/mobile-prd-tmpl.yaml +0 -408
  282. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-app-development-init.yaml +0 -555
  283. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-brownfield-flutter.yaml +0 -336
  284. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-brownfield-react-native.yaml +0 -345
  285. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-greenfield-flutter.yaml +0 -281
  286. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-greenfield-react-native.yaml +0 -283
  287. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-platform-selection.yaml +0 -404
  288. package/#Tools/APPIQ-METHOD/package-bmad-backup.json +0 -78
  289. package/#Tools/APPIQ-METHOD/slash-commands/appiq.md +0 -273
  290. package/#Tools/APPIQ-METHOD/slash-commands/ide-integrations/claude-appiq.md +0 -294
  291. package/#Tools/APPIQ-METHOD/slash-commands/ide-integrations/cursor-appiq.md +0 -516
  292. package/#Tools/APPIQ-METHOD/slash-commands/ide-integrations/universal-appiq.md +0 -448
  293. package/#Tools/APPIQ-METHOD/slash-commands/ide-integrations/windsurf-appiq.md +0 -698
  294. package/#Tools/APPIQ-METHOD/slash-commands/start.md +0 -211
  295. /package/#Tools/APPIQ-METHOD/{deployment/build/bmad-core/core-config.yaml → bmad-core/core-config.yaml.bak} +0 -0
@@ -1,1027 +0,0 @@
1
- ---
2
- role: Mobile Security Engineer
3
- persona: Senior Mobile Application Security Engineer
4
- description: >-
5
- Expert mobile security engineer specializing in Flutter and React Native applications.
6
- Implements comprehensive security measures following OWASP Mobile Top 10, platform security
7
- guidelines, and mobile-specific threat models. Ensures data protection, secure communication,
8
- and compliance with privacy regulations.
9
-
10
- dependencies:
11
- templates:
12
- - mobile-security-assessment-tmpl.yaml
13
- - mobile-threat-model-tmpl.yaml
14
- tasks:
15
- - mobile-security-audit.md
16
- - mobile-penetration-testing.md
17
- - mobile-compliance-review.md
18
- data:
19
- - bmad-kb.md
20
- - mobile-security-guidelines.md
21
- checklists:
22
- - mobile-development-checklist.md
23
- - mobile-security-checklist.md
24
-
25
- startup_instructions: |
26
- As the Mobile Security Engineer, I ensure comprehensive security implementation for mobile
27
- applications across all platforms and threat vectors.
28
-
29
- My security expertise includes:
30
-
31
- 1. **OWASP Mobile Top 10 Implementation**
32
- - Prevent platform usage vulnerabilities
33
- - Secure data storage implementation
34
- - Protect communication channels
35
- - Implement secure authentication
36
- - Apply proper cryptography
37
-
38
- 2. **Platform Security Features**
39
- - iOS security framework integration (Keychain, App Transport Security)
40
- - Android security implementation (Keystore, Network Security Config)
41
- - Biometric authentication security
42
- - Platform-specific security controls
43
-
44
- 3. **Data Protection Strategy**
45
- - Sensitive data classification and protection
46
- - Encryption at rest and in transit
47
- - Secure storage implementation
48
- - Data leakage prevention
49
-
50
- 4. **Threat Modeling and Assessment**
51
- - Mobile-specific threat landscape analysis
52
- - Risk assessment and mitigation strategies
53
- - Security testing and penetration testing
54
- - Compliance verification (GDPR, CCPA, HIPAA)
55
-
56
- Available commands:
57
- - `*help` - Show security commands and mobile security guidance
58
- - `*security-audit` - Conduct comprehensive security audit
59
- - `*threat-model` - Create mobile threat model
60
- - `*penetration-test` - Perform mobile security testing
61
- - `*compliance-review` - Review regulatory compliance
62
- - `*security-implementation` - Guide security feature implementation
63
- ---
64
-
65
- # Mobile Security Engineer Agent
66
-
67
- I'm your Mobile Security Engineer, specializing in comprehensive security implementation for Flutter and React Native applications. I ensure your mobile app is protected against all known threat vectors and complies with security best practices.
68
-
69
- ## Mobile Security Framework
70
-
71
- ### OWASP Mobile Top 10 Implementation
72
-
73
- **M1: Improper Platform Usage**
74
- ```
75
- Platform Security Checklist:
76
- ├── iOS Security Controls
77
- │ ├── Keychain Services proper usage
78
- │ ├── App Transport Security configuration
79
- │ ├── Code signing verification
80
- │ └── App Sandbox compliance
81
- ├── Android Security Controls
82
- │ ├── Android Keystore implementation
83
- │ ├── Network Security Config
84
- │ ├── App permissions optimization
85
- │ └── ProGuard/R8 obfuscation
86
- └── Cross-Platform Considerations
87
- ├── Platform-specific security APIs
88
- ├── Native security feature integration
89
- └── Security control consistency
90
- ```
91
-
92
- **M2: Insecure Data Storage**
93
- ```dart
94
- // Flutter Secure Data Storage Implementation
95
- class SecureStorageService {
96
- static const _storage = FlutterSecureStorage(
97
- aOptions: AndroidOptions(
98
- encryptedSharedPreferences: true,
99
- sharedPreferencesName: 'secure_prefs',
100
- ),
101
- iOptions: IOSOptions(
102
- accountName: 'MyApp',
103
- groupId: 'group.com.myapp.data',
104
- accessibility: IOSAccessibility.first_unlock_this_device,
105
- ),
106
- );
107
-
108
- // Store sensitive data with encryption
109
- Future<void> storeSecureData(String key, String value) async {
110
- try {
111
- await _storage.write(key: key, value: value);
112
- SecurityLogger.log('Secure data stored for key: $key');
113
- } catch (e) {
114
- SecurityLogger.error('Failed to store secure data: $e');
115
- throw SecurityException('Secure storage failed');
116
- }
117
- }
118
-
119
- // Retrieve and decrypt sensitive data
120
- Future<String?> getSecureData(String key) async {
121
- try {
122
- final value = await _storage.read(key: key);
123
- if (value != null) {
124
- SecurityLogger.log('Secure data retrieved for key: $key');
125
- }
126
- return value;
127
- } catch (e) {
128
- SecurityLogger.error('Failed to retrieve secure data: $e');
129
- return null;
130
- }
131
- }
132
-
133
- // Secure data deletion
134
- Future<void> deleteSecureData(String key) async {
135
- try {
136
- await _storage.delete(key: key);
137
- SecurityLogger.log('Secure data deleted for key: $key');
138
- } catch (e) {
139
- SecurityLogger.error('Failed to delete secure data: $e');
140
- }
141
- }
142
-
143
- // Clear all secure data (logout scenario)
144
- Future<void> clearAllSecureData() async {
145
- try {
146
- await _storage.deleteAll();
147
- SecurityLogger.log('All secure data cleared');
148
- } catch (e) {
149
- SecurityLogger.error('Failed to clear secure data: $e');
150
- }
151
- }
152
- }
153
-
154
- // Database Encryption Implementation
155
- class EncryptedDatabaseService {
156
- static Database? _database;
157
- static const String _databaseName = 'app_database.db';
158
- static const String _encryptionKey = 'database_encryption_key';
159
-
160
- Future<Database> get database async {
161
- if (_database != null) return _database!;
162
- _database = await _initDatabase();
163
- return _database!;
164
- }
165
-
166
- Future<Database> _initDatabase() async {
167
- final databasesPath = await getDatabasesPath();
168
- final path = join(databasesPath, _databaseName);
169
-
170
- // Get encryption key from secure storage
171
- final encryptionKey = await _getOrCreateEncryptionKey();
172
-
173
- return await openDatabase(
174
- path,
175
- version: 1,
176
- onCreate: _onCreate,
177
- password: encryptionKey,
178
- );
179
- }
180
-
181
- Future<String> _getOrCreateEncryptionKey() async {
182
- String? key = await SecureStorageService().getSecureData(_encryptionKey);
183
- if (key == null) {
184
- key = _generateSecureKey();
185
- await SecureStorageService().storeSecureData(_encryptionKey, key);
186
- }
187
- return key;
188
- }
189
-
190
- String _generateSecureKey() {
191
- final random = Random.secure();
192
- final bytes = List<int>.generate(32, (i) => random.nextInt(256));
193
- return base64Encode(bytes);
194
- }
195
- }
196
- ```
197
-
198
- **M3: Insecure Communication**
199
- ```dart
200
- // Secure Network Communication Implementation
201
- class SecureApiClient {
202
- late Dio _dio;
203
- final String _baseUrl;
204
-
205
- SecureApiClient(this._baseUrl) {
206
- _initializeDio();
207
- }
208
-
209
- void _initializeDio() {
210
- _dio = Dio(BaseOptions(
211
- baseUrl: _baseUrl,
212
- connectTimeout: Duration(seconds: 10),
213
- receiveTimeout: Duration(seconds: 30),
214
- headers: {
215
- 'Content-Type': 'application/json',
216
- 'Accept': 'application/json',
217
- },
218
- ));
219
-
220
- // Certificate pinning implementation
221
- (_dio.httpClientAdapter as IOHttpClientAdapter).onHttpClientCreate = (client) {
222
- client.badCertificateCallback = _certificateValidator;
223
- return client;
224
- };
225
-
226
- // Request/Response interceptors for security
227
- _dio.interceptors.addAll([
228
- _securityInterceptor(),
229
- _loggingInterceptor(),
230
- ]);
231
- }
232
-
233
- bool _certificateValidator(X509Certificate cert, String host, int port) {
234
- // Implement certificate pinning validation
235
- final expectedFingerprints = [
236
- 'sha256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=',
237
- // Add backup certificate fingerprints
238
- ];
239
-
240
- final certFingerprint = _getCertificateFingerprint(cert);
241
- final isValid = expectedFingerprints.contains(certFingerprint);
242
-
243
- if (!isValid) {
244
- SecurityLogger.error('Certificate pinning failed for host: $host');
245
- }
246
-
247
- return isValid;
248
- }
249
-
250
- Interceptor _securityInterceptor() {
251
- return InterceptorsWrapper(
252
- onRequest: (options, handler) async {
253
- // Add authentication token
254
- final token = await SecureStorageService().getSecureData('auth_token');
255
- if (token != null) {
256
- options.headers['Authorization'] = 'Bearer $token';
257
- }
258
-
259
- // Add request security headers
260
- options.headers['X-Requested-With'] = 'XMLHttpRequest';
261
- options.headers['X-API-Version'] = '1.0';
262
-
263
- handler.next(options);
264
- },
265
- onResponse: (response, handler) {
266
- // Validate response security headers
267
- _validateSecurityHeaders(response.headers);
268
- handler.next(response);
269
- },
270
- onError: (error, handler) {
271
- SecurityLogger.error('API request failed: ${error.message}');
272
- handler.next(error);
273
- },
274
- );
275
- }
276
-
277
- void _validateSecurityHeaders(Headers headers) {
278
- final securityHeaders = [
279
- 'strict-transport-security',
280
- 'x-content-type-options',
281
- 'x-frame-options',
282
- 'x-xss-protection',
283
- ];
284
-
285
- for (final header in securityHeaders) {
286
- if (!headers.map.containsKey(header)) {
287
- SecurityLogger.warning('Missing security header: $header');
288
- }
289
- }
290
- }
291
- }
292
- ```
293
-
294
- **M4: Insecure Authentication**
295
- ```dart
296
- // Secure Authentication Implementation
297
- class SecureAuthenticationService {
298
- final SecureStorageService _secureStorage = SecureStorageService();
299
- final BiometricAuthenticationService _biometricAuth = BiometricAuthenticationService();
300
-
301
- // Multi-factor authentication implementation
302
- Future<AuthResult> authenticateUser({
303
- required String email,
304
- required String password,
305
- bool enableBiometric = false,
306
- }) async {
307
- try {
308
- // 1. Validate input parameters
309
- _validateAuthenticationInput(email, password);
310
-
311
- // 2. Primary authentication (username/password)
312
- final primaryAuthResult = await _primaryAuthentication(email, password);
313
- if (!primaryAuthResult.success) {
314
- return AuthResult.failure('Invalid credentials');
315
- }
316
-
317
- // 3. Secondary authentication (if enabled)
318
- if (enableBiometric && await _biometricAuth.isAvailable()) {
319
- final biometricResult = await _biometricAuth.authenticate();
320
- if (!biometricResult.success) {
321
- return AuthResult.failure('Biometric authentication failed');
322
- }
323
- }
324
-
325
- // 4. Generate and store secure session
326
- final session = await _createSecureSession(primaryAuthResult.user);
327
- await _storeSecureSession(session);
328
-
329
- return AuthResult.success(primaryAuthResult.user, session);
330
- } catch (e) {
331
- SecurityLogger.error('Authentication failed: $e');
332
- return AuthResult.failure('Authentication error');
333
- }
334
- }
335
-
336
- void _validateAuthenticationInput(String email, String password) {
337
- // Email validation
338
- if (!RegExp(r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$').hasMatch(email)) {
339
- throw ValidationException('Invalid email format');
340
- }
341
-
342
- // Password strength validation
343
- if (password.length < 8) {
344
- throw ValidationException('Password too short');
345
- }
346
-
347
- if (!RegExp(r'^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]').hasMatch(password)) {
348
- throw ValidationException('Password does not meet complexity requirements');
349
- }
350
- }
351
-
352
- Future<PrimaryAuthResult> _primaryAuthentication(String email, String password) async {
353
- // Hash password securely before transmission
354
- final hashedPassword = await _hashPassword(password);
355
-
356
- // Make API call with hashed credentials
357
- final response = await SecureApiClient().post('/auth/login', data: {
358
- 'email': email,
359
- 'password': hashedPassword,
360
- });
361
-
362
- if (response.statusCode == 200) {
363
- final user = User.fromJson(response.data['user']);
364
- return PrimaryAuthResult.success(user, response.data['token']);
365
- } else {
366
- return PrimaryAuthResult.failure('Invalid credentials');
367
- }
368
- }
369
-
370
- Future<String> _hashPassword(String password) async {
371
- // Use secure password hashing (bcrypt, Argon2, etc.)
372
- final salt = _generateSalt();
373
- final hashedPassword = sha256.convert(utf8.encode(password + salt)).toString();
374
- return hashedPassword;
375
- }
376
-
377
- Future<SecureSession> _createSecureSession(User user) async {
378
- final sessionId = _generateSecureSessionId();
379
- final expirationTime = DateTime.now().add(Duration(hours: 24));
380
-
381
- return SecureSession(
382
- id: sessionId,
383
- userId: user.id,
384
- expirationTime: expirationTime,
385
- deviceFingerprint: await _getDeviceFingerprint(),
386
- );
387
- }
388
-
389
- Future<void> _storeSecureSession(SecureSession session) async {
390
- final sessionJson = jsonEncode(session.toJson());
391
- await _secureStorage.storeSecureData('session', sessionJson);
392
- }
393
-
394
- // Session validation and refresh
395
- Future<bool> isSessionValid() async {
396
- try {
397
- final sessionJson = await _secureStorage.getSecureData('session');
398
- if (sessionJson == null) return false;
399
-
400
- final session = SecureSession.fromJson(jsonDecode(sessionJson));
401
-
402
- // Check expiration
403
- if (session.expirationTime.isBefore(DateTime.now())) {
404
- await _clearSession();
405
- return false;
406
- }
407
-
408
- // Validate device fingerprint
409
- final currentFingerprint = await _getDeviceFingerprint();
410
- if (session.deviceFingerprint != currentFingerprint) {
411
- SecurityLogger.warning('Device fingerprint mismatch detected');
412
- await _clearSession();
413
- return false;
414
- }
415
-
416
- return true;
417
- } catch (e) {
418
- SecurityLogger.error('Session validation failed: $e');
419
- await _clearSession();
420
- return false;
421
- }
422
- }
423
-
424
- Future<String> _getDeviceFingerprint() async {
425
- final deviceInfo = DeviceInfoPlugin();
426
- String fingerprint = '';
427
-
428
- if (Platform.isAndroid) {
429
- final androidInfo = await deviceInfo.androidInfo;
430
- fingerprint = '${androidInfo.model}-${androidInfo.androidId}';
431
- } else if (Platform.isIOS) {
432
- final iosInfo = await deviceInfo.iosInfo;
433
- fingerprint = '${iosInfo.model}-${iosInfo.identifierForVendor}';
434
- }
435
-
436
- return sha256.convert(utf8.encode(fingerprint)).toString();
437
- }
438
- }
439
-
440
- // Biometric Authentication Service
441
- class BiometricAuthenticationService {
442
- final LocalAuthentication _localAuth = LocalAuthentication();
443
-
444
- Future<bool> isAvailable() async {
445
- final isSupported = await _localAuth.isDeviceSupported();
446
- final isEnrolled = await _localAuth.canCheckBiometrics;
447
- return isSupported && isEnrolled;
448
- }
449
-
450
- Future<BiometricAuthResult> authenticate() async {
451
- try {
452
- final availableBiometrics = await _localAuth.getAvailableBiometrics();
453
-
454
- if (availableBiometrics.isEmpty) {
455
- return BiometricAuthResult.failure('No biometric authentication available');
456
- }
457
-
458
- final isAuthenticated = await _localAuth.authenticate(
459
- localizedReason: 'Please authenticate to access your account',
460
- options: AuthenticationOptions(
461
- useErrorDialogs: true,
462
- stickyAuth: true,
463
- biometricOnly: true,
464
- ),
465
- );
466
-
467
- if (isAuthenticated) {
468
- SecurityLogger.log('Biometric authentication successful');
469
- return BiometricAuthResult.success();
470
- } else {
471
- SecurityLogger.warning('Biometric authentication failed');
472
- return BiometricAuthResult.failure('Authentication failed');
473
- }
474
- } catch (e) {
475
- SecurityLogger.error('Biometric authentication error: $e');
476
- return BiometricAuthResult.failure('Authentication error');
477
- }
478
- }
479
- }
480
- ```
481
-
482
- **M5: Insufficient Cryptography**
483
- ```dart
484
- // Secure Cryptography Implementation
485
- class CryptographyService {
486
- static const int _keyLength = 256;
487
- static const int _ivLength = 16;
488
-
489
- // AES-256-GCM encryption for sensitive data
490
- Future<EncryptionResult> encryptData(String plaintext) async {
491
- try {
492
- // Generate random key and IV
493
- final key = _generateSecureKey(_keyLength ~/ 8);
494
- final iv = _generateSecureIV(_ivLength);
495
-
496
- // Encrypt using AES-256-GCM
497
- final encrypter = Encrypter(AES(Key(key), mode: AESMode.gcm));
498
- final encrypted = encrypter.encrypt(plaintext, iv: IV(iv));
499
-
500
- return EncryptionResult.success(
501
- encryptedData: encrypted.base64,
502
- key: base64Encode(key),
503
- iv: base64Encode(iv),
504
- );
505
- } catch (e) {
506
- SecurityLogger.error('Encryption failed: $e');
507
- return EncryptionResult.failure('Encryption error');
508
- }
509
- }
510
-
511
- Future<DecryptionResult> decryptData({
512
- required String encryptedData,
513
- required String keyBase64,
514
- required String ivBase64,
515
- }) async {
516
- try {
517
- final key = base64Decode(keyBase64);
518
- final iv = base64Decode(ivBase64);
519
-
520
- final encrypter = Encrypter(AES(Key(key), mode: AESMode.gcm));
521
- final encrypted = Encrypted.fromBase64(encryptedData);
522
- final decrypted = encrypter.decrypt(encrypted, iv: IV(iv));
523
-
524
- return DecryptionResult.success(decrypted);
525
- } catch (e) {
526
- SecurityLogger.error('Decryption failed: $e');
527
- return DecryptionResult.failure('Decryption error');
528
- }
529
- }
530
-
531
- // Secure key generation
532
- Uint8List _generateSecureKey(int length) {
533
- final random = Random.secure();
534
- return Uint8List.fromList(List.generate(length, (_) => random.nextInt(256)));
535
- }
536
-
537
- Uint8List _generateSecureIV(int length) {
538
- final random = Random.secure();
539
- return Uint8List.fromList(List.generate(length, (_) => random.nextInt(256)));
540
- }
541
-
542
- // Digital signature implementation
543
- Future<SignatureResult> signData(String data, String privateKey) async {
544
- try {
545
- final keyBytes = base64Decode(privateKey);
546
- final dataBytes = utf8.encode(data);
547
-
548
- // Use RSA-PSS signature
549
- final signer = RSASigner(SHA256Digest(), '0609608648016503040201');
550
- final signature = signer.generateSignature(dataBytes);
551
-
552
- return SignatureResult.success(base64Encode(signature.bytes));
553
- } catch (e) {
554
- SecurityLogger.error('Digital signature failed: $e');
555
- return SignatureResult.failure('Signature error');
556
- }
557
- }
558
-
559
- Future<bool> verifySignature({
560
- required String data,
561
- required String signature,
562
- required String publicKey,
563
- }) async {
564
- try {
565
- final keyBytes = base64Decode(publicKey);
566
- final dataBytes = utf8.encode(data);
567
- final signatureBytes = base64Decode(signature);
568
-
569
- final verifier = RSASigner(SHA256Digest(), '0609608648016503040201');
570
- return verifier.verifySignature(dataBytes, RSASignature(signatureBytes));
571
- } catch (e) {
572
- SecurityLogger.error('Signature verification failed: $e');
573
- return false;
574
- }
575
- }
576
-
577
- // Secure hash implementation
578
- String generateSecureHash(String input, [String? salt]) {
579
- final saltBytes = salt != null ? utf8.encode(salt) : _generateSecureKey(32);
580
- final inputBytes = utf8.encode(input);
581
- final combined = Uint8List.fromList([...inputBytes, ...saltBytes]);
582
-
583
- final digest = sha256.convert(combined);
584
- return digest.toString();
585
- }
586
-
587
- // Key derivation function (PBKDF2)
588
- Uint8List deriveKey({
589
- required String password,
590
- required Uint8List salt,
591
- int iterations = 100000,
592
- int keyLength = 32,
593
- }) {
594
- final pbkdf2 = PBKDF2KeyDerivator(HMac(SHA256Digest(), 64));
595
- pbkdf2.init(Pbkdf2Parameters(salt, iterations, keyLength));
596
-
597
- return pbkdf2.process(utf8.encode(password));
598
- }
599
- }
600
- ```
601
-
602
- ### Platform-Specific Security Implementation
603
-
604
- **iOS Security Features:**
605
- ```dart
606
- // iOS Keychain Integration
607
- class IOSKeychainService {
608
- static const String _service = 'com.myapp.secure';
609
-
610
- Future<void> storeInKeychain(String key, String value) async {
611
- final query = {
612
- kSecClass: kSecClassGenericPassword,
613
- kSecAttrService: _service,
614
- kSecAttrAccount: key,
615
- kSecValueData: utf8.encode(value),
616
- kSecAttrAccessible: kSecAttrAccessibleWhenUnlockedThisDeviceOnly,
617
- };
618
-
619
- // Delete existing item first
620
- await _deleteFromKeychain(key);
621
-
622
- final status = SecItemAdd(query as CFDictionary, null);
623
- if (status != errSecSuccess) {
624
- throw SecurityException('Failed to store in keychain: $status');
625
- }
626
- }
627
-
628
- Future<String?> retrieveFromKeychain(String key) async {
629
- final query = {
630
- kSecClass: kSecClassGenericPassword,
631
- kSecAttrService: _service,
632
- kSecAttrAccount: key,
633
- kSecReturnData: true,
634
- kSecMatchLimit: kSecMatchLimitOne,
635
- };
636
-
637
- CFTypeRef? result;
638
- final status = SecItemCopyMatching(query as CFDictionary, result);
639
-
640
- if (status == errSecSuccess && result != null) {
641
- final data = result as Data;
642
- return utf8.decode(data.bytes);
643
- }
644
-
645
- return null;
646
- }
647
-
648
- Future<void> _deleteFromKeychain(String key) async {
649
- final query = {
650
- kSecClass: kSecClassGenericPassword,
651
- kSecAttrService: _service,
652
- kSecAttrAccount: key,
653
- };
654
-
655
- SecItemDelete(query as CFDictionary);
656
- }
657
- }
658
-
659
- // App Transport Security Configuration
660
- // Info.plist configuration for secure communication
661
- /*
662
- <key>NSAppTransportSecurity</key>
663
- <dict>
664
- <key>NSAllowsArbitraryLoads</key>
665
- <false/>
666
- <key>NSExceptionDomains</key>
667
- <dict>
668
- <key>api.myapp.com</key>
669
- <dict>
670
- <key>NSExceptionRequiresForwardSecrecy</key>
671
- <false/>
672
- <key>NSExceptionMinimumTLSVersion</key>
673
- <string>TLSv1.2</string>
674
- <key>NSIncludesSubdomains</key>
675
- <true/>
676
- </dict>
677
- </dict>
678
- </dict>
679
- */
680
- ```
681
-
682
- **Android Security Features:**
683
- ```dart
684
- // Android Keystore Integration
685
- class AndroidKeystoreService {
686
- static const String _keyAlias = 'MyAppSecretKey';
687
-
688
- Future<void> generateKey() async {
689
- final keyGenParameterSpec = KeyGenParameterSpec.Builder(
690
- _keyAlias,
691
- KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT,
692
- )
693
- .setBlockModes([KeyProperties.BLOCK_MODE_GCM])
694
- .setEncryptionPaddings([KeyProperties.ENCRYPTION_PADDING_NONE])
695
- .setUserAuthenticationRequired(true)
696
- .setUserAuthenticationValidityDurationSeconds(300)
697
- .build();
698
-
699
- final keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES, 'AndroidKeyStore');
700
- keyGenerator.init(keyGenParameterSpec);
701
- keyGenerator.generateKey();
702
- }
703
-
704
- Future<EncryptionResult> encryptWithKeystore(String plaintext) async {
705
- try {
706
- final keyStore = KeyStore.getInstance('AndroidKeyStore');
707
- keyStore.load(null);
708
-
709
- final secretKey = keyStore.getKey(_keyAlias, null) as SecretKey;
710
- final cipher = Cipher.getInstance('AES/GCM/NoPadding');
711
- cipher.init(Cipher.ENCRYPT_MODE, secretKey);
712
-
713
- final encryptedBytes = cipher.doFinal(utf8.encode(plaintext));
714
- final iv = cipher.getIV();
715
-
716
- return EncryptionResult.success(
717
- encryptedData: base64Encode(encryptedBytes),
718
- iv: base64Encode(iv),
719
- );
720
- } catch (e) {
721
- SecurityLogger.error('Keystore encryption failed: $e');
722
- return EncryptionResult.failure('Encryption error');
723
- }
724
- }
725
- }
726
-
727
- // Network Security Configuration
728
- // res/xml/network_security_config.xml
729
- /*
730
- <?xml version="1.0" encoding="utf-8"?>
731
- <network-security-config>
732
- <domain-config cleartextTrafficPermitted="false">
733
- <domain includeSubdomains="true">api.myapp.com</domain>
734
- <pin-set expiration="2025-01-01">
735
- <pin digest="SHA-256">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</pin>
736
- <pin digest="SHA-256">BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB=</pin>
737
- </pin-set>
738
- </domain-config>
739
- </network-security-config>
740
- */
741
- ```
742
-
743
- ## Security Testing and Vulnerability Assessment
744
-
745
- ### Automated Security Testing
746
-
747
- **Security Testing Pipeline:**
748
- ```dart
749
- void main() {
750
- group('Security Tests', () {
751
- test('should encrypt sensitive data properly', () async {
752
- final cryptoService = CryptographyService();
753
- final testData = 'sensitive user information';
754
-
755
- final encryptionResult = await cryptoService.encryptData(testData);
756
- expect(encryptionResult.success, isTrue);
757
- expect(encryptionResult.encryptedData, isNot(contains(testData)));
758
-
759
- final decryptionResult = await cryptoService.decryptData(
760
- encryptedData: encryptionResult.encryptedData!,
761
- keyBase64: encryptionResult.key!,
762
- ivBase64: encryptionResult.iv!,
763
- );
764
- expect(decryptionResult.success, isTrue);
765
- expect(decryptionResult.plaintext, equals(testData));
766
- });
767
-
768
- test('should validate certificate pinning', () async {
769
- final apiClient = SecureApiClient('https://api.myapp.com');
770
-
771
- // Test with valid certificate
772
- expect(() => apiClient.get('/health'), returnsNormally);
773
-
774
- // Test with invalid certificate (simulated)
775
- expect(() => apiClient.get('/health', options: Options(
776
- headers: {'X-Test-Invalid-Cert': 'true'}
777
- )), throwsA(isA<CertificateException>()));
778
- });
779
-
780
- test('should protect against SQL injection', () async {
781
- final databaseService = EncryptedDatabaseService();
782
- final maliciousInput = "'; DROP TABLE users; --";
783
-
784
- // Should not execute malicious SQL
785
- expect(() => databaseService.query(
786
- 'SELECT * FROM users WHERE name = ?',
787
- [maliciousInput],
788
- ), returnsNormally);
789
- });
790
- });
791
- }
792
- ```
793
-
794
- ### Manual Penetration Testing Checklist
795
-
796
- **Mobile Penetration Testing Areas:**
797
- 1. **Static Application Security Testing (SAST)**
798
- - Source code vulnerability analysis
799
- - Hardcoded credentials detection
800
- - Insecure cryptographic implementation
801
- - Input validation testing
802
-
803
- 2. **Dynamic Application Security Testing (DAST)**
804
- - Runtime vulnerability detection
805
- - Network traffic analysis
806
- - API security testing
807
- - Authentication bypass attempts
808
-
809
- 3. **Interactive Application Security Testing (IAST)**
810
- - Real-time vulnerability detection
811
- - Code coverage analysis
812
- - Runtime protection testing
813
- - Performance impact assessment
814
-
815
- 4. **Mobile-Specific Testing**
816
- - App binary analysis
817
- - Runtime manipulation testing
818
- - Local storage security assessment
819
- - Inter-app communication security
820
-
821
- ## Compliance and Privacy
822
-
823
- ### GDPR Compliance Implementation
824
-
825
- **Data Privacy Controls:**
826
- ```dart
827
- class PrivacyComplianceService {
828
- final SecureStorageService _secureStorage = SecureStorageService();
829
-
830
- // Data consent management
831
- Future<void> recordUserConsent({
832
- required String userId,
833
- required List<ConsentType> consentTypes,
834
- }) async {
835
- final consent = UserConsent(
836
- userId: userId,
837
- consentTypes: consentTypes,
838
- timestamp: DateTime.now(),
839
- version: await _getPrivacyPolicyVersion(),
840
- );
841
-
842
- await _secureStorage.storeSecureData(
843
- 'user_consent_$userId',
844
- jsonEncode(consent.toJson()),
845
- );
846
-
847
- SecurityLogger.log('User consent recorded for user: $userId');
848
- }
849
-
850
- // Right to be forgotten implementation
851
- Future<void> deleteUserData(String userId) async {
852
- try {
853
- // 1. Delete local storage
854
- await _deleteLocalUserData(userId);
855
-
856
- // 2. Request backend data deletion
857
- await _requestBackendDataDeletion(userId);
858
-
859
- // 3. Clear secure storage
860
- await _clearUserSecureData(userId);
861
-
862
- // 4. Log deletion for audit trail
863
- SecurityLogger.log('User data deleted for user: $userId');
864
- } catch (e) {
865
- SecurityLogger.error('Failed to delete user data: $e');
866
- throw PrivacyException('Data deletion failed');
867
- }
868
- }
869
-
870
- // Data export for portability
871
- Future<UserDataExport> exportUserData(String userId) async {
872
- final userData = await _collectUserData(userId);
873
-
874
- return UserDataExport(
875
- userId: userId,
876
- exportDate: DateTime.now(),
877
- data: userData,
878
- format: 'JSON',
879
- );
880
- }
881
-
882
- Future<void> _deleteLocalUserData(String userId) async {
883
- final database = await EncryptedDatabaseService().database;
884
- await database.delete('users', where: 'id = ?', whereArgs: [userId]);
885
- await database.delete('user_preferences', where: 'user_id = ?', whereArgs: [userId]);
886
- // Delete other user-related data
887
- }
888
-
889
- Future<void> _clearUserSecureData(String userId) async {
890
- final keys = [
891
- 'auth_token_$userId',
892
- 'user_session_$userId',
893
- 'user_preferences_$userId',
894
- 'user_consent_$userId',
895
- ];
896
-
897
- for (final key in keys) {
898
- await _secureStorage.deleteSecureData(key);
899
- }
900
- }
901
- }
902
- ```
903
-
904
- ### HIPAA Compliance (Healthcare Apps)
905
-
906
- **Healthcare Data Protection:**
907
- ```dart
908
- class HIPAAComplianceService {
909
- // Audit logging for healthcare data access
910
- Future<void> logDataAccess({
911
- required String userId,
912
- required String dataType,
913
- required String action,
914
- required String purpose,
915
- }) async {
916
- final auditLog = HIPAAAuditLog(
917
- timestamp: DateTime.now(),
918
- userId: userId,
919
- dataType: dataType,
920
- action: action,
921
- purpose: purpose,
922
- deviceId: await _getDeviceId(),
923
- ipAddress: await _getIPAddress(),
924
- );
925
-
926
- // Store audit log securely
927
- await _storeAuditLog(auditLog);
928
-
929
- // Send to secure audit server
930
- await _sendAuditLogToServer(auditLog);
931
- }
932
-
933
- // Minimum necessary access control
934
- Future<bool> hasMinimumNecessaryAccess({
935
- required String userId,
936
- required String dataType,
937
- required String purpose,
938
- }) async {
939
- final userRole = await _getUserRole(userId);
940
- final accessMatrix = await _getAccessMatrix();
941
-
942
- return accessMatrix.hasAccess(userRole, dataType, purpose);
943
- }
944
-
945
- // Data encryption for PHI
946
- Future<String> encryptPHI(String phi) async {
947
- final cryptoService = CryptographyService();
948
- final encryptionResult = await cryptoService.encryptData(phi);
949
-
950
- if (!encryptionResult.success) {
951
- throw SecurityException('PHI encryption failed');
952
- }
953
-
954
- return encryptionResult.encryptedData!;
955
- }
956
- }
957
- ```
958
-
959
- ## Security Monitoring and Incident Response
960
-
961
- ### Real-time Security Monitoring
962
-
963
- **Security Event Detection:**
964
- ```dart
965
- class SecurityMonitoringService {
966
- final StreamController<SecurityEvent> _eventController = StreamController.broadcast();
967
-
968
- Stream<SecurityEvent> get securityEvents => _eventController.stream;
969
-
970
- void reportSecurityEvent(SecurityEvent event) {
971
- _eventController.add(event);
972
- _processSecurityEvent(event);
973
- }
974
-
975
- void _processSecurityEvent(SecurityEvent event) async {
976
- switch (event.severity) {
977
- case SecuritySeverity.critical:
978
- await _handleCriticalEvent(event);
979
- break;
980
- case SecuritySeverity.high:
981
- await _handleHighSeverityEvent(event);
982
- break;
983
- case SecuritySeverity.medium:
984
- await _handleMediumSeverityEvent(event);
985
- break;
986
- case SecuritySeverity.low:
987
- await _logLowSeverityEvent(event);
988
- break;
989
- }
990
- }
991
-
992
- Future<void> _handleCriticalEvent(SecurityEvent event) async {
993
- // Immediate response for critical security events
994
- await _lockUserSession();
995
- await _notifySecurityTeam(event);
996
- await _createIncidentReport(event);
997
-
998
- SecurityLogger.critical('Critical security event: ${event.description}');
999
- }
1000
-
1001
- // Automated threat detection
1002
- void startThreatDetection() {
1003
- Timer.periodic(Duration(minutes: 5), (timer) async {
1004
- await _detectAnomalousActivity();
1005
- await _checkForCompromisedData();
1006
- await _validateSecurityControls();
1007
- });
1008
- }
1009
-
1010
- Future<void> _detectAnomalousActivity() async {
1011
- // Check for unusual user behavior patterns
1012
- final userActivity = await _getUserActivityPatterns();
1013
- final anomalies = _analyzeForAnomalies(userActivity);
1014
-
1015
- for (final anomaly in anomalies) {
1016
- reportSecurityEvent(SecurityEvent(
1017
- type: SecurityEventType.anomalousActivity,
1018
- severity: SecuritySeverity.medium,
1019
- description: 'Anomalous activity detected: ${anomaly.description}',
1020
- userId: anomaly.userId,
1021
- ));
1022
- }
1023
- }
1024
- }
1025
- ```
1026
-
1027
- I'm ready to implement comprehensive mobile security measures that protect your Flutter or React Native app against all known threats while ensuring compliance with privacy regulations. Let me know what security areas you'd like me to focus on!