{"id":15578355,"url":"https://github.com/yuebinyun/debug-badge","last_synced_at":"2025-04-24T02:09:09.152Z","repository":{"id":57724380,"uuid":"81080263","full_name":"yuebinyun/debug-badge","owner":"yuebinyun","description":"Add badge(version code, version name, etc) for your DEBUG APK.","archived":false,"fork":false,"pushed_at":"2018-08-12T15:59:55.000Z","size":652,"stargazers_count":74,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T02:08:59.155Z","etag":null,"topics":["android","android-development","android-studio","gradle-plugin","groovy"],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuebinyun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-06T11:27:24.000Z","updated_at":"2023-10-21T04:17:34.000Z","dependencies_parsed_at":"2022-09-11T04:12:35.490Z","dependency_job_id":null,"html_url":"https://github.com/yuebinyun/debug-badge","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/yuebinyun%2Fdebug-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuebinyun%2Fdebug-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuebinyun%2Fdebug-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuebinyun%2Fdebug-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuebinyun","download_url":"https://codeload.github.com/yuebinyun/debug-badge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546081,"owners_count":21448260,"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":["android","android-development","android-studio","gradle-plugin","groovy"],"created_at":"2024-10-02T19:09:34.054Z","updated_at":"2025-04-24T02:09:09.084Z","avatar_url":"https://github.com/yuebinyun.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Add badge(version code, version name, etc) for your **DEBUG APK**.\n\n![screenshot](attr/badge.png)\n\nAdd it to your project!\n\n### Clean your project\n![clean](attr/clean.png)\n\nor\n```bash\n./gradlew clean\n## or\n## gradle clean\n```\n\n### Add gradle plugin\n\n```gradle\nbuildscript {\n  repositories {\n    mavenCentral()\n  }\n\n  dependencies {\n    classpath 'com.github.yuebinyun.debug-badge:debug-badge:0.1.3'\n  }\n}\n\napply plugin: 'com.android.application'\napply plugin: 'com.yuebinyun.badge'\n\nandroid {\n  //...\n  //\n}\n\ndependencies {\n  //...\n}\n\n// if you don't set flavor\nbadge {\n  // label = \"Debug\"\n  // label = \"Dev\" // optional.  Defualt text is `Debug`\n  label = \"${project.android.defaultConfig.versionName}\"\n  labelColor = 0xFFFFFF // optional.  Default color is WHITE\n  labelBgColor = 0x0099FF // optional.  Defualt color is RED\n}\n```\n\n```gradle\n// if you want to add badge for flavor-debug-version app\nbadgeFlavor {\n\n  demo {\n    label = \"demo\"\n    // label = \"Dev\" // optional.  Defualt text is `Debug`\n    // label = \"${project.android.defaultConfig.versionName}\"\n    // labelColor = 0x000000 // optional.  Default color is WHITE\n    // labelBgColor = 0x0099FF // optional.  Defualt color is RED\n  }\n\n  full {\n    label = \"full\"\n    // label = \"Dev\" // optional.  Defualt text is `Debug`\n    // label = \"${project.android.defaultConfig.versionName}\"\n    // labelColor = 0x000000 // optional.  Default color is WHITE\n    // labelBgColor = 0x0099FF // optional.  Defualt color is RED\n  }\n\n  // NOT SET\n  //  flavor1 {\n  //    label = \"flavor1\"\n  //  }\n\n  flavor2 {\n    label = \"flavor2\"\n    labelColor = 0xFF00FF // optional.  Default color is WHITE\n    labelBgColor = 0x0099FF // optional.  Defualt color is RED\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuebinyun%2Fdebug-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuebinyun%2Fdebug-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuebinyun%2Fdebug-badge/lists"}