mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-12 03:45:34 +00:00
28 lines
889 B
Objective-C
28 lines
889 B
Objective-C
/*
|
|
* Keyman is copyright (C) SIL International. MIT License.
|
|
*
|
|
* Created by Shawn Schantz on 2024-07-30.
|
|
*
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface KMDataRepository : NSObject
|
|
// keymanDataDirectory: '~/Library/Application Support/keyman.inputmethod.Keyman'
|
|
@property (readonly) NSURL *keymanDataDirectory;
|
|
|
|
// keymanKeyboardsDirectory: '~/Library/Application Support/keyman.inputmethod.Keyman/Keyman-Keyboards'
|
|
@property (readonly) NSURL *keymanKeyboardsDirectory;
|
|
|
|
+ (KMDataRepository *)shared;
|
|
- (void)createDataDirectoryIfNecessary;
|
|
- (void)createKeyboardsDirectoryIfNecessary;
|
|
- (BOOL)migrateData;
|
|
- (NSString*)buildFullPath:(NSString *)fromPartialPath;
|
|
- (NSString*)trimToPartialPath:(NSString *)fromFullPath;
|
|
- (NSString *)buildPartialPathFrom:(NSString *)keyboardSubdirectory keyboardFile:(NSString *)kmxFilename;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|