Skip to content

Commit 4518939

Browse files
committed
Release 1.0
1 parent 91c31ce commit 4518939

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Receive notifications and control media playback from iOS and Android devices on your Android device. Based on [Apple Notification Center Service (ANCS)](https://developer.apple.com/library/archive/documentation/CoreBluetooth/Reference/AppleNotificationCenterServiceSpecification/Specification/Specification.html) and [Apple Media Service (AMS)](https://developer.apple.com/library/archive/documentation/CoreBluetooth/Reference/AppleMediaService_Reference/Specification/Specification.html) protocols.
55

66
## Support Matrix
7-
| | To iOS | To Android |
8-
| ------------ | ------------ | --------------------- |
9-
| From iOS | ❌ No support | ✅ Notification, Media |
10-
| From Android | ❌ No support | ✅ Notification |
7+
| | To iOS | To Android |
8+
| ------------ | ------------ | ------------------------------ |
9+
| From iOS | ❌ No support | ✅ Notification, Media, Battery |
10+
| From Android | ❌ No support | ✅ Notification |

README.zh-rCN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
使用 [Apple Notification Center Service (ANCS)](https://developer.apple.com/library/archive/documentation/CoreBluetooth/Reference/AppleNotificationCenterServiceSpecification/Specification/Specification.html)[Apple Media Service (AMS)](https://developer.apple.com/library/archive/documentation/CoreBluetooth/Reference/AppleMediaService_Reference/Specification/Specification.html) 协议。
77

88
## 支持矩阵
9-
| | 到 iOS | 到 Android |
10-
| ---------- | ------------ | ---------------- |
11-
| 从 iOS | ❌ 不提供支持 | ✅ 通知、媒体控制 |
12-
| 从 Android | ❌ 不提供支持 | ✅ 通知 |
9+
| | 到 iOS | 到 Android |
10+
| ---------- | ------------ | -------------------------- |
11+
| 从 iOS | ❌ 不提供支持 | ✅ 通知、媒体控制、电池电量 |
12+
| 从 Android | ❌ 不提供支持 | ✅ 通知 |

app/src/main/java/moe/reimu/ancsreceiver/MainActivity.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ fun MainActivityContent(mainViewModel: MainViewModel = viewModel()) {
266266
text = device.name,
267267
style = MaterialTheme.typography.titleMedium,
268268
)
269-
Text(
270-
text = device.device.address,
271-
)
269+
// Text(
270+
// text = device.device.address,
271+
// )
272272
}
273273
if (device.device.address == currentDeviceAddress) {
274274
Icon(
@@ -304,7 +304,7 @@ fun MainActivityContent(mainViewModel: MainViewModel = viewModel()) {
304304
onDismissRequest = { showPairDialog = false },
305305
onConfirmation = {
306306
showPairDialog = false
307-
val intent = Intent(android.provider.Settings.ACTION_BLUETOOTH_SETTINGS)
307+
val intent = Intent(Settings.ACTION_BLUETOOTH_SETTINGS)
308308
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
309309
context.startActivity(intent)
310310
}

app/src/main/res/values-zh-rCN/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<string name="enable_service">启用服务</string>
4-
<string name="enable_service_desc">在本设备上接收来自 iOS 设备的通知。</string>
4+
<string name="enable_service_desc">在本设备上接收来自兼容的 iOS 或 Android 设备的通知。</string>
55
<string name="bluetooth_disabled">蓝牙已关闭或不可用</string>
66
<string name="connected">已连接</string>
77
<string name="connected_with_batt">已连接 %d%%</string>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<resources>
22
<string name="app_name" translatable="false">CatConnect</string>
33
<string name="enable_service">Enable Service</string>
4-
<string name="enable_service_desc">Receive notifications from iOS devices on this device.</string>
4+
<string name="enable_service_desc">Receive notifications from compatible iOS or Android devices on this device.</string>
55
<string name="bluetooth_disabled">Bluetooth is disabled or unavailable.</string>
66
<string name="connected">Connected</string>
77
<string name="connected_with_batt">Connected %d%%</string>

0 commit comments

Comments
 (0)