{"id":28471834,"url":"https://github.com/crazecoder/flutter_adview","last_synced_at":"2026-04-29T00:02:15.983Z","repository":{"id":66335875,"uuid":"305790255","full_name":"crazecoder/flutter_adview","owner":"crazecoder","description":"addview广告联盟flutter插件","archived":false,"fork":false,"pushed_at":"2020-10-21T04:39:24.000Z","size":6582,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T22:36:00.143Z","etag":null,"topics":["ad","adview","flutter"],"latest_commit_sha":null,"homepage":"","language":"Java","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/crazecoder.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}},"created_at":"2020-10-20T17:52:56.000Z","updated_at":"2020-10-23T08:17:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"48142cdd-6c23-41ab-b9e7-63b4f848438c","html_url":"https://github.com/crazecoder/flutter_adview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crazecoder/flutter_adview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazecoder%2Fflutter_adview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazecoder%2Fflutter_adview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazecoder%2Fflutter_adview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazecoder%2Fflutter_adview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazecoder","download_url":"https://codeload.github.com/crazecoder/flutter_adview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazecoder%2Fflutter_adview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32404340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ad","adview","flutter"],"created_at":"2025-06-07T11:08:59.569Z","updated_at":"2026-04-29T00:02:15.976Z","avatar_url":"https://github.com/crazecoder.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_adview\n\naddview广告联盟flutter插件，目前仅支持android，欢迎fork开发ios。目前支持开屏、banner、视频、插屏\n\n## Getting Started\n```yaml\ndependencies:\n  flutter_adview:\n    git:\n      url: git://github.com/crazecoder/flutter_adview.git\n```\n```gradle\nandroid {\n    lintOptions {\n        disable 'InvalidPackage'\n        //打包报Failed to transform libs.jar to match attributes时添加\n        checkReleaseBuilds false\n    }\n    defaultConfig {\n        ndk {\n            abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a', 'armeabi'\n        }\n        repositories {\n            flatDir {\n                dirs project(':flutter_adview').file('libs'), 'libs'\n            }\n        }\n    }\n}\n```\n### 开屏\n因考虑视觉效果，不用flutter代码调用，直接选用MainActivity里start\n#### 新建SplashActivity\n```java\npublic class ADSplashActivity extends SplashAdAbstractActivity {\n    @Override\n    protected String getAppId() {\n        return \"xxxxx\";\n    }\n\n    @Override\n    protected String getPosId() {\n        return \"xxxx\";\n    }\n\n    @Override\n    protected Integer getAdBackgroundColor() {\n        return null;\n    }\n\n    @Override\n    protected Integer getAdBackgroundDrawableId() {\n        return null;\n    }\n}\n```\n#### MainActivity里startActivity\n```java\npublic class MainActivity extends FlutterActivity {\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        Intent intent = new Intent(this, ADSplashActivity.class);\n        startActivity(intent);\n    }\n}\n```\n#### banner、插屏、视频调用\n```dart\n//初始化，如果你已经接入了开屏广告，此方法可以略过，否则可能会出现重复申请权限问题\nFlutterAdview.initSdk(\"xxxxx\");\n\n//展示banner\nFlutterAdview.showBannerAD(posId: \"xxxxx\");\n//销毁、关闭banner\n FlutterAdview.disposeBannerAD(posId: \"xxxxx\");\n\n//插屏广告\nFlutterAdview.loadInstlAd(posId: \"xxxxx\", isCloseable: true);\n\n//视频广告\nFlutterAdview.loadVideoAd(posId: \"xxxxx\");\n```\n#### release打包（Android）\n64-bit\n```\nflutter build apk --release --target-platform android-arm64\n```\n32-bit（目前配合armeabi-v7a可以打出32位64位通用包）\n```\nflutter build apk --release --target-platform android-arm\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazecoder%2Fflutter_adview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazecoder%2Fflutter_adview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazecoder%2Fflutter_adview/lists"}