{"id":29179742,"url":"https://github.com/trendyol/mockingstar-android","last_synced_at":"2025-10-16T09:37:35.714Z","repository":{"id":223860456,"uuid":"722054701","full_name":"Trendyol/mockingstar-android","owner":"Trendyol","description":"Mocking Star Kotlin helper library for Android applications.","archived":false,"fork":false,"pushed_at":"2025-03-25T13:42:21.000Z","size":1170,"stargazers_count":39,"open_issues_count":3,"forks_count":1,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-07-18T04:36:42.323Z","etag":null,"topics":["android","interceptor","mock-server","okhttp-interceptor"],"latest_commit_sha":null,"homepage":"https://trendyol.github.io/mockingstar/documentation/mockingstar/gettingstarted-android","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Trendyol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-22T10:41:17.000Z","updated_at":"2025-04-04T03:42:30.000Z","dependencies_parsed_at":"2024-02-22T13:27:50.668Z","dependency_job_id":"a6ea1a45-603a-4899-a8a6-d7104efaa52d","html_url":"https://github.com/Trendyol/mockingstar-android","commit_stats":null,"previous_names":["trendyol/mockingstar-android"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Trendyol/mockingstar-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trendyol%2Fmockingstar-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trendyol%2Fmockingstar-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trendyol%2Fmockingstar-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trendyol%2Fmockingstar-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Trendyol","download_url":"https://codeload.github.com/Trendyol/mockingstar-android/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trendyol%2Fmockingstar-android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279173782,"owners_count":26119139,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["android","interceptor","mock-server","okhttp-interceptor"],"created_at":"2025-07-01T19:06:22.671Z","updated_at":"2025-10-16T09:37:35.679Z","avatar_url":"https://github.com/Trendyol.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mocking Star 🌟\n\n[![](https://jitpack.io/v/Trendyol/mockingstar-android.svg)](https://jitpack.io/#Trendyol/mockingstar-android)\n\n\nMocking Star is a powerful request mocking tool designed to simplify the process of http request mocking, network debugging, and using UI tests for your mobile applications.  With just a single line of code, you can use Mocking Star in your project.\n\n![](/img/demo.gif)\n\n### Key Features\n\n- **Mocking Requests**: Easily mock requests and test different cases with scenarios.\n- **Modifying Requests**: Modify intercepted requests to test different edge cases, allowing you to assess your application's performance under different conditions.\n- **Debugging Support**: Use Mocking Star to debug your network requests on your mac.\n- **UI Testing**: Integrate Mocking Star into your UI tests, creating a reliable and controlled testing environment to validate your mobile application's functionality.\n\nMocking Star App -\u003e [Mocking Star](https://github.com/Trendyol/mockingstar) \u003cbr\u003e\niOS Library -\u003e [Mocking Star iOS Library](https://github.com/Trendyol/mockingstar-ios)\n\n## Installation\n\nLibrary is distributed through JitPack.\n\n**Add repository to the root build.gradle**\n\n```gradle\nrepositories {\n\tmaven { url(\"https://jitpack.io\") }\n}\n```\n\n**Add the library**\n\n```gradle\nimplementation(\"com.github.Trendyol:mockingstar-android:{latest-version}\")\n```\n\nYou can check the latest version from the Releases\n\n## How to Use\n\nLibrary consists of an [OkHttp](https://square.github.io/okhttp/) [Interceptor](https://square.github.io/okhttp/features/interceptors/) called `MockingStarInterceptor`. \n\nIt can take two parameters: \n- `MockUrlParam`: class to customize the connection url should you decide to update.\n- `header`: A string map, is used to supply any custom header pair you want to add to the ongoing request.\n\n```kotlin\nclass MockingStarInterceptor(\n\tprivate val params: MockUrlParams = MockUrlParams(),\n\tprivate val header: Map\u003cString, String\u003e = emptyMap(),\n) : Interceptor {\n\n// Class contents\n\n}\n```\n\nTo use it, pass the `MockingStarInterceptor` to your `OkHttpClient`. After this, you can monitor the requests that are sent from your application on Mockingstar.\n\n```kotlin\nOkHttpClient.Builder()\n  // configuration code\n  .addInterceptor(MockingStarInterceptor())\n  .build()\n```\n\n**Warning!**\n\nDefault address to communicate with `MockingStar` application is `10.0.2.2`. This type of network access is disabled by default in Android Applications. You must add \n\n```xml\nandroid:usesCleartextTraffic=\"true\"\n```\n\nto the `application` block in your `AndroidManifest.xml` to enable it.\n\n\n## License\n\nThis library is released under the MIT license. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendyol%2Fmockingstar-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrendyol%2Fmockingstar-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendyol%2Fmockingstar-android/lists"}