| | |
| | | "func remainingSeconds(at date: Date = Date()) -> Int", |
| | | "ceil(endsAt.timeIntervalSince(date))", |
| | | "max(0, Int(", |
| | | "struct ProDisplayModePreviewState: Equatable", |
| | | "func startDisplayModePreview(for displayMode: String)", |
| | | "endsAt: now.addingTimeInterval(ProEntitlementConfig.themePreviewDuration)", |
| | | "func stopDisplayModePreview()", |
| | | ] |
| | | missing_pro = [needle for needle in required_pro if needle not in pro_text] |
| | | if missing_pro: |
| | |
| | | "pro.theme.status.previewCountdown", |
| | | ".replacingOccurrences(of: \"%time%\", with: countdown)", |
| | | ".countdown(text: themePreviewCountdownText ?? \"00:00\")", |
| | | "proEntitlement.displayModePreviewState", |
| | | "formatThemePreviewCountdown(seconds:", |
| | | "String(format: \"%02d:%02d\"", |
| | | "proEntitlement.stopThemePreview()", |
| | | "proEntitlement.stopDisplayModePreview()", |
| | | ".font(.system(size: 10, weight: .semibold, design: .monospaced))", |
| | | ] |
| | | missing_preferences = [needle for needle in required_preferences if needle not in preferences_text] |