Compare commits

..

17 Commits

Author SHA1 Message Date
Arkadiusz Fal
97b16cfd04 Fix Package.resolved 2024-02-03 22:02:14 +01:00
Arkadiusz Fal
d5b81ceba1 Use macOS 13 in release workflow 2024-02-03 22:00:00 +01:00
Arkadiusz Fal
f3ba61a168 Bump build number to 178 2024-02-03 21:55:29 +01:00
Arkadiusz Fal
c68aa1d30c Update CHANGELOG 2024-02-03 21:55:17 +01:00
Arkadiusz Fal
d187fc322c Update packages 2024-02-03 21:55:09 +01:00
Arkadiusz Fal
e616022278 Use Xcode 14.3.1 for fastlane builds 2024-02-03 21:49:45 +01:00
Arkadiusz Fal
1b0486df05 Localizations improvements 2024-02-03 21:49:45 +01:00
Arkadiusz Fal
e6deb9ef26 Add import on tvOS, other export/import improvements 2024-02-03 21:49:45 +01:00
Arkadiusz Fal
0216c17b95 Merge pull request #610 from weblate/weblate-yattee-localizable-strings
Translations update from Hosted Weblate
2024-02-03 21:47:22 +01:00
Arkadiusz Fal
1eff757caf Translated using Weblate (Polish)
Currently translated at 100.0% (561 of 561 strings)

Translation: Yattee/Localizable.strings
Translate-URL: https://hosted.weblate.org/projects/yattee/localizable-strings/pl/
2024-02-03 21:47:09 +01:00
Arkadiusz Fal
4cfd00b307 Translated using Weblate (English)
Currently translated at 100.0% (561 of 561 strings)

Translation: Yattee/Localizable.strings
Translate-URL: https://hosted.weblate.org/projects/yattee/localizable-strings/en/
2024-02-03 21:47:09 +01:00
Arkadiusz Fal
8075db3ac8 Merge pull request #609 from weblate/weblate-yattee-localizable-strings
Translations update from Hosted Weblate
2024-02-03 21:30:20 +01:00
Arkadiusz Fal
2cd867e344 Translated using Weblate (Polish)
Currently translated at 100.0% (560 of 560 strings)

Translation: Yattee/Localizable.strings
Translate-URL: https://hosted.weblate.org/projects/yattee/localizable-strings/pl/
2024-02-03 21:30:07 +01:00
Arkadiusz Fal
b5b2e7f13d Translated using Weblate (English)
Currently translated at 100.0% (560 of 560 strings)

Translation: Yattee/Localizable.strings
Translate-URL: https://hosted.weblate.org/projects/yattee/localizable-strings/en/
2024-02-03 21:30:07 +01:00
Arkadiusz Fal
cbd7c417d2 Merge pull request #608 from weblate/weblate-yattee-localizable-strings
Translations update from Hosted Weblate
2024-02-03 21:21:11 +01:00
Arkadiusz Fal
ed7a233c9b Translated using Weblate (Polish)
Currently translated at 100.0% (554 of 554 strings)

Translation: Yattee/Localizable.strings
Translate-URL: https://hosted.weblate.org/projects/yattee/localizable-strings/pl/
2024-02-03 21:20:49 +01:00
Arkadiusz Fal
d75e3e9a61 Translated using Weblate (English)
Currently translated at 100.0% (554 of 554 strings)

Translation: Yattee/Localizable.strings
Translate-URL: https://hosted.weblate.org/projects/yattee/localizable-strings/en/
2024-02-03 21:20:49 +01:00
15 changed files with 318 additions and 187 deletions

View File

@@ -27,7 +27,7 @@ jobs:
# lane: ['mac beta', 'ios beta', 'tvos beta'] # lane: ['mac beta', 'ios beta', 'tvos beta']
lane: ['ios beta', 'tvos beta'] lane: ['ios beta', 'tvos beta']
name: Releasing ${{ matrix.lane }} version to TestFlight name: Releasing ${{ matrix.lane }} version to TestFlight
runs-on: macos-latest runs-on: macos-13
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@v1
@@ -38,6 +38,9 @@ jobs:
run: | run: |
sed -i '' 's/match Development/match AppStore/' Yattee.xcodeproj/project.pbxproj sed -i '' 's/match Development/match AppStore/' Yattee.xcodeproj/project.pbxproj
sed -i '' 's/iPhone Developer/iPhone Distribution/' Yattee.xcodeproj/project.pbxproj sed -i '' 's/iPhone Developer/iPhone Distribution/' Yattee.xcodeproj/project.pbxproj
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.3.1'
- uses: maierj/fastlane-action@v3.0.0 - uses: maierj/fastlane-action@v3.0.0
with: with:
lane: ${{ matrix.lane }} lane: ${{ matrix.lane }}
@@ -48,7 +51,7 @@ jobs:
if-no-files-found: ignore if-no-files-found: ignore
mac_notarized: mac_notarized:
name: Build and notarize macOS app name: Build and notarize macOS app
runs-on: macos-latest runs-on: macos-13
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@v1
@@ -59,6 +62,9 @@ jobs:
run: | run: |
sed -i '' 's/match AppStore/match Direct/' Yattee.xcodeproj/project.pbxproj sed -i '' 's/match AppStore/match Direct/' Yattee.xcodeproj/project.pbxproj
sed -i '' 's/3rd Party Mac Developer Application/Developer ID Application/' Yattee.xcodeproj/project.pbxproj sed -i '' 's/3rd Party Mac Developer Application/Developer ID Application/' Yattee.xcodeproj/project.pbxproj
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.3.1'
- uses: maierj/fastlane-action@v3.0.0 - uses: maierj/fastlane-action@v3.0.0
with: with:
lane: mac build_and_notarize lane: mac build_and_notarize

