Skip to content

Commit 4481829

Browse files
authored
build: added Gemini Code Assistant for GitHub (#854)
1 parent 54d9f06 commit 4481829

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.gemini/config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Gemini Code Assist Configuration
2+
# See: https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github
3+
4+
# Feature settings
5+
have_fun: false
6+
7+
code_review:
8+
disable: false
9+
comment_severity_threshold: MEDIUM
10+
max_review_comments: -1
11+
12+
pull_request_opened:
13+
summary: true
14+
code_review: true
15+
include_drafts: true
16+
17+
# Files to ignore in Gemini analysis
18+
ignore_patterns:
19+
- "**/*.bin"
20+
- "**/*.exe"
21+
- "**/build/**"
22+
- "**/.gradle/**"
23+
- "**/secrets.properties"

.gemini/styleguide.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Gemini Code Assist Style Guide: android-maps-compose
2+
3+
This guide defines the custom code review and generation rules for the `android-maps-compose` project.
4+
5+
## Jetpack Compose Guidelines
6+
- **API Guidelines**: Strictly follow the [Jetpack Compose API guidelines](https://github.com/androidx/androidx/blob/androidx-main/compose/docs/compose-api-guidelines.md).
7+
- **Naming**: Composable functions must be PascalCase.
8+
- **State Management**: Prefer library-provided state holders like `rememberCameraPositionState` or `MarkerState`.
9+
- **Modifiers**: The first optional parameter of any Composable should be `modifier: Modifier = Modifier`.
10+
11+
## Kotlin Style
12+
- **Naming**: Use camelCase for variables and functions.
13+
- **Documentation**: Provide KDoc for all public classes, properties, and functions.
14+
- **Safety**: Use null-safe operators and avoid `!!`.
15+
16+
## Project Specifics
17+
- **Secrets**: Never commit API keys. Ensure they are read from `secrets.properties` via `BuildConfig` or similar.
18+
- **Maps SDK**: Use the components provided in `maps-compose`, `maps-compose-utils`, and `maps-compose-widgets` rather than raw `GoogleMap` objects.

0 commit comments

Comments
 (0)