Skip to content

Commit

Permalink
fix symlinks(iOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
P1ndl3sk1n committed Mar 12, 2015
1 parent d6513c2 commit a1141ea
Show file tree
Hide file tree
Showing 15 changed files with 628 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/ios/TelerikAppFeedback.framework/Headers

This file was deleted.

18 changes: 18 additions & 0 deletions src/ios/TelerikAppFeedback.framework/Headers/AppFeedback.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// TelerikUI.h
// TelerikUI
//
// Copyright (c) 2013 Telerik. All rights reserved.
//

@interface TelerikAppFeedback : NSObject

+ (NSString*)versionString;

@end

#import "TKFeedbackController.h"
#import "TKFeedbackDataSource.h"
#import "TKPlatformFeedbackSource.h"
#import "TKFeedbackItem.h"
#import "TKFeedback.h"
24 changes: 24 additions & 0 deletions src/ios/TelerikAppFeedback.framework/Headers/TKFeedback.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// TKFeedback.h
// TryAppFeed
//
// Copyright (c) 2014 Telerik. All rights reserved.
//

@protocol TKFeedbackDataSource;

@interface TKFeedback : NSObject

+ (id<TKFeedbackDataSource>)dataSource;

+ (void)setDataSource:(id<TKFeedbackDataSource>)dataSource;

+ (void)showFeedback;

+ (void)showFeedback:(UIModalTransitionStyle)transitionStyle;

+ (void)sendFeedback;

+ (BOOL)feedbackIsShown;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//
// TKFeedbackController.h
// TryAppFeed
//
// Copyright (c) 2014 Telerik. All rights reserved.
//

@protocol TKFeedbackDataSource;

/**
Represents a view controller that should be placed on top of your view controller hierarchy.
This way it can detect a shake gesture and initiate the feedback process automatically.
*/
@interface TKFeedbackController : UIViewController

/**
Initializes the feedback controller.
@param contentController The view controller that can be used as a root view controller in the application.
*/
- (id)initWithContentController:(UIViewController *)contentController;

/**
The view controller that contain root view controller (read-only).
*/
@property (nonatomic, strong) UIViewController *contentController;

/**
The data source used to provide the feedback service and storage.
*/
@property (nonatomic, strong) id<TKFeedbackDataSource> dataSource;

/**
Defines whether the controller’s built-in action sheet will shown on shake the device.
*/
@property (nonatomic) BOOL showOnShake;

/**
Shows the built-in feedback action sheet ('Send Feedback', 'Your Feedback', 'Settings')
*/
- (void)showFeedback;

/**
Takes a snapshot of the current application screen and creates a new feedback item ready to be added and sent/saved to the data source provider.
*/
- (void)sendFeedback;

@end
102 changes: 102 additions & 0 deletions src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackDataSource.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
//
// TKFeedbackRepository.h
// TelerikUI
//
// Copyright (c) 2014 Telerik. All rights reserved.
//

#import "TKFeedbackItem.h"

/**
The data source protocol used to provide feedback service and storage.
*/
@protocol TKFeedbackDataSource <NSObject>

/**
Contains the user name.
*/
@property (nonatomic, copy) NSString *userName;

/**
Returns async the feedback items from the data source provider.
@param handler The completion handler to call when the get operation is complete.
*/
- (void)feedbackItems:(void (^)(NSArray *items, NSError *error))handler;

/**
Adds async the feedback item to the data source provider.
@param item The feedback item
@param handler The completion handler to call when the add operation is complete.
*/
- (void)addFeedback:(TKFeedbackItem *)item completionHandler:(void (^)(NSError *error))handler;

/**
Adds async the specified feedback items to the data source provider.
@param feedbackItems The feedback item list
@param handler The completion handler to call when the add operation is complete.
*/
- (void)addFeedbackItems:(NSArray *)feedbackItems completionHandler:(void (^)(NSError *))handler;

/**
Edits async the feedback item in the data source provider.
@param key The feedback item key
@param state The feedback item state
@param handler The completion handler to call when the edit operation is complete.
*/
- (void)editWithKey:(NSString *)key state:(NSString *)state completionHandler:(void (^)(NSError *error))handler;

/**
Deletes async the feedback item from the data source provider.
@param key The feedback item key
@param handler The completion handler to call when the delete operation is complete.
*/
- (void)deleteWithKey:(NSString *)key completionHandler:(void (^)(NSError *error))handler;

@optional

/**
Contains the user email.
*/
@property (nonatomic, copy) NSString *userEmail;

/**
Returns async the feedback items filtered by state.
@param state The feedback item state used to filter data
@param handler The completion handler to call when the get operation is complete.
*/
- (void)feedbackItemsByState:(NSString *)state completionHandler:(void (^)(NSArray *items, NSError *error))handler;

/**
Returns async the feedback items filtered by state and skip number of items.
@param state The feedback item state used to filter data
@param skip The number of skipped items
@param handler The completion handler to call when the get operation is complete.
*/
- (void)feedbackItemsByState:(NSString *)state skip:(NSInteger)skip completionHandler:(void (^)(NSArray *, NSError *))handler;

/**
Returns screenshot image of the feedback item using key.
@param key The feedback item key
@param handler The completion handler to call when the image download is complete.
*/
- (void)imageForKey:(NSString *)key completionHandler:(void (^)(UIImage *image, NSError *error))handler;

/**
Returns async the comment feedback items using a key of item from the data source provider.
@param key The parent feedback item key
@param handler The completion handler to call when the get operation for comments is complete.
*/
- (void)subItemsForKey:(NSString *)key completionHandler:(void (^)(NSArray *items, NSError *error))handler;

/**
Adds async the comment feedback item using a key of item to the data source provider.
@param key The parent feedback item key
@param item The comment feedback item
@param handler The completion handler to call when the add operation for comment is complete.
*/
- (void)addSubItemForKey:(NSString *)key subItem:(TKFeedbackItem *)item completionHandler:(void (^)(NSError *error))handler;

@end



66 changes: 66 additions & 0 deletions src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackItem.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
//
// TKFeedbackItem.h
// TelerikUI
//
// Copyright (c) 2014 Telerik. All rights reserved.
//

/**
The model of feedback item used to provide feedback service and storage.
*/
@interface TKFeedbackItem : NSObject<NSCoding>

/**
The feedback item key.
*/
@property (nonatomic, copy) NSString *key;

/**
The feedback item date of creation.
*/
@property (nonatomic, strong) NSDate *createdAt;

/**
The feedback item date of modification.
*/
@property (nonatomic, strong) NSDate *modifiedAt;

/**
The feedback item description text.
*/
@property (nonatomic, copy) NSString *text;

/**
The feedback item author.
*/
@property (nonatomic, copy) NSString *author;

/**
The feedback item screenshot image.
*/
@property (nonatomic, strong) UIImage *image;

/**
The feedback item state ('Open', 'Resolved').
*/
@property (nonatomic, copy) NSString *state;

/**
The feedback item comments items.
*/
- (NSArray *)subItems;

/**
Adds a comment feedback item to the subItems collection.
@param item The comment feedback item
*/
- (void)addSubItem:(TKFeedbackItem *)item;

/**
Inserts a comment feedback in the subItems collection at the specified index.
@param item The comment feedback item
@param index The index.
*/
- (void)insertSubItem:(TKFeedbackItem *)item atIndex:(NSUInteger)index;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
//
// TKPlatformFeedbackRepository.h
// TelerikUI
//
// Copyright (c) 2014 Telerik. All rights reserved.
//

#import "TKFeedbackDataSource.h"

/**
The feedback data source implementation for the Telerik Platform AppFeedback service.
*/
@interface TKPlatformFeedbackSource : NSObject<TKFeedbackDataSource>

/**
Initializes a new instnace of the object.
@param apiKey The apiKey used to connect with Telerik platform.
*/
- (id)initWithKey:(NSString *)apiKey;

/**
Initializes a new instnace of the object.
@param apiKey The apiKey used to connect with Telerik platform.
@param uid The user id used to connect with Telerik platform.
*/
- (id)initWithKey:(NSString *)apiKey uid:(NSString *)uid;

/*
Initializes a new instance of the object.
@param apiKey The apiKey used to connect with Telerik platform.
@param uid The user id used to connect with Telerik platform.
@param apiBaseURL The base url to use when connecting with the server.
@param parameters Key/value pairs that will be appended with every query to the server.
*/
- (id)initWithKey:(NSString *)apiKey uid:(NSString *)uid apiBaseURL:(NSString *)apiBaseUrl parameters:(NSDictionary*)parameters;

/**
The API key created in the Telerik AppFeedback service for your application.
*/
@property (nonatomic, copy) NSString *apiKey;

/**
The user ID used to send feedback.
*/
@property (nonatomic, copy) NSString *UID;

/**
The base URL to use when connecting to the server
*/
@property (nonatomic, copy) NSString *baseURL;

/**
A dictionary containing additional parameters to sent to the server with every request.
*/
@property (nonatomic, strong) NSDictionary *parameters;

@end
Binary file modified src/ios/TelerikAppFeedback.framework/TelerikAppFeedback
Binary file not shown.
1 change: 0 additions & 1 deletion src/ios/TelerikAppFeedback.framework/Versions/Current

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// TelerikUI.h
// TelerikUI
//
// Copyright (c) 2013 Telerik. All rights reserved.
//

@interface TelerikAppFeedback : NSObject

+ (NSString*)versionString;

@end

#import "TKFeedbackController.h"
#import "TKFeedbackDataSource.h"
#import "TKPlatformFeedbackSource.h"
#import "TKFeedbackItem.h"
#import "TKFeedback.h"
24 changes: 24 additions & 0 deletions src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedback.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// TKFeedback.h
// TryAppFeed
//
// Copyright (c) 2014 Telerik. All rights reserved.
//

@protocol TKFeedbackDataSource;

@interface TKFeedback : NSObject

+ (id<TKFeedbackDataSource>)dataSource;

+ (void)setDataSource:(id<TKFeedbackDataSource>)dataSource;

+ (void)showFeedback;

+ (void)showFeedback:(UIModalTransitionStyle)transitionStyle;

+ (void)sendFeedback;

+ (BOOL)feedbackIsShown;

@end
Loading

0 comments on commit a1141ea

Please sign in to comment.