Complete ScriptableDroid Android app implementation with JavaScript automation #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR transforms the ScriptableDroid repository from a concept with just a README into a fully functional Android application that provides JavaScript automation capabilities similar to iOS Scriptable.
What's New
Complete Android Application: Built a production-ready Android app with Material Design UI that allows users to write, save, and execute JavaScript scripts with access to device APIs.
JavaScript Execution Engine: Integrated Duktape JavaScript engine to provide a secure sandboxed environment for running user scripts with custom Android APIs exposed to JavaScript.
Script Management System: Implemented full CRUD operations for scripts with persistent storage using SharedPreferences and JSON serialization.
Code Editor with Syntax Highlighting: Added Sora Code Editor with JavaScript language support, providing a professional development experience directly on the device.
Key Features
Device.batteryLevel()andDevice.batteryState()Technical Implementation
The app is built using:
JavaScript API Examples
Build System
Documentation
Updated README with comprehensive build instructions, API documentation, contribution guidelines, and example usage scenarios.
This implementation provides Android users with a powerful JavaScript automation platform, filling the gap left by the lack of Scriptable on Android. Users can now create custom scripts to interact with their device, automate tasks, and potentially create custom widgets (planned for future releases).
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.