{"id":15099217,"url":"https://github.com/robertying/androidcurlexample","last_synced_at":"2025-10-08T05:30:27.605Z","repository":{"id":134456000,"uuid":"237634574","full_name":"robertying/AndroidCurlExample","owner":"robertying","description":"Minimal Android example for using `libopenssl` and `libcurl` with `NDK` and `JNI`","archived":true,"fork":false,"pushed_at":"2021-09-05T05:27:55.000Z","size":57227,"stargazers_count":27,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-02T06:41:47.193Z","etag":null,"topics":["android","curl","jni","libcurl","libssl","ndk","openssl"],"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/robertying.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-01T15:27:00.000Z","updated_at":"2024-09-24T06:36:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"4efe6be8-cf4a-4bfa-a9aa-1adb5de66e7c","html_url":"https://github.com/robertying/AndroidCurlExample","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"ec5e6d5d3c02d82f45f563a229e77863089f81bf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertying%2FAndroidCurlExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertying%2FAndroidCurlExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertying%2FAndroidCurlExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertying%2FAndroidCurlExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertying","download_url":"https://codeload.github.com/robertying/AndroidCurlExample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235683861,"owners_count":19029079,"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","curl","jni","libcurl","libssl","ndk","openssl"],"created_at":"2024-09-25T17:08:04.391Z","updated_at":"2025-10-08T05:30:22.259Z","avatar_url":"https://github.com/robertying.png","language":"Java","readme":"# Android Curl Example\n\nMinimal Android example for using `libopenssl` and `libcurl` with `NDK` and `JNI`.\n\nPay special attention to the directory **`app/src/main/cpp`** where most of the work resides.\n\n## Mechanism\n\n- Use Android NDK to compile C functions together with cross-compiled `libcurl` and `libopenssl` libs.\n- Use JNI to connect C functions to Java functions.\n- Load NDK compiled shared lib in Android app.\n- Call Java functions which call C functions eventually and can use all the stuff `curl` and `openssl` provide.\n\n## Compile openssl and curl for Android\n\nSee this repo: [openssl-curl-android](https://github.com/robertying/openssl-curl-android) for how to cross-compile those two libs.\n\nFor simplicity, I just copied the whole build directory from [openssl-curl-android](https://github.com/robertying/openssl-curl-android) to `app/src/main/cpp/libs`. You may find better ways to place pre-compiled libs or just build them on the fly.\n\n## **Note**\n\nI have removed actual built libs from Git. Remember to copy precompiled ones to `app/src/main/cpp/libs` to make the app build.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertying%2Fandroidcurlexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertying%2Fandroidcurlexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertying%2Fandroidcurlexample/lists"}