Skip to content

Commit a5d59d7

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
feat: generate typed wrappers for the full Android SDK
Extract all ~4700 classes from android-36 SDK to ref/ and generate typed Go wrappers for the complete Android API surface (239 packages). Generator fixes for full-SDK scale: - Strip generic type parameters from class names and filter generic methods - Convert boolean constants to true/false - Resolve constant/type name collisions (append "Const" suffix) - Use per-type serviceName constants to prevent redeclarations - Use unqualified Context within app package - Derive package mappings from Java hierarchy (no hardcoded map) - Key specs by GoImport to prevent cross-package collisions - Skip non-public classes gracefully - Rename ReadByte/WriteByte to avoid io.ByteReader/Writer vet errors Update examples to use FromPtr for C pointers and comment out calls to methods filtered by the generic type filter.
1 parent c020a12 commit a5d59d7

4,737 files changed

Lines changed: 1539108 additions & 28413 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

accessibilityservice/accessibility_button_controller.go

Lines changed: 97 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

accessibilityservice/accessibility_button_controller_accessibility_button_callback.go

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

accessibilityservice/accessibility_gesture_event.go

Lines changed: 177 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)