gcesarmza/curl-android-ios
FreeStatic libcurl to be used in Android and iOS apps. Build scripts included. No Android source required
FreeFree tier
About gcesarmza/curl-android-ios
curl-android-ios provides static pre-compiled versions of libcurl for use in Android and iOS applications, with build scripts included. The project uses the upstream cURL repository and is updated frequently. For Android, it also includes OpenSSL from its upstream. It offers build instructions for both platforms, along with test projects to verify the integration. The repository is open source and actively maintained, with over 650 stars and 250 forks.
Key Features
Pre-compiled static libcurl for Android and iOS
Build scripts provided for both platforms
Uses upstream cURL and OpenSSL repositories
Frequently updated to match latest cURL releases
Test projects included for iOS and Android
No Android source required for usage
Pros & Cons
Pros
- Saves time by providing pre-compiled libcurl binaries
- Build scripts automate the compilation process
- Regular updates to stay current with cURL releases
- Includes test projects to verify proper integration
- Open source with permissive license
- Supports both Android and iOS from a single repository
Cons
- Requires Android NDK and Xcode command line tools to build from source
- Only provides static library, not dynamic/framework version
- Limited to libcurl; does not include other networking libraries
- Manual steps needed for initial setup (cloning submodules, installing dependencies)
Best For
Embedding libcurl into Android applications for network requestsEmbedding libcurl into iOS applications for network requestsDeveloping cross-platform mobile apps that need HTTP/HTTPS functionalityBuilding custom networking libraries for mobile platforms
FAQ
How do I build the library for Android?
Clone the repo, init submodules, install autoconf/automake/libtool, set NDK_ROOT path, and run ./build_Android.sh from the curl-compile-scripts directory.
How do I build the library for iOS?
Clone the repo, init submodules, install autoconf/automake/libtool, ensure Xcode Command Line Tools are installed, and run ./build_iOS.sh from the curl-compile-scripts directory.
Does this project support OpenSSL?
Yes, for Android the build scripts use OpenSSL from its upstream repository. For iOS, OpenSSL is not included by default.
Are test projects available?
Yes, test projects for both Android and iOS are included in the repository under test-android-project and test-ios-project directories.