File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -251,8 +251,10 @@ projects may be published as follows.
251
251
252
252
### Code Formatting
253
253
254
- Code in this repo is formatted with the google-java-format tool. You can enable
255
- this formatting in Android Studio by downloading and installing the
254
+ #### Java
255
+
256
+ Java code in this repo is formatted with the google-java-format tool. You can
257
+ enable this formatting in Android Studio by downloading and installing the
256
258
[ google-java-format plugin] ( https://github.com/google/google-java-format ) .
257
259
The plugin is disabled by default, but the repo contains configuration information
258
260
and links to additional plugins.
@@ -262,6 +264,18 @@ To run formatting on your entire project you can run
262
264
./gradlew :< firebase-project> :googleJavaFormat
263
265
```
264
266
267
+ #### Kotlin
268
+
269
+ Kotlin code in this repo is formatted with the ` ktfmt ` tool. You can enable
270
+ this formatting in Android Studio by downloading and installing the
271
+ [ ktfmt plugin] ( https://plugins.jetbrains.com/plugin/14912-ktfmt ) .
272
+ Enable the plugin in Preferences | Editor | ktfmt Settings. and set code style to Google (internal).
273
+
274
+ To run formatting on your entire project you can run
275
+ ``` bash
276
+ ./gradlew :< firebase-project> :ktfmtFormat
277
+ ```
278
+
265
279
### Contributing
266
280
267
281
We love contributions! Please read our
You can’t perform that action at this time.
0 commit comments