{"id":13498269,"url":"https://github.com/p32929/AndroidAppUpdater","last_synced_at":"2025-03-29T00:34:11.940Z","repository":{"id":105972105,"uuid":"189163830","full_name":"p32929/AndroidAppUpdater","owner":"p32929","description":"A simple, Lightweight App Updater Library for Android","archived":false,"fork":false,"pushed_at":"2020-07-17T14:19:48.000Z","size":136,"stargazers_count":22,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T06:21:47.399Z","etag":null,"topics":["android","android-development","android-lib","android-library","dialog","java","json","notification","snackbar","update-checker","updater","updaters"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/p32929.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":"2019-05-29T06:28:09.000Z","updated_at":"2025-02-24T00:20:00.000Z","dependencies_parsed_at":"2024-01-18T23:04:42.221Z","dependency_job_id":"8c686dc4-8c59-42e0-9b88-7fae4c38699b","html_url":"https://github.com/p32929/AndroidAppUpdater","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p32929%2FAndroidAppUpdater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p32929%2FAndroidAppUpdater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p32929%2FAndroidAppUpdater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p32929%2FAndroidAppUpdater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p32929","download_url":"https://codeload.github.com/p32929/AndroidAppUpdater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122259,"owners_count":20726822,"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-lib","android-library","dialog","java","json","notification","snackbar","update-checker","updater","updaters"],"created_at":"2024-07-31T21:00:21.165Z","updated_at":"2025-03-29T00:34:11.612Z","avatar_url":"https://github.com/p32929.png","language":"Java","readme":"# AndroidAppUpdater\nA simple, Lightweight App Updater Library for Android\n\n[![](https://badgen.net/github/release/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/release/p32929/AndroidAppUpdater/stable)]() [![](https://badgen.net/github/tag/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/watchers/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/checks/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/status/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/stars/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/forks/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/issues/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/open-issues/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/closed-issues/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/label-issues/p32929/AndroidAppUpdater/help-wanted/open)]() [![](https://badgen.net/github/prs/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/open-prs/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/closed-prs/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/merged-prs/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/commits/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/last-commit/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/branches/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/releases/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/tags/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/license/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/contributors/p32929/AndroidAppUpdater)]() [![](https://badgen.net/github/dependents-pkg/p32929/AndroidAppUpdater)]() \n\n## Share\nSharing with your friends is just one click away from here\n\n[![facebook](https://image.flaticon.com/icons/png/32/124/124010.png)](https://www.facebook.com/sharer/sharer.php?u=https://github.com/p32929/AndroidAppUpdater)\n[![twitter](https://image.flaticon.com/icons/png/32/124/124021.png)](https://twitter.com/intent/tweet?source=https://github.com/p32929/AndroidAppUpdater)\n[![tumblr](https://image.flaticon.com/icons/png/32/124/124012.png)](https://www.tumblr.com/share?v=3\u0026u=https://github.com/p32929/AndroidAppUpdater)\n[![pocket](https://image.flaticon.com/icons/png/32/732/732238.png)](https://getpocket.com/save?url=https://github.com/p32929/AndroidAppUpdater)\n[![pinterest](https://image.flaticon.com/icons/png/32/124/124039.png)](https://pinterest.com/pin/create/button/?url=https://github.com/p32929/AndroidAppUpdater)\n[![reddit](https://image.flaticon.com/icons/png/32/2111/2111589.png)](https://www.reddit.com/submit?url=https://github.com/p32929/AndroidAppUpdater)\n[![linkedin](https://image.flaticon.com/icons/png/32/1409/1409945.png)](https://www.linkedin.com/shareArticle?mini=true\u0026url=https://github.com/p32929/AndroidAppUpdater)\n[![whatsapp](https://image.flaticon.com/icons/png/32/733/733585.png)](https://api.whatsapp.com/send?text=https://github.com/p32929/AndroidAppUpdater)\n\n## Support\nIf you like my works and want to support me/my works, feel free to support or donate. My payment details can be found here: https://p32929.github.io/SendMoney2Me/\n\n## Installation\nAdd it in your root build.gradle at the end of repositories:\n```\nallprojects {\n  repositories {\n    maven { url 'https://jitpack.io' }\n  }\n}\n```\n\nAdd the dependency\n```\ndependencies {\n     implementation 'com.github.p32929:AndroidAppUpdater:1.0.2'\n}\n```\n\n## Basic Usage\nSteps to follow:\n* Create new `new AppUpdater(context, jsonUrl, listener)`\n* Execute the task\n* Do something if update is available\n\n## Code example\nIn your Activity or Fragment, you can add the code below:\n```\nnew AppUpdater(this, \"https://raw.githubusercontent.com/p32929/SomeHowTosAndTexts/master/Updater/updater.json\", new UpdateListener() {\n            @Override\n            public void onJsonDataReceived(final UpdateModel updateModel, JSONObject jsonObject) {\n                if (AppUpdater.getCurrentVersionCode(MainActivity.this) \u003c updateModel.getVersionCode()) {\n                    new AlertDialog.Builder(MainActivity.this)\n                            .setTitle(\"Update available\")\n                            .setCancelable(updateModel.isCancellable())\n                            .setPositiveButton(\"Update\", new DialogInterface.OnClickListener() {\n                                @Override\n                                public void onClick(DialogInterface dialog, int which) {\n                                    Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(updateModel.getUrl()));\n                                    startActivity(browserIntent);\n                                    finish();\n                                }\n                            })\n                            .show();\n                }\n            }\n\n            @Override\n            public void onError(String error) {\n                // Do something\n            }\n        }).execute();\n```\n\nthe JSON data should be like below:\n```\n{\n\t\"versionCode\": 1, // Updated version code\n\t\"cancellable\": false, // If you want to force users to update the app\n\t\"url\": \"http://tiny.cc/BuySellBD\" // If you want users to update the app from an External URL or from the Google Play URL\n}\n```\n\nIf you add more data in the JSON file, you can get them from the `jsonObject` variable.\n\nHope you will enjoy using the library :)\nThanks :)\n\n## License:\n```\nMIT License\n\nCopyright (c) 2019 Fayaz Bin Salam\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp32929%2FAndroidAppUpdater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp32929%2FAndroidAppUpdater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp32929%2FAndroidAppUpdater/lists"}