mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-15 23:25: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>
75 lines
2.3 KiB
YAML
75 lines
2.3 KiB
YAML
# This file contains the configuration for this project.
|
|
# When you update `info` or `fileAssociations`, run `wails3 task common:update:build-assets` to update the assets.
|
|
# Note that this will overwrite any changes you have made to the assets.
|
|
version: '3'
|
|
|
|
# This information is used to generate the build assets.
|
|
info:
|
|
companyName: "My Company" # The name of the company
|
|
productName: "My Product" # The name of the application
|
|
productIdentifier: "com.mycompany.myproduct" # The unique product identifier
|
|
description: "A program that does X" # The application description
|
|
copyright: "(c) 2025, My Company" # Copyright text
|
|
comments: "Some Product Comments" # Comments
|
|
version: "0.0.1" # The application version
|
|
|
|
# Android build configuration (uncomment to customise Android project generation)
|
|
# Note: Keys under `android` OVERRIDE values under `info` when set.
|
|
# android:
|
|
# # The Android application ID used in the generated project (applicationId)
|
|
# applicationId: "com.mycompany.myproduct"
|
|
# # The display name shown under the app icon
|
|
# displayName: "My Product"
|
|
# # The app version code (integer, must increment for each release)
|
|
# versionCode: 1
|
|
# # The app version name (displayed to users)
|
|
# versionName: "0.0.1"
|
|
# # Minimum SDK version (API level)
|
|
# minSdkVersion: 21
|
|
# # Target SDK version (API level)
|
|
# targetSdkVersion: 34
|
|
# # The company/organisation name for templates and project settings
|
|
# company: "My Company"
|
|
|
|
# Dev mode configuration
|
|
dev_mode:
|
|
root_path: .
|
|
log_level: warn
|
|
debounce: 1000
|
|
ignore:
|
|
dir:
|
|
- .git
|
|
- node_modules
|
|
- frontend
|
|
- bin
|
|
file:
|
|
- .DS_Store
|
|
- .gitignore
|
|
- .gitkeep
|
|
watched_extension:
|
|
- "*.go"
|
|
git_ignore: true
|
|
executes:
|
|
- cmd: wails3 task common:install:frontend:deps
|
|
type: once
|
|
- cmd: wails3 task common:dev:frontend
|
|
type: background
|
|
- cmd: go mod tidy
|
|
type: blocking
|
|
- cmd: wails3 task build
|
|
type: blocking
|
|
- cmd: wails3 task run
|
|
type: primary
|
|
|
|
# File Associations
|
|
# More information at: https://v3.wails.io/noit/done/yet
|
|
fileAssociations:
|
|
# - ext: wails
|
|
# name: Wails
|
|
# description: Wails Application File
|
|
# iconName: wailsFileIcon
|
|
# role: Editor
|
|
|
|
# Other data
|
|
other:
|
|
- name: My Other Data
|