Skip to content

Commit

Permalink
Update uYouPlusPatches.xm
Browse files Browse the repository at this point in the history
  • Loading branch information
simonk83 authored Nov 8, 2024
1 parent 6ec5c50 commit 91fa8c3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Sources/uYouPlusPatches.xm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# pragma mark - YouTube patches

// Fix Google Sign in by @PoomSmart and @level3tjg (qnblackcat/uYouPlus#684)
%hook NSBundle
- (NSDictionary *)infoDictionary {
NSMutableDictionary *info = %orig.mutableCopy;
if ([self isEqual:NSBundle.mainBundle] && [[NSUserDefaults standardUserDefaults] boolForKey:kGoogleSigninFix])
info[@"CFBundleIdentifier"] = @"com.google.ios.youtube";
return info;
}
%end
//%hook NSBundle
//- (NSDictionary *)infoDictionary {
// NSMutableDictionary *info = %orig.mutableCopy;
// if ([self isEqual:NSBundle.mainBundle] && [[NSUserDefaults standardUserDefaults] boolForKey:kGoogleSigninFix])
// info[@"CFBundleIdentifier"] = @"com.google.ios.youtube";
// return info;
//}
//%end

%hook YTHotConfig
- (BOOL)disableAfmaIdfaCollection { return NO; }
Expand Down

0 comments on commit 91fa8c3

Please sign in to comment.