-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Android:图标切换功能 ✨ iOS:图标切换功能、暗黑模式图标功能 🐛 修正空消息依旧触发消息预显的问题 <- #157 🐛 修正在 Web 端 URL 编码遗漏导致的主题面板加载失败的问题 <- #158 🐛 修正消息滚到底判定偶发不触发的问题 🐛 阻止反复点击已打开的聊天以避免计数器问题 🐛 调整一些布局错误 <- #156 ♿ Capacitor:优化在移动设备平板上横竖屏样式切换的体验 ♿ iOS:优化在 iPad 上的实体键盘、笔输入结构避让
- Loading branch information
Showing
103 changed files
with
679 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_capacitor.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background> | ||
<inset android:drawable="@mipmap/ic_launcher_capacitor_background" android:inset="16.7%" /> | ||
</background> | ||
<foreground> | ||
<inset android:drawable="@mipmap/ic_launcher_capacitor_foreground" android:inset="16.7%" /> | ||
</foreground> | ||
</adaptive-icon> |
9 changes: 9 additions & 0 deletions
9
src/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_capacitor_round.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background> | ||
<inset android:drawable="@mipmap/ic_launcher_capacitor_background" android:inset="16.7%" /> | ||
</background> | ||
<foreground> | ||
<inset android:drawable="@mipmap/ic_launcher_capacitor_foreground" android:inset="16.7%" /> | ||
</foreground> | ||
</adaptive-icon> |
9 changes: 9 additions & 0 deletions
9
src/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_napcat.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background> | ||
<inset android:drawable="@mipmap/ic_launcher_napcat_background" android:inset="16.7%" /> | ||
</background> | ||
<foreground> | ||
<inset android:drawable="@mipmap/ic_launcher_napcat_foreground" android:inset="16.7%" /> | ||
</foreground> | ||
</adaptive-icon> |
9 changes: 9 additions & 0 deletions
9
src/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_napcat_round.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background> | ||
<inset android:drawable="@mipmap/ic_launcher_napcat_background" android:inset="16.7%" /> | ||
</background> | ||
<foreground> | ||
<inset android:drawable="@mipmap/ic_launcher_napcat_foreground" android:inset="16.7%" /> | ||
</foreground> | ||
</adaptive-icon> |
Binary file added
BIN
+3.02 KB
src/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_capacitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+240 Bytes
...obile/android/app/src/main/res/mipmap-hdpi/ic_launcher_capacitor_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.21 KB
...obile/android/app/src/main/res/mipmap-hdpi/ic_launcher_capacitor_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.5 KB
src/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_capacitor_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.41 KB
src/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_napcat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+240 Bytes
src/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_napcat_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.1 KB
src/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_napcat_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.3 KB
src/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_napcat_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+768 Bytes
src/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_capacitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+157 Bytes
...obile/android/app/src/main/res/mipmap-ldpi/ic_launcher_capacitor_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.46 KB
...obile/android/app/src/main/res/mipmap-ldpi/ic_launcher_capacitor_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.58 KB
src/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_capacitor_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.29 KB
src/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_napcat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+157 Bytes
src/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_napcat_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.29 KB
src/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_napcat_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.41 KB
src/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_napcat_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.38 KB
src/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_capacitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+176 Bytes
...obile/android/app/src/main/res/mipmap-mdpi/ic_launcher_capacitor_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.04 KB
...obile/android/app/src/main/res/mipmap-mdpi/ic_launcher_capacitor_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.2 KB
src/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_capacitor_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.82 KB
src/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_napcat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+176 Bytes
src/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_napcat_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.45 KB
src/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_napcat_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.59 KB
src/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_napcat_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.74 KB
src/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_capacitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+308 Bytes
...bile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_capacitor_background.png
Oops, something went wrong.
Binary file added
BIN
+4.63 KB
...bile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_capacitor_foreground.png
Oops, something went wrong.
Binary file added
BIN
+4.93 KB
src/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_capacitor_round.png
Oops, something went wrong.
Binary file added
BIN
+13.9 KB
src/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_napcat.png
Oops, something went wrong.
Binary file added
BIN
+308 Bytes
src/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_napcat_background.png
Oops, something went wrong.
Binary file added
BIN
+18.4 KB
src/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_napcat_foreground.png
Oops, something went wrong.
Binary file added
BIN
+18.5 KB
src/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_napcat_round.png
Oops, something went wrong.
Binary file added
BIN
+8.64 KB
src/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_capacitor.png
Oops, something went wrong.
Binary file added
BIN
+444 Bytes
...ile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_capacitor_background.png
Oops, something went wrong.
Binary file added
BIN
+7.86 KB
...ile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_capacitor_foreground.png
Oops, something went wrong.
Binary file added
BIN
+8.09 KB
src/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_capacitor_round.png
Oops, something went wrong.
Binary file added
BIN
+31.6 KB
src/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_napcat.png
Oops, something went wrong.
Binary file added
BIN
+444 Bytes
...mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_napcat_background.png
Oops, something went wrong.
Binary file added
BIN
+36.9 KB
...mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_napcat_foreground.png
Oops, something went wrong.
Binary file added
BIN
+36.6 KB
src/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_napcat_round.png
Oops, something went wrong.
Binary file added
BIN
+13.2 KB
src/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_capacitor.png
Oops, something went wrong.
Binary file added
BIN
+608 Bytes
...le/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_capacitor_background.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
...le/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_capacitor_foreground.png
Oops, something went wrong.
Binary file added
BIN
+10.8 KB
src/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_capacitor_round.png
Oops, something went wrong.
Binary file added
BIN
+54.6 KB
src/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_napcat.png
Oops, something went wrong.
Binary file added
BIN
+608 Bytes
...obile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_napcat_background.png
Oops, something went wrong.
Binary file added
BIN
+59.8 KB
...obile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_napcat_foreground.png
Oops, something went wrong.
Binary file added
BIN
+59 KB
src/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_napcat_round.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+36.5 KB
src/mobile/ios/App/App/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+16.7 KB
...mobile/ios/App/App/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
43 changes: 34 additions & 9 deletions
43
src/mobile/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,39 @@ | ||
{ | ||
"images": [ | ||
"images" : [ | ||
{ | ||
"idiom": "universal", | ||
"size": "1024x1024", | ||
"filename": "[email protected]", | ||
"platform": "ios" | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "tinted" | ||
} | ||
], | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info": { | ||
"author": "xcode", | ||
"version": 1 | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} | ||
} | ||
|
Binary file added
BIN
+129 KB
...bile/ios/App/App/Assets.xcassets/CapacitorAppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+48.7 KB
...ios/App/App/Assets.xcassets/CapacitorAppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+125 KB
...s/App/App/Assets.xcassets/CapacitorAppIcon.appiconset/[email protected]
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
src/mobile/ios/App/App/Assets.xcassets/CapacitorAppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "tinted" | ||
} | ||
], | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+674 KB
src/mobile/ios/App/App/Assets.xcassets/NapcatAppIcon.appiconset/[email protected]
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
src/mobile/ios/App/App/Assets.xcassets/NapcatAppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "tinted" | ||
} | ||
], | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file removed
BIN
-40.3 KB
src/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png
Diff not rendered.
Binary file removed
BIN
-40.3 KB
src/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png
Diff not rendered.
Binary file removed
BIN
-40.3 KB
src/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// UIViewController.swift | ||
// App | ||
// | ||
// Created by 林小槐 on 2024/12/25. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIViewController { | ||
public class func initializeMethod(){ | ||
if self != UIViewController.self{ | ||
return | ||
} | ||
DispatchQueue.once(token: "ChangeIcon") { | ||
let orignal = class_getInstanceMethod(self, #selector(UIViewController.present(_:animated:completion:))) | ||
let swizzling = class_getInstanceMethod(self, #selector(UIViewController.ssl_present(_:animated:completion:))) | ||
if let old = orignal, let new = swizzling{ | ||
method_exchangeImplementations(old, new) | ||
} | ||
} | ||
} | ||
@objc private func ssl_present(_ viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)? = nil) { | ||
if viewControllerToPresent is UIAlertController{ | ||
let vc = viewControllerToPresent as! UIAlertController | ||
if vc.title == nil && vc.message == nil{ | ||
return | ||
} | ||
} | ||
self.ssl_present(viewControllerToPresent, animated: flag, completion: completion) | ||
} | ||
} | ||
extension DispatchQueue{ | ||
private static var _onceTracker = [String]() | ||
public class func once(token: String, block:()->()){ | ||
objc_sync_enter(self) | ||
defer{ | ||
objc_sync_exit(self) | ||
} | ||
if _onceTracker.contains(token){ | ||
return | ||
} | ||
_onceTracker.append(token) | ||
block() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.