{"id":50317343,"url":"https://github.com/lkiarest/quick_transfer_wifi_connector","last_synced_at":"2026-05-29T01:01:37.763Z","repository":{"id":354395775,"uuid":"1217071666","full_name":"lkiarest/quick_transfer_wifi_connector","owner":"lkiarest","description":"自动切换 wifi 连接，兼容低版本 android 环境。","archived":false,"fork":false,"pushed_at":"2026-04-28T10:41:55.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-28T12:30:05.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lkiarest.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-21T14:13:32.000Z","updated_at":"2026-04-28T10:41:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lkiarest/quick_transfer_wifi_connector","commit_stats":null,"previous_names":["lkiarest/quick_transfer_wifi_connector"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/lkiarest/quick_transfer_wifi_connector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Fquick_transfer_wifi_connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Fquick_transfer_wifi_connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Fquick_transfer_wifi_connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Fquick_transfer_wifi_connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lkiarest","download_url":"https://codeload.github.com/lkiarest/quick_transfer_wifi_connector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Fquick_transfer_wifi_connector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33632271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-29T01:01:35.279Z","updated_at":"2026-05-29T01:01:37.756Z","avatar_url":"https://github.com/lkiarest.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quick_transfer_wifi_connector\n\nFlutter plugin for joining a temporary Wi-Fi access point through the platform\nconfirmation UI. It is intended for device file-transfer flows where the device\nopens a short-lived AP and the app already knows the SSID and WPA/WPA2 password.\n\nThe plugin does not silently switch Wi-Fi. Android and iOS both require user\nconfirmation for normal third-party apps.\n\n## Platform behavior\n\n- Android 10+ uses `WifiNetworkSpecifier` and binds the app process to the\n  confirmed Wi-Fi network so socket traffic can reach the device AP.\n- Android 9 and below use the legacy `WifiManager` network APIs.\n- iOS 11+ uses `NEHotspotConfigurationManager` with `joinOnce` enabled by\n  default.\n\n## Install\n\nUse it as a path dependency while developing locally:\n\n```yaml\ndependencies:\n  quick_transfer_wifi_connector:\n    path: ../quick_transfer_wifi_connector\n```\n\n## Usage\n\n```dart\nfinal result = await QuickTransferWifiConnector.joinWifiNetwork(\n  ssid: 'Soundcore-1234',\n  password: '12345678',\n);\n\nif (result.isConnected) {\n  // Continue with your WebSocket/device AP probe.\n} else {\n  await QuickTransferWifiConnector.openWifiSettings();\n}\n```\n\n## Android setup\n\nThe plugin manifest declares:\n\n- `ACCESS_NETWORK_STATE`\n- `ACCESS_WIFI_STATE`\n- `CHANGE_WIFI_STATE`\n- `ACCESS_FINE_LOCATION`\n\nIf the host app targets modern Android versions, request runtime location\npermission before using Wi-Fi APIs that require it.\n\n## iOS setup\n\nEnable the Hotspot Configuration capability for the host app. The entitlement is:\n\n```xml\n\u003ckey\u003ecom.apple.developer.networking.HotspotConfiguration\u003c/key\u003e\n\u003ctrue/\u003e\n```\n\nWithout this entitlement, iOS rejects `NEHotspotConfigurationManager.apply`.\n\nThe plugin podspec explicitly sets the iOS pod deployment target to `12.0`,\nSwift `5.0`, `CLANG_ENABLE_MODULES=YES`, `ENABLE_BITCODE=NO`, and links\n`NetworkExtension`/`UIKit`. If your production Podfile rewrites pod build\nsettings in `post_install`, keep this pod at iOS `12.0` or higher.\n\n## API\n\n- `QuickTransferWifiConnector.joinWifiNetwork(...)`\n- `QuickTransferWifiConnector.openWifiSettings()`\n- `QuickTransferWifiJoinResult.status`\n- `QuickTransferWifiJoinResult.isConnected`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkiarest%2Fquick_transfer_wifi_connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flkiarest%2Fquick_transfer_wifi_connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkiarest%2Fquick_transfer_wifi_connector/lists"}