Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

feat: add premium subscription with RevenueCat, restore APNs push for Pro users

libokai37122963b298
diff --git a/Codync-iOS/App/AppDelegate.swift b/Codync-iOS/App/AppDelegate.swift
index 839f69c5..c3c085bd 100644
--- a/Codync-iOS/App/AppDelegate.swift
+++ b/Codync-iOS/App/AppDelegate.swift
@@ -15,7 +15,16 @@ final class AppDelegate: NSObject, UIApplicationDelegate {
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
+ PremiumManager.shared.configure()
application.registerForRemoteNotifications()
+ NotificationCenter.default.addObserver(forName: UIApplication.didBecomeActiveNotification, object: nil, queue: .main) { [weak self] _ in
+ Task { @MainActor in
+ guard let self else { return }
+ await self.receiver.fetch(source: "did-become-active", force: true)
+ self.liveActivityManager.userPrimarySessionId = self.primarySessionManager.primarySessionId
+ self.liveActivityManager.updateSessions(self.receiver.sessions)
+ }
+ }
Task {
async let startReceiver: () = receiver.start()
async let loadPins: () = liveActivityManager.loadPinnedSessions()
@@ -39,7 +48,7 @@ final class AppDelegate: NSObject, UIApplicationDelegate {
func startForegroundPolling() {
pollTimer?.invalidate()
- pollTimer = Timer.scheduledTimer(withTimeInterval: 10, repeats: true) { [weak self] _ in
+ pollTimer = Timer.scheduledTimer(withTimeInterval: 5, repeats: true) { [weak self] _ in
Task { @MainActor in
guard let self else { return }
await self.receiver.fetch(source: "poll", force: true)
diff --git a/Codync-iOS/Assets.xcassets/AppIcon.appiconset/image.png b/Codync-iOS/Assets.xcassets/AppIcon.appiconset/image.png
index a10114bf..c83049c6 100644
Binary files a/Codync-iOS/Assets.xcassets/AppIcon.appiconset/image.png and b/Codync-iOS/Assets.xcassets/AppIcon.appiconset/image.png differ
diff --git a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/Contents.json b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/Contents.json
index f3d87b8d..61c57327 100644
--- a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/Contents.json
+++ b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/Contents.json
@@ -1,17 +1,17 @@
{
"images" : [
{
- "filename" : "codync-icon.png",
+ "filename" : "image.png",
"idiom" : "universal",
"scale" : "1x"
},
{
- "filename" : "[email protected]",
+ "filename" : "image 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
- "filename" : "[email protected]",
+ "filename" : "image 2.png",
"idiom" : "universal",
"scale" : "3x"
}
diff --git a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/codync-icon.png b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/codync-icon.png
deleted file mode 100644
index 8307ccff..00000000
Binary files a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/codync-icon.png and /dev/null differ
diff --git a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/[email protected] b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/[email protected]
deleted file mode 100644
index 85df4e1a..00000000
Binary files a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/[email protected] and /dev/null differ
diff --git a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/[email protected] b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/[email protected]
deleted file mode 100644
index ca05edd8..00000000
Binary files a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/[email protected] and /dev/null differ
diff --git a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/image 1.png b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/image 1.png
new file mode 100644
index 00000000..3d6cf3c6
Binary files /dev/null and b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/image 1.png differ
diff --git a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/image 2.png b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/image 2.png
new file mode 100644
index 00000000..3d6cf3c6
Binary files /dev/null and b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/image 2.png differ
diff --git a/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/image.png b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/image.png
new file mode 100644
index 00000000..3d6cf3c6
Binary files /dev/null and b/Codync-iOS/Assets.xcassets/CodyncIcon.imageset/image.png differ
diff --git a/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/Contents.json b/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/Contents.json
new file mode 100644
index 00000000..b08a55f7
--- /dev/null
+++ b/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/Contents.json
@@ -0,0 +1,26 @@
+{
+ "images" : [
+ {
+ "filename" : "cowork.png",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ },
+ "properties" : {
+ "template-rendering-intent" : "template"
+ }
+}
diff --git a/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/cowork.png b/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/cowork.png
new file mode 100644
index 00000000..7889c800
Binary files /dev/null and b/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/cowork.png differ
diff --git a/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/[email protected] b/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/[email protected]
new file mode 100644
index 00000000..a3d75ff0
Binary files /dev/null and b/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/[email protected] differ
diff --git a/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/[email protected] b/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/[email protected]
new file mode 100644
index 00000000..05540922
Binary files /dev/null and b/Codync-iOS/Assets.xcassets/CoworkIcon.imageset/[email protected] differ
diff --git a/Codync-iOS/CodyncStore.storekit b/Codync-iOS/CodyncStore.storekit
new file mode 100644
index 00000000..426e7bc6
--- /dev/null
+++ b/Codync-iOS/CodyncStore.storekit
@@ -0,0 +1,55 @@
+{
+ "identifier" : "CodyncStore",
+ "type" : "Default",
+ "version" : 2,
+ "products" : [
+ {
+ "displayPrice" : "0.99",
+ "familyShareable" : true,
+ "internalID" : "1",
+ "localizations" : [
+ {
+ "description" : "Always-on Live Activity updates",
+ "displayName" : "Codync Pro",
+ "locale" : "en_US"
+ }
+ ],
+ "productID" : "com.pokai.Codync.ios.pro.monthly",
+ "referenceName" : "Pro Monthly",
+ "subscriptionGroupID" : "21991861",
+ "type" : "RecurringSubscription",
+ "subscription" : {
+ "subscriptionPeriod" : "P1M",
+ "groupNumber" : 1,
+ "introductoryOffer" : null
+ }
+ }
+ ],
+ "subscriptionGroups" : [
+ {
+ "id" : "21991861",
+ "localizations" : [
+ {
+ "description" : "",
+ "displayName" : "Codync Pro",
+ "locale" : "en_US"
+ }
+ ],
+ "name" : "Codync Pro"
+ }
+ ],
+ "settings" : {
+ "_applicationInternalID" : "6760984418",
+ "_developerTeamID" : "DEVELOPMENT_TEAM_REDACTED",
+ "_failTransactionsEnabled" : false,
+ "_locale" : "en_US",
+ "_storefront" : "USA",
+ "_storeKitErrors" : [
+ {
+ "current" : null,
+ "enabled" : false,
+ "name" : "Load Products"
+ }
+ ]
+ }
+}
diff --git a/Codync-iOS/Services/LiveActivityManager.swift b/Codync-iOS/Services/LiveActivityManager.swift
index 21b50481..ac7a5792 100644
--- a/Codync-iOS/Services/LiveActivityManager.swift
+++ b/Codync-iOS/Services/LiveActivityManager.swift
@@ -27,6 +27,7 @@ final class LiveActivityManager: ObservableObject {
private var overallActivity: Activity<OverallAttributes>?
private var lastOverallState: OverallAttributes.ContentState?
private var overallTrackedIds: Set<String> = []
+ private var pushTokenTasks: [String: Task<Void, Never>] = [:]
@AppStorage("codync_darkMode") private var isDarkMode = true
private static let maxActivities = 4
@@ -248,6 +249,15 @@ final class LiveActivityManager: ObservableObject {
lastOverallState = nil
}
+ // Pro upgrade: if we have an activity without push token, recreate it
+ if let activity = overallActivity, PremiumManager.shared.isPro, activity.pushToken == nil {
+ logger.info("Pro active but Overall Activity has no push token — recreating")
+ Task { await activity.end(nil, dismissalPolicy: .immediate) }
+ overallActivity = nil
+ lastOverallState = nil
+ pushTokenTasks["__overall__"]?.cancel()
+ }
+
let active = sortedSessions(sessions.filter { $0.status != .completed })
.prefix(maxOverallSessions)
@@ -286,12 +296,18 @@ final class LiveActivityManager: ObservableObject {
if overallActivity == nil {
guard UIApplication.shared.applicationState == .active else { return }
+ let isPro = PremiumManager.shared.isPro
do {
- overallActivity = try Activity.request(
+ let activity = try Activity.request(
attributes: OverallAttributes(),
- content: .init(state: state, staleDate: nil)
+ content: .init(state: state, staleDate: nil),
+ pushType: isPro ? .token : nil
)
- logger.info("Started Overall Live Activity with \(summaries.count) sessions")
+ overallActivity = activity
+ if isPro {
+ observeOverallPushToken(activity: activity)
+ }
+ logger.info("Started Overall Live Activity with \(summaries.count) sessions (push: \(isPro))")
} catch {
logger.error("Failed to start Overall Live Activity: \(error)")
}
@@ -352,6 +368,8 @@ final class LiveActivityManager: ObservableObject {
secondPreviousTasks.removeAll()
graceTimers.removeAll()
lastPushedState.removeAll()
+ pushTokenTasks.values.forEach { $0.cancel() }
+ pushTokenTasks.removeAll()
overallActivity = nil
lastOverallState = nil
overallTrackedIds.removeAll()
@@ -410,20 +428,66 @@ final class LiveActivityManager: ObservableObject {
summary: session.summary
)
let state = contentState(from: session)
+ let isPro = PremiumManager.shared.isPro
do {
let activity = try Activity.request(
attributes: attributes,
- content: .init(state: state, staleDate: nil)
+ content: .init(state: state, staleDate: nil),
+ pushType: isPro ? .token : nil
)
activities[session.sessionId] = activity
lastPushedState[session.sessionId] = state
trackedSessionIds.insert(session.sessionId)
- logger.info("Started Live Activity for \(session.sessionId)")
+ if isPro {
+ observePushToken(activity: activity, sessionId: session.sessionId)
+ }
+ logger.info("Started Live Activity for \(session.sessionId) (push: \(isPro))")
} catch {
logger.error("Failed to start Live Activity: \(error)")
}
}
+ // MARK: - Push Token Sync (Pro only)
+
+ private func observePushToken(activity: Activity<CodyncAttributes>, sessionId: String) {
+ pushTokenTasks[sessionId]?.cancel()
+ pushTokenTasks[sessionId] = Task {
+ for await token in activity.pushTokenUpdates {
+ let hex = token.map { String(format: "%02x", $0) }.joined()
+ logger.info("Push token for \(sessionId): \(hex.prefix(8))...")
+ await savePushToken(sessionId: sessionId, tokenHex: hex)
+ }
+ }
+ }
+
+ private func observeOverallPushToken(activity: Activity<OverallAttributes>) {
+ pushTokenTasks["__overall__"]?.cancel()
+ pushTokenTasks["__overall__"] = Task {
+ for await token in activity.pushTokenUpdates {
+ let hex = token.map { String(format: "%02x", $0) }.joined()
+ logger.info("Overall push token: \(hex.prefix(8))...")
+ await savePushToken(sessionId: "__overall__", tokenHex: hex)
+ }
+ }
+ }
+
+ private func savePushToken(sessionId: String, tokenHex: String) async {
+ let recordID = CKRecord.ID(
+ recordName: "pushtoken-\(sessionId)",
+ zoneID: CloudKitManager.zoneID
+ )
+ let record = CKRecord(recordType: "PushToken", recordID: recordID)
+ record["sessionId"] = sessionId as CKRecordValue
+ record["token"] = tokenHex as CKRecordValue
+ record["updatedAt"] = Date() as CKRecordValue
+ do {
+ _ = try await CloudKitManager.shared.database.save(record)
+ logger.info("Saved push token to CloudKit for \(sessionId)")
+ } catch {
+ logger.error("Failed to save push token: \(error.localizedDescription)")
+ }
+ }
+
/// Push an activity update only if non-time fields changed.
/// durationSec changes every second — comparing it would cause constant updates.
private func pushUpdateIfChanged(_ session: SessionState) {
@@ -460,6 +524,7 @@ final class LiveActivityManager: ObservableObject {
guard let activity = activities.removeValue(forKey: sessionId) else { return }
trackedSessionIds.remove(sessionId)
lastPushedState.removeValue(forKey: sessionId)
+ pushTokenTasks.removeValue(forKey: sessionId)?.cancel()
Task {
await activity.end(nil, dismissalPolicy: .immediate)
}
diff --git a/Codync-iOS/Services/PremiumManager.swift b/Codync-iOS/Services/PremiumManager.swift
new file mode 100644
index 00000000..5fbb4108
--- /dev/null
+++ b/Codync-iOS/Services/PremiumManager.swift
@@ -0,0 +1,62 @@
+import Foundation
+import RevenueCat
+import os
+
+private let logger = Logger(subsystem: "com.pokai.Codync.ios", category: "Premium")
+
+@MainActor
+@Observable
+final class PremiumManager {
+ static let shared = PremiumManager()
+
+ #if DEBUG
+ /// Flip to `true` to test APNs push without a real subscription
+ fileprivate(set) var isPro = true
+ #else
+ fileprivate(set) var isPro = false
+ #endif
+ private(set) var isLoaded = false
+
+ private init() {}
+
+ func configure() {
+ Purchases.logLevel = .verbose
+ Purchases.configure(withAPIKey: "REVENUECAT_API_KEY_REDACTED")
+ Purchases.shared.delegate = RCPurchasesDelegate.shared
+ Task {
+ await refreshStatus()
+ }
+ }
+
+ func refreshStatus() async {
+ do {
+ let info = try await Purchases.shared.customerInfo()
+ isPro = info.entitlements["Codync Pro"]?.isActive == true
+ isLoaded = true
+ logger.info("Premium status: \(self.isPro ? "Pro" : "Free")")
+ } catch {
+ logger.warning("Failed to fetch customer info: \(error.localizedDescription)")
+ isLoaded = true
+ }
+ }
+
+ func restorePurchases() async throws {
+ let info = try await Purchases.shared.restorePurchases()
+ isPro = info.entitlements["Codync Pro"]?.isActive == true
+ logger.info("Restored purchases: \(self.isPro ? "Pro" : "Free")")
+ }
+}
+
+// MARK: - Delegate
+
+private final class RCPurchasesDelegate: NSObject, RevenueCat.PurchasesDelegate, Sendable {
+ static let shared = RCPurchasesDelegate()
+
+ nonisolated func purchases(_ purchases: Purchases, receivedUpdated customerInfo: CustomerInfo) {
+ let isPro = customerInfo.entitlements["Codync Pro"]?.isActive == true
+ Task { @MainActor in
+ PremiumManager.shared.isPro = isPro
+ logger.info("Customer info updated: \(isPro ? "Pro" : "Free")")
+ }
+ }
+}
diff --git a/Codync-iOS/Views/IOSSessionListView.swift b/Codync-iOS/Views/IOSSessionListView.swift
index 0189c59d..932113da 100644
--- a/Codync-iOS/Views/IOSSessionListView.swift
+++ b/Codync-iOS/Views/IOSSessionListView.swift
@@ -7,6 +7,7 @@ struct IOSSessionListView: View {
@ObservedObject var primarySessionManager: PrimarySessionManager
@Environment(\.theme) private var theme
@State private var showSettings = false
+ @State private var showSettingsSheet = false
var body: some View {
ScrollView {
@@ -57,7 +58,21 @@ struct IOSSessionListView: View {
.buttonStyle(.plain)
}
}
- .toolbarColorScheme(.dark, for: .navigationBar)
+ .toolbarColorScheme(theme.isDark ? .dark : .light, for: .navigationBar)
+ .toolbar {
+ ToolbarItem(placement: .topBarTrailing) {
+ Button {
+ showSettingsSheet = true
+ } label: {
+ Image(systemName: "gearshape")
+ .font(.system(size: 15, weight: .medium))
+ .foregroundStyle(theme.secondaryText)
+ }
+ }
+ }
+ .sheet(isPresented: $showSettingsSheet) {
+ SettingsView()
+ }
}
@ViewBuilder
diff --git a/Codync-iOS/Views/PaywallView.swift b/Codync-iOS/Views/PaywallView.swift
new file mode 100644
index 00000000..1f45f493
--- /dev/null
+++ b/Codync-iOS/Views/PaywallView.swift
@@ -0,0 +1,221 @@
+import SwiftUI
+import RevenueCat
+
+struct CodyncPaywallView: View {
+ @Environment(\.dismiss) private var dismiss
+ @Environment(\.theme) private var theme
+ @State private var offering: Offering?
+ @State private var isPurchasing = false
+ @State private var errorMessage: String?
+
+ var body: some View {
+ ZStack {
+ theme.background.ignoresSafeArea()
+
+ ScrollView {
+ VStack(spacing: 0) {
+ // Close button
+ HStack {
+ Spacer()
+ Button { dismiss() } label: {
+ Image(systemName: "xmark")
+ .font(.system(size: 15, weight: .medium))
+ .foregroundStyle(theme.tertiaryText)
+ .frame(width: 32, height: 32)
+ .background(theme.cardBackground, in: Circle())
+ }
+ }
+ .padding(.horizontal, 20)
+ .padding(.top, 16)
+
+ Spacer().frame(height: 40)
+
+ // Icon
+ Image("CodyncIcon")
+ .resizable()
+ .aspectRatio(contentMode: .fit)
+ .frame(width: 72, height: 72)
+ .clipShape(RoundedRectangle(cornerRadius: 16, style: .continuous))
+
+ Spacer().frame(height: 20)
+
+ // Title
+ Text("Codync Pro")
+ .font(.system(size: 28, weight: .bold))
+ .foregroundStyle(theme.primaryText)
+
+ Spacer().frame(height: 8)
+
+ Text("Always-on Live Activity")
+ .font(.system(size: 15))
+ .foregroundStyle(theme.secondaryText)
+
+ Spacer().frame(height: 36)
+
+ // Features
+ VStack(spacing: 0) {
+ featureRow(
+ icon: "dot.radiowaves.up.forward",
+ title: "Background Push Updates",
+ subtitle: "Live Activity stays updated even when the app is closed"
+ )
+ Divider().overlay(theme.separator)
+ featureRow(
+ icon: "lock.iphone",
+ title: "Dynamic Island Always-on",
+ subtitle: "Session status persists on your Lock Screen"
+ )
+ Divider().overlay(theme.separator)
+ featureRow(
+ icon: "bolt.fill",
+ title: "Instant APNs Delivery",
+ subtitle: "Direct push via Worker relay, no polling delay"
+ )
+ }
+ .background(
+ RoundedRectangle(cornerRadius: 14, style: .continuous)
+ .fill(theme.cardBackground)
+ .overlay(
+ RoundedRectangle(cornerRadius: 14, style: .continuous)
+ .stroke(theme.border, lineWidth: 1)
+ )
+ )
+ .padding(.horizontal, 20)
+
+ Spacer().frame(height: 32)
+
+ // Price
+ if let pkg = offering?.monthly {
+ Text(pkg.localizedPriceString + " / month")
+ .font(.system(size: 17, weight: .semibold))
+ .foregroundStyle(theme.primaryText)
+ } else {
+ Text("$0.99 / month")
+ .font(.system(size: 17, weight: .semibold))
+ .foregroundStyle(theme.primaryText)
+ }
+
+ Spacer().frame(height: 16)
+
+ // Subscribe button
+ Button {
+ Task { await purchase() }
+ } label: {
+ Group {
+ if isPurchasing {
+ ProgressView()
+ .tint(theme.background)
+ } else {
+ Text("Subscribe")
+ .font(.system(size: 16, weight: .semibold))
+ }
+ }
+ .frame(maxWidth: .infinity)
+ .frame(height: 50)
+ .background(theme.primaryText, in: RoundedRectangle(cornerRadius: 12, style: .continuous))
+ .foregroundStyle(theme.background)
+ }
+ .disabled(isPurchasing)
+ .padding(.horizontal, 20)
+
+ Spacer().frame(height: 12)
+
+ // Restore
+ Button {
+ Task { await restore() }
+ } label: {
+ Text("Restore Purchases")
+ .font(.system(size: 14))
+ .foregroundStyle(theme.tertiaryText)
+ }
+
+ if let error = errorMessage {
+ Spacer().frame(height: 12)
+ Text(error)
+ .font(.system(size: 13))
+ .foregroundStyle(.red.opacity(0.8))
+ .multilineTextAlignment(.center)
+ .padding(.horizontal, 20)
+ }
+
+ Spacer().frame(height: 16)
+
+ // Legal
+ Text("Payment will be charged to your Apple ID. Subscription automatically renews unless cancelled at least 24 hours before the end of the current period.")
+ .font(.system(size: 11))
+ .foregroundStyle(theme.tertiaryText)
+ .multilineTextAlignment(.center)
+ .padding(.horizontal, 32)
+
+ Spacer().frame(height: 32)
+ }
+ }
+ }
+ .task {
+ do {
+ let offerings = try await Purchases.shared.offerings()
+ offering = offerings.current
+ } catch {
+ errorMessage = error.localizedDescription
+ }
+ }
+ }
+
+ @ViewBuilder
+ private func featureRow(icon: String, title: String, subtitle: String) -> some View {
+ HStack(spacing: 14) {
+ Image(systemName: icon)
+ .font(.system(size: 16))
+ .foregroundStyle(theme.primaryText)
+ .frame(width: 32, height: 32)
+ .background(theme.glassBackground, in: RoundedRectangle(cornerRadius: 8, style: .continuous))
+
+ VStack(alignment: .leading, spacing: 2) {
+ Text(title)
+ .font(.system(size: 14, weight: .medium))
+ .foregroundStyle(theme.primaryText)
+ Text(subtitle)
+ .font(.system(size: 12))
+ .foregroundStyle(theme.secondaryText)
+ }
+ Spacer()
+ }
+ .padding(.horizontal, 16)
+ .padding(.vertical, 14)
+ }
+
+ private func purchase() async {
+ guard let pkg = offering?.monthly ?? offering?.availablePackages.first else {
+ errorMessage = "No product available"
+ return
+ }
+ isPurchasing = true
+ errorMessage = nil
+ do {
+ let result = try await Purchases.shared.purchase(package: pkg)
+ if !result.userCancelled {
+ await PremiumManager.shared.refreshStatus()
+ dismiss()
+ }
+ } catch {
+ errorMessage = error.localizedDescription
+ }
+ isPurchasing = false
+ }
+
+ private func restore() async {
+ isPurchasing = true
+ errorMessage = nil
+ do {
+ try await PremiumManager.shared.restorePurchases()
+ if PremiumManager.shared.isPro {
+ dismiss()
+ } else {
+ errorMessage = "No active subscription found"
+ }
+ } catch {
+ errorMessage = error.localizedDescription
+ }
+ isPurchasing = false
+ }
+}
diff --git a/Codync-iOS/Views/SettingsView.swift b/Codync-iOS/Views/SettingsView.swift
new file mode 100644
index 00000000..fcfdf746
--- /dev/null
+++ b/Codync-iOS/Views/SettingsView.swift
@@ -0,0 +1,116 @@
+import SwiftUI
+import RevenueCatUI
+
+struct SettingsView: View {
+ @Environment(\.dismiss) private var dismiss
+ @AppStorage("codync_darkMode") private var isDarkMode = true
+ @State private var showPaywall = false
+
+ private var theme: CodyncTheme { CodyncTheme(isDark: isDarkMode) }
+
+ var body: some View {
+ NavigationStack {
+ List {
+ // MARK: - Subscription
+ Section {
+ subscriptionRow
+ } header: {
+ Text("Subscription")
+ }
+
+ // MARK: - Appearance
+ Section {
+ Toggle(isOn: $isDarkMode) {
+ Label("Dark Mode", systemImage: "moon.fill")
+ }
+ .tint(.primary)
+ } header: {
+ Text("Appearance")
+ }
+
+ // MARK: - Support
+ Section {
+ Link(destination: URL(string: "mailto:[email protected]")!) {
+ Label("Contact Support", systemImage: "envelope")
+ }
+ .tint(.primary)
+ Link(destination: URL(string: "https://github.com/anthropics/claude-code")!) {
+ Label("Claude Code", systemImage: "link")
+ }
+ .tint(.primary)
+ } header: {
+ Text("Support")
+ }
+
+ // MARK: - About
+ Section {
+ HStack {
+ Text("Version")
+ Spacer()
+ Text(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "—")
+ .foregroundStyle(.secondary)
+ }
+ } header: {
+ Text("About")
+ }
+ }
+ .navigationTitle("Settings")
+ .navigationBarTitleDisplayMode(.inline)
+ .toolbar {
+ ToolbarItem(placement: .topBarTrailing) {
+ Button("Done") { dismiss() }
+ }
+ }
+ .sheet(isPresented: $showPaywall) {
+ CodyncPaywallView()
+ .environment(\.theme, theme)
+ .preferredColorScheme(isDarkMode ? .dark : .light)
+ }
+ }
+ .preferredColorScheme(isDarkMode ? .dark : .light)
+ }
+
+ @ViewBuilder
+ private var subscriptionRow: some View {
+ let premium = PremiumManager.shared
+ Button {
+ if !premium.isPro {
+ showPaywall = true
+ }
+ } label: {
+ HStack {
+ Label {
+ Text("Codync Pro")
+ } icon: {
+ Image(systemName: premium.isPro ? "crown.fill" : "crown")
+ .foregroundStyle(premium.isPro ? .yellow : .secondary)
+ }
+ Spacer()
+ if premium.isPro {
+ Text("Active")
+ .font(.subheadline)
+ .foregroundStyle(.green)
+ } else {
+ Text("$0.99/mo")
+ .font(.subheadline)
+ .foregroundStyle(.secondary)
+ Image(systemName: "chevron.right")
+ .font(.caption)
+ .foregroundStyle(.tertiary)
+ }
+ }
+ }
+ .tint(.primary)
+
+ if !premium.isPro {
+ Button {
+ Task {
+ try? await premium.restorePurchases()
+ }
+ } label: {
+ Label("Restore Purchases", systemImage: "arrow.clockwise")
+ }
+ .tint(.secondary)
+ }
+ }
+}
diff --git a/Codync-iOS/Views/TabRootView.swift b/Codync-iOS/Views/TabRootView.swift
index 302d9575..756c17aa 100644
--- a/Codync-iOS/Views/TabRootView.swift
+++ b/Codync-iOS/Views/TabRootView.swift
@@ -63,6 +63,6 @@ struct TabRootView: View {
.frame(width: iconSize, height: iconSize)
}
}
- .tint(.white)
+ .tint(.primary)
}
}
diff --git a/Codync-macOS/App/MenuBarController.swift b/Codync-macOS/App/MenuBarController.swift
index 2816e3ac..7740371a 100644
--- a/Codync-macOS/App/MenuBarController.swift
+++ b/Codync-macOS/App/MenuBarController.swift
@@ -88,7 +88,10 @@ final class MenuBarController: NSObject {
private func setupStatusItem() {
statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
if let button = statusItem.button {
- button.image = NSImage(systemSymbolName: "waveform.path", accessibilityDescription: "Codync")
+ let icon = NSImage(named: "CodyncIcon")
+ icon?.size = NSSize(width: 18, height: 18)
+ icon?.isTemplate = true
+ button.image = icon
button.action = #selector(togglePanel)
button.target = self
}
diff --git a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 1.png b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 1.png
index fefd2af7..ed15927b 100644
Binary files a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 1.png and b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 1.png differ
diff --git a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 2.png b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 2.png
index fefd2af7..ed15927b 100644
Binary files a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 2.png and b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 2.png differ
diff --git a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 3.png b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 3.png
index 8307ccff..98fe913e 100644
Binary files a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 3.png and b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 3.png differ
diff --git a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 4.png b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 4.png
index 85df4e1a..50a961c6 100644
Binary files a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 4.png and b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 4.png differ
diff --git a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 5.png b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 5.png
index ca05edd8..8ffcaac4 100644
Binary files a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 5.png and b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 5.png differ
diff --git a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 6.png b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 6.png
index db0a5e76..b61cc6d4 100644
Binary files a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 6.png and b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 6.png differ
diff --git a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 7.png b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 7.png
index ca05edd8..8ffcaac4 100644
Binary files a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 7.png and b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 7.png differ
diff --git a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 8.png b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 8.png
index db0a5e76..b61cc6d4 100644
Binary files a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 8.png and b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 8.png differ
diff --git a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 9.png b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 9.png
index a10114bf..c83049c6 100644
Binary files a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 9.png and b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image 9.png differ
diff --git a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image.png b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image.png
index de7e0f95..aef59650 100644
Binary files a/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image.png and b/Codync-macOS/Assets.xcassets/AppIcon.appiconset/image.png differ
diff --git a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/Contents.json b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/Contents.json
index f3d87b8d..1258da4b 100644
--- a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/Contents.json
+++ b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/Contents.json
@@ -1,17 +1,17 @@
{
"images" : [
{
- "filename" : "codync-icon.png",
+ "filename" : "image 5.png",
"idiom" : "universal",
"scale" : "1x"
},
{
- "filename" : "[email protected]",
+ "filename" : "image 6.png",
"idiom" : "universal",
"scale" : "2x"
},
{
- "filename" : "[email protected]",
+ "filename" : "image 7.png",
"idiom" : "universal",
"scale" : "3x"
}
diff --git a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/codync-icon.png b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/codync-icon.png
deleted file mode 100644
index 8307ccff..00000000
Binary files a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/codync-icon.png and /dev/null differ
diff --git a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/[email protected] b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/[email protected]
deleted file mode 100644
index 85df4e1a..00000000
Binary files a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/[email protected] and /dev/null differ
diff --git a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/[email protected] b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/[email protected]
deleted file mode 100644
index ca05edd8..00000000
Binary files a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/[email protected] and /dev/null differ
diff --git a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/image 5.png b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/image 5.png
new file mode 100644
index 00000000..a18145bf
Binary files /dev/null and b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/image 5.png differ
diff --git a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/image 6.png b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/image 6.png
new file mode 100644
index 00000000..c3b6746e
Binary files /dev/null and b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/image 6.png differ
diff --git a/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/image 7.png b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/image 7.png
new file mode 100644
index 00000000..34de9968
Binary files /dev/null and b/Codync-macOS/Assets.xcassets/CodyncIcon.imageset/image 7.png differ
diff --git a/Codync-macOS/Services/APNsPushService.swift b/Codync-macOS/Services/APNsPushService.swift
index c1734f58..11e5a657 100644
--- a/Codync-macOS/Services/APNsPushService.swift
+++ b/Codync-macOS/Services/APNsPushService.swift
@@ -38,6 +38,44 @@ final class APNsPushService {
await post(payload: payload, label: "update \(session.sessionId)")
}
+ func sendOverallUpdate(sessions: [SessionState], primarySessionId: String?) async {
+ guard let tokenHex = pushTokens["__overall__"] else {
+ logger.debug("SKIP overall update — no push token")
+ return
+ }
+
+ let summaries: [[String: Any]] = sessions.prefix(4).map { session in
+ let liveDuration = max(session.durationSec, Int(Date().timeIntervalSince(session.startedAt)))
+ var s: [String: Any] = [
+ "sessionId": session.sessionId,
+ "projectName": session.projectName,
+ "status": session.status.rawValue,
+ "model": session.model,
+ "costUSD": session.costUSD,
+ "durationSec": liveDuration,
+ "completedCount": session.completedTaskCount,
+ "totalCount": session.totalTaskCount
+ ]
+ if let task = session.currentTask { s["currentTask"] = task }
+ return s
+ }
+
+ let contentState: [String: Any] = [
+ "sessions": summaries,
+ "primarySessionId": primarySessionId as Any,
+ "totalCost": sessions.reduce(0) { $0 + $1.costUSD },
+ "isDark": true
+ ]
+
+ let payload: [String: Any] = [
+ "pushToken": tokenHex,
+ "event": "update",
+ "contentState": contentState
+ ]
+ logger.info("Sending overall update (\(sessions.count) sessions)")
+ await post(payload: payload, label: "overall-update")
+ }
+
func sendEnd(sessionId: String) async {
guard let tokenHex = pushTokens[sessionId] else { return }
diff --git a/Codync-macOS/Services/CloudKitSync.swift b/Codync-macOS/Services/CloudKitSync.swift
index 5253bf8c..72c7d9d0 100644
--- a/Codync-macOS/Services/CloudKitSync.swift
+++ b/Codync-macOS/Services/CloudKitSync.swift
@@ -87,6 +87,11 @@ final class CloudKitSync {
}
do {
+ // Send end push BEFORE deleting (tokens still needed)
+ for id in toDelete {
+ await APNsPushService.shared.sendEnd(sessionId: id)
+ }
+
if !toDelete.isEmpty {
Self.log("delete \(toDelete.count) sessions")
try await CloudKitManager.shared.deleteByIds(toDelete)
@@ -104,6 +109,19 @@ final class CloudKitSync {
for session in toSave {
previousStates[session.sessionId] = session
}
+
+ // Push to APNs via Worker relay for Live Activity background updates
+ await APNsPushService.shared.fetchPushTokens()
+ // Individual mode: per-session push
+ for session in toSave {
+ await APNsPushService.shared.sendUpdate(session: session)
+ }
+ // Overall mode: send all active sessions
+ let allActive = sessions.filter { $0.status != .completed }
+ await APNsPushService.shared.sendOverallUpdate(
+ sessions: allActive,
+ primarySessionId: allActive.first(where: { $0.status == .working })?.sessionId
+ )
}
} catch let error as CKError where error.code == .quotaExceeded || error.code == .requestRateLimited {
let retryAfter = error.retryAfterSeconds ?? 600
diff --git a/Codync.xcodeproj/project.pbxproj b/Codync.xcodeproj/project.pbxproj
index 1fe98315..3c7b57cb 100644
--- a/Codync.xcodeproj/project.pbxproj
+++ b/Codync.xcodeproj/project.pbxproj
@@ -7,6 +7,11 @@
objects = {
/* Begin PBXBuildFile section */
+ RC0001A0B1C2D3E4F5A6B7C8 /* RevenueCat in Frameworks */ = {isa = PBXBuildFile; productRef = RC0003A0B1C2D3E4F5A6B7C8 /* RevenueCat */; };
+ RC0002A0B1C2D3E4F5A6B7C8 /* RevenueCatUI in Frameworks */ = {isa = PBXBuildFile; productRef = RC0004A0B1C2D3E4F5A6B7C8 /* RevenueCatUI */; };
+ PM0001A0B1C2D3E4F5A6B7C8 /* PremiumManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = PM0002A0B1C2D3E4F5A6B7C8 /* PremiumManager.swift */; };
+ PW0001A0B1C2D3E4F5A6B7C8 /* PaywallView.swift in Sources */ = {isa = PBXBuildFile; fileRef = PW0002A0B1C2D3E4F5A6B7C8 /* PaywallView.swift */; };
+ SV0001A0B1C2D3E4F5A6B7C8 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = SV0002A0B1C2D3E4F5A6B7C8 /* SettingsView.swift */; };
0205D611148BDCAB840D0F47 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9580D32B5B29E049090D66C8 /* Assets.xcassets */; };
0294408FF2BC2367453C118C /* SessionListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA699D0197B8A14FD7D1BDC4 /* SessionListView.swift */; };
070688CBF55E74F38DC650E3 /* CodyncShared in Frameworks */ = {isa = PBXBuildFile; productRef = 4BA154F0B1967DCBBB7600E5 /* CodyncShared */; };
@@ -108,6 +113,9 @@
A1B2C3D4E5F6A7B8C9D0E1F2 /* SessionTagView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionTagView.swift; sourceTree = "<group>"; };
A7B8C9D0E1F2A3B4C5D6E7F8 /* ComingSoonView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComingSoonView.swift; sourceTree = "<group>"; };
C3D4E5F6A7B8C9D0E1F2A3B4 /* PrimarySessionManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrimarySessionManager.swift; sourceTree = "<group>"; };
+ PM0002A0B1C2D3E4F5A6B7C8 /* PremiumManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PremiumManager.swift; sourceTree = "<group>"; };
+ PW0002A0B1C2D3E4F5A6B7C8 /* PaywallView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaywallView.swift; sourceTree = "<group>"; };
+ SV0002A0B1C2D3E4F5A6B7C8 /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
E5F6A7B8C9D0E1F2A3B4C5D6 /* TabRootView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabRootView.swift; sourceTree = "<group>"; };
AA11BB22CC33DD44EE55FF66 /* CodyncPanel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CodyncPanel.swift; sourceTree = "<group>"; };
AABBCCDD11223344556677EE /* CodyncPanelShape.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CodyncPanelShape.swift; sourceTree = "<group>"; };
@@ -155,6 +163,8 @@
buildActionMask = 2147483647;
files = (
C7E108B87747D1CB7E7E1699 /* CodyncShared in Frameworks */,
+ RC0001A0B1C2D3E4F5A6B7C8 /* RevenueCat in Frameworks */,
+ RC0002A0B1C2D3E4F5A6B7C8 /* RevenueCatUI in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -198,6 +208,8 @@
children = (
1A0CEB1937DE4129AB71C6FC /* Components */,
A7B8C9D0E1F2A3B4C5D6E7F8 /* ComingSoonView.swift */,
+ PW0002A0B1C2D3E4F5A6B7C8 /* PaywallView.swift */,
+ SV0002A0B1C2D3E4F5A6B7C8 /* SettingsView.swift */,
D866EFD6224AECD6846B76BE /* IOSOnboardingView.swift */,
DF291DF4A4EF932B774F227D /* IOSRootView.swift */,
9C01C9748A39F3475869F956 /* IOSSessionDetailView.swift */,
@@ -283,6 +295,7 @@
children = (
F19A27E00B1B13A579A950F4 /* CloudKitReceiver.swift */,
CADC1A963B2C1124F480F9CE /* LiveActivityManager.swift */,
+ PM0002A0B1C2D3E4F5A6B7C8 /* PremiumManager.swift */,
C3D4E5F6A7B8C9D0E1F2A3B4 /* PrimarySessionManager.swift */,
);
path = Services;
@@ -360,6 +373,8 @@
name = "Codync-iOS";
packageProductDependencies = (
C1CA2B270135307CC4E2724D /* CodyncShared */,
+ RC0003A0B1C2D3E4F5A6B7C8 /* RevenueCat */,
+ RC0004A0B1C2D3E4F5A6B7C8 /* RevenueCatUI */,
);
productName = "Codync-iOS";
productReference = 3EB0548BFADFAFC3616A8C4B /* Codync.app */;
@@ -406,6 +421,7 @@
minimizedProjectReferenceProxies = 1;
packageReferences = (
2546D0E01391BBF7D36B931E /* XCLocalSwiftPackageReference "CodyncShared" */,
+ RC0005A0B1C2D3E4F5A6B7C8 /* XCRemoteSwiftPackageReference "purchases-ios-spm" */,
);
projectDirPath = "";
projectRoot = "";
@@ -489,6 +505,9 @@
0B6B1D4B20837A47EAF88322 /* IOSSessionDetailView.swift in Sources */,
A30C11E610763F5064698D43 /* IOSSessionListView.swift in Sources */,
EF0A0CEAD3C7B875064F8556 /* LiveActivityManager.swift in Sources */,
+ PM0001A0B1C2D3E4F5A6B7C8 /* PremiumManager.swift in Sources */,
+ PW0001A0B1C2D3E4F5A6B7C8 /* PaywallView.swift in Sources */,
+ SV0001A0B1C2D3E4F5A6B7C8 /* SettingsView.swift in Sources */,
D4E5F6A7B8C9D0E1F2A3B4C5 /* PrimarySessionManager.swift in Sources */,
F6A7B8C9D0E1F2A3B4C5D6E7 /* TabRootView.swift in Sources */,
B1C2D3E4F5A6B7C8D9E0F1A1 /* IOSTheme.swift in Sources */,
@@ -513,7 +532,7 @@
05A665239A83C10C704662CC /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- CURRENT_PROJECT_VERSION = 1;
+ CURRENT_PROJECT_VERSION = 2;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = CodyncLiveActivity/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = CodyncLiveActivity;
@@ -524,7 +543,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
- MARKETING_VERSION = 1.0;
+ MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = com.pokai.Codync.ios.LiveActivity;
PRODUCT_NAME = CodyncLiveActivity;
SDKROOT = iphoneos;
@@ -675,6 +694,8 @@
"$(inherited)",
"@executable_path/Frameworks",
);
+ CURRENT_PROJECT_VERSION = 2;
+ MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = com.pokai.Codync.ios;
PRODUCT_NAME = Codync;
SDKROOT = iphoneos;
@@ -704,6 +725,8 @@
"$(inherited)",
"@executable_path/Frameworks",
);
+ CURRENT_PROJECT_VERSION = 2;
+ MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = com.pokai.Codync.ios;
PRODUCT_NAME = Codync;
SDKROOT = iphoneos;
@@ -715,7 +738,7 @@
BBB96964FECC01CD9E90CE59 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- CURRENT_PROJECT_VERSION = 1;
+ CURRENT_PROJECT_VERSION = 2;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = CodyncLiveActivity/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = CodyncLiveActivity;
@@ -726,7 +749,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
- MARKETING_VERSION = 1.0;
+ MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = com.pokai.Codync.ios.LiveActivity;
PRODUCT_NAME = CodyncLiveActivity;
SDKROOT = iphoneos;
@@ -843,6 +866,17 @@
};
/* End XCLocalSwiftPackageReference section */
+/* Begin XCRemoteSwiftPackageReference section */
+ RC0005A0B1C2D3E4F5A6B7C8 /* XCRemoteSwiftPackageReference "purchases-ios-spm" */ = {
+ isa = XCRemoteSwiftPackageReference;
+ repositoryURL = "https://github.com/RevenueCat/purchases-ios-spm.git";
+ requirement = {
+ kind = upToNextMajorVersion;
+ minimumVersion = 5.0.0;
+ };
+ };
+/* End XCRemoteSwiftPackageReference section */
+
/* Begin XCSwiftPackageProductDependency section */
4BA154F0B1967DCBBB7600E5 /* CodyncShared */ = {
isa = XCSwiftPackageProductDependency;
@@ -856,6 +890,16 @@
isa = XCSwiftPackageProductDependency;
productName = CodyncShared;
};
+ RC0003A0B1C2D3E4F5A6B7C8 /* RevenueCat */ = {
+ isa = XCSwiftPackageProductDependency;
+ package = RC0005A0B1C2D3E4F5A6B7C8 /* XCRemoteSwiftPackageReference "purchases-ios-spm" */;
+ productName = RevenueCat;
+ };
+ RC0004A0B1C2D3E4F5A6B7C8 /* RevenueCatUI */ = {
+ isa = XCSwiftPackageProductDependency;
+ package = RC0005A0B1C2D3E4F5A6B7C8 /* XCRemoteSwiftPackageReference "purchases-ios-spm" */;
+ productName = RevenueCatUI;
+ };
/* End XCSwiftPackageProductDependency section */
};
rootObject = 755EE78C119E5281024E6F90 /* Project object */;