View File

@@ -1,4 +1,10 @@
## Build 177 ## Build 178
* Added Settings import via URL for tvOS
* Localization fixes
* Updated dependencies (mpvkit 0.37.0)
* Other minor changes and improvements
## Previous builds
* Added Settings Import/Export (iOS, macOS) * Added Settings Import/Export (iOS, macOS)
* Export all settings, instances and accounts * Export all settings, instances and accounts
* Import selected elements from the file * Import selected elements from the file

View File

@@ -55,7 +55,7 @@ GEM
artifactory (3.0.15) artifactory (3.0.15)
atomos (0.1.3) atomos (0.1.3)
aws-eventstream (1.3.0) aws-eventstream (1.3.0)
aws-partitions (1.886.0) aws-partitions (1.887.0)
aws-sdk-core (3.191.0) aws-sdk-core (3.191.0)
aws-eventstream (~> 1, >= 1.3.0) aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0) aws-partitions (~> 1, >= 1.651.0)

View File

@@ -2,15 +2,11 @@ import Defaults
import Foundation import Foundation
import SwiftyJSON import SwiftyJSON
struct ImportSettingsFileModel { final class ImportSettingsFileModel: ObservableObject {
let url: URL static let shared = ImportSettingsFileModel()
var filename: String {
String(url.lastPathComponent.dropLast(ImportExportSettingsModel.settingsExtension.count + 1))
}
var locationsSettingsGroupImporter: LocationsSettingsGroupImporter? { var locationsSettingsGroupImporter: LocationsSettingsGroupImporter? {
if let locationsSettings = json?.dictionaryValue["locationsSettings"] { if let locationsSettings = json.dictionaryValue["locationsSettings"] {
return LocationsSettingsGroupImporter( return LocationsSettingsGroupImporter(
json: locationsSettings, json: locationsSettings,
includePublicLocations: importExportModel.isGroupEnabled(.locationsSettings), includePublicLocations: importExportModel.isGroupEnabled(.locationsSettings),
@@ -25,6 +21,8 @@ struct ImportSettingsFileModel {
var importExportModel = ImportExportSettingsModel.shared var importExportModel = ImportExportSettingsModel.shared
var sheetViewModel = ImportSettingsSheetViewModel.shared var sheetViewModel = ImportSettingsSheetViewModel.shared
var loadTask: URLSessionTask?
func isGroupIncludedInFile(_ group: ImportExportSettingsModel.ExportGroup) -> Bool { func isGroupIncludedInFile(_ group: ImportExportSettingsModel.ExportGroup) -> Bool {
switch group { switch group {
case .locationsSettings: case .locationsSettings:
@@ -48,7 +46,7 @@ struct ImportSettingsFileModel {
} }
func groupJSON(_ group: ImportExportSettingsModel.ExportGroup) -> JSON { func groupJSON(_ group: ImportExportSettingsModel.ExportGroup) -> JSON {
json?.dictionaryValue[group.rawValue] ?? .init() json.dictionaryValue[group.rawValue] ?? .init()
} }
func performImport() { func performImport() {
@@ -91,17 +89,34 @@ struct ImportSettingsFileModel {
} }
} }
var json: JSON? { @Published var json = JSON()
if let fileContents = try? Data(contentsOf: url),
let json = try? JSON(data: fileContents) func loadData(_ url: URL) {
{ json = JSON()
return json loadTask?.cancel()
loadTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, _ in
guard let data else { return }
if let json = try? JSON(data: data) {
DispatchQueue.main.async { [weak self] in
guard let self else { return }
self.json = json
self.sheetViewModel.reset(locationsSettingsGroupImporter)
self.importExportModel.reset(self)
}
}
} }
return nil loadTask?.resume()
}
func filename(_ url: URL) -> String {
String(url.lastPathComponent.dropLast(ImportExportSettingsModel.settingsExtension.count + 1))
} }
var metadataBuild: String? { var metadataBuild: String? {
if let build = json?.dictionaryValue["metadata"]?.dictionaryValue["build"]?.string { if let build = json.dictionaryValue["metadata"]?.dictionaryValue["build"]?.string {
return build return build
} }
@@ -109,7 +124,7 @@ struct ImportSettingsFileModel {
} }
var metadataPlatform: String? { var metadataPlatform: String? {
if let platform = json?.dictionaryValue["metadata"]?.dictionaryValue["platform"]?.string { if let platform = json.dictionaryValue["metadata"]?.dictionaryValue["platform"]?.string {
return platform return platform
} }
@@ -117,7 +132,7 @@ struct ImportSettingsFileModel {
} }
var metadataDate: String? { var metadataDate: String? {
if let timestamp = json?.dictionaryValue["metadata"]?.dictionaryValue["timestamp"]?.doubleValue { if let timestamp = json.dictionaryValue["metadata"]?.dictionaryValue["timestamp"]?.doubleValue {
let date = Date(timeIntervalSince1970: timestamp) let date = Date(timeIntervalSince1970: timestamp)
return dateFormatter.string(from: date) return dateFormatter.string(from: date)
} }

View File

@@ -436,9 +436,9 @@ enum ButtonLabelStyle: String, CaseIterable, Defaults.Serializable {
var description: String { var description: String {
switch self { switch self {
case .iconOnly: case .iconOnly:
return "Icon only" return "Icon only".localized()
case .iconAndText: case .iconAndText:
return "Icon and text" return "Icon and text".localized()
} }
} }
} }

View File

@@ -14,11 +14,6 @@ struct OpenURLHandler {
var navigationStyle: NavigationStyle var navigationStyle: NavigationStyle
func handle(_ url: URL) { func handle(_ url: URL) {
if url.isFileURL, url.standardizedFileURL.absoluteString.hasSuffix(".\(ImportExportSettingsModel.settingsExtension)") {
navigation.presentSettingsImportSheet(url)
return
}
if Self.firstHandle { if Self.firstHandle {
Self.firstHandle = false Self.firstHandle = false
@@ -26,6 +21,11 @@ struct OpenURLHandler {
return return
} }
if url.isFileURL, url.standardizedFileURL.absoluteString.hasSuffix(".\(ImportExportSettingsModel.settingsExtension)") {
navigation.presentSettingsImportSheet(url)
return
}
if accounts.current.isNil { if accounts.current.isNil {
accounts.setCurrent(accounts.any) accounts.setCurrent(accounts.any)
} }

View File

@@ -30,6 +30,13 @@ struct ExportSettings: View {
#endif #endif
#endif #endif
} }
#if os(iOS)
.toolbar {
ToolbarItem(placement: .confirmationAction) {
exportButton
}
}
#endif
.navigationTitle("Export Settings") .navigationTitle("Export Settings")
} }
@@ -70,7 +77,7 @@ struct ExportSettings: View {
var body: some View { var body: some View {
Button(action: { model.toggleExportGroupSelection(group) }) { Button(action: { model.toggleExportGroupSelection(group) }) {
HStack { HStack {
Text(group.label) Text(group.label.localized())
Spacer() Spacer()
Image(systemName: "checkmark") Image(systemName: "checkmark")
.foregroundColor(.accentColor) .foregroundColor(.accentColor)
@@ -106,12 +113,6 @@ struct ExportSettings: View {
ExportGroupRow(group: group) ExportGroupRow(group: group)
} }
} }
#if !os(macOS)
Section {
exportButton
}
#endif
} }
.buttonStyle(.plain) .buttonStyle(.plain)
.disabled(model.isExportInProgress) .disabled(model.isExportInProgress)
@@ -119,7 +120,7 @@ struct ExportSettings: View {
var exportButton: some View { var exportButton: some View {
Button(action: exportSettings) { Button(action: exportSettings) {
Label(model.isExportInProgress ? "Export in progress..." : "Export...", systemImage: model.isExportInProgress ? "fireworks" : "square.and.arrow.up") Text(model.isExportInProgress ? "In progress..." : "Export")
.animation(nil, value: model.isExportInProgress) .animation(nil, value: model.isExportInProgress)
#if !os(macOS) #if !os(macOS)
.foregroundColor(.accentColor) .foregroundColor(.accentColor)

View File

@@ -0,0 +1,34 @@
import SwiftUI
struct ImportSettings: View {
@State private var fileURL = ""
var body: some View {
VStack(spacing: 100) {
VStack(alignment: .leading, spacing: 20) {
Text("1. Export settings from Yattee for iOS or macOS")
Text("2. Upload it to a file hosting (e. g. Pastebin or GitHub Gist)")
Text("3. Enter file URL in the field below. You can use iOS remote to paste.")
}
TextField("URL", text: $fileURL)
Button {
if let url = URL(string: fileURL) {
NavigationModel.shared.presentSettingsImportSheet(url)
}
} label: {
Text("Import")
}
}
.padding(20)
.navigationTitle("Import Settings")
}
}
struct ImportSettings_Previews: PreviewProvider {
static var previews: some View {
ImportSettings()
}
}

View File

@@ -27,102 +27,110 @@ struct ImportSettingsAccountRow: View {
} }
var body: some View { var body: some View {
Button(action: { model.toggleAccount(account, accounts: accounts) }) { #if os(tvOS)
let accountExists = AccountsModel.shared.find(account.id) != nil row
#else
Button(action: { model.toggleAccount(account, accounts: accounts) }) {
row
}
.buttonStyle(.plain)
#endif
}
VStack(alignment: .leading) { var row: some View {
HStack { let accountExists = AccountsModel.shared.find(account.id) != nil
Text(account.username)
Spacer()
Image(systemName: "checkmark")
.foregroundColor(.accentColor)
.opacity(isChecked ? 1 : 0)
}
Text(account.instance?.description ?? "")
.font(.caption)
.foregroundColor(.secondary)
Group { return VStack(alignment: .leading) {
if let instanceID = account.instanceID { HStack {
if accountExists { Text(account.username)
HStack { Spacer()
Image(systemName: "xmark.circle.fill") Image(systemName: "checkmark")
.foregroundColor(Color("AppRedColor")) .foregroundColor(.accentColor)
Text("Account already exists") .opacity(isChecked ? 1 : 0)
} }
} else { Text(account.instance?.description ?? "")
Group { .font(.caption)
if InstancesModel.shared.find(instanceID) != nil { .foregroundColor(.secondary)
HStack {
Image(systemName: "checkmark.circle.fill")
.foregroundColor(.green)
Text("Custom Location already exists")
}
} else if model.selectedInstances.contains(instanceID) {
HStack {
Image(systemName: "checkmark.circle.fill")
.foregroundColor(.green)
Text("Custom Location selected for import")
}
} else {
HStack {
Image(systemName: "xmark.circle.fill")
.foregroundColor(.red)
Text("Custom Location not selected for import")
}
.foregroundColor(Color("AppRedColor"))
}
}
.frame(minHeight: 20)
if account.password.isNil || account.password!.isEmpty { Group {
Group { if let instanceID = account.instanceID {
if password.isEmpty { if accountExists {
HStack { HStack {
Image(systemName: "key") Image(systemName: "xmark.circle.fill")
Text("Password required to import") .foregroundColor(Color("AppRedColor"))
} Text("Account already exists")
.foregroundColor(Color("AppRedColor")) }
} else { } else {
AccountValidationStatus( Group {
app: .constant(instance.app), if InstancesModel.shared.find(instanceID) != nil {
isValid: $isValid,
isValidated: $isValidated,
isValidating: $isValidating,
error: $validationError
)
}
}
.frame(minHeight: 20)
} else {
HStack { HStack {
Image(systemName: "checkmark.circle.fill") Image(systemName: "checkmark.circle.fill")
.foregroundColor(.green) .foregroundColor(.green)
Text("Custom Location already exists")
Text("Password saved in import file")
} }
} else if model.selectedInstances.contains(instanceID) {
HStack {
Image(systemName: "checkmark.circle.fill")
.foregroundColor(.green)
Text("Custom Location selected for import")
}
} else {
HStack {
Image(systemName: "xmark.circle.fill")
.foregroundColor(.red)
Text("Custom Location not selected for import")
}
.foregroundColor(Color("AppRedColor"))
}
}
.frame(minHeight: 20)
if account.password.isNil || account.password!.isEmpty {
Group {
if password.isEmpty {
HStack {
Image(systemName: "key")
Text("Password required to import")
}
.foregroundColor(Color("AppRedColor"))
} else {
AccountValidationStatus(
app: .constant(instance.app),
isValid: $isValid,
isValidated: $isValidated,
isValidating: $isValidating,
error: $validationError
)
}
}
.frame(minHeight: 20)
} else {
HStack {
Image(systemName: "checkmark.circle.fill")
.foregroundColor(.green)
Text("Password saved in import file")
} }
} }
} }
} }
.foregroundColor(.primary)
.font(.caption)
.padding(.vertical, 2)
if !accountExists && (account.password.isNil || account.password!.isEmpty) {
SecureField("Password", text: $password)
.onChange(of: password) { _ in validate() }
#if !os(tvOS)
.textFieldStyle(RoundedBorderTextFieldStyle())
#endif
}
} }
.frame(maxWidth: .infinity, alignment: .leading) .foregroundColor(.primary)
.contentShape(Rectangle()) .font(.caption)
.onChange(of: isValid) { _ in afterValidation() } .padding(.vertical, 2)
.animation(nil, value: isChecked)
if !accountExists && (account.password.isNil || account.password!.isEmpty) {
SecureField("Password", text: $password)
.onChange(of: password) { _ in validate() }
#if !os(tvOS)
.textFieldStyle(RoundedBorderTextFieldStyle())
#endif
}
} }
.buttonStyle(.plain) .frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())
.onChange(of: isValid) { _ in afterValidation() }
.animation(nil, value: isChecked)
} }
var isChecked: Bool { var isChecked: Bool {
@@ -173,7 +181,8 @@ struct ImportSettingsAccountRow: View {
struct ImportSettingsAccountRow_Previews: PreviewProvider { struct ImportSettingsAccountRow_Previews: PreviewProvider {
static var previews: some View { static var previews: some View {
let fileModel = ImportSettingsFileModel(url: URL(string: "https://gist.githubusercontent.com/arekf/578668969c9fdef1b3828bea864c3956/raw/f794a95a20261bcb1145e656c8dda00bea339e2a/yattee-recents.yatteesettings")!) let fileModel = ImportSettingsFileModel()
fileModel.loadData(URL(string: "https://gist.githubusercontent.com/arekf/578668969c9fdef1b3828bea864c3956/raw/f794a95a20261bcb1145e656c8dda00bea339e2a/yattee-recents.yatteesettings")!)
return List { return List {
ImportSettingsAccountRow( ImportSettingsAccountRow(

View File

@@ -4,6 +4,7 @@ struct ImportSettingsSheetView: View {
@Binding var settingsFile: URL? @Binding var settingsFile: URL?
@StateObject private var model = ImportSettingsSheetViewModel.shared @StateObject private var model = ImportSettingsSheetViewModel.shared
@StateObject private var importExportModel = ImportExportSettingsModel.shared @StateObject private var importExportModel = ImportExportSettingsModel.shared
@StateObject private var fileModel = ImportSettingsFileModel.shared
@Environment(\.presentationMode) private var presentationMode @Environment(\.presentationMode) private var presentationMode
@@ -23,12 +24,12 @@ struct ImportSettingsSheetView: View {
#endif #endif
} }
.onAppear { .onAppear {
guard let fileModel else { return } guard let settingsFile else { return }
model.reset(fileModel.locationsSettingsGroupImporter) fileModel.loadData(settingsFile)
importExportModel.reset(fileModel)
} }
.onChange(of: settingsFile) { _ in .onChange(of: settingsFile) { _ in
importExportModel.reset(fileModel) guard let settingsFile else { return }
fileModel.loadData(settingsFile)
} }
} }
@@ -56,7 +57,7 @@ struct ImportSettingsSheetView: View {
} }
ToolbarItem(placement: .confirmationAction) { ToolbarItem(placement: .confirmationAction) {
Button(action: { Button(action: {
fileModel?.performImport() fileModel.performImport()
presentingCompletedAlert = true presentingCompletedAlert = true
ImportExportSettingsModel.shared.reset() ImportExportSettingsModel.shared.reset()
}) { }) {
@@ -85,16 +86,8 @@ struct ImportSettingsSheetView: View {
return !model.selectedAccounts.isEmpty || !model.selectedInstances.isEmpty || !importExportModel.selectedExportGroups.isEmpty return !model.selectedAccounts.isEmpty || !model.selectedInstances.isEmpty || !importExportModel.selectedExportGroups.isEmpty
} }
var fileModel: ImportSettingsFileModel? {
guard let settingsFile else { return nil }
return ImportSettingsFileModel(url: settingsFile)
}
var locationsSettingsGroupImporter: LocationsSettingsGroupImporter? { var locationsSettingsGroupImporter: LocationsSettingsGroupImporter? {
guard let fileModel else { return nil } fileModel.locationsSettingsGroupImporter
return fileModel.locationsSettingsGroupImporter
} }
struct ExportGroupRow: View { struct ExportGroupRow: View {
@@ -105,7 +98,7 @@ struct ImportSettingsSheetView: View {
var body: some View { var body: some View {
Button(action: { model.toggleExportGroupSelection(group) }) { Button(action: { model.toggleExportGroupSelection(group) }) {
HStack { HStack {
Text(group.label) Text(group.label.localized())
Spacer() Spacer()
Image(systemName: "checkmark") Image(systemName: "checkmark")
.foregroundColor(.accentColor) .foregroundColor(.accentColor)
@@ -128,34 +121,43 @@ struct ImportSettingsSheetView: View {
Section(header: Text("Settings")) { Section(header: Text("Settings")) {
ForEach(ImportExportSettingsModel.ExportGroup.settingsGroups) { group in ForEach(ImportExportSettingsModel.ExportGroup.settingsGroups) { group in
ExportGroupRow(group: group) ExportGroupRow(group: group)
.disabled(!fileModel!.isGroupIncludedInFile(group)) .disabled(!fileModel.isGroupIncludedInFile(group))
} }
} }
Section(header: Text("Other")) { Section(header: Text("Other")) {
ForEach(ImportExportSettingsModel.ExportGroup.otherGroups) { group in ForEach(ImportExportSettingsModel.ExportGroup.otherGroups) { group in
ExportGroupRow(group: group) ExportGroupRow(group: group)
.disabled(!fileModel!.isGroupIncludedInFile(group)) .disabled(!fileModel.isGroupIncludedInFile(group))
} }
} }
} }
} }
@ViewBuilder var metadata: some View { @ViewBuilder var metadata: some View {
if let fileModel { if let settingsFile {
Section(header: Text("File information")) { Section(header: Text("File information")) {
MetadataRow(name: Text("Name"), value: Text(fileModel.filename)) MetadataRow(name: Text("Name"), value: Text(fileModel.filename(settingsFile)))
if let date = fileModel.metadataDate { if let date = fileModel.metadataDate {
MetadataRow(name: Text("Date"), value: Text(date)) MetadataRow(name: Text("Date"), value: Text(date))
#if os(tvOS)
.focusable()
#endif
} }
if let build = fileModel.metadataBuild { if let build = fileModel.metadataBuild {
MetadataRow(name: Text("Build"), value: Text(build)) MetadataRow(name: Text("Build"), value: Text(build))
#if os(tvOS)
.focusable()
#endif
} }
if let platform = fileModel.metadataPlatform { if let platform = fileModel.metadataPlatform {
MetadataRow(name: Text("Platform"), value: Text(platform)) MetadataRow(name: Text("Platform"), value: Text(platform))
#if os(tvOS)
.focusable()
#endif
} }
} }
} }
@@ -231,24 +233,22 @@ struct ImportSettingsSheetView: View {
} }
@ViewBuilder var importOptions: some View { @ViewBuilder var importOptions: some View {
if let fileModel { if fileModel.isPublicInstancesSettingsGroupInFile || !instances.isEmpty {
if fileModel.isPublicInstancesSettingsGroupInFile || !instances.isEmpty { Section(header: Text("Locations")) {
Section(header: Text("Locations")) { if fileModel.isPublicInstancesSettingsGroupInFile {
if fileModel.isPublicInstancesSettingsGroupInFile { ExportGroupRow(group: .locationsSettings)
ExportGroupRow(group: .locationsSettings) }
}
ForEach(instances) { instance in ForEach(instances) { instance in
ImportInstanceRow(instance: instance, accounts: accounts) ImportInstanceRow(instance: instance, accounts: accounts)
}
} }
} }
}
if !accounts.isEmpty { if !accounts.isEmpty {
Section(header: Text("Accounts")) { Section(header: Text("Accounts")) {
ForEach(accounts) { account in ForEach(accounts) { account in
ImportSettingsAccountRow(account: account, fileModel: fileModel) ImportSettingsAccountRow(account: account, fileModel: fileModel)
}
} }
} }
} }

View File

@@ -31,9 +31,9 @@ struct SettingsView: View {
var body: some View { var body: some View {
settings settings
.modifier(ImportSettingsSheetViewModifier(isPresented: $settingsModel.presentingSettingsImportSheet, settingsFile: $settingsModel.settingsImportURL))
#if !os(tvOS) #if !os(tvOS)
.modifier(ImportSettingsFileImporterViewModifier(isPresented: $navigation.presentingSettingsFileImporter)) .modifier(ImportSettingsFileImporterViewModifier(isPresented: $navigation.presentingSettingsFileImporter))
.modifier(ImportSettingsSheetViewModifier(isPresented: $settingsModel.presentingSettingsImportSheet, settingsFile: $settingsModel.settingsImportURL))
#endif #endif
#if os(iOS) #if os(iOS)
.backport .backport
@@ -281,19 +281,27 @@ struct SettingsView: View {
var importView: some View { var importView: some View {
Section { Section {
Button(action: importSettings) { #if os(tvOS)
Label("Import Settings...", systemImage: "square.and.arrow.down") NavigationLink(destination: LazyView(ImportSettings())) {
.frame(maxWidth: .infinity, alignment: .leading) Label("Import Settings", systemImage: "square.and.arrow.down")
.contentShape(Rectangle()) .labelStyle(SettingsLabel())
} }
.foregroundColor(.accentColor) .padding(.horizontal, 20)
.buttonStyle(.plain) #else
Button(action: importSettings) {
Label("Import Settings...", systemImage: "square.and.arrow.down")
.frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())
}
.foregroundColor(.accentColor)
.buttonStyle(.plain)
NavigationLink(destination: LazyView(ExportSettings())) { NavigationLink(destination: LazyView(ExportSettings())) {
Label("Export Settings", systemImage: "square.and.arrow.up") Label("Export Settings", systemImage: "square.and.arrow.up")
.frame(maxWidth: .infinity, alignment: .leading) .frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle()) .contentShape(Rectangle())
} }
#endif
} }
} }

View File

@@ -602,3 +602,27 @@
"No preview" = "No preview"; "No preview" = "No preview";
"Open vertical chapters expanded" = "Open vertical chapters expanded"; "Open vertical chapters expanded" = "Open vertical chapters expanded";
"Chapters (if available)" = "Chapters (if available)"; "Chapters (if available)" = "Chapters (if available)";
"Import Settings..." = "Import Settings...";
"Export Settings" = "Export Settings";
"Accounts passwords (unencrypted)" = "Accounts passwords (unencrypted)";
"Other" = "Other";
"Other data" = "Other data";
"Export..." = "Export…";
"Other data include last used playback preferences and listing options" = "Other data include last used playback preferences and listing options";
"Are you sure you want to export unencrypted passwords?" = "Are you sure you want to export unencrypted passwords?";
"Do not share this file with anyone or you can lose access to your accounts. If you don't select to export passwords you will be asked to provide them during import" = "Do not share this file with anyone or you can lose access to your accounts. If you don't select to export passwords you will be asked to provide them during import";
"Icon only" = "Icon only";
"Export" = "Export";
"File information" = "File information";
"Build" = "Build";
"Import" = "Import";
"Platform" = "Platform";
"Action button labels" = "Action button labels";
"Icon and text" = "Icon and text";
"Password required to import" = "Password required to import";
"Custom Location already exists" = "Custom Location already exists";
"Custom Location selected for import" = "Custom Location selected for import";
"Custom Location not selected for import" = "Custom Location not selected for import";
"Account already exists" = "Account already exists";
"Password saved in import file" = "Password saved in import file";
"Export in progress..." = "Export in progress...";

View File

@@ -605,3 +605,27 @@
"No preview" = "Brak podglądu"; "No preview" = "Brak podglądu";
"Open vertical chapters expanded" = "Otwórz pionowe rozdziały rozwinięte"; "Open vertical chapters expanded" = "Otwórz pionowe rozdziały rozwinięte";
"Chapters (if available)" = "Rozdziały (jeśli dostępne)"; "Chapters (if available)" = "Rozdziały (jeśli dostępne)";
"Import Settings..." = "Importuj Ustawienia…";
"Export Settings" = "Eksportuj Ustawienia";
"Export" = "Eksportuj";
"Accounts passwords (unencrypted)" = "Hasła kont (nieszyfrowane)";
"Other" = "Inne";
"Other data" = "Inne dane";
"Export..." = "Eksportuj…";
"Other data include last used playback preferences and listing options" = "Inne dane obejmują ostatnie preferencje odtwarzania i opcje listowania";
"Are you sure you want to export unencrypted passwords?" = "Czy na pewno eksportować nieszyfrowane hasła?";
"Do not share this file with anyone or you can lose access to your accounts. If you don't select to export passwords you will be asked to provide them during import" = "Nie dziel się z nikim tym plikiem albo możesz stracić dostęp do swoich kont. Jeśli nie wybierzesz eksportu haseł, zostaniesz o nie zapytany podczas importu";
"File information" = "Informacje o pliku";
"Build" = "Wersja";
"Platform" = "Platforma";
"Import" = "Importuj";
"Action button labels" = "Etykiety przycisków akcji";
"Icon only" = "Tylko ikony";
"Icon and text" = "Ikony i tekst";
"Custom Location already exists" = "Własna Lokalizacja już istnieje";
"Custom Location selected for import" = "Lokalizacja wybrana do zaimportowania";
"Custom Location not selected for import" = "Lokalizacji nie wybrano do zaimportowania";
"Password required to import" = "Hasło wymagane do zaimportowania";
"Password saved in import file" = "Hasło zapisane w importowanym pliku";
"Account already exists" = "Konto już istnieje";
"Export in progress..." = "Eksport w toku…";

View File

@@ -662,6 +662,7 @@
37A5DBC8285E371400CA4DD1 /* ControlBackgroundModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A5DBC7285E371400CA4DD1 /* ControlBackgroundModifier.swift */; }; 37A5DBC8285E371400CA4DD1 /* ControlBackgroundModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A5DBC7285E371400CA4DD1 /* ControlBackgroundModifier.swift */; };
37A5DBC9285E371400CA4DD1 /* ControlBackgroundModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A5DBC7285E371400CA4DD1 /* ControlBackgroundModifier.swift */; }; 37A5DBC9285E371400CA4DD1 /* ControlBackgroundModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A5DBC7285E371400CA4DD1 /* ControlBackgroundModifier.swift */; };
37A5DBCA285E371400CA4DD1 /* ControlBackgroundModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A5DBC7285E371400CA4DD1 /* ControlBackgroundModifier.swift */; }; 37A5DBCA285E371400CA4DD1 /* ControlBackgroundModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A5DBC7285E371400CA4DD1 /* ControlBackgroundModifier.swift */; };
37A6D4ED2B6E372700B26299 /* ImportSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A6D4EC2B6E372700B26299 /* ImportSettings.swift */; };
37A7D6E32B67E303009CB1ED /* ImportSettingsFileModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372C74692B67098A00BE179B /* ImportSettingsFileModel.swift */; }; 37A7D6E32B67E303009CB1ED /* ImportSettingsFileModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372C74692B67098A00BE179B /* ImportSettingsFileModel.swift */; };
37A7D6E52B67E315009CB1ED /* SettingsGroupExporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A7D6E42B67E315009CB1ED /* SettingsGroupExporter.swift */; }; 37A7D6E52B67E315009CB1ED /* SettingsGroupExporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A7D6E42B67E315009CB1ED /* SettingsGroupExporter.swift */; };
37A7D6E62B67E315009CB1ED /* SettingsGroupExporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A7D6E42B67E315009CB1ED /* SettingsGroupExporter.swift */; }; 37A7D6E62B67E315009CB1ED /* SettingsGroupExporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A7D6E42B67E315009CB1ED /* SettingsGroupExporter.swift */; };
@@ -1360,6 +1361,7 @@
37A362BD29537AAA00BDF328 /* PlaybackSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlaybackSettings.swift; sourceTree = "<group>"; }; 37A362BD29537AAA00BDF328 /* PlaybackSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlaybackSettings.swift; sourceTree = "<group>"; };
37A362C129537FED00BDF328 /* PlaybackSettingsPresentationDetents+Backport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "PlaybackSettingsPresentationDetents+Backport.swift"; sourceTree = "<group>"; }; 37A362C129537FED00BDF328 /* PlaybackSettingsPresentationDetents+Backport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "PlaybackSettingsPresentationDetents+Backport.swift"; sourceTree = "<group>"; };
37A5DBC7285E371400CA4DD1 /* ControlBackgroundModifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ControlBackgroundModifier.swift; sourceTree = "<group>"; }; 37A5DBC7285E371400CA4DD1 /* ControlBackgroundModifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ControlBackgroundModifier.swift; sourceTree = "<group>"; };
37A6D4EC2B6E372700B26299 /* ImportSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImportSettings.swift; sourceTree = "<group>"; };
37A7D6E42B67E315009CB1ED /* SettingsGroupExporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsGroupExporter.swift; sourceTree = "<group>"; }; 37A7D6E42B67E315009CB1ED /* SettingsGroupExporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsGroupExporter.swift; sourceTree = "<group>"; };
37A7D6E82B67E334009CB1ED /* BrowsingSettingsGroupExporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowsingSettingsGroupExporter.swift; sourceTree = "<group>"; }; 37A7D6E82B67E334009CB1ED /* BrowsingSettingsGroupExporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowsingSettingsGroupExporter.swift; sourceTree = "<group>"; };
37A7D6EC2B67E3BF009CB1ED /* BrowsingSettingsGroupImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowsingSettingsGroupImporter.swift; sourceTree = "<group>"; }; 37A7D6EC2B67E3BF009CB1ED /* BrowsingSettingsGroupImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowsingSettingsGroupImporter.swift; sourceTree = "<group>"; };
@@ -2162,6 +2164,7 @@
37BBB33D2B6B9C80001C4845 /* Import */ = { 37BBB33D2B6B9C80001C4845 /* Import */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
37A6D4EC2B6E372700B26299 /* ImportSettings.swift */,
37BBB3422B6BB88F001C4845 /* ImportSettingsAccountRow.swift */, 37BBB3422B6BB88F001C4845 /* ImportSettingsAccountRow.swift */,
372C74622B66FFFC00BE179B /* ImportSettingsFileImporterViewModifier.swift */, 372C74622B66FFFC00BE179B /* ImportSettingsFileImporterViewModifier.swift */,
37BBB33E2B6B9D52001C4845 /* ImportSettingsSheetView.swift */, 37BBB33E2B6B9D52001C4845 /* ImportSettingsSheetView.swift */,
@@ -3840,6 +3843,7 @@
37E80F45287B7AC000561799 /* ControlsBar.swift in Sources */, 37E80F45287B7AC000561799 /* ControlsBar.swift in Sources */,
3743CA50270EFE3400E4D32B /* PlayerQueueRow.swift in Sources */, 3743CA50270EFE3400E4D32B /* PlayerQueueRow.swift in Sources */,
376BE50827347B57009AD608 /* SettingsHeader.swift in Sources */, 376BE50827347B57009AD608 /* SettingsHeader.swift in Sources */,
37A6D4ED2B6E372700B26299 /* ImportSettings.swift in Sources */,
37A9966026D6F9B9006E3224 /* HomeView.swift in Sources */, 37A9966026D6F9B9006E3224 /* HomeView.swift in Sources */,
372820402945E4A8009A0E2D /* SubscriptionsPageButton.swift in Sources */, 372820402945E4A8009A0E2D /* SubscriptionsPageButton.swift in Sources */,
37001565271B1F250049C794 /* AccountsModel.swift in Sources */, 37001565271B1F250049C794 /* AccountsModel.swift in Sources */,
@@ -4055,7 +4059,7 @@
CODE_SIGN_ENTITLEMENTS = "Open in Yattee/Open in Yattee.entitlements"; CODE_SIGN_ENTITLEMENTS = "Open in Yattee/Open in Yattee.entitlements";
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Open in Yattee/Info.plist"; INFOPLIST_FILE = "Open in Yattee/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Open in Yattee"; INFOPLIST_KEY_CFBundleDisplayName = "Open in Yattee";
@@ -4086,7 +4090,7 @@
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 78Z5H3M6RJ; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 78Z5H3M6RJ;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Open in Yattee/Info.plist"; INFOPLIST_FILE = "Open in Yattee/Info.plist";
@@ -4117,7 +4121,7 @@
buildSettings = { buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.0; IPHONEOS_DEPLOYMENT_TARGET = 14.0;
MACOSX_DEPLOYMENT_TARGET = 11.0; MACOSX_DEPLOYMENT_TARGET = 11.0;
@@ -4137,7 +4141,7 @@
buildSettings = { buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.0; IPHONEOS_DEPLOYMENT_TARGET = 14.0;
MACOSX_DEPLOYMENT_TARGET = 11.0; MACOSX_DEPLOYMENT_TARGET = 11.0;
@@ -4301,7 +4305,7 @@
CODE_SIGN_ENTITLEMENTS = "iOS/Yattee (iOS).entitlements"; CODE_SIGN_ENTITLEMENTS = "iOS/Yattee (iOS).entitlements";
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
ENABLE_PREVIEWS = YES; ENABLE_PREVIEWS = YES;
GCC_PREPROCESSOR_DEFINITIONS = ( GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1", "DEBUG=1",
@@ -4354,7 +4358,7 @@
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 78Z5H3M6RJ; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 78Z5H3M6RJ;
ENABLE_PREVIEWS = YES; ENABLE_PREVIEWS = YES;
GCC_PREPROCESSOR_DEFINITIONS = "GLES_SILENCE_DEPRECATION=1"; GCC_PREPROCESSOR_DEFINITIONS = "GLES_SILENCE_DEPRECATION=1";
@@ -4406,7 +4410,7 @@
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES; COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
ENABLE_APP_SANDBOX = YES; ENABLE_APP_SANDBOX = YES;
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
@@ -4445,7 +4449,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "3rd Party Mac Developer Application"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "3rd Party Mac Developer Application";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES; COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
"DEVELOPMENT_TEAM[sdk=macosx*]" = 78Z5H3M6RJ; "DEVELOPMENT_TEAM[sdk=macosx*]" = 78Z5H3M6RJ;
ENABLE_APP_SANDBOX = YES; ENABLE_APP_SANDBOX = YES;
@@ -4480,7 +4484,7 @@
buildSettings = { buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.0; IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
@@ -4504,7 +4508,7 @@
buildSettings = { buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.0; IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
@@ -4530,7 +4534,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES; COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
@@ -4555,7 +4559,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES; COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
@@ -4581,7 +4585,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_ASSET_PATHS = "";
ENABLE_PREVIEWS = YES; ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
@@ -4621,7 +4625,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "iPhone Distribution"; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_ASSET_PATHS = "";
"DEVELOPMENT_TEAM[sdk=appletvos*]" = 78Z5H3M6RJ; "DEVELOPMENT_TEAM[sdk=appletvos*]" = 78Z5H3M6RJ;
ENABLE_PREVIEWS = YES; ENABLE_PREVIEWS = YES;
@@ -4662,7 +4666,7 @@
buildSettings = { buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
@@ -4686,7 +4690,7 @@
buildSettings = { buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 177; CURRENT_PROJECT_VERSION = 178;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
@@ -4996,8 +5000,8 @@
isa = XCRemoteSwiftPackageReference; isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/cxfksword/MPVKit.git"; repositoryURL = "https://github.com/cxfksword/MPVKit.git";
requirement = { requirement = {
kind = exactVersion; kind = upToNextMajorVersion;
version = 0.36.0; minimumVersion = 0.36.0;
}; };
}; };
/* End XCRemoteSwiftPackageReference section */ /* End XCRemoteSwiftPackageReference section */

View File

@@ -60,8 +60,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/cxfksword/MPVKit.git", "location" : "https://github.com/cxfksword/MPVKit.git",
"state" : { "state" : {
"revision" : "96825b3dc2b38e5550268156148d47798ce6aa74", "revision" : "645f430ff0b99ccc2c61062727ad7e8bf32ca72a",
"version" : "0.36.0" "version" : "0.37.0"
} }
}, },
{ {