mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
This commit adds comprehensive Android support for Wails v3, enabling Go applications to run as native Android apps with WebView-based UI. Key features: - Android-specific application implementation with JNI bridge - WebView integration via WebViewAssetLoader for serving assets - JavaScript runtime injection and execution via JNI callbacks - Binding call support with async result callbacks - Event system support for Android platform - Full example Android app with Gradle build system Technical details: - Uses CGO with Android NDK for cross-compilation - Implements JNI callbacks for Go <-> Java communication - Supports both ARM64 and x86_64 architectures - WebView debugging support via Chrome DevTools Protocol - Handles empty response body case in binding calls to prevent panic Files added: - v3/pkg/application/*_android.go - Android platform implementations - v3/pkg/events/events_android.go - Android event definitions - v3/internal/*/\*_android.go - Android-specific internal packages - v3/examples/android/ - Complete example Android application - v3/ANDROID_ARCHITECTURE.md - Architecture documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
825 B
Bash
21 lines
825 B
Bash
#!/bin/sh
|
|
|
|
# Update desktop database for .desktop file changes
|
|
# This makes the application appear in application menus and registers its capabilities.
|
|
if command -v update-desktop-database >/dev/null 2>&1; then
|
|
echo "Updating desktop database..."
|
|
update-desktop-database -q /usr/share/applications
|
|
else
|
|
echo "Warning: update-desktop-database command not found. Desktop file may not be immediately recognized." >&2
|
|
fi
|
|
|
|
# Update MIME database for custom URL schemes (x-scheme-handler)
|
|
# This ensures the system knows how to handle your custom protocols.
|
|
if command -v update-mime-database >/dev/null 2>&1; then
|
|
echo "Updating MIME database..."
|
|
update-mime-database -n /usr/share/mime
|
|
else
|
|
echo "Warning: update-mime-database command not found. Custom URL schemes may not be immediately recognized." >&2
|
|
fi
|
|
|
|
exit 0
|