{"id":13480924,"url":"https://github.com/androidthings/native-libandroidthings","last_synced_at":"2025-03-27T11:31:14.936Z","repository":{"id":65361748,"uuid":"81470441","full_name":"androidthings/native-libandroidthings","owner":"androidthings","description":"NDK library for exposing Peripheral I/O APIs in C/C++","archived":false,"fork":false,"pushed_at":"2021-05-26T17:54:40.000Z","size":466,"stargazers_count":26,"open_issues_count":3,"forks_count":50,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-30T14:42:51.214Z","etag":null,"topics":["android-ndk","android-things"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/androidthings.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":"2017-02-09T16:29:17.000Z","updated_at":"2024-10-08T18:21:56.000Z","dependencies_parsed_at":"2023-01-19T13:45:17.627Z","dependency_job_id":null,"html_url":"https://github.com/androidthings/native-libandroidthings","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidthings%2Fnative-libandroidthings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidthings%2Fnative-libandroidthings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidthings%2Fnative-libandroidthings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidthings%2Fnative-libandroidthings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/androidthings","download_url":"https://codeload.github.com/androidthings/native-libandroidthings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245836081,"owners_count":20680316,"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-ndk","android-things"],"created_at":"2024-07-31T17:00:46.598Z","updated_at":"2025-03-27T11:31:14.602Z","avatar_url":"https://github.com/androidthings.png","language":"C","funding_links":[],"categories":["Useful links"],"sub_categories":["Sample apps and libraries"],"readme":"Android Things Native Library\n=============================\n\nThis repository contains the symbols and the headers for the Android Things\n[Native PIO API](https://developer.android.com/things/sdk/pio/native.html) for the following architecture:\n- `armeabi-v7a`\n- `x86`\n\n\u003e **Note:** The Android Things Console will be turned down for non-commercial\n\u003e use on January 5, 2022. For more details, see the\n\u003e [FAQ page](https://developer.android.com/things/faq).\n\nUsage\n=====\n\n- Unzip the latest [release](https://github.com/androidthings/native-libandroidthings/releases) in the native project directory (or in a shared location if you have many native projects).\n- Add the following lines to the native project `CMakeLists.txt`:\n```\nset(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} \u003cpath_to_FindAndroidThings_directory.cmake\u003e)\nfind_package(AndroidThings REQUIRED)\ninclude_directories(${ANDROIDTHINGS_INCLUDE_DIRS})\ntarget_link_libraries(\u003cyour_target_name\u003e ${ANDROIDTHINGS_LIBRARIES})\n```\n- Add the following arch to the native module `build.gradle`:\n```\ndefaultConfig {\n    ndk {\n        abiFilters 'armeabi-v7a', 'x86'\n    }\n}\n```\n\nLicense\n=======\n\nCopyright 2016 The Android Open Source Project, Inc.\n\nLicensed to the Apache Software Foundation (ASF) under one or more contributor\nlicense agreements.  See the NOTICE file distributed with this work for\nadditional information regarding copyright ownership.  The ASF licenses this\nfile to you under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this file except in compliance with the License.  You may obtain a copy of\nthe License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroidthings%2Fnative-libandroidthings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroidthings%2Fnative-libandroidthings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroidthings%2Fnative-libandroidthings/lists"}