{"id":30429721,"url":"https://github.com/thiagokimo/faker","last_synced_at":"2025-08-22T17:36:28.803Z","repository":{"id":33374393,"uuid":"37019295","full_name":"thiagokimo/Faker","owner":"thiagokimo","description":"Provides fake data to your Android apps :)","archived":false,"fork":false,"pushed_at":"2018-03-06T08:42:55.000Z","size":1521,"stargazers_count":243,"open_issues_count":2,"forks_count":31,"subscribers_count":13,"default_branch":"master","last_synced_at":"2023-11-07T15:24:24.779Z","etag":null,"topics":["android","data","faker","mock","mocking"],"latest_commit_sha":null,"homepage":"","language":"Java","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/thiagokimo.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}},"created_at":"2015-06-07T14:24:06.000Z","updated_at":"2023-07-17T01:25:52.000Z","dependencies_parsed_at":"2022-07-27T15:30:35.606Z","dependency_job_id":null,"html_url":"https://github.com/thiagokimo/Faker","commit_stats":null,"previous_names":[],"tags_count":9,"template":null,"template_full_name":null,"purl":"pkg:github/thiagokimo/Faker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2FFaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2FFaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2FFaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2FFaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagokimo","download_url":"https://codeload.github.com/thiagokimo/Faker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2FFaker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271673564,"owners_count":24800717,"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-08-22T02:00:08.480Z","response_time":65,"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","data","faker","mock","mocking"],"created_at":"2025-08-22T17:36:19.664Z","updated_at":"2025-08-22T17:36:28.778Z","avatar_url":"https://github.com/thiagokimo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Faker\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Faker-green.svg?style=flat)](https://android-arsenal.com/details/1/2039)\n[![Build Status](https://travis-ci.org/thiagokimo/Faker.svg?branch=master)](https://travis-ci.org/thiagokimo/Faker)\n\nFaker provides fake data to your Android MPVs. Now it's very handy to make screenshots of your apps without worrying with Google Play copyright infringments, e.g [this app](https://play.google.com/store/apps/details?id=io.kimo.tmdb). Faker helps you to populate your views with random data quickly and painlessly.\n\n## Screenshots\n\n![](https://raw.githubusercontent.com/thiagokimo/Faker/master/screenshots/random-data.png)\n![](https://raw.githubusercontent.com/thiagokimo/Faker/master/screenshots/profile-sample-screenshot.png)\n\n\n## Demo\nThe sample application (the source is in the **app** folder) has been published on Google Play to facilitate the access:\n\n[![Get it on Google Play](http://www.android.com/images/brand/get_it_on_play_logo_small.png)](https://play.google.com/store/apps/details?id=io.kimo.faker)\n\nThe demo app has a very clean MVP architecture based in the idea of [this post](http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/). Feel free to give me suggestions.\n\n## Setup\n\nGradle:\n\nAdd the JitPack repository to your build file:\n\n``` groovy\nrepositories {\n    maven {\n\t    url \"https://jitpack.io\"\n\t}\n}\n```\n\nAdd the dependency in the form:\n\n``` groovy\ndependencies {\n    compile 'com.github.thiagokimo:faker:VERSION'\n}\n```\n\nMaven:\n\nIf you use Maven, add this into your build file:\n\n``` xml\n\u003crepository\u003e\n    \u003cid\u003ejitpack.io\u003c/id\u003e\n\t\u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\u003c/repository\u003e\n```\n\n``` xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.thiagokimo\u003c/groupId\u003e\n    \u003cartifactId\u003efaker\u003c/artifactId\u003e\n    \u003cversion\u003eVERSION\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n### The \"lazy\" way\n\n``` java\nFaker.with(context)\n      .fill(rootView);\n```\n\nFaker will figure out all views inside the one you passed to it and fill it with proper data. Just like that!\n\nBy default faker will fill **TextViews** with lorem ipsum, **ImageViews** with a random color, **CompoundButtons** with a random state (check or uncheck) and **ProgressBars** with a random progress value.\n\n### The specific way\n\n``` java\nFaker.with(context)\n      .NameOfTheComponent\n      .componentMethod();\n```\n\n### Targeting views\n\nIf you want Faker to fill specific views inside your ViewGroup you can pass your target views like the example below\n\n``` java\nFaker.with(context)\n      .targetViews(collection-of-ids)\n      .fill(rootView);\n```\n\nCheck out all examples [here](https://github.com/thiagokimo/Faker/tree/master/app/src/main/java/io/kimo/faker/mvp/presenter).\n\n## Components\n\nFaker is organized in components that provides you specific types of data. Here is a list of the current components:\n\n* [Lorem](https://github.com/thiagokimo/Faker/blob/master/faker-core/src/main/java/io/kimo/lib/faker/component/text/LoremComponent.java) - The old good lorem ispum words, sentences and paragraphs.\n* [Name](https://github.com/thiagokimo/Faker/blob/master/faker-core/src/main/java/io/kimo/lib/faker/component/text/NameComponent.java) - Firsts, lasts, full and complete names and profession/titles.\n* [Number](https://github.com/thiagokimo/Faker/blob/master/faker-core/src/main/java/io/kimo/lib/faker/component/number/NumberComponent.java) - It gives you numbers ¬¬\n* [Phone](https://github.com/thiagokimo/Faker/blob/master/faker-core/src/main/java/io/kimo/lib/faker/component/text/PhoneComponent.java) - Phone masks \\o/\n* [Internet](https://github.com/thiagokimo/Faker/blob/master/faker-core/src/main/java/io/kimo/lib/faker/component/text/InternetComponent.java) - It provides you random emails and domains.\n* [Url](https://github.com/thiagokimo/Faker/blob/master/faker-core/src/main/java/io/kimo/lib/faker/component/text/URLComponent.java) - Gives you (valid) urls that you might use somewhere.\n* [Color](https://github.com/thiagokimo/Faker/blob/master/faker-core/src/main/java/io/kimo/lib/faker/component/number/ColorComponent.java) - Generates attractive colors thanks to [lzyzsd](https://github.com/lzyzsd/AndroidRandomColor)!\n* [Address](https://github.com/thiagokimo/Faker/blob/master/faker-core/src/main/java/io/kimo/lib/faker/component/text/AddressComponent.java) - Gives random cities, countries, zipcodes, states and so on.\n\n## Contribuiting\n\n1. Fork it\n2. Create your feature/bug-fix branch(`git checkout -b my-new-feature-or-fix`)\n3. Commit your changes (`git commit -am 'Add some feature/fix'`)\n4. Do your pull-request\n\nMake sure you write tests for your code. Only code with passing tests will be accepted.\n\n### Components\n\nYou can add more components or improve the existing ones. For new components, make sure you also add an example in the demo app.\n\n### Localization\nYou can help providing localized data to Faker components.\n\n## License\n    \n    Copyright 2011, 2012 Thiago Rocha\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagokimo%2Ffaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagokimo%2Ffaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagokimo%2Ffaker/lists"}