|
| 1 | +# GitHub Copilot Instructions for Ananbox |
| 2 | + |
| 3 | +## Updating These Instructions |
| 4 | + |
| 5 | +When making significant changes to the project structure, build process, or policies: |
| 6 | +1. Update this file to reflect the new guidelines |
| 7 | +2. Document any new conventions or patterns introduced |
| 8 | +3. Remove outdated information that no longer applies |
| 9 | +4. Keep instructions clear, concise, and actionable |
| 10 | +5. Test that the instructions are accurate before committing |
| 11 | + |
| 12 | +## AI-Generated Content Policy |
| 13 | + |
| 14 | +When creating new files (not modifying existing files or vendoring third-party code), add the following header at the top of the file: |
| 15 | + |
| 16 | +``` |
| 17 | +# Copyright Disclaimer: AI-Generated Content |
| 18 | +# This file was created by GitHub Copilot, an AI coding assistant. |
| 19 | +# AI-generated content is not subject to copyright protection and is provided |
| 20 | +# without any warranty, express or implied, including warranties of merchantability, |
| 21 | +# fitness for a particular purpose, or non-infringement. |
| 22 | +# Use at your own risk. |
| 23 | +``` |
| 24 | + |
| 25 | +For different file types, adapt the comment style appropriately: |
| 26 | +- Use `#` for YAML, Python, Shell scripts |
| 27 | +- Use `//` for Java, Kotlin, C, C++ |
| 28 | +- Use `<!-- -->` for XML, HTML |
| 29 | +- Use `/* */` for CSS, multi-line comments in C/C++ |
| 30 | + |
| 31 | +## Exceptions |
| 32 | + |
| 33 | +Do NOT add this disclaimer to: |
| 34 | +- Files that are modifications of existing code (only add to completely new files) |
| 35 | +- Vendored third-party dependencies (these have their own licenses) |
| 36 | +- Configuration files generated by tools (package.json, build.gradle if just updating versions, etc.) |
| 37 | + |
| 38 | +## Project-Specific Guidelines |
| 39 | + |
| 40 | +### Target SDK |
| 41 | +- This project targets SDK 28 intentionally to allow execution in `/data/user/0/` |
| 42 | +- Do not update targetSdk beyond 28 without explicit approval |
| 43 | +- compileSdk can be updated for build-time API access (currently set to 35) |
0 commit comments