██████╗ ██╗ ██╗ █████╗ ██████╗ ███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗
██╔══██╗██║ ██║██╔══██╗╚════██╗████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝
██████╔╝██║ █╗ ██║███████║ █████╔╝██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗v1
██╔═══╝ ██║███╗██║██╔══██║██╔═══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝.0
██║ ╚███╔███╔╝██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗
╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝
PWA2Native is a command-line tool that converts Progressive Web Apps (PWAs) into native applications for multiple platforms. Currently under development, this tool aims to simplify the process of packaging PWAs as native apps for Android, iOS, macOS, and Windows.
- Convert PWAs to native applications
- Support for multiple platforms:
- ✅ Android (using TWA - Trusted Web Activities)
- 🚧 iOS (using WKWebView) - In development
- ✅ macOS (using WebKit)
- 🚧 Windows (using WebView2) - In development
- 🔄 Automatic manifest fetching and parsing
- ⚙️ Platform-specific build configuration generation
- Python 3.6 or higher
- For Android builds:
- Android SDK
- Gradle
- For macOS builds:
- Xcode Command Line Tools
- Swift compiler
To install PWA2Native, clone the repository and run the setup script:
git clone https://github.com/ismailco/PWA2Native.git
cd PWA2Native
pip install .
Basic usage:
pwa2native https://example.com --name "My PWA" --platforms android,macos
url
: URL of the PWA (required)--name
: Name of the application (default: "PWA App")--platforms
: Comma-separated list of target platforms (default: "all")- Available options: android,ios,macos,windows
--output
: Output directory (default: "./dist")
Package for all platforms:
pwa2native https://my-pwa.com --name "My PWA"
Package only for Android:
pwa2native https://my-pwa.com --name "My PWA" --platforms android
- Navigate to the generated Android project directory:
cd dist/android
- Build the release APK:
./gradlew assembleRelease
- Navigate to the generated macOS project directory:
cd dist/macos
- Run the build script:
./build.sh
We love your input! We want to make contributing to PWA2Native as easy and transparent as possible, whether it's:
- 🐛 Reporting a bug
- 💡 Discussing the current state of the code
- 📝 Submitting a fix
- ✨ Proposing new features
- 💪 Becoming a maintainer
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
- Fork the repo and create your branch from
main
- If you've added code that should be tested, add tests
- If you've changed APIs, update the documentation
- Ensure the test suite passes
- Make sure your code lints
- Issue that pull request!
- Update the README.md with details of changes to the interface, if applicable
- Update the CHANGELOG.md with notes on your changes
- The PR will be merged once you have the sign-off of at least one other developer
In short, when you submit code changes, your submissions are understood to be under the same MIT License that covers the project. Feel free to contact the maintainers if that's a concern.
🐞 Report Bugs Using GitHub's Issue Tracker
We use GitHub issues to track public bugs. Report a bug by opening a new issue; it's that easy!
Great Bug Reports tend to have:
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
By contributing, you agree that your contributions will be licensed under its MIT License.
This document was adapted from the open-source contribution guidelines for Facebook's Draft.
This project is in active development and may contain bugs or incomplete features. Use at your own risk in production environments.
- Complete iOS implementation
- Complete Windows implementation
- Add support for PWA manifest icons
- Implement digital signing for all platforms
- Add configuration file support
- Improve error handling and validation
- Create comprehensive documentation
For issues and feature requests, please use the GitHub issue tracker.