commit | b649fd2d5a31c3d4aefb682544c3274abbcae3d2 | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Tue Feb 22 18:07:24 2022 +0900 |
committer | Remi NGUYEN VAN <reminv@google.com> | Thu Mar 24 11:31:22 2022 +0000 |
tree | b9d0ff2a723b202078ce4884022d8f200feab939 | |
parent | 6f981e2e5875685e5b2799e622190e6d3bb08fa7 [diff] |
Remove sdk_level dependency on libbase, libc++ Using sdk_level in a small (typically JNI) library that does not use libbase or libc++ results in ~400kB of libraries to pull in, as it depends on libbase and libc++. Remove the dependency on libbase and libc++ by using NDK APIs and C strings. Test that a file that includes the headers can build by adding a sdk_level_nosdk_static test library that is exercised in the unit test, and does not build against any library. This ensures that new dependencies are not added by mistake, as that test would fail to build. Bug: 220819740 Test: atest unbounded_sdk_level_test Change-Id: Iee0ca99dcdfdd87e3c2f53cfa313bb394ab31253
Libraries and utilities intended for use by module and framework code.
Since modules use the code in this project, it must adhere to mainline requirements, for example, by setting min_sdk_version in Soong modules.
This project uses a single source path for Java code. All Java code should go in the java
directory with subdirectories corresponding to the java package. Android.bp
files should go alongside the java source files, and should only include java source for a single java package to encourage good code hygiene.
Tests for java code should go in the javatests
directory and follow the same structure.