Skip to content

Commit

Permalink
- fixed update checker for real this time. It seems like it might hav…
Browse files Browse the repository at this point in the history
…e trouble with the x.x.1 releases, but they're uncommon so I'll deal with that later

- updated version number and what's new
  • Loading branch information
xan-m committed Jan 10, 2022
1 parent 02bfb67 commit 8919d18
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 17 deletions.
8 changes: 4 additions & 4 deletions InfiniLink.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"InfiniLink/Preview Content\"";
DEVELOPMENT_TEAM = 99BHY6DC82;
ENABLE_PREVIEWS = YES;
Expand All @@ -891,7 +891,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.9.3;
MARKETING_VERSION = 0.9.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.alexemry.Infini-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -906,7 +906,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"InfiniLink/Preview Content\"";
DEVELOPMENT_TEAM = 99BHY6DC82;
ENABLE_PREVIEWS = YES;
Expand All @@ -916,7 +916,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.9.3;
MARKETING_VERSION = 0.9.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.alexemry.Infini-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
2 changes: 2 additions & 0 deletions InfiniLink/BLE/DeviceInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ struct DeviceInfoManager {
BLEDeviceInfo.shared.serial = String(data: value, encoding: .utf8) ?? ""
case cbuuids.firmware:
BLEDeviceInfo.shared.firmware = String(data: value, encoding: .utf8) ?? ""
DownloadManager.shared.updateAvailable = DownloadManager.shared.checkForUpdates()
case cbuuids.hardwareRevision:
BLEDeviceInfo.shared.hardwareRevision = String(data: value, encoding: .utf8) ?? ""
case cbuuids.softwareRevision:
Expand Down Expand Up @@ -80,5 +81,6 @@ struct DeviceInfoManager {
BLEDeviceInfo.shared.hardwareRevision = ""
BLEDeviceInfo.shared.softwareRevision = ""
BLEDeviceInfo.shared.manufacturer = ""
DownloadManager.shared.updateAvailable = false
}
}
1 change: 0 additions & 1 deletion InfiniLink/DFU/DownloadManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class DownloadManager: NSObject, ObservableObject {
}
}
}
self.updateAvailable = self.checkForUpdates()
}
} catch {
DebugLogManager.shared.debug(error: "JSON Decoding Error: \(error)", log: .app, date: Date())
Expand Down
4 changes: 1 addition & 3 deletions InfiniLink/View Components/Home View/HomeScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ struct HomeScreen: View {
}
}
.onChange(of: downloadManager.updateAvailable) { _ in
if downloadManager.updateAvailable {
self.updateAvailable = true
}
self.updateAvailable = downloadManager.updateAvailable
}
}
.listStyle(.insetGrouped)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ struct WhatsNewBody: View {

var body: some View {
ScrollView{
Text(NSLocalizedString("step_counter", comment: ""))
Text(NSLocalizedString("whats_new_body_1", comment: ""))
.padding()
Text(NSLocalizedString("apple_music", comment: ""))
Text(NSLocalizedString("whats_new_body_2", comment: ""))
.padding()
Text(NSLocalizedString("new_logo", comment: ""))
Text(NSLocalizedString("whats_new_body_3", comment: ""))
.padding()
}
}
Expand Down
6 changes: 3 additions & 3 deletions InfiniLink/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@
"welcome_text" = "of InfiniLink! I hope you enjoy the features I've added to the app for this version. Please feel free to get in touch with me about any issues you experience or changes you'd like to see!";

// - WhatsNewBody
"step_counter" = "Step Counter:\n- InfiniTime 1.7.0 introduces a long-awaited feature: step count transmission to companion apps. This version of InfiniLink is set up to receive those values! I have created a pretty rudimentary UI for interpreting these values, which includes:\n- Current value: a circular guage that fills as you approach your step goal\n- Weekly value: a bar chart with the step values you've achieved for each day this week\n- A calendar view, which features the same circular guage around each day around each day of the month, for more long-term step tracking";
"apple_music" = "Improved Apple Music Functionality:\n- Big thanks to @WowieMan on Github for this!\n- Current time and total run time the currently playing track is shown on InfiniTime now\n- Play/pause state is reflected on InfiniTime\n- Volume buttons in InfiniTime work now.\n- *Please note that this still only applies to Apple Music for now.*";
"new_logo" = "New Logo:\n- Again, big thanks to @WowieMan for the new logo! This logo was submitted a long time ago, and I kept meaning to add it before submitting releases to TestFlight, and then forgetting. ";
"whats_new_body_1" = "First localization!\n- Thank you so much to @friendlytsy for creating a Russian localization for InfiniLink! If anyone else would like to localize the app, the work that @friendlytsy put in laid the groundwork for new localizations. If any polyglots out there would like to contribute localizations for other languages, let me know and I can help you get started!";
"whats_new_body_2" = "Bug fixes:\n- This release should fix a few bugs causing crashes when the Apple Music feature is accessed.\n- Fixes some UI issues for users with smaller screens.";
"whats_new_body_3" = "Updates Available fixed on home screen:\n- This field on the home screen should now correctly show if an update for InfiniTime is available.";

// - Onboarding
"welcome_to_InfiniLink" = "🎉 Welcome to InfiniLink! 🎉";
Expand Down
6 changes: 3 additions & 3 deletions InfiniLink/ru.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@
"welcome_text" = "InfiniLink! Надеюсь, вам понравятся функции, которые я добавил в приложение для этой версии. Не стесняйтесь обращаться ко мне по поводу любых проблем, которые у вас возникают, или изменений, которые вы хотели бы увидеть!";

// - WhatsNewBody
"step_counter" = "Счетчик шагов:\n- InfiniTime 1.7.0 представляет долгожданную функцию: передачу счетчика шагов в сопутствующие приложения. Эта версия InfiniLink настроена на получение этих значений! Я создал довольно элементарный пользовательский интерфейс для интерпретации этих значений, который включает:\n- Текущее значение: круговая шкала, которая заполняется по мере приближения к цели шага \n- Еженедельное значение: столбиковая диаграмма со значениями шага, которые вы достигли для каждый день на этой неделе \n- Представление календаря, для более долгосрочного отслеживания шагов";
"apple_music" = "Улучшенная функциональность Apple Music:\n- Большое спасибо @WowieMan на Github за это! \n- Текущее время и общее время воспроизведения текущей воспроизводимой дорожки теперь отображается в InfiniTime \n- Состояние воспроизведения / паузы отражается в InfiniTime \n- Кнопки регулировки громкости в InfiniTime теперь работают. \n- * Обратите внимание, что пока это применимо только к Apple Music. *";
"new_logo" = "Новый логотип:\n- Еще раз большое спасибо @WowieMan за новый логотип!";
"whats_new_body_1" = "Первая локализация!\n- Большое спасибо @friendlytsy за создание русской локализации для InfiniLink! Если кто-то еще хотел бы локализовать приложение, работа, которую @friendlytsy проделали, заложила основу для новых локализаций. Если какие-либо полиглоты хотели бы внести свой вклад в локализацию для других языков, дайте мне знать, и я могу помочь вам начать! Русскоязычным пользователям этот текст был создан с помощью Google Translate, поэтому прошу прощения, если его трудно читать!";
"whats_new_body_2" = "Исправлены ошибки:\n- В этом выпуске должно быть исправлено несколько ошибок, вызывающих сбои при доступе к функции Apple Music.\n- Исправлены некоторые проблемы с пользовательским интерфейсом для пользователей с меньшими экранами.";
"whats_new_body_3" = "Доступные обновления исправлены на главном экране:\n- Это поле на главном экране теперь должно правильно отображать, доступно ли обновление для InfiniTime.";

// - Onboarding
"welcome_to_InfiniLink" = "🎉 Добро пожаловать в InfiniLink! 🎉";
Expand Down

0 comments on commit 8919d18

Please sign in to comment.