{"id":18833569,"url":"https://github.com/ibitcy/eo-mobile-openssl-static","last_synced_at":"2025-04-14T04:32:02.870Z","repository":{"id":81111934,"uuid":"436687080","full_name":"ibitcy/eo-mobile-openssl-static","owner":"ibitcy","description":"Get fresh version of openssl using prefab dependencies!","archived":false,"fork":false,"pushed_at":"2023-12-08T23:30:57.000Z","size":13428,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T18:50:16.433Z","etag":null,"topics":["android","library","native","ndk","openssl","prefab","static"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibitcy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-12-09T16:34:01.000Z","updated_at":"2024-11-06T00:42:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"cccf98f6-9391-45f6-8b96-03e1be32734c","html_url":"https://github.com/ibitcy/eo-mobile-openssl-static","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibitcy%2Feo-mobile-openssl-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibitcy%2Feo-mobile-openssl-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibitcy%2Feo-mobile-openssl-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibitcy%2Feo-mobile-openssl-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibitcy","download_url":"https://codeload.github.com/ibitcy/eo-mobile-openssl-static/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248821798,"owners_count":21166958,"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","library","native","ndk","openssl","prefab","static"],"created_at":"2024-11-08T02:01:29.733Z","updated_at":"2025-04-14T04:31:57.857Z","avatar_url":"https://github.com/ibitcy.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://jitpack.io/v/ibitcy/eo-mobile-openssl-static.svg)](https://jitpack.io/#ibitcy/eo-mobile-openssl-static)\n\n## OpenSSL static library + prefab\n\nEasy to use solution to bake fresh version of [OpenSLL](http://openssl.org/) into your NDK Library\n\n## Before you start\n\nThis package made for using it with Gradle's \"prefab\" dependencies system.\n\nSo it's better to start with reading more about it [here](https://developer.android.com/studio/build/dependencies?buildsystem=cmake#native-dependencies-with-agp) or [here](https://github.com/android/ndk-samples/tree/main/prefab).\n\n## Why we did it:\n\nUsing [Google's \"Prefabbed\" OpenSLL library ](https://mvnrepository.com/artifact/com.android.ndk.thirdparty/openssl) you'll face a problem with `libssl.so` and `libcrypto.so` on devices with Android 5\n\nIn this cases the one and only way to have latest version of OpenSSL in your app is merge it into your library\n\nBut you can have the best of both worlds: easy to implement prefab dependency + static .a libraries that will guarantee that your code will work on any version of Android as you expect\n\n## How to\n\n1. Add dependency to your build.gradle:\n```gradle\nrepositories {\n    maven { url 'https://jitpack.io' }\n}\n..\ndependencies {\n    ..\n    implementation 'com.github.ibitcy:eo-mobile-openssl-static:1.1.1.12'\n    ..\n}\n```\n2. Add this code pieces to your CMakeLists.txt:\n```cmake\nfind_package(openssl REQUIRED CONFIG)\n..\nget_target_property(OPENSSL_INCLUDE_DIR openssl::ssl INTERFACE_INCLUDE_DIRECTORIES)\n..\nset_target_properties(openssl::crypto PROPERTIES IMPORTED_LOCATION ${OPENSSL_INCLUDE_DIR}/../../../../jni/include/lib/${CMAKE_ANDROID_ARCH_ABI}/libcrypto.a)\nset_target_properties(openssl::ssl PROPERTIES IMPORTED_LOCATION ${OPENSSL_INCLUDE_DIR}/../../../../jni/include/lib/${CMAKE_ANDROID_ARCH_ABI}/libssl.a)\n..\ntarget_link_libraries(\n        your_library_name\n        ..\n        openssl::ssl\n        openssl::crypto\n        ..\n)\n```\n3. Build! 🎉🎉🎉\n\n## Maintenance\n\n\nWe use this repo to build .a and .so\nhttps://github.com/stephenkopylov/android_openssl_build_scripts/tree/main\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibitcy%2Feo-mobile-openssl-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibitcy%2Feo-mobile-openssl-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibitcy%2Feo-mobile-openssl-static/lists"}