New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #2584: No longer check clipboard if ref code exists on launch. #2585
Merged
+7
−1
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
7101d33
Added support for pre-determined / binary related ref codes.
jhreis 646e5bd
Clipboard processing added.
jhreis 2359577
Merge branch 'development' into referral_fixes
jhreis 624dabc
Clear clipboard after successful ref promo read.
jhreis 15bfead
Cleaned up code a bit, no functional changes.
jhreis 6fdb085
Added ref code validation.
jhreis 8214d99
Changed ref code sanitzation to use regex.
jhreis 285fe1e
Added unit tests for ref code sanitization.
jhreis aaa762e
Removed unnecessary comment.
jhreis 3ce30ea
Merge branch 'development' into referral_fixes
jhreis 16d5037
Added path components helper to avoid manually adding forward slashes.
jhreis 576ae4a
Comment cleanup.
jhreis 834a1fc
Fixed crash from bad referral situation.
jhreis 98253b6
Fixed S3 bucket endpoint for enterprise builds.
jhreis ade056f
Merge branch 'development' into referral_fixes
jhreis 411481f
Fix #2565: Retry ref code lookup on subsequent launches.
jhreis 17f0717
Merge branch 'development' into referral_fixes
jhreis c8e6630
Merge branch 'referral_fixes' into fix-2565
jhreis 6bcc4f9
Merge remote-tracking branch 'origin/development' into fix-2565
iccub 9f20fc8
Merge remote-tracking branch 'origin/development' into fix-2565
iccub 24744c4
Merge branch 'development' into fix-2565
jhreis aae0eb8
Fixed URP lookup flag placement.
jhreis 92f0562
Add retry timer.
iccub 78d2f75
Move to struct.
iccub 6c8edfc
Fix #2584: No longer check clipboard if ref code exists on launch.
jhreis d55b022
Merge branch 'fix-2565' into fix-2584
jhreis 350f766
Merge branch 'development' into fix-2584
jhreis File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
Fix #2584: No longer check clipboard if ref code exists on launch.
- Loading branch information
| @@ -270,7 +270,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UIViewControllerRestorati | ||
| } | ||
|
|
||
| if Preferences.URP.referralLookupOutstanding.value == true { | ||
| let refCode = UserReferralProgram.sanitize(input: UIPasteboard.general.string) | ||
| var refCode: String? | ||
|
|
||
| if Preferences.URP.referralCode.value == nil { | ||
|
This conversation was marked as resolved
by jhreis
jhreis
Author
Contributor
|
||
| UrpLog.log("No ref code exists on launch, attempting clipboard retrieval") | ||
| refCode = UserReferralProgram.sanitize(input: UIPasteboard.general.string) | ||
| } | ||
|
|
||
| if refCode != nil { | ||
| UrpLog.log("Clipboard ref code found: " + (UIPasteboard.general.string ?? "!Clipboard Empty!")) | ||
| UrpLog.log("Clearing clipboard.") | ||
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
@jhreis - You missed setting the
refcode = Preferences.URP.referralCode.valueif the value is not nill.