{"id":23015304,"url":"https://github.com/retrostreams/android-cfuture21-hack","last_synced_at":"2025-08-14T07:31:59.513Z","repository":{"id":57737800,"uuid":"296935403","full_name":"retrostreams/android-cfuture21-hack","owner":"retrostreams","description":"A hackish attempt to provide CompletableFuture on Android API level 21 to level 23 in conjunction with google/desugar_jdk_libs and Android Gradle Plugin 4.x","archived":false,"fork":false,"pushed_at":"2021-01-19T21:34:04.000Z","size":474,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-05T16:42:38.835Z","etag":null,"topics":["android","completablefuture","java8","java9","jep-266"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/retrostreams.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":"2020-09-19T19:12:51.000Z","updated_at":"2021-02-22T19:02:10.000Z","dependencies_parsed_at":"2022-08-24T12:50:59.423Z","dependency_job_id":null,"html_url":"https://github.com/retrostreams/android-cfuture21-hack","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retrostreams%2Fandroid-cfuture21-hack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retrostreams%2Fandroid-cfuture21-hack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retrostreams%2Fandroid-cfuture21-hack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retrostreams%2Fandroid-cfuture21-hack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/retrostreams","download_url":"https://codeload.github.com/retrostreams/android-cfuture21-hack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229810599,"owners_count":18127668,"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","completablefuture","java8","java9","jep-266"],"created_at":"2024-12-15T11:11:59.468Z","updated_at":"2024-12-15T11:12:00.109Z","avatar_url":"https://github.com/retrostreams.png","language":"Java","readme":"[![Maven Central](https://img.shields.io/maven-central/v/net.sourceforge.streamsupport/android-cfuture21-hack.svg)](http://mvnrepository.com/artifact/net.sourceforge.streamsupport/android-cfuture21-hack)\n[![javadoc.io](https://javadoc.io/badge2/net.sourceforge.streamsupport/android-cfuture21-hack/javadoc.svg)](https://javadoc.io/doc/net.sourceforge.streamsupport/android-cfuture21-hack)\n\n# android-cfuture21-hack\n\nAn unsupported hackish attempt to provide CompletableFuture on Android API level 21 to level 23 in conjunction with google/desugar_jdk_libs and Android Gradle Plugin 4.x\n\nAndroid Studio will display an error \"Call requires API level 24 (current min is 21)\". This error is just a warning that can be ignored. If you want to get rid of the error, just add `@SuppressLint(\"NewApi\")` to your code.\n\nUse at your **own risk**. This hack **won't** get support in any way!  \n\n\n### app/build.gradle:\n\n```groovy\napply plugin: 'com.android.application'\n\n\nandroid {\n\n    defaultConfig {\n        ...\n        minSdkVersion 21 // has to be \u003e= 21 and \u003c 24, if you have 24+ this hack is not needed\n        ...\n    }\n\n    compileOptions {\n        coreLibraryDesugaringEnabled true\n        sourceCompatibility JavaVersion.VERSION_1_8\n        targetCompatibility JavaVersion.VERSION_1_8\n    }\n}\n\ndependencies {\n    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.10'\n    implementation 'net.sourceforge.streamsupport:android-cfuture21-hack:1.0.5'\n}\n```\n\n## LICENSE\n\nGNU General Public License, version 2, [with the Classpath Exception](https://github.com/retrostreams/android-cfuture21-hack/blob/master/LICENSE)  (and [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) for JSR-166 derived code)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretrostreams%2Fandroid-cfuture21-hack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretrostreams%2Fandroid-cfuture21-hack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretrostreams%2Fandroid-cfuture21-hack/lists"}