File tree Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -81,18 +81,6 @@ The public API of the Firebase SDKs is managed using a set of annotations:
81
81
82
82
---
83
83
84
- ## Best Practices
85
-
86
- - **Code Formatting**: The repository uses `spotless` for code formatting. To format the code in a
87
- specific project, run:
88
- ```bash
89
- ./gradlew :<firebase-project>:spotlessApply
90
- ```
91
- - **Dependency Management**: Dependencies are managed using Gradle. Be mindful of the impact of new
92
- dependencies on the size of the SDKs.
93
-
94
- ---
95
-
96
84
## Common Patterns
97
85
98
86
This repository uses a combination of dependency injection frameworks:
@@ -108,9 +96,28 @@ This repository uses a combination of dependency injection frameworks:
108
96
109
97
---
110
98
99
+ ## Iteration Loop
100
+
101
+ After you make a change, here' s the flow you should follow:
102
+
103
+ - Format the code using ` spotless` . It can be run with:
104
+ ` ` ` bash
105
+ ./gradlew :< firebase-project> :spotlessApply
106
+ ` ` `
107
+ - Run unit tests:
108
+ ` ` ` bash
109
+ ./gradlew :< firebase-project> :check
110
+ ` ` `
111
+ - If necessary, run integration tests based on the instructions above.
112
+
113
+ ---
114
+
111
115
# # External Dependencies
112
116
113
- Do not add new external dependencies to the project unless explicitly asked to do so. The Firebase
117
+ ---
118
+
119
+ Do not add, under any circunstance, any new dependency to a SDK that does not already exists in the
120
+ ` gradle/libs.versions.toml` , and even then, only do it if cxexplicitly asked to do so. The Firebase
114
121
SDKs are designed to be lightweight, and adding new dependencies can increase the size of the final
115
122
artifacts.
116
123
You can’t perform that action at this time.
0 commit comments