{"id":27440317,"url":"https://github.com/dragoncherry/versioncompare","last_synced_at":"2025-04-14T22:40:00.304Z","repository":{"id":56925932,"uuid":"90930209","full_name":"DragonCherry/VersionCompare","owner":"DragonCherry","description":"Supports compare version in a very simple \u0026 comprehensive way.","archived":false,"fork":false,"pushed_at":"2019-10-21T00:12:36.000Z","size":24,"stargazers_count":36,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T02:04:01.248Z","etag":null,"topics":["compare","ios","swift","version","versioncompare"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DragonCherry.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":"2017-05-11T02:49:46.000Z","updated_at":"2025-01-21T19:28:40.000Z","dependencies_parsed_at":"2022-08-21T06:20:13.376Z","dependency_job_id":null,"html_url":"https://github.com/DragonCherry/VersionCompare","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/DragonCherry%2FVersionCompare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DragonCherry%2FVersionCompare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DragonCherry%2FVersionCompare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DragonCherry%2FVersionCompare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DragonCherry","download_url":"https://codeload.github.com/DragonCherry/VersionCompare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975311,"owners_count":21192198,"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":["compare","ios","swift","version","versioncompare"],"created_at":"2025-04-14T22:39:59.577Z","updated_at":"2025-04-14T22:40:00.283Z","avatar_url":"https://github.com/DragonCherry.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VersionCompare\nSupports compare version in a very simple \u0026amp; comprehensive way.\n\n# Example\n```Swift\nXCTAssertTrue(UIDevice.current.systemVersion.isVersion(lessThan: \"99.0.0\"))\nXCTAssertTrue(UIDevice.current.systemVersion.isVersion(equalTo: UIDevice.current.systemVersion))\nXCTAssertTrue(UIDevice.current.systemVersion.isVersion(greaterThan: \"3.5.99\"))\nXCTAssertTrue(UIDevice.current.systemVersion.isVersion(lessThanOrEqualTo: \"13.5.99\"))\nXCTAssertTrue(UIDevice.current.systemVersion.isVersion(greaterThanOrEqualTo: UIDevice.current.systemVersion))\nXCTAssertTrue(\"0.1.1\".isVersion(greaterThan: \"0.1\"))\nXCTAssertTrue(\"0.1.0\".isVersion(equalTo: \"0.1\"))\nXCTAssertTrue(\"10.0.0\".isVersion(equalTo: \"10\"))\nXCTAssertTrue(\"10.0.1\".isVersion(equalTo: \"10.0.1\"))\nXCTAssertTrue(\"5.10.10\".isVersion(lessThan: \"5.11.5\"))\nXCTAssertTrue(\"1.0.0\".isVersion(greaterThan: \"0.99.100\"))\nXCTAssertTrue(\"0.5.3\".isVersion(lessThanOrEqualTo: \"1.0.0\"))\nXCTAssertTrue(\"0.5.29\".isVersion(greaterThanOrEqualTo: \"0.5.3\"))\n```\n\n# Installation\n\nVersionCompare is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"VersionCompare\"\n```\n\n# Unlicense\nDo whatever you want with this code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragoncherry%2Fversioncompare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdragoncherry%2Fversioncompare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragoncherry%2Fversioncompare/lists"}