mirror of
				https://github.com/opa334/TrollStore.git
				synced 2025-11-04 15:42:35 +08:00 
			
		
		
		
	1.0.10
This commit is contained in:
		
							parent
							
								
									3624412b90
								
							
						
					
					
						commit
						1be6e8efe3
					
				@ -1,6 +1,6 @@
 | 
				
			|||||||
Package: com.opa334.trollstoreroothelper
 | 
					Package: com.opa334.trollstoreroothelper
 | 
				
			||||||
Name: trollstoreroothelper
 | 
					Name: trollstoreroothelper
 | 
				
			||||||
Version: 1.0.9
 | 
					Version: 1.0.10
 | 
				
			||||||
Architecture: iphoneos-arm
 | 
					Architecture: iphoneos-arm
 | 
				
			||||||
Description: An awesome tool of some sort!!
 | 
					Description: An awesome tool of some sort!!
 | 
				
			||||||
Maintainer: opa334
 | 
					Maintainer: opa334
 | 
				
			||||||
 | 
				
			|||||||
@ -52,7 +52,7 @@
 | 
				
			|||||||
		<string>iPhoneOS</string>
 | 
							<string>iPhoneOS</string>
 | 
				
			||||||
	</array>
 | 
						</array>
 | 
				
			||||||
	<key>CFBundleVersion</key>
 | 
						<key>CFBundleVersion</key>
 | 
				
			||||||
	<string>1.0.9</string>
 | 
						<string>1.0.10</string>
 | 
				
			||||||
	<key>LSRequiresIPhoneOS</key>
 | 
						<key>LSRequiresIPhoneOS</key>
 | 
				
			||||||
	<true/>
 | 
						<true/>
 | 
				
			||||||
	<key>UIDeviceFamily</key>
 | 
						<key>UIDeviceFamily</key>
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
Package: com.opa334.trollstorehelper
 | 
					Package: com.opa334.trollstorehelper
 | 
				
			||||||
Name: TrollStore Helper
 | 
					Name: TrollStore Helper
 | 
				
			||||||
Version: 1.0.9
 | 
					Version: 1.0.10
 | 
				
			||||||
Architecture: iphoneos-arm
 | 
					Architecture: iphoneos-arm
 | 
				
			||||||
Description: Helper utility to install and manage TrollStore!
 | 
					Description: Helper utility to install and manage TrollStore!
 | 
				
			||||||
Maintainer: opa334
 | 
					Maintainer: opa334
 | 
				
			||||||
 | 
				
			|||||||
@ -50,7 +50,7 @@
 | 
				
			|||||||
		<string>iPhoneOS</string>
 | 
							<string>iPhoneOS</string>
 | 
				
			||||||
	</array>
 | 
						</array>
 | 
				
			||||||
	<key>CFBundleVersion</key>
 | 
						<key>CFBundleVersion</key>
 | 
				
			||||||
	<string>1.0.9</string>
 | 
						<string>1.0.10</string>
 | 
				
			||||||
	<key>LSRequiresIPhoneOS</key>
 | 
						<key>LSRequiresIPhoneOS</key>
 | 
				
			||||||
	<true/>
 | 
						<true/>
 | 
				
			||||||
	<key>UIDeviceFamily</key>
 | 
						<key>UIDeviceFamily</key>
 | 
				
			||||||
 | 
				
			|||||||
