Skip to content

Commit 520649b

Browse files
update dependencies
1 parent 0a8e46a commit 520649b

3 files changed

Lines changed: 30 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ WiFiAnalyzer is an Android application for analyzing WiFi networks. It helps use
2222
| Code Style | ktlint |
2323
| License | GNU General Public License v3.0 (GPLv3) |
2424

25+
clearAdditional repository-specific versions and toolchain (source-of-truth files shown):
26+
27+
- Kotlin: 2.3.20 (top-level `build.gradle` ext.kotlin_version)
28+
- Android Gradle Plugin (AGP): 9.1.0 (top-level `build.gradle` classpath `com.android.tools.build:gradle:9.1.0`)
29+
- Gradle wrapper: 9.4.1 (`gradle/wrapper/gradle-wrapper.properties` distributionUrl)
30+
- JDK: 21 is used in CI and repository setup (`.github/actions/common-setup/action.yml` and `.github/workflows/*` use setup-java with `java-version: 21`). Note: project `compileOptions` and `kotlinOptions.jvmTarget` are set to Java 17 in `app/build.gradle`.
31+
- Android compile/target SDK: compileSdk = 36, minSdk = 24 (see `app/build.gradle`).
32+
2533
## Project Structure
2634

2735
```
@@ -66,6 +74,10 @@ All source files must include the GPLv3 license header:
6674
Use ktlint for code formatting:
6775
- Check: `./gradlew ktlintCheck`
6876
- Format: `./gradlew ktlintFormat`
77+
78+
Repository-specific ktlint notes:
79+
- Plugin configured in `app/build.gradle` as `org.jlleitschuh.gradle.ktlint` (version `14.2.0`).
80+
- Baseline and rules: see `app/config/ktlint/baseline.xml` and project `.editorconfig` for formatting rules.
6981

7082
## Testing Requirements
7183

@@ -162,6 +174,22 @@ class MainActivityInstrumentedTest {
162174
| Run tests with coverage | `./gradlew jacocoTestCoverageVerification` |
163175
| Run instrumented tests | `./gradlew connectedDebugAndroidTest` |
164176

177+
### CI / GitHub Actions (what the repo runs)
178+
179+
- Workflows:
180+
- `.github/workflows/android-ci.yml` — main Android CI pipeline (jobs: ktlint, lint, test, coverage, build-apk, emulator-test). Runners use `ubuntu-22.04` / `ubuntu-latest` and a composite action `.github/actions/common-setup` to install JDK 21 and Gradle.
181+
- `.github/workflows/codeql-analysis.yml` — CodeQL analysis (language: `java-kotlin`, uses JDK 21).
182+
183+
- Important CI details and artifact/report locations (useful for reproducing or debugging locally):
184+
- ktlint report: `app/build/reports/ktlint` (CI uploads as `ktlint-report`).
185+
- lint report: `app/build/reports/lint-results*.*` (CI uploads as `lint-report`).
186+
- unit test reports: `app/build/reports/tests` (CI uploads as `test-results`). The unit test task invoked is `:app:testDebugUnitTest` / `./gradlew testDebugUnitTest`.
187+
- JaCoCo report (CI expects the XML): `app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml` (uploaded to Codecov using `secrets.CODECOV_TOKEN`).
188+
- APK artifact: `app/build/outputs/apk/debug` (uploaded as `artifact-apk`).
189+
- Instrumentation / emulator test outputs: `app/build/reports/androidTests` and `app/build/outputs/androidTest-results/connected/**/*.xml` for JUnit XMLs.
190+
191+
- Emulator job notes: the GitHub Action enables KVM, caches AVD (`~/.android/avd/*`) and runs `./gradlew connectedDebugAndroidTest`. Emulator caching and KVM are required for the `emulator-test` job in `android-ci.yml`.
192+
165193
## Privacy and Security Guidelines
166194

167195
1. **No Data Collection**: WiFiAnalyzer does not collect any personal/device information

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies {
3333
// Compile Build Dependencies
3434
implementation fileTree(include: ["*.jar"], dir: "libs")
3535
implementation 'com.google.android.material:material:1.13.0'
36-
implementation 'androidx.annotation:annotation:1.9.1'
36+
implementation 'androidx.annotation:annotation:1.10.0'
3737
implementation 'androidx.appcompat:appcompat:1.7.1'
3838
implementation 'androidx.collection:collection-ktx:1.6.0'
3939
implementation 'androidx.core:core-ktx:1.18.0'

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ buildscript {
2828
gradlePluginPortal() // Added for plugin resolution
2929
}
3030
dependencies {
31-
classpath 'com.android.tools.build:gradle:9.1.0'
31+
classpath 'com.android.tools.build:gradle:9.1.1'
3232
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
3333
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
3434
classpath "com.github.ben-manes:gradle-versions-plugin:0.53.0"

0 commit comments

Comments
 (0)