Skip to content

Commit 58da124

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
fix: more bug fixes — specs, examples, JNI signatures, constants
Spec fixes: - Remove wrong-type constants: UuidDefault (UUID, not int), AuthorityUri (Uri, not int), Uri.EMPTY (Uri, not int) - Add 13 missing DIRECTORY_* string constants to environment spec - Add SpeechRecognizer ERROR_NETWORK/ERROR_NETWORK_TIMEOUT constants (renamed to RecognizerError* to avoid collision with TTS constants) - Fix NetworkCapabilities unexported type (workCapabilities -> NetworkCapabilities) Example fixes: - alarm: fix comma-separated permissions, gate Set() on canSchedule - toast: actually show the toast instead of discarding the object - pdf: free Canvas/Paint GlobalRefs - lights: free manager GlobalRef - speech: increase TTS init wait to 3s Generated code fixes (via template/regeneration): - Fix CharSequence returns: now returns *jni.Object (not string) to prevent JNI crash on non-String CharSequence implementations - Fix local ref leak on GlobalRef promotion in return values - Fix local ref leak for string parameters (add deferred DeleteLocalRef) - Remove initSkipped dead code from all init.go files Hand-written code fixes: - alarm/extract.go: add ShowIntent field, fix local ref leak - location/extract.go: add Altitude/Bearing/Speed/Accuracy/Time, fix leaks - speech/new_tts.go: fix local ref leaks - renderText: fix GlobalRef leaks for Canvas/Paint, use local buffer for thread safety, fix ignored NewStringUTF errors
1 parent cd3a798 commit 58da124

Some content is hidden

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

51 files changed

+1201
-588
lines changed

content/resolver/constants.go

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

content/resolver/consts/consts.go

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

credentials/doc.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

credentials/get_credential_request_builder.go

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

credentials/get_credential_response.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

credentials/init.go

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

0 commit comments

Comments
 (0)