orgstar+: rename, Settings banner, redesigned screen !379
23 files changed, +206 −93
Layout: unified · split
README.org +4 −4
| @@ -59,18 +59,18 @@ or download the notarized DMG from the | |||
| 59 | [[https://gitbay.org/krz/orgstar/releases][releases page]]. The iPhone and iPad app (iOS 26 | 59 | [[https://gitbay.org/krz/orgstar/releases][releases page]]. The iPhone and iPad app (iOS 26 |
| 60 | or later), with its Apple Watch app, is on the [[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][App Store]]. | 60 | or later), with its Apple Watch app, is on the [[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][App Store]]. |
| 61 | 61 | ||
| 62 | ** orgstar Pro | 62 | ** orgstar+ |
| 63 | Editing, the agenda, capture, clocking, tables, search, and HTML and Markdown export are | 63 | Editing, the agenda, capture, clocking, tables, search, and HTML and Markdown export are |
| 64 | free. Pro adds running and tangling source blocks; PDF, LaTeX, ODT, Word and rich-text export | 64 | free. orgstar+ adds running and tangling source blocks; PDF, LaTeX, ODT, Word and rich-text export |
| 65 | and publishing; encrypting entries (decrypting stays free); org-roam nodes, daily notes and | 65 | and publishing; encrypting entries (decrypting stays free); org-roam nodes, daily notes and |
| 66 | backlinks; widgets, the Apple Watch app and the clock Live Activity; Calendar and Reminders in | 66 | backlinks; widgets, the Apple Watch app and the clock Live Activity; Calendar and Reminders in |
| 67 | the agenda; and Shortcuts actions. | 67 | the agenda; and Shortcuts actions. |
| 68 | 68 | ||
| 69 | - iPhone and iPad: in-app, $1.99 a month, $19.99 a year or $39.99 once. | 69 | - iPhone and iPad: in-app, $1.99 a month, $19.99 a year or $39.99 once. |
| 70 | - Mac: $39.99 once, for a license key from [[https://krz.sh/apps/orgstar/buy][krz.sh/apps/orgstar/buy]], entered in | 70 | - Mac: $39.99 once, for a license key from [[https://krz.sh/apps/orgstar/buy][krz.sh/apps/orgstar/buy]], entered in |
| 71 | Settings ▸ Pro. | 71 | Settings ▸ orgstar+. |
| 72 | 72 | ||
| 73 | Anyone who installed orgstar before Pro keeps every feature without buying it. | 73 | Anyone who installed orgstar before orgstar+ keeps every feature without buying it. |
| 74 | 74 | ||
| 75 | To build from source, contribute or release (the Mac app and the App Store), see | 75 | To build from source, contribute or release (the Mac app and the App Store), see |
| 76 | [[file:CONTRIBUTING.org]]. | 76 | [[file:CONTRIBUTING.org]]. |
Sources/OrgApp/ProAccess.swift +1 −1
| @@ -1,7 +1,7 @@ | |||
| 1 | import Foundation | 1 | import Foundation |
| 2 | import Observation | 2 | import Observation |
| 3 | 3 | ||
| 4 | /// Features that need orgstar Pro. | 4 | /// Features that need orgstar+. |
| 5 | public enum ProFeature: String, CaseIterable, Sendable, Identifiable { | 5 | public enum ProFeature: String, CaseIterable, Sendable, Identifiable { |
| 6 | case babel, export, encryption, roam | 6 | case babel, export, encryption, roam |
| 7 | case widgets, watch, liveActivity, calendar, shortcuts | 7 | case widgets, watch, liveActivity, calendar, shortcuts |
Sources/OrgWatchData/WatchAgenda.swift +1 −1
| @@ -74,7 +74,7 @@ public struct WatchAgenda: Codable, Equatable, Sendable { | |||
| 74 | public var clock: Clock? | 74 | public var clock: Clock? |
| 75 | /// The most recently clocked entry, `org-clock-in-last`'s. | 75 | /// The most recently clocked entry, `org-clock-in-last`'s. |
| 76 | public var lastClocked: String? | 76 | public var lastClocked: String? |
| 77 | /// True when the phone hasn't got orgstar Pro, which the Watch app needs. | 77 | /// True when the phone hasn't got orgstar+, which the Watch app needs. |
| 78 | public var locked: Bool? | 78 | public var locked: Bool? |
| 79 | 79 | ||
| 80 | /// What the phone sends without Pro: no entries. | 80 | /// What the phone sends without Pro: no entries. |
Sources/Orgstar/CaptureIntent.swift +1 −1
| @@ -26,7 +26,7 @@ struct CaptureIntent: AppIntent { | |||
| 26 | @MainActor | 26 | @MainActor |
| 27 | func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog { | 27 | func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog { |
| 28 | // Launched for the intent, the window sets the models up shortly. | 28 | // Launched for the intent, the window sets the models up shortly. |
| 29 | guard ProAccess.shared.isUnlocked else { throw Failure(message: "Shortcuts actions need orgstar Pro") } | 29 | guard ProAccess.shared.isUnlocked else { throw Failure(message: "Shortcuts actions need orgstar+") } |
| 30 | for _ in 0..<50 where Self.environment == nil { try? await Task.sleep(for: .milliseconds(100)) } | 30 | for _ in 0..<50 where Self.environment == nil { try? await Task.sleep(for: .milliseconds(100)) } |
| 31 | guard let (workspace, session, clock, commands) = Self.environment else { throw Failure(message: "orgstar isn't ready") } | 31 | guard let (workspace, session, clock, commands) = Self.environment else { throw Failure(message: "orgstar isn't ready") } |
| 32 | let placed = session.capture( | 32 | let placed = session.capture( |
Sources/Orgstar/OrgstarApp.swift +3 −3
| @@ -650,7 +650,7 @@ struct SettingsView: View { | |||
| 650 | Tab("Appearance", systemImage: "paintpalette", value: "appearance") { appearance } | 650 | Tab("Appearance", systemImage: "paintpalette", value: "appearance") { appearance } |
| 651 | Tab("Agenda", systemImage: "calendar", value: "agenda") { agenda } | 651 | Tab("Agenda", systemImage: "calendar", value: "agenda") { agenda } |
| 652 | Tab("Capture", systemImage: "tray.and.arrow.down", value: "capture") { capture } | 652 | Tab("Capture", systemImage: "tray.and.arrow.down", value: "capture") { capture } |
| 653 | Tab("Pro", systemImage: "star", value: "pro") { LicenseForm() } | 653 | Tab("orgstar+", systemImage: "star", value: "pro") { LicenseForm() } |
| 654 | } | 654 | } |
| 655 | .frame(width: 600) | 655 | .frame(width: 600) |
| 656 | } | 656 | } |
| @@ -846,7 +846,7 @@ struct SettingsView: View { | |||
| 846 | Section { | 846 | Section { |
| 847 | Toggle("Show events from Calendar", isOn: $calendarEvents) | 847 | Toggle("Show events from Calendar", isOn: $calendarEvents) |
| 848 | .disabled(!ProAccess.shared.isUnlocked && !calendarEvents) | 848 | .disabled(!ProAccess.shared.isUnlocked && !calendarEvents) |
| 849 | .help(ProAccess.shared.isUnlocked ? "" : "Needs orgstar Pro") | 849 | .help(ProAccess.shared.isUnlocked ? "" : "Needs orgstar+") |
| 850 | if calendarEvents { | 850 | if calendarEvents { |
| 851 | choices(calendars, empty: CalendarEvents.isAuthorized ? "No calendars." : "Allow orgstar to read your calendars in System Settings ▸ Privacy & Security ▸ Calendars.", setting: $calendarEventCalendars) | 851 | choices(calendars, empty: CalendarEvents.isAuthorized ? "No calendars." : "Allow orgstar to read your calendars in System Settings ▸ Privacy & Security ▸ Calendars.", setting: $calendarEventCalendars) |
| 852 | } | 852 | } |
| @@ -861,7 +861,7 @@ struct SettingsView: View { | |||
| 861 | Section { | 861 | Section { |
| 862 | Toggle("Show reminders from Reminders", isOn: $agendaReminders) | 862 | Toggle("Show reminders from Reminders", isOn: $agendaReminders) |
| 863 | .disabled(!ProAccess.shared.isUnlocked && !agendaReminders) | 863 | .disabled(!ProAccess.shared.isUnlocked && !agendaReminders) |
| 864 | .help(ProAccess.shared.isUnlocked ? "" : "Needs orgstar Pro") | 864 | .help(ProAccess.shared.isUnlocked ? "" : "Needs orgstar+") |
| 865 | if agendaReminders { | 865 | if agendaReminders { |
| 866 | choices(reminderLists, empty: ReminderLists.isAuthorized ? "No lists." : "Allow orgstar to read your reminders in System Settings ▸ Privacy & Security ▸ Reminders.", setting: $agendaReminderLists) | 866 | choices(reminderLists, empty: ReminderLists.isAuthorized ? "No lists." : "Allow orgstar to read your reminders in System Settings ▸ Privacy & Security ▸ Reminders.", setting: $agendaReminderLists) |
| 867 | } | 867 | } |
Sources/Orgstar/ProLicense.swift +7 −7
| @@ -29,11 +29,11 @@ struct LicenseForm: View { | |||
| 29 | Section { | 29 | Section { |
| 30 | switch access.grant { | 30 | switch access.grant { |
| 31 | case .license: | 31 | case .license: |
| 32 | LabeledContent("orgstar Pro", value: license.map { "Licensed to \($0.email)" } ?? "Licensed") | 32 | LabeledContent("orgstar+", value: license.map { "Licensed to \($0.email)" } ?? "Licensed") |
| 33 | case .grandfathered: | 33 | case .grandfathered: |
| 34 | LabeledContent("orgstar Pro", value: "Included: you used orgstar before Pro") | 34 | LabeledContent("orgstar+", value: "Included: you used orgstar before orgstar+") |
| 35 | case .purchase, nil: | 35 | case .purchase, nil: |
| 36 | LabeledContent("orgstar Pro", value: "Not licensed") | 36 | LabeledContent("orgstar+", value: "Not licensed") |
| 37 | } | 37 | } |
| 38 | } | 38 | } |
| 39 | if access.grant != .license { | 39 | if access.grant != .license { |
| @@ -44,7 +44,7 @@ struct LicenseForm: View { | |||
| 44 | .onSubmit(activate) | 44 | .onSubmit(activate) |
| 45 | if let error { Text(error).foregroundStyle(.red) } | 45 | if let error { Text(error).foregroundStyle(.red) } |
| 46 | HStack { | 46 | HStack { |
| 47 | Link("Buy orgstar Pro…", destination: MacPro.buyURL) | 47 | Link("Buy orgstar+…", destination: MacPro.buyURL) |
| 48 | Spacer() | 48 | Spacer() |
| 49 | Button("Activate", action: activate).disabled(key.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty) | 49 | Button("Activate", action: activate).disabled(key.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty) |
| 50 | } | 50 | } |
| @@ -60,7 +60,7 @@ struct LicenseForm: View { | |||
| 60 | } | 60 | } |
| 61 | } | 61 | } |
| 62 | } | 62 | } |
| 63 | Section("Included in Pro") { | 63 | Section("Included in orgstar+") { |
| 64 | ForEach(ProFeature.macFeatures) { feature in | 64 | ForEach(ProFeature.macFeatures) { feature in |
| 65 | Label(feature.title, systemImage: feature.systemImage) | 65 | Label(feature.title, systemImage: feature.systemImage) |
| 66 | } | 66 | } |
| @@ -91,8 +91,8 @@ struct ProPaywallSheet: View { | |||
| 91 | var body: some View { | 91 | var body: some View { |
| 92 | VStack(alignment: .leading, spacing: 0) { | 92 | VStack(alignment: .leading, spacing: 0) { |
| 93 | VStack(alignment: .leading, spacing: 6) { | 93 | VStack(alignment: .leading, spacing: 6) { |
| 94 | Label("\(feature.title) needs orgstar Pro", systemImage: feature.systemImage).font(.headline) | 94 | Label("\(feature.title) needs orgstar+", systemImage: feature.systemImage).font(.headline) |
| 95 | Text("Pro is a one-time purchase of $39.99 for this Mac. Editing, the agenda, capture, clocking and search stay free.") | 95 | Text("orgstar+ is a one-time purchase of $39.99 for this Mac. Editing, the agenda, capture, clocking and search stay free.") |
| 96 | .foregroundStyle(.secondary) | 96 | .foregroundStyle(.secondary) |
| 97 | } | 97 | } |
| 98 | .padding([.horizontal, .top], 20) | 98 | .padding([.horizontal, .top], 20) |
Sources/OrgstarMobile/CaptureIntent.swift +1 −1
| @@ -23,7 +23,7 @@ struct CaptureIntent: AppIntent { | |||
| 23 | 23 | ||
| 24 | @MainActor | 24 | @MainActor |
| 25 | func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog { | 25 | func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog { |
| 26 | guard ProAccess.shared.isUnlocked else { throw Failure(message: "Shortcuts actions need orgstar Pro") } | 26 | guard ProAccess.shared.isUnlocked else { throw Failure(message: "Shortcuts actions need orgstar+") } |
| 27 | let model = MobileModel.shared | 27 | let model = MobileModel.shared |
| 28 | guard let workspace = model.workspace else { throw Failure(message: model.failure ?? "orgstar isn't ready") } | 28 | guard let workspace = model.workspace else { throw Failure(message: model.failure ?? "orgstar isn't ready") } |
| 29 | let placed = model.session.capture( | 29 | let placed = model.session.capture( |
Sources/OrgstarMobile/ExportMenu.swift +1 −1
| @@ -122,7 +122,7 @@ struct ExportMenu: View { | |||
| 122 | Menu("Export", systemImage: "square.and.arrow.up") { | 122 | Menu("Export", systemImage: "square.and.arrow.up") { |
| 123 | ForEach(OrgExport.Format.allCases, id: \.self) { format in | 123 | ForEach(OrgExport.Format.allCases, id: \.self) { format in |
| 124 | if format.locked { | 124 | if format.locked { |
| 125 | Button("\(format.name) (Pro)") { ProAccess.shared.allows(.export) } | 125 | Button("\(format.name) (orgstar+)") { ProAccess.shared.allows(.export) } |
| 126 | } else { | 126 | } else { |
| 127 | let export = OrgExport(text: text, path: path, format: format, settings: OrgPreferences.orgSettings(), | 127 | let export = OrgExport(text: text, path: path, format: format, settings: OrgPreferences.orgSettings(), |
| 128 | codeStyle: HTMLCodeStyle(highlighter: MobileEditor.highlighter, theme: model.theme)) | 128 | codeStyle: HTMLCodeStyle(highlighter: MobileEditor.highlighter, theme: model.theme)) |
Sources/OrgstarMobile/ProStore.swift +100 −21
| @@ -4,7 +4,7 @@ import StoreKit | |||
| 4 | import SwiftUI | 4 | import SwiftUI |
| 5 | import UIKit | 5 | import UIKit |
| 6 | 6 | ||
| 7 | /// orgstar Pro from the App Store: a monthly or yearly subscription, or a lifetime purchase. It | 7 | /// orgstar+ from the App Store: a monthly or yearly subscription, or a lifetime purchase. It |
| 8 | /// keeps `ProAccess.shared` current; installs from before Pro keep it without buying. | 8 | /// keeps `ProAccess.shared` current; installs from before Pro keep it without buying. |
| 9 | @MainActor @Observable | 9 | @MainActor @Observable |
| 10 | final class ProStore { | 10 | final class ProStore { |
| @@ -103,14 +103,37 @@ final class ProStore { | |||
| 103 | do { | 103 | do { |
| 104 | try await AppStore.sync() | 104 | try await AppStore.sync() |
| 105 | await refresh() | 105 | await refresh() |
| 106 | if !ProAccess.shared.isUnlocked { message = "No orgstar Pro purchase was found for this Apple Account." } | 106 | if !ProAccess.shared.isUnlocked { message = "No orgstar+ purchase was found for this Apple Account." } |
| 107 | } catch { | 107 | } catch { |
| 108 | message = "Restore didn't finish. \(error.localizedDescription)" | 108 | message = "Restore didn't finish. \(error.localizedDescription)" |
| 109 | } | 109 | } |
| 110 | } | 110 | } |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | /// What Pro includes, its prices, and buying, restoring or managing it. | 113 | /// orgstar+'s gold, for its banner in Settings and its screen. |
| 114 | extension ShapeStyle where Self == LinearGradient { | ||
| 115 | static var plusGold: LinearGradient { | ||
| 116 | LinearGradient( | ||
| 117 | colors: [Color(red: 1.0, green: 0.84, blue: 0.36), Color(red: 0.86, green: 0.6, blue: 0.12)], | ||
| 118 | startPoint: .topLeading, endPoint: .bottomTrailing) | ||
| 119 | } | ||
| 120 | } | ||
| 121 | |||
| 122 | /// The gold star that marks orgstar+. | ||
| 123 | struct PlusBadge: View { | ||
| 124 | var size: CGFloat = 46 | ||
| 125 | |||
| 126 | var body: some View { | ||
| 127 | Image(systemName: "star.fill") | ||
| 128 | .font(.system(size: size * 0.48, weight: .semibold)) | ||
| 129 | .foregroundStyle(.white) | ||
| 130 | .frame(width: size, height: size) | ||
| 131 | .background(.plusGold, in: .rect(cornerRadius: size * 0.24)) | ||
| 132 | .accessibilityHidden(true) | ||
| 133 | } | ||
| 134 | } | ||
| 135 | |||
| 136 | /// What orgstar+ includes, its prices, and buying, restoring or managing it. | ||
| 114 | struct ProScreen: View { | 137 | struct ProScreen: View { |
| 115 | /// The feature that led here, if any. | 138 | /// The feature that led here, if any. |
| 116 | var feature: ProFeature? | 139 | var feature: ProFeature? |
| @@ -122,17 +145,30 @@ struct ProScreen: View { | |||
| 122 | var body: some View { | 145 | var body: some View { |
| 123 | Form { | 146 | Form { |
| 124 | Section { | 147 | Section { |
| 125 | VStack(alignment: .leading, spacing: 6) { | 148 | VStack(spacing: 10) { |
| 149 | PlusBadge(size: 76) | ||
| 150 | .shadow(color: .orange.opacity(0.35), radius: 14, y: 6) | ||
| 151 | Text(verbatim: "orgstar+").font(.largeTitle.bold()) | ||
| 126 | if let feature, !access.isUnlocked { | 152 | if let feature, !access.isUnlocked { |
| 127 | Text("\(feature.title) needs orgstar Pro.").font(.headline) | 153 | Text("\(feature.title) needs orgstar+.").font(.headline) |
| 128 | } | 154 | } |
| 129 | Text(status).foregroundStyle(.secondary) | 155 | Text(status).foregroundStyle(.secondary) |
| 130 | } | 156 | } |
| 157 | .multilineTextAlignment(.center) | ||
| 158 | .frame(maxWidth: .infinity) | ||
| 159 | .padding(.vertical, 6) | ||
| 131 | } | 160 | } |
| 161 | .listRowBackground(Color.clear) | ||
| 132 | Section { | 162 | Section { |
| 133 | ForEach(ProFeature.allCases) { Label($0.title, systemImage: $0.systemImage) } | 163 | ForEach(ProFeature.allCases) { feature in |
| 164 | Label { | ||
| 165 | Text(feature.title) | ||
| 166 | } icon: { | ||
| 167 | Image(systemName: feature.systemImage).foregroundStyle(.plusGold) | ||
| 168 | } | ||
| 169 | } | ||
| 134 | } header: { | 170 | } header: { |
| 135 | Text("Included in Pro") | 171 | Text("Included in orgstar+") |
| 136 | } footer: { | 172 | } footer: { |
| 137 | Text("Editing, the agenda, capture, clocking, tables and search stay free.") | 173 | Text("Editing, the agenda, capture, clocking, tables and search stay free.") |
| 138 | } | 174 | } |
| @@ -142,16 +178,12 @@ struct ProScreen: View { | |||
| 142 | ProgressView().frame(maxWidth: .infinity) | 178 | ProgressView().frame(maxWidth: .infinity) |
| 143 | } | 179 | } |
| 144 | ForEach(store.products) { product in | 180 | ForEach(store.products) { product in |
| 145 | Button { Task { await store.buy(product) } } label: { | 181 | Button { Task { await store.buy(product) } } label: { plan(product) } |
| 146 | LabeledContent { | 182 | .tint(.primary) |
| 147 | Text(product.displayPrice + period(product)).monospacedDigit() | 183 | .disabled(store.busy || product.id == store.activeProductID) |
| 148 | } label: { | ||
| 149 | Text(product.displayName) | ||
| 150 | if product.id == store.activeProductID { Text("Current plan") } | ||
| 151 | } | ||
| 152 | } | ||
| 153 | .disabled(store.busy || product.id == store.activeProductID) | ||
| 154 | } | 184 | } |
| 185 | } header: { | ||
| 186 | Text("Choose a plan") | ||
| 155 | } footer: { | 187 | } footer: { |
| 156 | Text("Subscriptions renew automatically until cancelled in your Apple Account settings, at least 24 hours before the period ends.") | 188 | Text("Subscriptions renew automatically until cancelled in your Apple Account settings, at least 24 hours before the period ends.") |
| 157 | } | 189 | } |
| @@ -168,17 +200,64 @@ struct ProScreen: View { | |||
| 168 | Section { Text(message).foregroundStyle(.secondary) } | 200 | Section { Text(message).foregroundStyle(.secondary) } |
| 169 | } | 201 | } |
| 170 | } | 202 | } |
| 171 | .navigationTitle("orgstar Pro") | 203 | .navigationTitle(Text(verbatim: "orgstar+")) |
| 172 | .navigationBarTitleDisplayMode(.inline) | 204 | .navigationBarTitleDisplayMode(.inline) |
| 173 | .manageSubscriptionsSheet(isPresented: $managing) | 205 | .manageSubscriptionsSheet(isPresented: $managing) |
| 174 | .task { await store.loadProducts() } | 206 | .task { await store.loadProducts() } |
| 175 | } | 207 | } |
| 176 | 208 | ||
| 177 | private var status: String { | 209 | /// One plan: its name, an optional savings tag, what it bills, and its price. |
| 210 | private func plan(_ product: Product) -> some View { | ||
| 211 | HStack(alignment: .firstTextBaseline) { | ||
| 212 | VStack(alignment: .leading, spacing: 3) { | ||
| 213 | HStack(spacing: 6) { | ||
| 214 | Text(product.displayName).font(.headline) | ||
| 215 | if let percent = savings(product) { | ||
| 216 | Text("Save \(percent)%") | ||
| 217 | .font(.caption.bold()) | ||
| 218 | .foregroundStyle(.white) | ||
| 219 | .padding(.horizontal, 7) | ||
| 220 | .padding(.vertical, 2) | ||
| 221 | .background(.plusGold, in: .capsule) | ||
| 222 | } | ||
| 223 | } | ||
| 224 | detail(product).font(.subheadline).foregroundStyle(.secondary) | ||
| 225 | } | ||
| 226 | Spacer() | ||
| 227 | Text(product.displayPrice + period(product)) | ||
| 228 | .font(.headline) | ||
| 229 | .monospacedDigit() | ||
| 230 | .foregroundStyle(Color.accentColor) | ||
| 231 | } | ||
| 232 | .padding(.vertical, 4) | ||
| 233 | } | ||
| 234 | |||
| 235 | private func detail(_ product: Product) -> Text { | ||
| 236 | if product.id == store.activeProductID { return Text("Current plan") } | ||
| 237 | switch product.id { | ||
| 238 | case ProStore.monthly: return Text("Billed monthly") | ||
| 239 | case ProStore.yearly: | ||
| 240 | let perMonth = (product.price / 12).formatted(product.priceFormatStyle) | ||
| 241 | return Text("\(perMonth) a month, billed yearly") | ||
| 242 | default: return Text("One payment, no subscription") | ||
| 243 | } | ||
| 244 | } | ||
| 245 | |||
| 246 | /// How much the yearly plan saves against twelve months, in whole percent. | ||
| 247 | private func savings(_ product: Product) -> Int? { | ||
| 248 | guard product.id == ProStore.yearly, | ||
| 249 | let monthly = store.products.first(where: { $0.id == ProStore.monthly }), monthly.price > 0 | ||
| 250 | else { return nil } | ||
| 251 | let ratio = NSDecimalNumber(decimal: product.price / (monthly.price * 12)).doubleValue | ||
| 252 | let percent = Int((1 - ratio) * 100) | ||
| 253 | return percent > 0 ? percent : nil | ||
| 254 | } | ||
| 255 | |||
| 256 | private var status: LocalizedStringKey { | ||
| 178 | switch access.grant { | 257 | switch access.grant { |
| 179 | case .grandfathered: "Pro is included: you downloaded orgstar before Pro. Thank you." | 258 | case .grandfathered: "Included, because you downloaded orgstar before orgstar+ existed. Thank you." |
| 180 | case .purchase: store.activeProductID == ProStore.lifetime ? "You own orgstar Pro." : "Your orgstar Pro subscription is active." | 259 | case .purchase: store.activeProductID == ProStore.lifetime ? "You own orgstar+. Thank you for supporting orgstar." : "Your orgstar+ subscription is active. Thank you for supporting orgstar." |
| 181 | case .license, nil: "Pro adds power features and Apple integrations." | 260 | case .license, nil: "Power features and Apple integrations, on top of everything that stays free." |
| 182 | } | 261 | } |
| 183 | } | 262 | } |
| 184 | 263 | ||
Sources/OrgstarMobile/SettingsScreen.swift +39 −5
| @@ -25,6 +25,14 @@ struct SettingsScreen: View { | |||
| 25 | 25 | ||
| 26 | var body: some View { | 26 | var body: some View { |
| 27 | Form { | 27 | Form { |
| 28 | Section { | ||
| 29 | NavigationLink { | ||
| 30 | ProScreen() | ||
| 31 | } label: { | ||
| 32 | ProBanner() | ||
| 33 | } | ||
| 34 | } | ||
| 35 | .listRowBackground(ProBanner.rowBackground) | ||
| 28 | Section { | 36 | Section { |
| 29 | LabeledContent("Folder", value: model.configFolder?.lastPathComponent ?? String(localized: "none.folder", defaultValue: "None", comment: "No configuration folder chosen")) | 37 | LabeledContent("Folder", value: model.configFolder?.lastPathComponent ?? String(localized: "none.folder", defaultValue: "None", comment: "No configuration folder chosen")) |
| 30 | Button(model.configFolder == nil ? "Choose Folder…" : "Choose Another Folder…") { choosing = true } | 38 | Button(model.configFolder == nil ? "Choose Folder…" : "Choose Another Folder…") { choosing = true } |
| @@ -127,11 +135,6 @@ struct SettingsScreen: View { | |||
| 127 | LabeledContent("Font", value: font) | 135 | LabeledContent("Font", value: font) |
| 128 | } | 136 | } |
| 129 | Section { | 137 | Section { |
| 130 | NavigationLink { | ||
| 131 | ProScreen() | ||
| 132 | } label: { | ||
| 133 | Label("orgstar Pro", systemImage: "star") | ||
| 134 | } | ||
| 135 | NavigationLink { | 138 | NavigationLink { |
| 136 | AboutScreen(appIcon: appIcon) | 139 | AboutScreen(appIcon: appIcon) |
| 137 | } label: { | 140 | } label: { |
| @@ -292,6 +295,37 @@ struct SettingsScreen: View { | |||
| 292 | .joined(separator: "; ") | 295 | .joined(separator: "; ") |
| 293 | } | 296 | } |
| 294 | } | 297 | } |
| 298 | /// The orgstar+ row at the top of Settings. | ||
| 299 | private struct ProBanner: View { | ||
| 300 | private var access: ProAccess { .shared } | ||
| 301 | |||
| 302 | static var rowBackground: some View { | ||
| 303 | ZStack { | ||
| 304 | Color(uiColor: .secondarySystemGroupedBackground) | ||
| 305 | LinearGradient.plusGold.opacity(0.22) | ||
| 306 | } | ||
| 307 | } | ||
| 308 | |||
| 309 | var body: some View { | ||
| 310 | HStack(spacing: 14) { | ||
| 311 | PlusBadge() | ||
| 312 | VStack(alignment: .leading, spacing: 3) { | ||
| 313 | Text(verbatim: "orgstar+").font(.headline) | ||
| 314 | Group { | ||
| 315 | if access.isUnlocked { | ||
| 316 | Text("Unlocked. Thanks for supporting orgstar.") | ||
| 317 | } else { | ||
| 318 | Text("Export, encryption, widgets, the Watch app and more") | ||
| 319 | } | ||
| 320 | } | ||
| 321 | .font(.subheadline) | ||
| 322 | .foregroundStyle(.secondary) | ||
| 323 | } | ||
| 324 | } | ||
| 325 | .padding(.vertical, 6) | ||
| 326 | } | ||
| 327 | } | ||
| 328 | |||
| 295 | /// The configuration folder's `config.toml` as plain text, saved when you tap Save or leave. | 329 | /// The configuration folder's `config.toml` as plain text, saved when you tap Save or leave. |
| 296 | struct ConfigFileEditor: View { | 330 | struct ConfigFileEditor: View { |
| 297 | let model: MobileModel | 331 | let model: MobileModel |
Sources/OrgstarWatch/WatchApp.swift +1 −1
| @@ -99,7 +99,7 @@ struct AgendaList: View { | |||
| 99 | var body: some View { | 99 | var body: some View { |
| 100 | if link.agenda?.locked == true { | 100 | if link.agenda?.locked == true { |
| 101 | ScrollView { | 101 | ScrollView { |
| 102 | Text("The Watch app needs orgstar Pro. Get it in orgstar on your iPhone, in Settings.") | 102 | Text("The Watch app needs orgstar+. Get it in orgstar on your iPhone, in Settings.") |
| 103 | .foregroundStyle(.secondary) | 103 | .foregroundStyle(.secondary) |
| 104 | } | 104 | } |
| 105 | .navigationTitle("Today") | 105 | .navigationTitle("Today") |
Sources/OrgstarWidgets/HabitsWidget.swift +1 −1
| @@ -53,7 +53,7 @@ struct HabitsView: View { | |||
| 53 | if let snapshot = entry.snapshot, !snapshot.habits.isEmpty { | 53 | if let snapshot = entry.snapshot, !snapshot.habits.isEmpty { |
| 54 | content(snapshot) | 54 | content(snapshot) |
| 55 | } else { | 55 | } else { |
| 56 | Text(entry.snapshot == nil ? !widgetsLocked ? "Open orgstar to show your habits here." : "Widgets need orgstar Pro." : "No habits in the agenda. Give an entry STYLE: habit.") | 56 | Text(entry.snapshot == nil ? !widgetsLocked ? "Open orgstar to show your habits here." : "Widgets need orgstar+." : "No habits in the agenda. Give an entry STYLE: habit.") |
| 57 | .font(.caption) | 57 | .font(.caption) |
| 58 | .foregroundStyle(.secondary) | 58 | .foregroundStyle(.secondary) |
| 59 | .frame(maxWidth: .infinity, maxHeight: .infinity) | 59 | .frame(maxWidth: .infinity, maxHeight: .infinity) |
Sources/OrgstarWidgets/TodayWidget.swift +1 −1
| @@ -25,7 +25,7 @@ struct TodayView: View { | |||
| 25 | if let snapshot = entry.snapshot { | 25 | if let snapshot = entry.snapshot { |
| 26 | content(snapshot) | 26 | content(snapshot) |
| 27 | } else { | 27 | } else { |
| 28 | Text(!widgetsLocked ? "Open orgstar to show your agenda here." : "Widgets need orgstar Pro.") | 28 | Text(!widgetsLocked ? "Open orgstar to show your agenda here." : "Widgets need orgstar+.") |
| 29 | .font(.caption) | 29 | .font(.caption) |
| 30 | .foregroundStyle(.secondary) | 30 | .foregroundStyle(.secondary) |
| 31 | .frame(maxWidth: .infinity, maxHeight: .infinity) | 31 | .frame(maxWidth: .infinity, maxHeight: .infinity) |
Sources/OrgstarWidgets/UpNextWidget.swift +1 −1
| @@ -64,7 +64,7 @@ struct UpNextView: View { | |||
| 64 | } else { | 64 | } else { |
| 65 | VStack(alignment: .leading, spacing: 0) { | 65 | VStack(alignment: .leading, spacing: 0) { |
| 66 | Text("Agenda").font(.headline).widgetAccentable() | 66 | Text("Agenda").font(.headline).widgetAccentable() |
| 67 | Text(entry.snapshot == nil ? !widgetsLocked ? "Open orgstar" : "Needs orgstar Pro" : "Nothing left today").font(.body) | 67 | Text(entry.snapshot == nil ? !widgetsLocked ? "Open orgstar" : "Needs orgstar+" : "Nothing left today").font(.body) |
| 68 | } | 68 | } |
| 69 | .frame(maxWidth: .infinity, alignment: .leading) | 69 | .frame(maxWidth: .infinity, alignment: .leading) |
| 70 | } | 70 | } |
ios/AppStore/metadata.md +2 −2
| @@ -40,7 +40,7 @@ AND MORE | |||
| 40 | - Themes and settings read from the same configuration folder as the Mac app | 40 | - Themes and settings read from the same configuration folder as the Mac app |
| 41 | 41 | ||
| 42 | ORGSTAR PRO | 42 | ORGSTAR PRO |
| 43 | Editing, the agenda, capture, clocking, tables and search are free. Pro, monthly, yearly or as a one-time lifetime purchase, adds: | 43 | Editing, the agenda, capture, clocking, tables and search are free. orgstar+, monthly, yearly or as a one-time lifetime purchase, adds: |
| 44 | - Running and tangling source blocks | 44 | - Running and tangling source blocks |
| 45 | - PDF, Word and rich text export | 45 | - PDF, Word and rich text export |
| 46 | - Encrypted entries | 46 | - Encrypted entries |
| @@ -48,7 +48,7 @@ Editing, the agenda, capture, clocking, tables and search are free. Pro, monthly | |||
| 48 | - Widgets, the Apple Watch app and the clock Live Activity | 48 | - Widgets, the Apple Watch app and the clock Live Activity |
| 49 | - Calendar events and reminders in the agenda | 49 | - Calendar events and reminders in the agenda |
| 50 | - Shortcuts actions | 50 | - Shortcuts actions |
| 51 | Everyone who downloaded orgstar before Pro keeps all of it. | 51 | Everyone who downloaded orgstar before orgstar+ keeps all of it. |
| 52 | 52 | ||
| 53 | ## Keywords | 53 | ## Keywords |
| 54 | 54 | ||
ios/Orgstar.storekit +8 −8
| @@ -18,13 +18,13 @@ | |||
| 18 | "internalID": "6700000003", | 18 | "internalID": "6700000003", |
| 19 | "localizations": [ | 19 | "localizations": [ |
| 20 | { | 20 | { |
| 21 | "description": "orgstar Pro, once, for good", | 21 | "description": "orgstar+, once, for good", |
| 22 | "displayName": "Pro Lifetime", | 22 | "displayName": "orgstar+ Lifetime", |
| 23 | "locale": "en_US" | 23 | "locale": "en_US" |
| 24 | } | 24 | } |
| 25 | ], | 25 | ], |
| 26 | "productID": "sh.krz.orgstar.pro.lifetime", | 26 | "productID": "sh.krz.orgstar.pro.lifetime", |
| 27 | "referenceName": "Pro Lifetime", | 27 | "referenceName": "orgstar+ Lifetime", |
| 28 | "type": "NonConsumable" | 28 | "type": "NonConsumable" |
| 29 | } | 29 | } |
| 30 | ], | 30 | ], |
| @@ -44,7 +44,7 @@ | |||
| 44 | { | 44 | { |
| 45 | "id": "21600001", | 45 | "id": "21600001", |
| 46 | "localizations": [], | 46 | "localizations": [], |
| 47 | "name": "orgstar Pro", | 47 | "name": "orgstar+", |
| 48 | "subscriptions": [ | 48 | "subscriptions": [ |
| 49 | { | 49 | { |
| 50 | "adHocOffers": [], | 50 | "adHocOffers": [], |
| @@ -57,13 +57,13 @@ | |||
| 57 | "localizations": [ | 57 | "localizations": [ |
| 58 | { | 58 | { |
| 59 | "description": "Power features and Apple integrations", | 59 | "description": "Power features and Apple integrations", |
| 60 | "displayName": "Pro Yearly", | 60 | "displayName": "orgstar+ Yearly", |
| 61 | "locale": "en_US" | 61 | "locale": "en_US" |
| 62 | } | 62 | } |
| 63 | ], | 63 | ], |
| 64 | "productID": "sh.krz.orgstar.pro.yearly", | 64 | "productID": "sh.krz.orgstar.pro.yearly", |
| 65 | "recurringSubscriptionPeriod": "P1Y", | 65 | "recurringSubscriptionPeriod": "P1Y", |
| 66 | "referenceName": "Pro Yearly", | 66 | "referenceName": "orgstar+ Yearly", |
| 67 | "subscriptionGroupID": "21600001", | 67 | "subscriptionGroupID": "21600001", |
| 68 | "type": "RecurringSubscription", | 68 | "type": "RecurringSubscription", |
| 69 | "winbackOffers": [] | 69 | "winbackOffers": [] |
| @@ -79,13 +79,13 @@ | |||
| 79 | "localizations": [ | 79 | "localizations": [ |
| 80 | { | 80 | { |
| 81 | "description": "Power features and Apple integrations", | 81 | "description": "Power features and Apple integrations", |
| 82 | "displayName": "Pro Monthly", | 82 | "displayName": "orgstar+ Monthly", |
| 83 | "locale": "en_US" | 83 | "locale": "en_US" |
| 84 | } | 84 | } |
| 85 | ], | 85 | ], |
| 86 | "productID": "sh.krz.orgstar.pro.monthly", | 86 | "productID": "sh.krz.orgstar.pro.monthly", |
| 87 | "recurringSubscriptionPeriod": "P1M", | 87 | "recurringSubscriptionPeriod": "P1M", |
| 88 | "referenceName": "Pro Monthly", | 88 | "referenceName": "orgstar+ Monthly", |
| 89 | "subscriptionGroupID": "21600001", | 89 | "subscriptionGroupID": "21600001", |
| 90 | "type": "RecurringSubscription", | 90 | "type": "RecurringSubscription", |
| 91 | "winbackOffers": [] | 91 | "winbackOffers": [] |
ios/Orgstar.xcodeproj/project.pbxproj +24 −24
| @@ -759,7 +759,7 @@ | |||
| 759 | isa = XCBuildConfiguration; | 759 | isa = XCBuildConfiguration; |
| 760 | buildSettings = { | 760 | buildSettings = { |
| 761 | CODE_SIGN_STYLE = Automatic; | 761 | CODE_SIGN_STYLE = Automatic; |
| 762 | CURRENT_PROJECT_VERSION = 16; | 762 | CURRENT_PROJECT_VERSION = 17; |
| 763 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 763 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 764 | GENERATE_INFOPLIST_FILE = NO; | 764 | GENERATE_INFOPLIST_FILE = NO; |
| 765 | INFOPLIST_FILE = OrgstarQuickLook/Info.plist; | 765 | INFOPLIST_FILE = OrgstarQuickLook/Info.plist; |
| @@ -768,7 +768,7 @@ | |||
| 768 | "@executable_path/Frameworks", | 768 | "@executable_path/Frameworks", |
| 769 | "@executable_path/../../Frameworks", | 769 | "@executable_path/../../Frameworks", |
| 770 | ); | 770 | ); |
| 771 | MARKETING_VERSION = 0.9.2; | 771 | MARKETING_VERSION = 1.0.0; |
| 772 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.quicklook; | 772 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.quicklook; |
| 773 | PRODUCT_NAME = "$(TARGET_NAME)"; | 773 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 774 | SKIP_INSTALL = YES; | 774 | SKIP_INSTALL = YES; |
| @@ -781,7 +781,7 @@ | |||
| 781 | buildSettings = { | 781 | buildSettings = { |
| 782 | CODE_SIGN_ENTITLEMENTS = OrgstarShare/OrgstarShare.entitlements; | 782 | CODE_SIGN_ENTITLEMENTS = OrgstarShare/OrgstarShare.entitlements; |
| 783 | CODE_SIGN_STYLE = Automatic; | 783 | CODE_SIGN_STYLE = Automatic; |
| 784 | CURRENT_PROJECT_VERSION = 16; | 784 | CURRENT_PROJECT_VERSION = 17; |
| 785 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 785 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 786 | GENERATE_INFOPLIST_FILE = NO; | 786 | GENERATE_INFOPLIST_FILE = NO; |
| 787 | INFOPLIST_FILE = OrgstarShare/Info.plist; | 787 | INFOPLIST_FILE = OrgstarShare/Info.plist; |
| @@ -790,7 +790,7 @@ | |||
| 790 | "@executable_path/Frameworks", | 790 | "@executable_path/Frameworks", |
| 791 | "@executable_path/../../Frameworks", | 791 | "@executable_path/../../Frameworks", |
| 792 | ); | 792 | ); |
| 793 | MARKETING_VERSION = 0.9.2; | 793 | MARKETING_VERSION = 1.0.0; |
| 794 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.share; | 794 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.share; |
| 795 | PRODUCT_NAME = "$(TARGET_NAME)"; | 795 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 796 | SKIP_INSTALL = YES; | 796 | SKIP_INSTALL = YES; |
| @@ -803,7 +803,7 @@ | |||
| 803 | buildSettings = { | 803 | buildSettings = { |
| 804 | CODE_SIGN_ENTITLEMENTS = OrgstarShare/OrgstarShare.entitlements; | 804 | CODE_SIGN_ENTITLEMENTS = OrgstarShare/OrgstarShare.entitlements; |
| 805 | CODE_SIGN_STYLE = Automatic; | 805 | CODE_SIGN_STYLE = Automatic; |
| 806 | CURRENT_PROJECT_VERSION = 16; | 806 | CURRENT_PROJECT_VERSION = 17; |
| 807 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 807 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 808 | GENERATE_INFOPLIST_FILE = NO; | 808 | GENERATE_INFOPLIST_FILE = NO; |
| 809 | INFOPLIST_FILE = OrgstarShare/Info.plist; | 809 | INFOPLIST_FILE = OrgstarShare/Info.plist; |
| @@ -812,7 +812,7 @@ | |||
| 812 | "@executable_path/Frameworks", | 812 | "@executable_path/Frameworks", |
| 813 | "@executable_path/../../Frameworks", | 813 | "@executable_path/../../Frameworks", |
| 814 | ); | 814 | ); |
| 815 | MARKETING_VERSION = 0.9.2; | 815 | MARKETING_VERSION = 1.0.0; |
| 816 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.share; | 816 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.share; |
| 817 | PRODUCT_NAME = "$(TARGET_NAME)"; | 817 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 818 | SKIP_INSTALL = YES; | 818 | SKIP_INSTALL = YES; |
| @@ -827,7 +827,7 @@ | |||
| 827 | ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; | 827 | ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; |
| 828 | CODE_SIGN_ENTITLEMENTS = Orgstar/Orgstar.entitlements; | 828 | CODE_SIGN_ENTITLEMENTS = Orgstar/Orgstar.entitlements; |
| 829 | CODE_SIGN_STYLE = Automatic; | 829 | CODE_SIGN_STYLE = Automatic; |
| 830 | CURRENT_PROJECT_VERSION = 16; | 830 | CURRENT_PROJECT_VERSION = 17; |
| 831 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 831 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 832 | GENERATE_INFOPLIST_FILE = NO; | 832 | GENERATE_INFOPLIST_FILE = NO; |
| 833 | INFOPLIST_FILE = Orgstar/Info.plist; | 833 | INFOPLIST_FILE = Orgstar/Info.plist; |
| @@ -837,7 +837,7 @@ | |||
| 837 | "$(inherited)", | 837 | "$(inherited)", |
| 838 | "@executable_path/Frameworks", | 838 | "@executable_path/Frameworks", |
| 839 | ); | 839 | ); |
| 840 | MARKETING_VERSION = 0.9.2; | 840 | MARKETING_VERSION = 1.0.0; |
| 841 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar; | 841 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar; |
| 842 | PRODUCT_MODULE_NAME = OrgstarMobile; | 842 | PRODUCT_MODULE_NAME = OrgstarMobile; |
| 843 | PRODUCT_NAME = Orgstar; | 843 | PRODUCT_NAME = Orgstar; |
| @@ -850,7 +850,7 @@ | |||
| 850 | buildSettings = { | 850 | buildSettings = { |
| 851 | CODE_SIGN_ENTITLEMENTS = OrgstarWidgets/OrgstarWidgets.entitlements; | 851 | CODE_SIGN_ENTITLEMENTS = OrgstarWidgets/OrgstarWidgets.entitlements; |
| 852 | CODE_SIGN_STYLE = Automatic; | 852 | CODE_SIGN_STYLE = Automatic; |
| 853 | CURRENT_PROJECT_VERSION = 16; | 853 | CURRENT_PROJECT_VERSION = 17; |
| 854 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 854 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 855 | GENERATE_INFOPLIST_FILE = NO; | 855 | GENERATE_INFOPLIST_FILE = NO; |
| 856 | INFOPLIST_FILE = OrgstarWidgets/Info.plist; | 856 | INFOPLIST_FILE = OrgstarWidgets/Info.plist; |
| @@ -860,7 +860,7 @@ | |||
| 860 | "@executable_path/Frameworks", | 860 | "@executable_path/Frameworks", |
| 861 | "@executable_path/../../Frameworks", | 861 | "@executable_path/../../Frameworks", |
| 862 | ); | 862 | ); |
| 863 | MARKETING_VERSION = 0.9.2; | 863 | MARKETING_VERSION = 1.0.0; |
| 864 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.widgets; | 864 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.widgets; |
| 865 | PRODUCT_NAME = "$(TARGET_NAME)"; | 865 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 866 | SKIP_INSTALL = YES; | 866 | SKIP_INSTALL = YES; |
| @@ -872,7 +872,7 @@ | |||
| 872 | isa = XCBuildConfiguration; | 872 | isa = XCBuildConfiguration; |
| 873 | buildSettings = { | 873 | buildSettings = { |
| 874 | CODE_SIGN_STYLE = Automatic; | 874 | CODE_SIGN_STYLE = Automatic; |
| 875 | CURRENT_PROJECT_VERSION = 16; | 875 | CURRENT_PROJECT_VERSION = 17; |
| 876 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 876 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 877 | GENERATE_INFOPLIST_FILE = NO; | 877 | GENERATE_INFOPLIST_FILE = NO; |
| 878 | INFOPLIST_FILE = OrgstarQuickLook/Info.plist; | 878 | INFOPLIST_FILE = OrgstarQuickLook/Info.plist; |
| @@ -881,7 +881,7 @@ | |||
| 881 | "@executable_path/Frameworks", | 881 | "@executable_path/Frameworks", |
| 882 | "@executable_path/../../Frameworks", | 882 | "@executable_path/../../Frameworks", |
| 883 | ); | 883 | ); |
| 884 | MARKETING_VERSION = 0.9.2; | 884 | MARKETING_VERSION = 1.0.0; |
| 885 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.quicklook; | 885 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.quicklook; |
| 886 | PRODUCT_NAME = "$(TARGET_NAME)"; | 886 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 887 | SKIP_INSTALL = YES; | 887 | SKIP_INSTALL = YES; |
| @@ -913,7 +913,7 @@ | |||
| 913 | ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; | 913 | ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; |
| 914 | CODE_SIGN_ENTITLEMENTS = Orgstar/Orgstar.entitlements; | 914 | CODE_SIGN_ENTITLEMENTS = Orgstar/Orgstar.entitlements; |
| 915 | CODE_SIGN_STYLE = Automatic; | 915 | CODE_SIGN_STYLE = Automatic; |
| 916 | CURRENT_PROJECT_VERSION = 16; | 916 | CURRENT_PROJECT_VERSION = 17; |
| 917 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 917 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 918 | GENERATE_INFOPLIST_FILE = NO; | 918 | GENERATE_INFOPLIST_FILE = NO; |
| 919 | INFOPLIST_FILE = Orgstar/Info.plist; | 919 | INFOPLIST_FILE = Orgstar/Info.plist; |
| @@ -923,7 +923,7 @@ | |||
| 923 | "$(inherited)", | 923 | "$(inherited)", |
| 924 | "@executable_path/Frameworks", | 924 | "@executable_path/Frameworks", |
| 925 | ); | 925 | ); |
| 926 | MARKETING_VERSION = 0.9.2; | 926 | MARKETING_VERSION = 1.0.0; |
| 927 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar; | 927 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar; |
| 928 | PRODUCT_MODULE_NAME = OrgstarMobile; | 928 | PRODUCT_MODULE_NAME = OrgstarMobile; |
| 929 | PRODUCT_NAME = Orgstar; | 929 | PRODUCT_NAME = Orgstar; |
| @@ -936,7 +936,7 @@ | |||
| 936 | buildSettings = { | 936 | buildSettings = { |
| 937 | CODE_SIGN_ENTITLEMENTS = OrgstarWidgets/OrgstarWidgets.entitlements; | 937 | CODE_SIGN_ENTITLEMENTS = OrgstarWidgets/OrgstarWidgets.entitlements; |
| 938 | CODE_SIGN_STYLE = Automatic; | 938 | CODE_SIGN_STYLE = Automatic; |
| 939 | CURRENT_PROJECT_VERSION = 16; | 939 | CURRENT_PROJECT_VERSION = 17; |
| 940 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 940 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 941 | GENERATE_INFOPLIST_FILE = NO; | 941 | GENERATE_INFOPLIST_FILE = NO; |
| 942 | INFOPLIST_FILE = OrgstarWidgets/Info.plist; | 942 | INFOPLIST_FILE = OrgstarWidgets/Info.plist; |
| @@ -946,7 +946,7 @@ | |||
| 946 | "@executable_path/Frameworks", | 946 | "@executable_path/Frameworks", |
| 947 | "@executable_path/../../Frameworks", | 947 | "@executable_path/../../Frameworks", |
| 948 | ); | 948 | ); |
| 949 | MARKETING_VERSION = 0.9.2; | 949 | MARKETING_VERSION = 1.0.0; |
| 950 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.widgets; | 950 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.widgets; |
| 951 | PRODUCT_NAME = "$(TARGET_NAME)"; | 951 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 952 | SKIP_INSTALL = YES; | 952 | SKIP_INSTALL = YES; |
| @@ -980,7 +980,7 @@ | |||
| 980 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | 980 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 981 | CODE_SIGN_ENTITLEMENTS = OrgstarWatch/OrgstarWatch.entitlements; | 981 | CODE_SIGN_ENTITLEMENTS = OrgstarWatch/OrgstarWatch.entitlements; |
| 982 | CODE_SIGN_STYLE = Automatic; | 982 | CODE_SIGN_STYLE = Automatic; |
| 983 | CURRENT_PROJECT_VERSION = 16; | 983 | CURRENT_PROJECT_VERSION = 17; |
| 984 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 984 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 985 | GENERATE_INFOPLIST_FILE = NO; | 985 | GENERATE_INFOPLIST_FILE = NO; |
| 986 | INFOPLIST_FILE = OrgstarWatch/Info.plist; | 986 | INFOPLIST_FILE = OrgstarWatch/Info.plist; |
| @@ -988,7 +988,7 @@ | |||
| 988 | "$(inherited)", | 988 | "$(inherited)", |
| 989 | "@executable_path/Frameworks", | 989 | "@executable_path/Frameworks", |
| 990 | ); | 990 | ); |
| 991 | MARKETING_VERSION = 0.9.2; | 991 | MARKETING_VERSION = 1.0.0; |
| 992 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.watchkitapp; | 992 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.watchkitapp; |
| 993 | PRODUCT_NAME = "$(TARGET_NAME)"; | 993 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 994 | SDKROOT = watchos; | 994 | SDKROOT = watchos; |
| @@ -1005,7 +1005,7 @@ | |||
| 1005 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | 1005 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 1006 | CODE_SIGN_ENTITLEMENTS = OrgstarWatch/OrgstarWatch.entitlements; | 1006 | CODE_SIGN_ENTITLEMENTS = OrgstarWatch/OrgstarWatch.entitlements; |
| 1007 | CODE_SIGN_STYLE = Automatic; | 1007 | CODE_SIGN_STYLE = Automatic; |
| 1008 | CURRENT_PROJECT_VERSION = 16; | 1008 | CURRENT_PROJECT_VERSION = 17; |
| 1009 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 1009 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 1010 | GENERATE_INFOPLIST_FILE = NO; | 1010 | GENERATE_INFOPLIST_FILE = NO; |
| 1011 | INFOPLIST_FILE = OrgstarWatch/Info.plist; | 1011 | INFOPLIST_FILE = OrgstarWatch/Info.plist; |
| @@ -1013,7 +1013,7 @@ | |||
| 1013 | "$(inherited)", | 1013 | "$(inherited)", |
| 1014 | "@executable_path/Frameworks", | 1014 | "@executable_path/Frameworks", |
| 1015 | ); | 1015 | ); |
| 1016 | MARKETING_VERSION = 0.9.2; | 1016 | MARKETING_VERSION = 1.0.0; |
| 1017 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.watchkitapp; | 1017 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.watchkitapp; |
| 1018 | PRODUCT_NAME = "$(TARGET_NAME)"; | 1018 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 1019 | SDKROOT = watchos; | 1019 | SDKROOT = watchos; |
| @@ -1030,7 +1030,7 @@ | |||
| 1030 | SKIP_INSTALL = YES; | 1030 | SKIP_INSTALL = YES; |
| 1031 | CODE_SIGN_ENTITLEMENTS = OrgstarWatchWidgets/OrgstarWatchWidgets.entitlements; | 1031 | CODE_SIGN_ENTITLEMENTS = OrgstarWatchWidgets/OrgstarWatchWidgets.entitlements; |
| 1032 | CODE_SIGN_STYLE = Automatic; | 1032 | CODE_SIGN_STYLE = Automatic; |
| 1033 | CURRENT_PROJECT_VERSION = 16; | 1033 | CURRENT_PROJECT_VERSION = 17; |
| 1034 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 1034 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 1035 | GENERATE_INFOPLIST_FILE = NO; | 1035 | GENERATE_INFOPLIST_FILE = NO; |
| 1036 | INFOPLIST_FILE = OrgstarWatchWidgets/Info.plist; | 1036 | INFOPLIST_FILE = OrgstarWatchWidgets/Info.plist; |
| @@ -1039,7 +1039,7 @@ | |||
| 1039 | "@executable_path/Frameworks", | 1039 | "@executable_path/Frameworks", |
| 1040 | "@executable_path/../../Frameworks", | 1040 | "@executable_path/../../Frameworks", |
| 1041 | ); | 1041 | ); |
| 1042 | MARKETING_VERSION = 0.9.2; | 1042 | MARKETING_VERSION = 1.0.0; |
| 1043 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.watchkitapp.widgets; | 1043 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.watchkitapp.widgets; |
| 1044 | PRODUCT_NAME = "$(TARGET_NAME)"; | 1044 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 1045 | SDKROOT = watchos; | 1045 | SDKROOT = watchos; |
| @@ -1055,7 +1055,7 @@ | |||
| 1055 | SKIP_INSTALL = YES; | 1055 | SKIP_INSTALL = YES; |
| 1056 | CODE_SIGN_ENTITLEMENTS = OrgstarWatchWidgets/OrgstarWatchWidgets.entitlements; | 1056 | CODE_SIGN_ENTITLEMENTS = OrgstarWatchWidgets/OrgstarWatchWidgets.entitlements; |
| 1057 | CODE_SIGN_STYLE = Automatic; | 1057 | CODE_SIGN_STYLE = Automatic; |
| 1058 | CURRENT_PROJECT_VERSION = 16; | 1058 | CURRENT_PROJECT_VERSION = 17; |
| 1059 | DEVELOPMENT_TEAM = ZCNAX3VL9D; | 1059 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 1060 | GENERATE_INFOPLIST_FILE = NO; | 1060 | GENERATE_INFOPLIST_FILE = NO; |
| 1061 | INFOPLIST_FILE = OrgstarWatchWidgets/Info.plist; | 1061 | INFOPLIST_FILE = OrgstarWatchWidgets/Info.plist; |
| @@ -1064,7 +1064,7 @@ | |||
| 1064 | "@executable_path/Frameworks", | 1064 | "@executable_path/Frameworks", |
| 1065 | "@executable_path/../../Frameworks", | 1065 | "@executable_path/../../Frameworks", |
| 1066 | ); | 1066 | ); |
| 1067 | MARKETING_VERSION = 0.9.2; | 1067 | MARKETING_VERSION = 1.0.0; |
| 1068 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.watchkitapp.widgets; | 1068 | PRODUCT_BUNDLE_IDENTIFIER = sh.krz.orgstar.watchkitapp.widgets; |
| 1069 | PRODUCT_NAME = "$(TARGET_NAME)"; | 1069 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 1070 | SDKROOT = watchos; | 1070 | SDKROOT = watchos; |
packaging/license-issuer/buy.html +1 −1
| @@ -1,7 +1,7 @@ | |||
| 1 | <!-- The Buy button for krz.sh/apps/orgstar/buy (the domain Paddle approves). Fill in the client | 1 | <!-- The Buy button for krz.sh/apps/orgstar/buy (the domain Paddle approves). Fill in the client |
| 2 | token and price ID; after checkout the buyer lands on the Worker's page with their key. --> | 2 | token and price ID; after checkout the buyer lands on the Worker's page with their key. --> |
| 3 | <script src="https://cdn.paddle.com/paddle/v2/paddle.js"></script> | 3 | <script src="https://cdn.paddle.com/paddle/v2/paddle.js"></script> |
| 4 | <button id="buy">Buy orgstar Pro for Mac, $39.99</button> | 4 | <button id="buy">Buy orgstar+ for Mac, $39.99</button> |
| 5 | <script> | 5 | <script> |
| 6 | const ISSUER = "https://orgstar-license.REPLACE_ME.workers.dev/license"; | 6 | const ISSUER = "https://orgstar-license.REPLACE_ME.workers.dev/license"; |
| 7 | Paddle.Initialize({ | 7 | Paddle.Initialize({ |
packaging/license-issuer/worker.js +5 −5
| @@ -24,7 +24,7 @@ export default { | |||
| 24 | const { data } = await response.json(); | 24 | const { data } = await response.json(); |
| 25 | const paid = data.status === "completed" || data.status === "paid"; | 25 | const paid = data.status === "completed" || data.status === "paid"; |
| 26 | const forOrgstar = data.items?.some((item) => item.price?.id === env.PRICE_ID); | 26 | const forOrgstar = data.items?.some((item) => item.price?.id === env.PRICE_ID); |
| 27 | if (!paid || !forOrgstar) return page("That transaction isn't a completed orgstar Pro purchase.", 404); | 27 | if (!paid || !forOrgstar) return page("That transaction isn't a completed orgstar+ purchase.", 404); |
| 28 | 28 | ||
| 29 | const key = await sign( | 29 | const key = await sign( |
| 30 | { e: data.customer?.email ?? "", t: txn, i: Math.floor(Date.parse(data.billed_at ?? data.created_at) / 1000) }, | 30 | { e: data.customer?.email ?? "", t: txn, i: Math.floor(Date.parse(data.billed_at ?? data.created_at) / 1000) }, |
| @@ -32,8 +32,8 @@ export default { | |||
| 32 | ); | 32 | ); |
| 33 | if (url.searchParams.get("format") === "text") return new Response(key + "\n"); | 33 | if (url.searchParams.get("format") === "text") return new Response(key + "\n"); |
| 34 | return page( | 34 | return page( |
| 35 | `<p>Your orgstar Pro license key:</p><pre>${key}</pre>` + | 35 | `<p>Your orgstar+ license key:</p><pre>${key}</pre>` + |
| 36 | `<p>In orgstar, open Settings ▸ Pro, paste the key and choose Activate. Keep this page or the key; ` + | 36 | `<p>In orgstar, open Settings ▸ orgstar+, paste the key and choose Activate. Keep this page or the key; ` + |
| 37 | `the same link shows it again.</p>`, | 37 | `the same link shows it again.</p>`, |
| 38 | 200, | 38 | 200, |
| 39 | ); | 39 | ); |
| @@ -54,8 +54,8 @@ function base64url(bytes) { | |||
| 54 | 54 | ||
| 55 | function page(body, status) { | 55 | function page(body, status) { |
| 56 | const html = `<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width">` + | 56 | const html = `<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width">` + |
| 57 | `<title>orgstar Pro</title><style>body{font:16px/1.5 system-ui;max-width:40rem;margin:3rem auto;padding:0 1rem}` + | 57 | `<title>orgstar+</title><style>body{font:16px/1.5 system-ui;max-width:40rem;margin:3rem auto;padding:0 1rem}` + |
| 58 | `pre{white-space:pre-wrap;word-break:break-all;background:#f4f4f4;padding:1rem;border-radius:6px}</style>` + | 58 | `pre{white-space:pre-wrap;word-break:break-all;background:#f4f4f4;padding:1rem;border-radius:6px}</style>` + |
| 59 | `<h1>orgstar Pro</h1>${body.startsWith("<") ? body : `<p>${body}</p>`}`; | 59 | `<h1>orgstar+</h1>${body.startsWith("<") ? body : `<p>${body}</p>`}`; |
| 60 | return new Response(html, { status, headers: { "content-type": "text/html; charset=utf-8" } }); | 60 | return new Response(html, { status, headers: { "content-type": "text/html; charset=utf-8" } }); |
| 61 | } | 61 | } |
packaging/license-issuer/wrangler.toml +1 −1
| @@ -5,5 +5,5 @@ compatibility_date = "2026-10-01" | |||
| 5 | [vars] | 5 | [vars] |
| 6 | # https://sandbox-api.paddle.com while testing. | 6 | # https://sandbox-api.paddle.com while testing. |
| 7 | PADDLE_API = "https://api.paddle.com" | 7 | PADDLE_API = "https://api.paddle.com" |
| 8 | # The orgstar Pro (Mac) price, pri_… | 8 | # The orgstar+ (Mac) price, pri_… |
| 9 | PRICE_ID = "pri_REPLACE_ME" | 9 | PRICE_ID = "pri_REPLACE_ME" |
scripts/build-app.sh +1 −1
| @@ -8,7 +8,7 @@ | |||
| 8 | set -eu | 8 | set -eu |
| 9 | 9 | ||
| 10 | cd "$(dirname "$0")/.." | 10 | cd "$(dirname "$0")/.." |
| 11 | version="${1:-0.9.2}" | 11 | version="${1:-1.0.0}" |
| 12 | build="${2:-$version}" | 12 | build="${2:-$version}" |
| 13 | sign="${ORGSTAR_SIGN:--}" | 13 | sign="${ORGSTAR_SIGN:--}" |
| 14 | app=".build/app/orgstar.app" | 14 | app=".build/app/orgstar.app" |
scripts/build-ios-app.sh +1 −1
| @@ -5,7 +5,7 @@ | |||
| 5 | set -eu | 5 | set -eu |
| 6 | 6 | ||
| 7 | cd "$(dirname "$0")/.." | 7 | cd "$(dirname "$0")/.." |
| 8 | version="${1:-0.9.2}" | 8 | version="${1:-1.0.0}" |
| 9 | app=".build/ios-app/orgstar.app" | 9 | app=".build/ios-app/orgstar.app" |
| 10 | products=".build/ios/Build/Products/Debug-iphonesimulator" | 10 | products=".build/ios/Build/Products/Debug-iphonesimulator" |
| 11 | 11 | ||
scripts/build-watch-app.sh +1 −1
| @@ -7,7 +7,7 @@ | |||
| 7 | set -eu | 7 | set -eu |
| 8 | 8 | ||
| 9 | cd "$(dirname "$0")/.." | 9 | cd "$(dirname "$0")/.." |
| 10 | version="${1:-0.9.2}" | 10 | version="${1:-1.0.0}" |
| 11 | app=".build/watch-app/OrgstarWatch.app" | 11 | app=".build/watch-app/OrgstarWatch.app" |
| 12 | products=".build/watch/Build/Products/Debug-watchsimulator" | 12 | products=".build/watch/Build/Products/Debug-watchsimulator" |
| 13 | # The app group the complications read the agenda from, on the watch. | 13 | # The app group the complications read the agenda from, on the watch. |