Add upload check hook and propose code structure.
Bug: 188059093 Test: n/a - project configuration Change-Id: Ic1484a2e2bab35652238ec38e3eebd8b5020e1c5
This commit is contained in:
parent
df6712af6a
commit
4a15b5b774
3 changed files with 49 additions and 0 deletions
8
nearby/.gitignore
vendored
Normal file
8
nearby/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Eclipse project
|
||||
**/.classpath
|
||||
**/.project
|
||||
|
||||
# IntelliJ project
|
||||
**/.idea
|
||||
**/*.iml
|
||||
**/*.ipr
|
||||
10
nearby/PREUPLOAD.cfg
Normal file
10
nearby/PREUPLOAD.cfg
Normal file
|
|
@ -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}
|
||||
31
nearby/README.md
Normal file
31
nearby/README.md
Normal file
|
|
@ -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 <TARGE>
|
||||
$ cd packages/modules/Nearby
|
||||
$ aidegen
|
||||
# This will launch Intellij project for Nearby module.
|
||||
```
|
||||
Loading…
Reference in a new issue