This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better algorithms, more error handling
- Loading branch information
Showing
6 changed files
with
110 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
@interface FeaturedDummyPackage : NSObject | ||
@property (nonatomic, readonly) NSString *identifier; | ||
@property (nonatomic, readonly) NSString *name; | ||
- (instancetype)initWithPackageName:(NSString *)name identifier:(NSString *)identifier; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#import "FeaturedDummyPackage.h" | ||
|
||
@implementation FeaturedDummyPackage | ||
|
||
static UIImage *qmarkIcon; | ||
|
||
+ (void)initialize { | ||
if ([self class] == [FeaturedDummyPackage class]) { | ||
qmarkIcon = [UIImage imageNamed:@"unknown"]; | ||
} | ||
} | ||
|
||
- (void)parse {} | ||
|
||
- (NSString *)mode { | ||
return nil; | ||
} | ||
|
||
- (UIImage *)icon { | ||
return qmarkIcon; | ||
} | ||
|
||
- (NSString *)id { | ||
return _identifier; | ||
} | ||
|
||
- (id)author { | ||
return nil; | ||
} | ||
|
||
- (BOOL)uninstalled { | ||
return YES; | ||
} | ||
|
||
- (NSString *)shortDescription { | ||
return @"This package is not available in your sources."; | ||
} | ||
|
||
- (instancetype)initWithPackageName:(NSString *)name identifier:(NSString *)identifier { | ||
self = [super init]; | ||
_name = name; | ||
_identifier = identifier; | ||
return self; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters