Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Version 2.2.3の情報を追加 #415

Merged
merged 2 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion AzooKeyCore/Sources/AzooKeyUtils/AzooKeyMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import KeyboardViews

public enum MessageIdentifier: String, CaseIterable, MessageIdentifierProtocol {
case mock = "mock_alert_2022_09_16_03"
case iOS17_4_new_emoji = "iOS_17_4_new_emoji_commit" // MARK: frozen
case iOS16_4_new_emoji = "iOS_16_4_new_emoji_commit" // MARK: frozen
case ver1_9_user_dictionary_update = "ver1_9_user_dictionary_update_release" // MARK: frozen
case ver2_1_emoji_tab = "ver2_1_emoji_tab"
Expand All @@ -33,7 +34,7 @@ public enum MessageIdentifier: String, CaseIterable, MessageIdentifierProtocol {
switch self {
case .ver1_9_user_dictionary_update, .ver2_1_emoji_tab:
return true
case .iOS16_4_new_emoji, .mock:
case .iOS17_4_new_emoji, .iOS16_4_new_emoji, .mock:
return false
}
}
Expand All @@ -50,6 +51,27 @@ public enum AzooKeyMessageProvider: ApplicationSpecificKeyboardViewMessageProvid

public static var messages: [MessageData<MessageIdentifier>] {
[
MessageData(
id: .iOS17_4_new_emoji,
title: "お知らせ",
description: "iOS17.4で「🙂‍↕️️ (うなづく顔)」「🙂‍↔️️ (首を振る顔)」「🐦‍🔥️ (不死鳥)」などの新しい絵文字が追加されました。本体アプリを開き、データを更新しますか?",
button: .two(primary: .openContainer(text: "更新"), secondary: .later),
precondition: {
if #available(iOS 17.4, *) {
return true
} else {
return false
}
},
silentDoneCondition: {
// ダウンロードがv2.2.3以降の場合はDone
if (SharedStore.initialAppVersion ?? .azooKey_v1_7_1) >= .azooKey_v2_2_3 {
return true
}
return false
},
containerAppShouldMakeItDone: { false }
),
MessageData(
id: .iOS16_4_new_emoji,
title: "お知らせ",
Expand Down
1 change: 1 addition & 0 deletions AzooKeyCore/Sources/AzooKeyUtils/SharedStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public enum SharedStore {
}

public extension AppVersion {
static let azooKey_v2_2_3 = AppVersion("2.2.3")!
static let azooKey_v2_2_2 = AppVersion("2.2.2")!
static let azooKey_v2_0_2 = AppVersion("2.0.2")!
static let azooKey_v1_9 = AppVersion("1.9")!
Expand Down
2 changes: 1 addition & 1 deletion MainApp/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct ContentView: View {
tabBarData.lastUpdateDate = .now
try? manager.saveTabBarData(tabBarData: tabBarData)
}
case .iOS16_4_new_emoji:
case .iOS16_4_new_emoji, .iOS17_4_new_emoji:
// 絵文字を更新する
DataUpdateView(id: data.id, manager: $messageManager) {
AdditionalDictManager().userDictUpdate()
Expand Down
15 changes: 15 additions & 0 deletions MainApp/UpdateInformationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ struct UpdateInformationView: View {
Group {
// version 2.2系
Group {
VersionView("2.2.3", releaseDate: "2023年02月20日") {
ParagraphView("機能を改善しました。") {
"iOS17.4以降で利用可能なUnicode15.1に対応した絵文字のデータを追加しました"
"Qwertyでシフトキーの配置がより自然になります。「シフトキーの古い挙動を使う」をオフにしてお試しください。"
"Qwertyで「伸ばし棒」を長押しすると句読点が選べるようになります。"
"読み込んだ任意のフリック式のカスタムタブを編集できるようになりました。"
"変換候補を長押しして「意図した変換ではない」「欲しい変換がない」を開発者にレポートできます。フルアクセスをオンにしてご利用ください。"
}
ParagraphView("不具合を修正しました。") {
"キーボードが開かないことがある不具合を改善しました。"
"Qwertyキーボードで「・」のキーで「…」が入力される不具合を修正しました。"
"Qwertyキーボードで数字キーボードから変更不可能になる問題を修正しました。"
}
ParagraphView("その他人名変換・四字熟語変換の改善を行いました。")
}
VersionView("2.2.2", releaseDate: "2023年11月13日") {
ParagraphView("不具合を修正しました。") {
"起動に関する問題を修正しました"
Expand Down
Loading