refactor: Create a common method to check for a pro version enabled
Pro version is enabled also if a yearly subscription has been bought Resolves: http://gitlab.steamware.net/eqn/eqn.ios/-/issues/3
This commit is contained in:
@@ -110,20 +110,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)annullaAcquisitiInApp
|
||||
{
|
||||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
||||
[defaults setBool:NO forKey:AQUISTO_PRO];
|
||||
[defaults setBool:NO forKey:AQUISTO_PRO_SCONTATO];
|
||||
|
||||
[defaults setBool:NO forKey:@"com.finazzi.distquake.Abbonamento10k.mensileAutomatico"];
|
||||
[defaults setBool:NO forKey:@"com.finazzi.distquake.Abbonamento10k.annualeAutomatico"];
|
||||
[defaults setBool:NO forKey:@"com.finazzi.distquake.Abbonamento10k.annualeAutomaticoScontato"];
|
||||
[defaults setBool:NO forKey:@"com.finazzi.distquake.Abbonamento100k.mensileAutomatico"];
|
||||
[defaults setBool:NO forKey:@"com.finazzi.distquake.Abbonamento100k.annualeAutomatico"];
|
||||
[defaults setBool:NO forKey:@"com.finazzi.distquake.Abbonamento100k.annualeAutomaticoscontato"];
|
||||
}
|
||||
|
||||
-(void)registraNotifiche{
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(apriNotificheSismi) name:NOTIFICHE_SISMI object:nil];
|
||||
|
||||
Reference in New Issue
Block a user