File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
firestore/integration_test_internal Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,14 @@ android {
52
52
}
53
53
}
54
54
55
+ Properties localProperties = new Properties ()
56
+ try {
57
+ localProperties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
58
+ } catch (FileNotFoundException e) {
59
+ // Ignore the situation where local.properties does not exist, effectively treating it the same
60
+ // as if it existed but was empty.
61
+ }
62
+
55
63
defaultConfig {
56
64
applicationId ' com.google.firebase.cpp.firestore.testapp'
57
65
minSdkVersion 19
@@ -60,6 +68,13 @@ android {
60
68
versionName ' 1.0'
61
69
externalNativeBuild. cmake {
62
70
arguments " -DFIREBASE_CPP_SDK_DIR=$gradle . firebase_cpp_sdk_dir "
71
+ // Only build the targets that Firestore needs, instead of everything.
72
+ targets ' firebase_firestore' , ' firebase_auth' , ' android_integration_test_main'
73
+ // Add the line `abiFilter=<abi>` to `local.properties` to speed up local builds by only
74
+ // building the required ABI, where `<abi>` is x86, x86_64, or arm64-v8a (for Mac M1).
75
+ if (localProperties[" abiFilter" ] != null ) {
76
+ abiFilters localProperties[" abiFilter" ]
77
+ }
63
78
}
64
79
multiDexEnabled true
65
80
}
You can’t perform that action at this time.
0 commit comments