add monochrome icon

This commit is contained in:
otsmr 2025-11-12 23:56:52 +01:00
parent 570d820ada
commit 1eaa1a5edd
9 changed files with 27 additions and 10 deletions

View file

@ -1,5 +1,10 @@
# Changelog # Changelog
## 0.0.69
- Support Android Monochrome Icon
- Multiple bug fixes
## 0.0.67 ## 0.0.67
- Adds crash reports (optional). Please consider enabling this under Settings > Help > “Share errors and crashes with us.” - Adds crash reports (optional). Please consider enabling this under Settings > Help > “Share errors and crashes with us.”

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View file

@ -6,4 +6,9 @@
android:drawable="@drawable/ic_launcher_foreground" android:drawable="@drawable/ic_launcher_foreground"
android:inset="16%" /> android:inset="16%" />
</foreground> </foreground>
<monochrome>
<inset
android:drawable="@drawable/ic_launcher_monochrome"
android:inset="16%" />
</monochrome>
</adaptive-icon> </adaptive-icon>

View file

@ -247,16 +247,22 @@ class GroupsDao extends DatabaseAccessor<TwonlyDB> with _$GroupsDaoMixin {
.get(); .get();
} }
Future<List<GroupMember>> getAllGroupMemberWithoutPublicKey() { Future<List<GroupMember>> getAllGroupMemberWithoutPublicKey() async {
final query = try {
((select(groups)..where((t) => t.isDirectChat.equals(false))).join([ final query = ((select(groupMembers)
..where((t) => t.groupPublicKey.isNull()))
.join([
leftOuterJoin( leftOuterJoin(
groupMembers, groups,
groupMembers.groupId.equalsExp(groups.groupId), groups.groupId.equalsExp(groupMembers.groupId),
), ),
]) ])
..where(groupMembers.groupPublicKey.isNull())); ..where(groups.isDirectChat.isNull()));
return query.map((row) => row.readTable(groupMembers)).get(); return query.map((row) => row.readTable(groupMembers)).get();
} catch (e) {
Log.error(e);
return [];
}
} }
Future<Group?> getDirectChat(int userId) async { Future<Group?> getDirectChat(int userId) async {

View file

@ -109,6 +109,7 @@ flutter_launcher_icons:
ios: false ios: false
image_path: "assets/images/logo.png" image_path: "assets/images/logo.png"
adaptive_icon_foreground: "assets/images/logo.png" adaptive_icon_foreground: "assets/images/logo.png"
adaptive_icon_monochrome: "assets/images/logo.png"
min_sdk_android: 21 # android min sdk min:16, default 21 min_sdk_android: 21 # android min sdk min:16, default 21
remove_alpha_ios: true remove_alpha_ios: true
adaptive_icon_background: "#FF57CC99" adaptive_icon_background: "#FF57CC99"