Skip to content
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
app Add sample for using C++ dependencies from AARs. Feb 13, 2020
gradle/wrapper
.clang-format Add sample for using C++ dependencies from AARs. Feb 13, 2020
README.md Add sample for using C++ dependencies from AARs. Feb 13, 2020
build.gradle Update to 4.0.0-beta3, remove workarounds. Mar 19, 2020
gradle.properties
gradlew Add sample for using C++ dependencies from AARs. Feb 13, 2020
gradlew.bat
screenshot.png
settings.gradle Add sample for using C++ dependencies from AARs. Feb 13, 2020

README.md

curl-ssl

The curl-ssl sample shows how to import native dependencies from Maven. This sample uses curl, OpenSSL, and JsonCpp to display a list of the most recent 10 reviews submitted to AOSP's code review system.

Pre-requisites

Getting Started

The C++ code in this sample can be built with either CMake (the default for this project) or ndk-build. To use ndk-build set the ndkBuild project property either in your local.properties file or on the command line by passing the -PndkBuild flag when building.

To build with Android Studio:

  1. Open this project in Android Studio.
  2. Click *Run/Run 'app'.

To build from the command line:

  1. Navigate to this directory in your terminal.
  2. Run ./gradlew installDebug (or gradlew.bat installDebug on Windows).

CA Certificates

As explained by this Stack Overflow post, the root certificates presented by Android since ICS are not in the format OpenSSL expects, so we need to provide our own certificate file. We do this by downloading curl's cacert.pem and storing that in our assets directory, as described in this Stack Overflow post.

Screenshots

screenshot

Support

If you've found an error in these samples, please file an issue.

Patches are encouraged, and may be submitted by submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.

You can’t perform that action at this time.