Browse Source

【ComPDFKit】更新至V2.1.3

tangchao 2 months ago
parent
commit
527000e2bf

+ 5 - 5
PDF Office/PDF Master/AppDelegate.swift

@@ -123,7 +123,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate {
             _ = TransactionObserver.shared
         } else {
             // Fallback on earlier versions
-        };
+        }
         let token = UserDefaults.standard.value(forKey: "MemberAccessToken")
         if token is String {
             if (token as! String).count > 0 {
@@ -264,13 +264,13 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate {
         NotificationCenter.default.addObserver(self, selector: #selector(iapProdcutLoadedNotification), name: .KMIAPProductLoaded, object: nil)
     }
     
-    func openWindowsForAppLaunch() {
+    func openWindowsForAppLaunch() {}
+    
+    func openWindowsForLogin() {
         if KMWinBackWindowController.shared.needShow() {
             KMWinBackWindowController.shared.openWindow()
         }
-    }
-    
-    func openWindowsForLogin() {
+        
         // 新手礼窗口
         if KMNewUserGiftWindowController.shared.needShow() {
             DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {

+ 23 - 12
PDF Office/PDF Master/Class/Account/WinBack/Window/KMWinBackWindowController.swift

@@ -231,6 +231,12 @@ class KMWinBackWindowController: KMBaseWindowController {
         window?.standardWindowButton(.miniaturizeButton)?.isHidden = true
         window?.delegate = self
         
+        
+        /*
+         "then %@ for 6 months." = "then %@ for 6 months.";
+         "Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. ";
+         "Get Special Offer - Advanced 6 Mos" = "Get Special Offer - Advanced 6 Mos";
+         */
         despBox.borderWidth = 0
         despBox.cornerRadius = 4
         despBox.contentView = despView_
@@ -244,8 +250,8 @@ class KMWinBackWindowController: KMBaseWindowController {
         titleLabel.stringValue = NSLocalizedString("PDF Reader Pro", comment: "")
         titleLabel.font = .SFProTextRegularFont(20)
         
-        despView_.titleLabel.stringValue = NSLocalizedString("PDF Reader Pro Advanced - 6 Months Plan", comment: "")
-        despView_.tipLabel.stringValue = NSLocalizedString("Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you.", comment: "")
+        despView_.titleLabel.stringValue = NSLocalizedString("PDF Reader Pro Advanced/n - 6 Months Plan", comment: "")
+        despView_.tipLabel.stringValue = NSLocalizedString("Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. ", comment: "")
         despView_.iconIv.image = NSImage(named: "KMImageNameWinBackDespIcon")
         
         buttonView_.backgroundView.xRadius = 4
@@ -263,21 +269,25 @@ class KMWinBackWindowController: KMBaseWindowController {
         if #available(macOS 15.0, *) {
             var rootView = CPDFOfferSubscriptionStoreView()
             rootView.eligibleOffersCallback = { offertIds in
+                KMPrint("你符合赢回的优惠卷:")
+                KMPrint(offertIds)
                 if offertIds.isEmpty == false {
                     if let data = offertIds.first, data.isEmpty == false {
                         if let data = self.offerId_, data.isEmpty == false {
                             return
                         }
                         
-                        self._selectOffer(offerId: data)
-                        
                         if self.needShow() {
+                            self._selectOffer(offerId: data)
+                            
                             self.showWindow(nil)
                             
                             self._saveRecord()
                             
                             self.window?.makeKeyAndOrderFront(nil)
                         } else {
+                            KMPrint("Win Back:不需要显示")
+                            
                             self.window?.close()
                         }
                     }
@@ -289,10 +299,8 @@ class KMWinBackWindowController: KMBaseWindowController {
             contentBox.addSubview(hostingView, positioned: .below, relativeTo: backgroundIv)
             
             hostingView.isHidden = true
-            
-   
         } else {
-            // Fallback on earlier versions
+            self.window?.close()
         }
         
 //        https://api.storekit.itunes.apple.com/inApps/v1/subscriptions/{transactionId}
@@ -390,7 +398,7 @@ class KMWinBackWindowController: KMBaseWindowController {
     
     override func interfaceThemeDidChanged(_ appearance: NSAppearance.Name) {
         super.interfaceThemeDidChanged(appearance)
-        
+
         KMMainThreadExecute {
             if KMAppearance.isDarkMode() {
                 self.titleLabel.textColor = .white
@@ -406,9 +414,9 @@ class KMWinBackWindowController: KMBaseWindowController {
                 self.despBox.fillColor = NSColor.white.withAlphaComponent(0.15)
                 self.despView_.titleLabel.textColor = .white
 
-                let despAttri = NSMutableAttributedString(string: NSLocalizedString("First 6 months ", comment: ""), attributes: [.font : NSFont.SFProTextRegularFont(14), .foregroundColor : NSColor.white])
+                let despAttri = NSMutableAttributedString(string: NSLocalizedString("First 6 months", comment: "")+" ", attributes: [.font : NSFont.SFProTextRegularFont(14), .foregroundColor : NSColor.white])
                 despAttri.append(.init(string: self.displayPriceString_, attributes: [.font : NSFont.SFProTextRegularFont(14), .foregroundColor : NSColor(hex: "#227AFF")]))
-                let string = String(format: NSLocalizedString(", then %@ for 6 months.", comment: ""), self.origialPrice_)
+                let string = ", " + String(format: NSLocalizedString("then %@ for 6 months.", comment: ""), self.origialPrice_)
                 despAttri.append(.init(string: string, attributes: [.font : NSFont.SFProTextRegularFont(14), .foregroundColor : NSColor.white]))
                 self.despView_.subTitleLabel.attributedStringValue = despAttri
                 
@@ -429,9 +437,9 @@ class KMWinBackWindowController: KMBaseWindowController {
                 self.despBox.fillColor = .white
                 self.despView_.titleLabel.textColor = NSColor(hex: "#0E1114")
                 
-                let despAttri = NSMutableAttributedString(string: NSLocalizedString("First 6 months ", comment: ""), attributes: [.font : NSFont.SFProTextRegularFont(14), .foregroundColor : NSColor(hex: "#000150")])
+                let despAttri = NSMutableAttributedString(string: NSLocalizedString("First 6 months", comment: ""), attributes: [.font : NSFont.SFProTextRegularFont(14), .foregroundColor : NSColor(hex: "#000150")])
                 despAttri.append(.init(string: self.displayPriceString_, attributes: [.font : NSFont.SFProTextRegularFont(14), .foregroundColor : NSColor(hex: "#4982E6")]))
-                let string = String(format: NSLocalizedString(", then %@ for 6 months.", comment: ""), self.origialPrice_)
+                let string = ", " + String(format: NSLocalizedString("then %@ for 6 months.", comment: ""), self.origialPrice_)
                 despAttri.append(.init(string: string, attributes: [.font : NSFont.SFProTextRegularFont(14), .foregroundColor : NSColor(hex: "#000150")]))
                 self.despView_.subTitleLabel.attributedStringValue = despAttri
                 
@@ -568,7 +576,10 @@ class KMWinBackWindowController: KMBaseWindowController {
             if lastShowTime > 0 {
                 let date = Date(timeIntervalSince1970: lastShowTime)
                 if date.isToday() {
+#if DEBUG
+#else
                     return false
+#endif
                 }
             }
             

BIN
PDF Office/PDF Master/Class/PDFWindowController/PDFSDK/ComPDFKit.framework/Versions/A/ComPDFKit


+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/PDFSDK/ComPDFKit.framework/Versions/A/Resources/Info.plist

@@ -17,7 +17,7 @@
 	<key>CFBundlePackageType</key>
 	<string>FMWK</string>
 	<key>CFBundleShortVersionString</key>
-	<string>2.1.3</string>
+	<string>2.1.2</string>
 	<key>CFBundleSupportedPlatforms</key>
 	<array>
 		<string>MacOSX</string>

+ 3 - 3
PDF Office/PDF Master/Class/PDFWindowController/PDFSDK/ComPDFKit.framework/Versions/A/_CodeSignature/CodeResources

@@ -46,7 +46,7 @@
 		</data>
 		<key>Resources/Info.plist</key>
 		<data>
-		LlfPl7uz11rxkUdyR4Kq2QRoKZQ=
+		T7G5XIX8/Ryp7rkvR+1Kyi3JBgk=
 		</data>
 		<key>Resources/default.metallib</key>
 		<data>
@@ -1197,11 +1197,11 @@
 		<dict>
 			<key>hash</key>
 			<data>
-			LlfPl7uz11rxkUdyR4Kq2QRoKZQ=
+			T7G5XIX8/Ryp7rkvR+1Kyi3JBgk=
 			</data>
 			<key>hash2</key>
 			<data>
-			bptddDZ69KhOO0yxqbDhSPrClXcaaKLYRWYuSaacHq8=
+			oCgZRjEaCVahES29T4DMjyuvCLEN3hTZxM1j2xl5NHE=
 			</data>
 		</dict>
 		<key>Resources/default.metallib</key>

+ 8 - 0
PDF Office/PDF Master/Strings/ar.lproj/Localizable.strings

@@ -4800,3 +4800,11 @@
 "Total AI Credits" = "مجموع نقاط الذكاء الاصطناعي";
 "%@ Coupons" = "كوبونات %@";
 
+"PDF Reader Pro" = "قارئ PDF برو";
+"Special Offer - " = "عرض خاص - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "قارئ PDF المتقدم/n- خطة 6 أشهر";
+"First 6 months" = "أول 6 أشهر";
+"then %@ for 6 months." = "ثم %@ دولارًا لمدة 6 أشهر.";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "نظرًا لأنك كنت مشتركًا سابقًا في PDF Reader Pro، فإننا نقدم لك الآن عرضًا خاصًا.";
+"Get Special Offer - Advanced 6 Mos" = "احصل على عرض خاص - 6 أشهر متقدمة";
+

+ 8 - 0
PDF Office/PDF Master/Strings/de.lproj/Localizable.strings

@@ -3164,3 +3164,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "Testen Sie alle Funktionen kostenlos oder erhalten Sie Gutscheine zum Kauf";
 "Total AI Credits" = "Gesamtzahl der KI-Credits";
 "%@ Coupons" = "%@ Gutscheine";
+
+"PDF Reader Pro" = "PDF Reader Pro";
+"Special Offer - " = "Sonderangebot - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "PDF Reader Pro Advanced/n- 6 Monats Plan";
+"First 6 months" = "Erste 6 Monate";
+"then %@ for 6 months." = "dann %@ für 6 Monate.        ";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "Da Sie zuvor PDF Reader Pro abonniert hatten, unterbreiten wir Ihnen jetzt ein Sonderangebot.        ";
+"Get Special Offer - Advanced 6 Mos" = "Sonderangebot erhalten";

+ 8 - 0
PDF Office/PDF Master/Strings/en.lproj/Localizable.strings

@@ -4336,3 +4336,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "Get new user coupons or get a 7-day free trial of all features!";
 "Total AI Credits" = "Total AI Credits";
 "%@ Coupons" = "%@ Coupons";
+
+"PDF Reader Pro" = "PDF Reader Pro";
+"Special Offer - " = "Special Offer - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "PDF Reader Pro Advanced/n - 6 Months Plan";
+"First 6 months" = "First 6 months";
+"then %@ for 6 months." = "then %@ for 6 months.";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. ";
+"Get Special Offer - Advanced 6 Mos" = "Get Special Offer - Advanced 6 Mos";

+ 8 - 0
PDF Office/PDF Master/Strings/es.lproj/Localizable.strings

@@ -3244,3 +3244,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "Pruebe todas las funciones gratis u obtenga cupones para comprar";
 "Total AI Credits" = "Total de créditos de IA";
 "%@ Coupons" = "%@ Cupones";
+
+"PDF Reader Pro" = "Lector de PDF profesional";
+"Special Offer - " = "Oferta especial - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "Lector de PDF Pro Avanzado/n- Plan de 6 meses";
+"First 6 months" = "Primeros 6 meses";
+"then %@ for 6 months." = "luego %@ por 6 meses.";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "Debido a que anteriormente estaba suscrito a PDF Reader Pro, ahora le ofrecemos una oferta especial.";
+"Get Special Offer - Advanced 6 Mos" = "Oferta especial - Avanzado 6 meses";

+ 8 - 0
PDF Office/PDF Master/Strings/fr.lproj/Localizable.strings

@@ -3130,3 +3130,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "Essayez toutes les fonctionnalités gratuitement ou obtenez des coupons à acheter";
 "Total AI Credits" = "Total des crédits d'IA";
 "%@ Coupons" = "%@ Coupons";
+
+"PDF Reader Pro" = "Lecteur PDF Pro";
+"Special Offer - " = "Offre spéciale - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "Lecteur PDF Pro Avancé/n- Forfait 6 mois";
+"First 6 months" = "6 premiers mois";
+"then %@ for 6 months." = "puis %@ pour 6 mois.";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "Parce que vous étiez auparavant abonné à PDF Reader Pro, nous vous proposons désormais une offre spéciale.    ";
+"Get Special Offer - Advanced 6 Mos" = "Offre spéciale - Avancé 6 mois";

+ 8 - 0
PDF Office/PDF Master/Strings/it.lproj/Localizable.strings

@@ -3040,3 +3040,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "Prova tutte le funzionalità gratuitamente o ottieni coupon per l'acquisto";
 "Total AI Credits" = "Crediti AI totali";
 "%@ Coupons" = "%@ Buoni";
+
+"PDF Reader Pro" = "Lettore PDF Pro";
+"Special Offer - " = "Offerta speciale - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "Lettore PDF Pro Avanzato/n- Piano di 6 mesi";
+"First 6 months" = "Primi 6 mesi";
+"then %@ for 6 months." = "poi %@ per 6 mesi.";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "Poiché in precedenza eri abbonato a PDF Reader Pro, ora ti offriamo un'offerta speciale.";
+"Get Special Offer - Advanced 6 Mos" = "Offerta Speciale - Avanzato 6 Mos";

+ 8 - 0
PDF Office/PDF Master/Strings/ja.lproj/Localizable.strings

@@ -3320,3 +3320,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "すべての機能を無料で試すか、クーポンを入手してください";
 "Total AI Credits" = "合計AIクレジット";
 "%@ Coupons" = "%@ クーポン";
+
+"PDF Reader Pro" = "PDF リーダー プロ";
+"Special Offer - " = "特別オファー - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "PDF Reader Pro プレミアム版/n- 6か月のサブスクリプション";
+"First 6 months" = "最初の 6 か月間は";
+"then %@ for 6 months." = "その後 6 か月間 %@";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "以前に PDF Reader Pro を購読したことがある方に、特別オファーを提供いたします。";
+"Get Special Offer - Advanced 6 Mos" = "特別オファーを入手する";

+ 8 - 0
PDF Office/PDF Master/Strings/nl.lproj/Localizable.strings

@@ -3202,3 +3202,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "Probeer alle functies gratis of ontvang kortingsbonnen om te kopen";
 "Total AI Credits" = "Totaal AI-credits";
 "%@ Coupons" = "%@ Kupony";
+
+"PDF Reader Pro" = "PDF-lezer Pro";
+"Special Offer - " = "Speciale aanbieding - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "PDF Reader Pro Geavanceerd/n- 6 maandenplan";
+"First 6 months" = "Eerste 6 maanden";
+"then %@ for 6 months." = "daarna %@ voor 6 maanden.";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "Omdat u eerder geabonneerd was op PDF Reader Pro, doen wij u nu een speciale aanbieding.";
+"Get Special Offer - Advanced 6 Mos" = "Ontvang speciale aanbieding";

+ 8 - 0
PDF Office/PDF Master/Strings/pl.lproj/Localizable.strings

@@ -3256,3 +3256,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "Wypróbuj wszystkie funkcje za darmo lub zdobądź kupony na zakup";
 "Total AI Credits" = "Totaal AI-credits";
 "%@ Coupons" = "%@ kortingsbonnen";
+
+"PDF Reader Pro" = "Czytnik PDF Pro";
+"Special Offer - " = "Oferta specjalna – ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "Czytnik PDF Pro Zaawansowany/n- Plan 6-miesięczny";
+"First 6 months" = "Pierwsze 6 miesięcy";
+"then %@ for 6 months." = "następnie %@ przez 6 miesięcy.";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "Ponieważ wcześniej subskrybowałeś program PDF Reader Pro, oferujemy teraz specjalną ofertę.";
+"Get Special Offer - Advanced 6 Mos" = "Skorzystaj z oferty specjalnej";

+ 8 - 0
PDF Office/PDF Master/Strings/pt.lproj/Localizable.strings

@@ -4719,3 +4719,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "Experimente todos os recursos gratuitamente ou ganhe cupons para comprar";
 "Total AI Credits" = "Total de créditos de IA";
 "%@ Coupons" = "%@ Cupons";
+
+"PDF Reader Pro" = "Leitor de PDF Pró";
+"Special Offer - " = "Oferta Especial - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "Leitor de PDF Pro Avançado/n- Plano de 6 Meses";
+"First 6 months" = "Primeiros 6 meses";
+"then %@ for 6 months." = "depois %@ por 6 meses.";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "Como você já era assinante do PDF Reader Pro, agora estamos oferecendo uma oferta especial para você.";
+"Get Special Offer - Advanced 6 Mos" = "Oferta Especial - Avançado 6 Meses";

+ 8 - 0
PDF Office/PDF Master/Strings/ru.lproj/Localizable.strings

@@ -3190,3 +3190,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "Попробуйте все функции бесплатно или получите купоны на покупку";
 "Total AI Credits" = "Всего кредитов ИИ";
 "%@ Coupons" = "%@ Купоны";
+
+"PDF Reader Pro" = "PDF-ридер про";
+"Special Offer - " = "Скидка - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "PDF Reader Pro Продвинутый/n- План на 6 месяцев";
+"First 6 months" = "Первые 6 месяцев";
+"then %@ for 6 months." = "затем %@ 6 месяцев.";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "Поскольку ранее вы были подписаны на PDF Reader Pro, мы делаем для вас специальное предложение.";
+"Get Special Offer - Advanced 6 Mos" = "Специальное предложение";

+ 8 - 0
PDF Office/PDF Master/Strings/zh-Hans.lproj/Localizable.strings

@@ -4237,3 +4237,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "领取新人优惠券,或免费试用全功能7天。";
 "Total AI Credits" = "总AI权益点数";
 "%@ Coupons" = "%@优惠券";
+
+"PDF Reader Pro" = "PDF Reader Pro";
+"Special Offer - " = "特别优惠 - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "PDF Reader Pro 高级版/n- 6个月订阅";
+"First 6 months" = "前6个月为";
+"then %@ for 6 months." = "到期后为%@/6个月。";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "由于您之前订阅过PDF Reader Pro,因此我们现在向您提供特别优惠。";
+"Get Special Offer - Advanced 6 Mos" = "获取特别优惠 - 高级版6个月";

+ 8 - 0
PDF Office/PDF Master/Strings/zh-Hant.lproj/Localizable.strings

@@ -4370,3 +4370,11 @@
 "Get new user coupons or get a 7-day free trial of all features!" = "領取新人優惠券,或免費試用全功能7天。";
 "Total AI Credits" = "總AI權益點數";
 "%@ Coupons" = "%@優惠券";
+
+"PDF Reader Pro" = "PDF Reader Pro";
+"Special Offer - " = "特別優惠 - ";
+"PDF Reader Pro Advanced/n - 6 Months Plan" = "PDF Reader Pro 進階版/n- 6個月訂閱";
+"First 6 months" = "前6個月為";
+"then %@ for 6 months." = "到期後為%@/6個月。";
+"Because you were previously subscribed to PDF Reader Pro, we are now delivering a special offer to you. " = "由於您之前訂閱過PDF Reader Pro,因此我們現在向您提供特別優惠。";
+"Get Special Offer - Advanced 6 Mos" = "取得特別優惠 - 高級版6個月";