diff --git a/nearby/.gitignore b/nearby/.gitignore new file mode 100644 index 0000000000..4402b3d52a --- /dev/null +++ b/nearby/.gitignore @@ -0,0 +1,8 @@ +# Eclipse project +**/.classpath +**/.project + +# IntelliJ project +**/.idea +**/*.iml +**/*.ipr \ No newline at end of file diff --git a/nearby/PREUPLOAD.cfg b/nearby/PREUPLOAD.cfg new file mode 100644 index 0000000000..048ddb6a0b --- /dev/null +++ b/nearby/PREUPLOAD.cfg @@ -0,0 +1,10 @@ +[Builtin Hooks] +xmllint = true +clang_format = true +commit_msg_changeid_field = true + +[Builtin Hooks Options] +clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp + +[Hook Scripts] +checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} \ No newline at end of file diff --git a/nearby/README.md b/nearby/README.md new file mode 100644 index 0000000000..7c69b9e17e --- /dev/null +++ b/nearby/README.md @@ -0,0 +1,31 @@ +# Nearby Mainline Module +This directory contains code for the AOSP Nearby mainline module. + +##Directory Structure + +`apex` + - Files associated with the Nearby mainline module APEX. + +`framework` + - Contains client side APIs and AIDL files. + +`jni` + - JNI wrapper for invoking Android APIs from native code. + +`native` + - Native code implementation for nearby module services. + +`service` + - Server side implementation for nearby module services. + +`tests` + - Unit tests for Nearby module (both Java and native code). + +## IDE setup + +```sh +$ source build/envsetup.sh && lunch +$ cd packages/modules/Nearby +$ aidegen +# This will launch Intellij project for Nearby module. +``` \ No newline at end of file