{"id":25287542,"url":"https://github.com/gradleup/salty","last_synced_at":"2025-08-17T21:35:07.462Z","repository":{"id":266368606,"uuid":"898165087","full_name":"GradleUp/salty","owner":"GradleUp","description":"If you can't desugar, add salt!","archived":false,"fork":false,"pushed_at":"2024-12-04T15:15:26.000Z","size":791,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-06T16:49:36.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/GradleUp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-03T22:48:36.000Z","updated_at":"2024-12-09T08:18:02.000Z","dependencies_parsed_at":"2024-12-03T23:29:12.778Z","dependency_job_id":"7b5920ee-967f-4cf2-803f-bd35055c0b99","html_url":"https://github.com/GradleUp/salty","commit_stats":null,"previous_names":["gradleup/salty"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/GradleUp/salty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GradleUp%2Fsalty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GradleUp%2Fsalty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GradleUp%2Fsalty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GradleUp%2Fsalty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GradleUp","download_url":"https://codeload.github.com/GradleUp/salty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GradleUp%2Fsalty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270912496,"owners_count":24666739,"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-17T02:00:09.016Z","response_time":129,"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":[],"created_at":"2025-02-12T22:39:57.043Z","updated_at":"2025-08-17T21:35:07.426Z","avatar_url":"https://github.com/GradleUp.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## salty\n\nWhen you can't desugar, add salt!\n\nA Gradle plugin that inspects your bytecode to detect bad functions that are not safe to use on older Android versions.\n\n- See https://youtrack.jetbrains.com/issue/KT-71375\n- See https://jakewharton.com/kotlins-jdk-release-compatibility-flag/\n\n## Usage\n\nAdd the plugin:\n\n```kotlin\nplugins {\n    id(\"com.gradleup.salty.android\").version(\"0.0.1\")\n}\n```\n\nConfigure the methods to forbid:\n\n```kotlin\nsalty {\n    forbiddenMethods.add(\"java.util.List.removeFirst\")\n}\n```\n\nSalty adds a `saltyCheck${variantName}` task that visits your app and dependencies bytecode using [ASM](https://asm.ow2.io/) and fails if an usage of any forbidden method is found. \n\n```\n$ ./gradlew :app:saltyCheckDebug\n\n\u003e Task :app:saltyCheckDebug FAILED\ne: [...]/debug/com/example/android_test/MainActivity.class uses java.util.List.removeFirst\n\nFAILURE: Build failed with an exception.\n```\n\n`saltyCheck${variantName}` is added to the `check` task so that it is run automatically.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgradleup%2Fsalty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgradleup%2Fsalty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgradleup%2Fsalty/lists"}