{"id":15522054,"url":"https://github.com/monkeywie/plugin_http_server","last_synced_at":"2026-06-19T08:02:32.524Z","repository":{"id":127779680,"uuid":"303139477","full_name":"monkeyWie/plugin_http_server","owner":"monkeyWie","description":"A flutter HTTP server plugin written by golang, support Android、iOS、windows、linux、mac","archived":false,"fork":false,"pushed_at":"2020-10-16T06:43:54.000Z","size":46046,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T09:26:50.843Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/monkeyWie.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}},"created_at":"2020-10-11T14:30:25.000Z","updated_at":"2020-10-16T06:43:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"47a17567-6dae-41d0-ae4a-4f0ea06df02e","html_url":"https://github.com/monkeyWie/plugin_http_server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeyWie%2Fplugin_http_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeyWie%2Fplugin_http_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeyWie%2Fplugin_http_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeyWie%2Fplugin_http_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkeyWie","download_url":"https://codeload.github.com/monkeyWie/plugin_http_server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240072132,"owners_count":19743526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-02T10:39:25.523Z","updated_at":"2026-04-30T03:30:20.409Z","avatar_url":"https://github.com/monkeyWie.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plugin_http_server\n\nflutter 调用 golang 代码，利用 go 强大的交叉编译来实现 flutter 上所有平台对应的支持。\n\n## 编译动态库\n\n使用命令行进入项目`go`目录，所有 go 的交叉编译都必须在此目录进行。\n\n```\ncd go\n```\n\n### 安卓\n\n- aar\n\n```\ngomobile bind -ldflags=\"-w -s\" -o ../android/libs/gopeed.aar -target=android -javapkg=com.gopeed.core ./bind/mobile\n```\n\n### windows\n\n- dll\n\n```\ngo build -ldflags=\"-w -s\" -buildmode=c-shared -o ../windows/libs/gopeed.dll ./bind/desktop\n```\n\n## dart binding 代码生成\n\ndart 官方提供了`ffigen`项目，可以根据`.h`头文件自动生成对应的绑定代码，此功能需要安装`LLVM`。\n\n### 首次使用需要 setup\n\n```\nflutter pub run ffigen:setup -Ipath/to/llvm/include -Lpath/to/llvm/lib\n```\n\n### 代码生成\n\n```\nflutter pub run ffigen\n```\n\n## 构建应用\n\n此项目为插件项目，`example`目录为应用目录，可以进行打包编译。\n\n```\ncd example\n```\n\n### 安卓\n\n```\nflutter build apk\n```\n\n### windows\n\n```\n# 把动态库复制到应用目录中\nrm -rf ./windows/libs/gopeed.dll\ncp ../windows/libs/gopeed.dll ./windows/libs/gopeed.dll\nflutter build windows\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeywie%2Fplugin_http_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkeywie%2Fplugin_http_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeywie%2Fplugin_http_server/lists"}