@ -133,30 +133,37 @@
 | 
				
			|||||||
	// Configure the cell...
 | 
						// Configure the cell...
 | 
				
			||||||
	cell.textLabel.text = [[TSApplicationsManager sharedInstance] displayNameForAppPath:appPath];
 | 
						cell.textLabel.text = [[TSApplicationsManager sharedInstance] displayNameForAppPath:appPath];
 | 
				
			||||||
	cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ • %@", appVersion, appId];
 | 
						cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ • %@", appVersion, appId];
 | 
				
			||||||
	cell.imageView.layer.borderWidth = 0.2;
 | 
						cell.imageView.layer.borderWidth = 0.34;
 | 
				
			||||||
	cell.imageView.layer.borderColor = [UIColor blackColor].CGColor;
 | 
						cell.imageView.layer.borderColor = [UIColor separatorColor].CGColor;
 | 
				
			||||||
	cell.imageView.layer.cornerRadius = 13.8;
 | 
						cell.imageView.layer.cornerRadius = 13.8;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	UIImage* cachedIcon = _cachedIcons[appId];
 | 
						if(appId)
 | 
				
			||||||
	if(cachedIcon)
 | 
					 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		cell.imageView.image = cachedIcon;
 | 
							UIImage* cachedIcon = _cachedIcons[appId];
 | 
				
			||||||
 | 
							if(cachedIcon)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								cell.imageView.image = cachedIcon;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							else
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								cell.imageView.image = _placeholderIcon;
 | 
				
			||||||
 | 
								dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									//usleep(1000 * 5000); // (test delay for debugging)
 | 
				
			||||||
 | 
									UIImage* iconImage = [UIImage _applicationIconImageForBundleIdentifier:appId format:10 scale:[UIScreen mainScreen].scale];
 | 
				
			||||||
 | 
									_cachedIcons[appId] = iconImage;
 | 
				
			||||||
 | 
									dispatch_async(dispatch_get_main_queue(), ^{
 | 
				
			||||||
 | 
										if([tableView.indexPathsForVisibleRows containsObject:indexPath])
 | 
				
			||||||
 | 
										{
 | 
				
			||||||
 | 
											cell.imageView.image = iconImage;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
									});
 | 
				
			||||||
 | 
								});
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		cell.imageView.image = _placeholderIcon;
 | 
							cell.imageView.image = _placeholderIcon;
 | 
				
			||||||
		dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^
 | 
					 | 
				
			||||||
		{
 | 
					 | 
				
			||||||
			//usleep(1000 * 5000); // (test delay for debugging)
 | 
					 | 
				
			||||||
			UIImage* iconImage = [UIImage _applicationIconImageForBundleIdentifier:appId format:10 scale:[UIScreen mainScreen].scale];
 | 
					 | 
				
			||||||
			_cachedIcons[appId] = iconImage;
 | 
					 | 
				
			||||||
			dispatch_async(dispatch_get_main_queue(), ^{
 | 
					 | 
				
			||||||
				if([tableView.indexPathsForVisibleRows containsObject:indexPath])
 | 
					 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					cell.imageView.image = iconImage;
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
			});
 | 
					 | 
				
			||||||
		});
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cell.preservesSuperviewLayoutMargins = NO;
 | 
						cell.preservesSuperviewLayoutMargins = NO;
 | 
				
			||||||
@ -186,7 +193,7 @@
 | 
				
			|||||||
	NSString* appId = [appsManager appIdForAppPath:appPath];
 | 
						NSString* appId = [appsManager appIdForAppPath:appPath];
 | 
				
			||||||
	NSString* appName = [appsManager displayNameForAppPath:appPath];
 | 
						NSString* appName = [appsManager displayNameForAppPath:appPath];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	UIAlertController* appSelectAlert = [UIAlertController alertControllerWithTitle:appName message:appId preferredStyle:UIAlertControllerStyleActionSheet];
 | 
						UIAlertController* appSelectAlert = [UIAlertController alertControllerWithTitle:appName message:appId?:@"" preferredStyle:UIAlertControllerStyleActionSheet];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/*UIAlertAction* detachAction = [UIAlertAction actionWithTitle:@"Detach from TrollStore" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action)
 | 
						/*UIAlertAction* detachAction = [UIAlertAction actionWithTitle:@"Detach from TrollStore" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
Package: com.opa334.trollstore
 | 
					Package: com.opa334.trollstore
 | 
				
			||||||
Name: TrollStore
 | 
					Name: TrollStore
 | 
				
			||||||
Version: 1.0.9
 | 
					Version: 1.0.10
 | 
				
			||||||
Architecture: iphoneos-arm
 | 
					Architecture: iphoneos-arm
 | 
				
			||||||
Description: An awesome application!
 | 
					Description: An awesome application!
 | 
				
			||||||
Maintainer: opa334
 | 
					Maintainer: opa334
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user