{"id":13604238,"url":"https://github.com/aritraroy/RxMagneto","last_synced_at":"2025-04-11T23:32:01.660Z","repository":{"id":95418369,"uuid":"82385938","full_name":"aritraroy/RxMagneto","owner":"aritraroy","description":"A fast, simple and powerful Play Store information fetcher for Android.","archived":false,"fork":false,"pushed_at":"2017-10-14T19:54:27.000Z","size":536,"stargazers_count":151,"open_issues_count":1,"forks_count":17,"subscribers_count":6,"default_branch":"develop","last_synced_at":"2024-11-07T08:42:32.909Z","etag":null,"topics":["android","android-library","play-store"],"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/aritraroy.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}},"created_at":"2017-02-18T12:41:09.000Z","updated_at":"2024-08-21T17:33:17.000Z","dependencies_parsed_at":"2023-03-13T16:49:42.702Z","dependency_job_id":null,"html_url":"https://github.com/aritraroy/RxMagneto","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritraroy%2FRxMagneto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritraroy%2FRxMagneto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritraroy%2FRxMagneto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritraroy%2FRxMagneto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aritraroy","download_url":"https://codeload.github.com/aritraroy/RxMagneto/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248495062,"owners_count":21113560,"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","play-store"],"created_at":"2024-08-01T19:00:42.084Z","updated_at":"2025-04-11T23:32:00.688Z","avatar_url":"https://github.com/aritraroy.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# RxMagneto\n\nA fast, light-weight and powerful Play Store information fetcher for Android.\n\n### Specs\n[ ![Download](https://api.bintray.com/packages/aritraroy/maven/rxmagneto/images/download.svg) ](https://bintray.com/aritraroy/maven/rxmagneto/_latestVersion) [![API](https://img.shields.io/badge/API-14%2B-orange.svg?style=flat)](https://android-arsenal.com/api?level=14) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-RxMagneto-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5362)\n\n![RxMagneto](https://github.com/aritraroy/RxMagneto/blob/master/raw/logo_250.png)\n\nThis library allows you to **fetch various live information from Play Store** of your app or any other app of your choice. With just a few lines of code, you can get access to a lot of useful app data fetched fresh from the Play Store.\n\nIt has been named after the famous anti-villain from X-Men. This library has been **completely written using RxJava** giving you powerful controls to make the most use of it.\n\n![RxMagneto](https://github.com/aritraroy/RxMagneto/blob/master/raw/github_screenshot.png)\n\n# Download\n\nThis library is available in **jCenter** which is the default Maven repository used in Android Studio.\n\n## Gradle \n```gradle\ndependencies {\n    // other dependencies here\n    \n    compile 'com.andrognito.rxmagneto:rxmagneto:2.0.0'\n}\n```\n\n## Maven\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.andrognito.rxmagneto\u003c/groupId\u003e\n  \u003cartifactId\u003erxmagneto\u003c/artifactId\u003e\n  \u003cversion\u003e2.0.0\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n# Migrating to Version 2\n\nRxMagneto 2 brings some breaking changes from version 1. The entire library is re-written using RxJava 2. All the Observables are now changed into Singles, so there will be some re-work for you. You also do NOT need to perform these operations in the background thread as it is automatically done for you.\n\nThe core functionality of the library remains the same. Every feature in the new version of this library works in the same way and returns the same result as the previous version.\n\n\n### Spread Some :heart:\n[![GitHub stars](https://img.shields.io/github/stars/aritraroy/RxMagneto.svg?style=social\u0026label=Star)](https://github.com/aritraroy) [![GitHub followers](https://img.shields.io/github/followers/aritraroy.svg?style=social\u0026label=Follow)](https://github.com/aritraroy)  [![Twitter Follow](https://img.shields.io/twitter/follow/aritraroy93.svg?style=social)](https://twitter.com/aritraroy93) \n\n## Use Cases\n\nThere are several use cases of this library. Here are some common examples for you to get started, but you can always be creative and make the most use of it.\n\n### App Updates\n\nThis is a common problem for many developers wanting to check if their users are using the latest version of the app available on Play Store or not. With RxMagneto, you can get it done with just a single line of code and zero hassle.\n\n### Recent Changelog\n\nYou might want to show your users the latest changelog when they update the app. RxMagneto can help you fetch the most recent changelog directly from Play Store with just one line of code.\n\n### User Ratings\n\nMany developers prompt their users to rate the app after a certain period of time. You can also show your current rating and ratings count directly from Play Store to encourage these users to rate your app even more.\n\n## Setup\n\nOnce you have downloaded the library in your project, setting up RxMagneto is super-easy.\n\n```java\nRxMagneto rxMagneto = RxMagneto.getInstance();\nrxMagneto.initialize(this);\n```\n\nThe initialize method takes a `Context` object. It can either be an `Application` context or `Activity` context.\n\n\n## Quick Example\n\nHere is a quick example for you to get started right away in less than a minute.\n\n```java\nRxMagneto rxMagneto = RxMagneto.getInstance();\nrxMagneto.initialize(this);\n\nSingle\u003cString\u003e version = rxMagneto.grabVersion(packageName);\nversion.observeOn(AndroidSchedulers.mainThread())\n           .subscribe(s -\u003e { \n                Log.d(\"RxMagneto\", \"Version: \" + s);\n            }, throwable -\u003e {\n                Log.d(\"RxMagneto\", \"Error\");\n            });\n```\n\n## All Features\n\nHere is a list of all the featues offered by RxMagneto. I will be actively taking more feature requests and expand the library over time.\n\n\n### Get Play Store URL\n\nGets the Play Store URL of the specified package. You can make this call in the main thread of the application.\n\n```java\nSingle\u003cString\u003e urlSingle = rxMagneto.grabUrl(packageName);\n```\n\n### Get Verified Play Store URL\n\nGets the verified Play Store URL of the specified package. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cString\u003e urlSingle = rxMagneto.grabVerifiedUrl(packageName);\n```\n\n### Get Version\n\nGets the latest version of the specified package from Play Store. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cString\u003e versionSingle = rxMagneto.grabVersion(packageName);\n```\n\n### Check If Update Is Available\n\nCheck if an update is available for the specified package from Play Store. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cBoolean\u003e updateAvailableSingle = rxMagneto.isUpgradeAvailable(packageName);\n```\n\n### Get Downloads\n\nGets the no. of downloads of the specified package from Play Store. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cString\u003e downloadsSingle = rxMagneto.grabDownloads(packageName);\n```\n\n### Get Last Published Date\n\nGets the last published date of the specified package from Play Store. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cString\u003e publishedDateSingle = rxMagneto.grabPublishedDate(packageName);\n```\n\n### Get OS Requirements\n\nGets the OS requirements of the specified package from Play Store. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cString\u003e osRequirementsSingle = rxMagneto.grabOsRequirements(packageName);\n```\n\n### Get Content Rating\n\nGets the content rating of the specified package from Play Store. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cString\u003e contentRatingSingle = rxMagneto.grabContentRating(packageName);\n```\n\n### Get App Rating\n\nGets the app rating of the specified package from Play Store. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cString\u003e appRatingSingle = rxMagneto.grabAppRating(packageName);\n```\n\n### Get App Ratings Count\n\nGets the no. of app ratings of the specified package from Play Store. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cString\u003e appRatingsCountSingle = rxMagneto.grabAppRatingsCount(packageName);\n```\n\n### Get Recent Changelog (as Array)\n\nGets the recent changelog (as array) of the specified package from Play Store. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cArrayList\u003cString\u003e\u003e changelogSingle = rxMagneto.grabPlayStoreRecentChangelogArray(packageName);\n```\n\n### Get Recent Changelog (as String)\n\nGets the recent changelog (as string) of the specified package from Play Store. It automatically performs the operation in a background thread, so that you do NOT need to explicitly do it.\n\n```java\nSingle\u003cString\u003e changelogSingle = rxMagneto.grabPlayStoreRecentChangelog(packageName);\n```\n\n# Contribution\n\nThis library is quite powerful and offers a lot of features. But I will love to have more feature requests from you to expand it further. If you find a bug or would like to improve any aspect of it, feel free to contribute with pull requests.\n\n# About The Author\n\n### Aritra Roy\n\nAndroid \u0026 Backend Developer. Blogger. Designer. Fitness Enthusiast.\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.codexapps.andrognito\u0026hl=en\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/aritraroy/social-icons/blob/master/play-store-icon.png?raw=true\" width=\"60\"\u003e\u003c/a\u003e \u003ca href=\"https://blog.aritraroy.in/\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/aritraroy/social-icons/blob/master/medium-icon.png?raw=true\" width=\"60\"\u003e\u003c/a\u003e\n\u003ca href=\"http://stackoverflow.com/users/2858654/aritra-roy\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/aritraroy/social-icons/blob/master/stackoverflow-icon.png?raw=true\" width=\"60\"\u003e\u003c/a\u003e\n\u003ca href=\"https://twitter.com/aritraroy\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/aritraroy/social-icons/blob/master/twitter-icon.png?raw=true\" width=\"60\"\u003e\u003c/a\u003e\n\u003ca href=\"http://linkedin.com/in/aritra-roy\"\u003e\u003cimg src=\"https://github.com/aritraroy/social-icons/blob/master/linkedin-icon.png?raw=true\" width=\"60\"\u003e\u003c/a\u003e\n\n\n# License\n\n```\nCopyright 2017 aritraroy\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faritraroy%2FRxMagneto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faritraroy%2FRxMagneto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faritraroy%2FRxMagneto/lists"}