Skip to content

Commit 1fd8adb

Browse files
touyouclaude
andauthored
chore(deps): Bump androidx.appfunctions to 1.0.0-alpha11 (#113)
* chore(deps): Bump androidx.appfunctions to 1.0.0-alpha11 Bump `appfunctions` and `appfunctions-compiler` from 1.0.0-alpha10 to 1.0.0-alpha11 (released 2026-08-26). Keep `appfunctions-service` pinned at alpha09 — alpha11 omits this artifact from its release entirely, which may indicate it is being deprecated or merged. Notable alpha11 changes (no generated-code impact): - `AppFunctionState` / `AppFunctionManager#getAppFunctionStates` replaces deprecated `AppFunctionMetadata#isEnabled` - `AppFunctionManager#getAppFunctionActivityStates` added - `ExtensionsAppFunctionService` added for sidecar support - `@AppFunctionSignature` experimental public API added - `observeAppFunctions` updated to match platform API - Bug fix: missing runtime metadata crash during OOBE Package paths for `@AppFunction`, `@AppFunctionSerializable`, and `AppFunctionContext` are unchanged; KotlinGenerator needs no update. Also updates CLAUDE.md to document the alpha11 appfunctions-service absence and recency of the Kotlin-version-pin table baseline. * docs: Update docs/usage.md and CLAUDE.md for appfunctions alpha11 - docs/usage.md: bump appfunctions/appfunctions-compiler version references from alpha10 to alpha11; update KSP snippet from 2.3.9 to 2.3.11 (actual version in settings.gradle.kts); refresh appfunctions-service comment to reflect it is absent from alpha11 - CLAUDE.md: fix Kotlin compatibility note KSP version from 2.3.9 to 2.3.11 to match the example app's declared toolchain --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0c2b95a commit 1fd8adb

3 files changed

Lines changed: 16 additions & 15 deletions

File tree

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ Options:
271271
- KSP compiler cannot handle `Map<String, Any?>` as `@AppFunction` return type — use `String` (JSON)
272272
- KSP version: KSP1 used the `{kotlin-version}-{ksp-version}` concatenation (e.g., `2.2.20-2.0.4`); KSP2 (current) uses a standalone version (e.g., `2.3.9`) — match whatever the example app's `settings.gradle.kts` declares
273273
- Three Jetpack artifacts: `appfunctions`, `appfunctions-service`, `appfunctions-compiler`
274-
- **`appfunctions-service` publishing lag (still unresolved as of 2026-08-21)**: the [release notes page](https://developer.android.com/jetpack/androidx/releases/appfunctions) lists `appfunctions-service:1.0.0-alpha10`, but Google Maven had not actually published that artifact yet (`maven-metadata.xml`/`group-index.xml` for `androidx.appfunctions` topped out at alpha09 for `appfunctions-service` while `appfunctions` and `appfunctions-compiler` alpha10 were live) — `:app:mergeDebugAssets` fails to resolve `androidx.appfunctions:appfunctions-service:1.0.0-alpha10`. **Fix**: pin `appfunctions-service` one version behind (`alpha09`) while bumping `appfunctions`/`appfunctions-compiler` to the new version; re-check Maven before un-pinning. **Re-checked 2026-08-21 (PR #83, closed)**: `appfunctions-service` alpha10 POM still returns HTTP 404 on both `google()` and `mavenCentral` (`maven-metadata.xml` tops out at alpha09), while `appfunctions`/`appfunctions-compiler` alpha10 return 200 — the pin must stay. Verified: `flutter build apk --debug` succeeds with this mixed-version pin and the *existing* `KotlinGenerator` output unchanged — no `@AppFunctionServiceEntryPoint`/service-wrapper migration was actually required for this project's plain `@AppFunction` usage.
274+
- **`appfunctions-service` status (pinned at alpha09, possibly deprecated)**: `appfunctions-service:1.0.0-alpha10` was never published to Google Maven (artifact 404 as of 2026-08-21, PR #83). More significantly, the **alpha11 release (2026-08-26) omits `appfunctions-service` entirely** from its artifact list — only `appfunctions`, `appfunctions-compiler`, and `appfunctions-testing` are released. This may signal the artifact is being deprecated or merged into another artifact. **Current fix**: pin `appfunctions-service` at `alpha09` while bumping the other two artifacts. If `appfunctions-service` is permanently dropped upstream, remove this dependency. Verified: `flutter build apk --debug` succeeds with the mixed-version pin and the *existing* `KotlinGenerator` output unchanged.
275275
- **Kotlin version is gated by the AppFunctions/KSP toolchain — do NOT blindly accept
276276
Dependabot Kotlin bumps.** The example app pins Kotlin **2.2.20** (KSP `2.3.9`,
277-
`appfunctions:1.0.0-alpha10`). Bumping to **Kotlin 2.4.0** (released 2026-06-03) failed
277+
`appfunctions:1.0.0-alpha11`, KSP `2.3.11`). Bumping to **Kotlin 2.4.0** (released 2026-06-03) failed
278278
`:app:kspDebugKotlin` when bisected against KSP `2.3.9` + appfunctions **alpha09** with
279279
`Can't escape identifier `$Android:appDebug_FunctionComponentRegistry` because it
280280
contains illegal characters: :` — the AppFunctions compiler emits a colon-bearing
@@ -291,7 +291,7 @@ Options:
291291

292292
| Kotlin | KSP | appfunctions | Result |
293293
|---|---|---|---|
294-
| 2.2.20 | 2.3.9 | alpha10 | ✅ baseline |
294+
| 2.2.20 | 2.3.9 | alpha10 | ✅ baseline (at time of test) |
295295
| **2.4.10** | **2.3.11** | alpha10 | ❌ same `Can't escape identifier` failure |
296296
| 2.2.20 | **2.3.11** | alpha10 ||
297297

app/android/app/build.gradle.kts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ ksp {
4646
}
4747

4848
dependencies {
49-
implementation("androidx.appfunctions:appfunctions:1.0.0-alpha10")
50-
// appfunctions-service alpha10 has not actually been published to Google Maven yet
51-
// (the release notes page lists it, but the artifact 404s) — keep this pinned to
52-
// alpha09 until Google publishes it, or the build fails to resolve dependencies.
49+
implementation("androidx.appfunctions:appfunctions:1.0.0-alpha11")
50+
// appfunctions-service was not included in the alpha10 or alpha11 artifact releases
51+
// (it 404s on Google Maven for alpha10; alpha11 release notes omit it entirely).
52+
// Keep pinned to alpha09. Re-check each release cycle; if appfunctions-service is
53+
// permanently dropped, remove this dependency.
5354
implementation("androidx.appfunctions:appfunctions-service:1.0.0-alpha09")
54-
ksp("androidx.appfunctions:appfunctions-compiler:1.0.0-alpha10")
55+
ksp("androidx.appfunctions:appfunctions-compiler:1.0.0-alpha11")
5556
}
5657

5758
flutter {

docs/usage.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ platform :ios, '17.0'
2929

3030
#### Android
3131

32-
`appfunctions:1.0.0-alpha10` requires **Android Gradle Plugin 9.1.0+**, **Gradle 9.3.1+**, and **compileSdk 37**.
32+
`appfunctions:1.0.0-alpha11` requires **Android Gradle Plugin 9.1.0+**, **Gradle 9.3.1+**, and **compileSdk 37**.
3333
Update `android/app/build.gradle.kts` (`minSdk = 36` because AppFunctions requires Android 16):
3434

3535
```kotlin
@@ -48,7 +48,7 @@ Add KSP and AppFunctions dependencies:
4848
// android/settings.gradle.kts
4949
id("com.android.application") version "9.2.1" apply false
5050
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
51-
id("com.google.devtools.ksp") version "2.3.9" apply false
51+
id("com.google.devtools.ksp") version "2.3.11" apply false
5252
5353
// android/app/build.gradle.kts
5454
plugins {
@@ -58,11 +58,11 @@ plugins {
5858
id("dev.flutter.flutter-gradle-plugin")
5959
}
6060
dependencies {
61-
implementation("androidx.appfunctions:appfunctions:1.0.0-alpha10")
62-
// appfunctions-service alpha10 was not yet published on Google Maven as of July 2026
63-
// (release notes list it, but the artifact 404s) — pin one version behind until it lands.
61+
implementation("androidx.appfunctions:appfunctions:1.0.0-alpha11")
62+
// appfunctions-service was absent from the alpha10 and alpha11 releases; pin at alpha09.
63+
// If permanently dropped upstream, remove this dependency entirely.
6464
implementation("androidx.appfunctions:appfunctions-service:1.0.0-alpha09")
65-
ksp("androidx.appfunctions:appfunctions-compiler:1.0.0-alpha10")
65+
ksp("androidx.appfunctions:appfunctions-compiler:1.0.0-alpha11")
6666
}
6767
6868
ksp {
@@ -85,7 +85,7 @@ Update the Gradle wrapper to 9.3.1+ in `android/gradle/wrapper/gradle-wrapper.pr
8585
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-all.zip
8686
```
8787

88-
> **Note**: AppFunctions requires Android 16 (API 36) or later. The `compileSdk = 37` requirement comes from the `appfunctions:1.0.0-alpha10` AAR metadata.
88+
> **Note**: AppFunctions requires Android 16 (API 36) or later. The `compileSdk = 37` requirement comes from the `appfunctions:1.0.0-alpha11` AAR metadata.
8989

9090
### 3. iOS Native Setup (AppIntentsBridge)
9191

0 commit comments

Comments
 (0)