{"id":22986054,"url":"https://github.com/dora4/dora-ad-android","last_synced_at":"2025-04-02T11:16:01.563Z","repository":{"id":262233563,"uuid":"886601012","full_name":"dora4/dora-ad-android","owner":"dora4","description":"朵拉广告SDK","archived":false,"fork":false,"pushed_at":"2024-11-11T14:04:48.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T02:18:21.632Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dora4.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-11-11T09:15:18.000Z","updated_at":"2024-12-02T15:01:15.000Z","dependencies_parsed_at":"2024-11-11T10:40:26.271Z","dependency_job_id":"4bf36516-ceec-4d0d-8917-118e76f00737","html_url":"https://github.com/dora4/dora-ad-android","commit_stats":null,"previous_names":["dora4/dora-ad-android"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdora-ad-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdora-ad-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdora-ad-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdora-ad-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dora4","download_url":"https://codeload.github.com/dora4/dora-ad-android/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246802627,"owners_count":20836373,"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-12-15T03:38:53.671Z","updated_at":"2025-04-02T11:16:00.970Z","avatar_url":"https://github.com/dora4.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"dora-ad-android\n![Release](https://jitpack.io/v/dora4/dora-ad-android.svg)\n--------------------------------\n\n#### Gradle依赖配置\n\n添加以下代码到项目根目录下的settings.gradle.kts\n```kotlin\ndependencyResolutionManagement {\n    repositories {\n        maven { setUrl(\"https://jitpack.io\") }\n    }\n}\n```\n添加以下代码到app模块的build.gradle.kts\n```kotlin\ndependencies {\n    // 扩展包必须在有主框架dora的情况下使用\n    implementation(\"com.github.dora4:dora:1.2.29\")\n    implementation(\"com.github.dora4:dcache-android:2.5.20\")\n    implementation(\"com.github.dora4:dora-ad-android:1.14\")\n    implementation(\"io.github.youth5201314:banner:2.2.2\")\n}\n```\n\n#### 使用方式\n在Application中添加AdService的配置\n```kotlin\nRetrofitManager.initConfig {\n    mappingBaseUrl(AdService::class.java, \"http://dorachat.com:9091\")\n}\n```\n将layout_banner_ad.xml添加到布局。\n如\n```xml\n\u003cinclude layout=\"@layout/layout_banner_ad\"/\u003e\n```\n加载横幅广告\n```kotlin\nBannerAd.loadBannerAds(this, \"app_name\", binding.banner as Banner\u003cString, BannerAd.ImageAdapter\u003e)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdora4%2Fdora-ad-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdora4%2Fdora-ad-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdora4%2Fdora-ad-android/lists"}