Commit 51d18d7f authored by Felix Paul Kühne's avatar Felix Paul Kühne

add watchOS 2 target

parent cd3aa234
......@@ -27,8 +27,10 @@
#import <CoreData/CoreData.h>
#if TARGET_OS_IPHONE
#ifndef MLKIT_READONLY_TARGET
#import <CoreSpotlight/CoreSpotlight.h>
#endif
#endif
@class MLShowEpisode;
@class MLAlbumTrack;
......@@ -126,9 +128,11 @@ extern NSString *const MLFileThumbnailWasUpdated;
- (size_t)fileSizeInBytes;
#if TARGET_OS_IPHONE
#ifndef MLKIT_READONLY_TARGET
- (CSSearchableItemAttributeSet *)coreSpotlightAttributeSet;
- (void)updateCoreSpotlightEntry;
#endif
#endif
@end
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
This diff is collapsed.
......@@ -416,6 +416,7 @@ NSString *const MLFileThumbnailWasUpdated = @"MLFileThumbnailWasUpdated";
}
#if TARGET_OS_IPHONE
#ifndef MLKIT_READONLY_TARGET
- (CSSearchableItemAttributeSet *)coreSpotlightAttributeSet
{
if (!SYSTEM_RUNS_IOS9)
......@@ -496,5 +497,6 @@ NSString *const MLFileThumbnailWasUpdated = @"MLFileThumbnailWasUpdated";
}
}
#endif
#endif
@end
......@@ -40,8 +40,10 @@
#import <sys/sysctl.h> // for sysctlbyname
#if TARGET_OS_IPHONE
#ifndef MLKIT_READONLY_TARGET
#import <CoreSpotlight/CoreSpotlight.h>
#endif
#endif
#if HAVE_BLOCK
#import "MLMovieInfoGrabber.h"
......@@ -286,8 +288,10 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles";
#if! TARGET_OS_IPHONE
NSRunInformationalAlertPanel(@"Corrupted Media Library", @"There is nothing we can apparently do about it...", @"OK", nil, nil);
#else
#ifndef TARGET_OS_WATCH
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Corrupted Media Library" message:@"There is nothing we can apparently do about it..." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
#endif
#endif
// Probably assert instead.
return nil;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment