Skip to content

Commit eb9ded8

Browse files
committed
Initial DarkModeSetting ProtoBuf enum message
* Add `android-protobuf` convention plugin
1 parent 12578ac commit eb9ded8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

core/settings/appearance/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
com.edricchan.studybuddy.library.android
3+
com.edricchan.studybuddy.library.`android-protobuf`
34
}
45

56
android {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
syntax = "proto3";
2+
3+
package com.edricchan.studybuddy.core.settings.appearance.proto;
4+
5+
option java_multiple_files = true;
6+
7+
/* Possible dark mode options. */
8+
enum DarkModeSetting {
9+
/* Follow the system's dark mode setting. */
10+
FollowSystem = 0;
11+
/* Always enable dark mode. */
12+
AlwaysOn = 1;
13+
/* Always disable dark mode. */
14+
AlwaysOff = 2;
15+
}

0 commit comments

Comments
 (0)