File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,20 @@ android {
24
24
viewBinding true
25
25
prefab true
26
26
}
27
+
27
28
packagingOptions {
28
- // Libraries that are wrongly included in the junit-gtest AAR that will
29
- // end up in our APK if we don't explicitly exclude them.
30
29
jniLibs {
31
- excludes + = [' **/libadder.so' , ' **/libapptest.so' , ' **/libc++_shared.so' ]
30
+ // Gradle has no way of knowing which of the libraries in our
31
+ // CMakeLists.txt are for the app and which are for tests, so we
32
+ // have to tell it which libraries are test libraries. Without
33
+ // this, the test libraries will end up packaged in the real API
34
+ // and not just the test APK.
35
+ //
36
+ // If you copy this project, be sure to update this to specify the
37
+ // names of your own test libraries.
38
+ testOnly + = [" **/libapp_tests.so" ]
32
39
}
33
40
}
34
-
35
41
}
36
42
37
43
dependencies {
You can’t perform that action at this time.
0 commit comments