Skip to content

F-113: cover all Android first-party libraries with usage examples - #223

Merged
stepango merged 1 commit into
v2from
forma/F-113-android-library-examples
Jul 26, 2026
Merged

F-113: cover all Android first-party libraries with usage examples#223
stepango merged 1 commit into
v2from
forma/F-113-android-library-examples

Conversation

@stepango

Copy link
Copy Markdown
Collaborator

Summary

Closes progressive-ladder gaps so every Android first-party library-like target has a real usage example (not docs-only / empty modules).

Gaps fixed

  1. androidTestUtil — declared in 09 but never consumed → instrumented AdderAndroidTest uses AndroidChecks via androidTestDependencies
  2. androidNative — docs-only and unconsumable (no matrix edges) → new examples/android/13-android-native (CMake + JNI androidUtil façade + Activity)
  3. testDependencies / androidTestDependencies typed as NamedDependency → widened to FormaDependency so first-party project targets work

Engine

  • Matrix: androidUtil / androidApp / androidBinarynative; native stays a leaf
  • Unit assertions in AndroidTargetRegistryKmpEdgesTest

Docs

DEPENDENCY-MATRIX, PROGRESSIVE-EXAMPLES, CALL-SITE-SURFACE, README, agent skill coverage table, TICKETS F-113 done

Verify (host)

  • plugins/: ./gradlew :android:test jacocoHappyPathCoverageVerification
  • examples/android/09-test-utils: assembleDebug + testDebugUnitTest + assembleDebugAndroidTest ✅
  • examples/android/13-android-native: assembleDebug (NDK 28.2 + CMake 3.22.1) ✅

Note

AGP rejects namespaces ending with Java keyword native — packageName uses ….ndk while project suffix stays native.

Close progressive-ladder gaps for library-like Android targets:
- Matrix: androidUtil/app/binary may depend on native; native stays a leaf
- Widen testDependencies/androidTestDependencies to FormaDependency so
  first-party project targets work on instrumented/unit test classpaths
- 09: real androidTestUtil usage via AdderAndroidTest + AndroidChecks
- 13: androidNative CMake + JNI androidUtil façade + Activity usage
- Docs/skills/matrix/README aligned; TICKETS F-113 done

Verified: plugins :android:test + jacocoHappyPath; 09 assemble/unit/
assembleDebugAndroidTest; 13 assembleDebug (NDK 28.2 + CMake 3.22.1)
@stepango
stepango merged commit af8cde6 into v2 Jul 26, 2026
8 checks passed
@stepango
stepango deleted the forma/F-113-android-library-examples branch July 26, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant