{"id":16557871,"url":"https://github.com/jitpack/android-example","last_synced_at":"2025-05-16T03:03:52.537Z","repository":{"id":37727834,"uuid":"30655012","full_name":"jitpack/android-example","owner":"jitpack","description":"Example Android library that builds on jitpack.io","archived":false,"fork":false,"pushed_at":"2025-02-19T13:36:54.000Z","size":258,"stargazers_count":214,"open_issues_count":2,"forks_count":201,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-08T13:09:53.157Z","etag":null,"topics":["android","android-library","gradle","jitpack","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/jitpack.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-02-11T15:43:02.000Z","updated_at":"2025-04-02T02:39:11.000Z","dependencies_parsed_at":"2025-03-05T06:45:48.428Z","dependency_job_id":null,"html_url":"https://github.com/jitpack/android-example","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitpack%2Fandroid-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitpack%2Fandroid-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitpack%2Fandroid-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitpack%2Fandroid-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jitpack","download_url":"https://codeload.github.com/jitpack/android-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459084,"owners_count":22074604,"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-library","gradle","jitpack","kotlin"],"created_at":"2024-10-11T20:08:45.515Z","updated_at":"2025-05-16T03:03:47.528Z","avatar_url":"https://github.com/jitpack.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"# android-example\n\n[![Release](https://jitpack.io/v/jitpack/android-example.svg)](https://jitpack.io/#jitpack/android-example)\n\nExample Android library project that works with jitpack.io.\n\nSee this [Tutorial](https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0) on how to publish an Android Library with JitPack.\n\nFor more details check out the [documentation](https://docs.jitpack.io/android/)\n\nhttps://jitpack.io/#jitpack/android-example\n\nAdd it to your settings.gradle with:\n```gradle\n\tdependencyResolutionManagement {\n\t\trepositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n\t\trepositories {\n\t\t\tmavenCentral()\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\nand:\n\n```gradle\ndependencies {\n    implementation 'com.github.jitpack:android-example:{latest version}'\n}\n```\n\n## Multiple build variants\n\nIf your library uses multiple flavours then see this example:\nhttps://github.com/jitpack-io/android-jitpack-library-example\n\n## Adding the maven plugin\n\nTo enable installing into local maven repository and JitPack you need to add the [maven-publish](https://developer.android.com/studio/build/maven-publish-plugin) plugin:\n\nThen add the publishing section to your library build.gradle:\n```gradle\npublishing {\n  publications {\n    release(MavenPublication) {\n      groupId = 'com.my-company'\n      artifactId = 'my-library'\n      version = '1.0'\n\n      afterEvaluate {\n        from components.release\n      }\n    }\n  }\n}\n```\n\nAfter these changes you should be able to run:\n\n    ./gradlew publishToMavenLocal\n    \nfrom the root of your project. \nIf `publishToMavenLocal` works and you have added a GitHub release it should work on jitpack.io\n\n## Adding a sample app \n\nIf you add a sample app to the same repo then your app needs to have a dependency on the library. To do this in your app/build.gradle add:\n\n```gradle\n    dependencies {\n        compile project(':library')\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitpack%2Fandroid-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjitpack%2Fandroid-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitpack%2Fandroid-example/lists"}