Commit a5d59d7
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
- accessibilityservice
- consts
- accounts
- consts
- adservices
- adid
- consts
- adselection
- consts
- appsetid
- consts
- common
- consts
- customaudience
- consts
- exceptions
- measurement
- consts
- ondevicepersonalization
- consts
- signals
- topics
- animation
- consts
- annotation
- appwidget
- consts
- app
- admin
- consts
- alarm
- appfunctions
- consts
- appsearch
- consts
- exceptions
- observer
- consts
- util
- assist
- consts
- backup
- consts
- blob
- consts
- consts
- download
- jank
- consts
- job
- consts
- notification
- people
- consts
- role
- sdksandbox
- consts
- sdkprovider
- consts
- slice
- consts
- usage
- consts
- wallpaper
- consts
- bluetooth
- consts
- le
- consts
- companion
- consts
- virtual
- consts
- content
- clipboard
- consts
- om
- consts
- permission
- consts
- pm
- consts
- verify/domain
- consts
- resolver
- consts
- res
- consts
- loader
- credentials
- consts
- crypto/hpke
- database
- consts
- sqlite
- consts
- devicelock
- consts
- drm
- consts
- examples
- accounts
- alarm
- app_framework
- audiomanager
- battery
- biometric
- bluetooth
- build_info
- camera_display
- camera_record
- camera
- clipboard
- companion
- credentials
- display
- documents
- download
- environment
- health
- inputmethod
- ir
- job
- keyguard
- keystore
- lights
- location
- mediastore
- net
- nfc
- notification
- nsd
- omapi
- pdf
- permission
- player
- pm
- power
- preferences
- print
- projection
- recorder
- resolver
- session
- settings
- speech
- storage
- telecom
- telephony
- toast
- usage
- usb
- vibrator
- wifi_p2p
- wifi_rtt
- wifi
- gesture
- consts
- graphics
- consts
- drawable
- consts
- shapes
- fonts
- consts
- pdf
- content
- consts
- models
- consts
- selection
- consts
- text
- consts
- hardware
- biometrics
- consts
- biometric
- consts
- camera2
- consts
- params
- consts
- camera
- consts
- display
- consts
- fingerprint
- consts
- input
- consts
- ir
- lights
- usb
- consts
- health/connect
- changelog
- consts
- datatypes
- consts
- units
- icu
- lang
- consts
- math
- consts
- number
- consts
- text
- consts
- util
- consts
- inputmethodservice
- consts
- location
- consts
- provider
- consts
- media
- audiofx
- consts
- audiomanager
- audiorecord
- consts
- browse
- consts
- consts
- effect
- consts
- metrics
- consts
- midi
- consts
- player
- consts
- projection
- consts
- quality
- consts
- recorder
- consts
- ringtone
- session
- consts
- tv
- ad
- consts
- consts
- interactive
- consts
- mtp
- consts
- net
- consts
- eap
- consts
- http
- consts
- ipsec/ike
- consts
- exceptions
- consts
- nsd
- rtp
- consts
- sip
- consts
- ssl
- vcn
- consts
- vpn
- wifi
- aware
- consts
- consts
- hotspot2
- consts
- omadm
- pps
- consts
- p2p
- nsd
- consts
- rtt
- consts
- nfc
- cardemulation
- consts
- consts
- tech
- consts
- opengl
- consts
- os
- battery
- build
- consts
- consts
- ext
- consts
- flagging
- consts
- health
- consts
- keyguard
- power
- storage
- consts
- strictmode
- vibrator
- consts
- preference
- consts
- printservice
- consts
- print
- consts
- pdf
- provider
- calendar
- consts
- consts
- contacts
- consts
- documents
- consts
- media
- consts
- settings
- consts
- ranging
- ble
- cs
- consts
- rssi
- consts
- consts
- oob
- consts
- raw
- consts
- uwb
- consts
- wifi/rtt
- consts
- renderscript
- consts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments