         
     }
     
+    fileprivate func setUserHasRatedApp() {
+        userDefaultsObject.set(true, forKey: keyForAppRatingKeyString(appratingRatedCurrentVersion));
+        userDefaultsObject.set(true, forKey: keyForAppRatingKeyString(appratingRatedAnyVersion));
+        userDefaultsObject.synchronize()
+    }
+    
     private func hideRatingAlert() {
         if let alert = ratingAlert {
             alert.dismiss(animated: false, completion: nil);

        
        if (useSKStorereViewController && self.defaultOpensInSKStoreReviewController()) {
            if #available(iOS 10.3, *) {
                //SKStoreReviewController.requestReview()
            }
        } else {
            

    
    
    fileprivate func defaultOpensInSKStoreReviewController() -> Bool {
        let version = UIDevice.current.systemVersion.compare("10.3", options: NSString.CompareOptions.numeric);
        switch version {
        case .orderedSame, .orderedDescending:
            return true;
        case .orderedAscending:
