Skip to content

Commit

Permalink
Tagging release 2.3.0 of the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
u10int committed Apr 21, 2016
1 parent 65b5a65 commit e7ccb3e
Show file tree
Hide file tree
Showing 74 changed files with 1,191 additions and 108 deletions.
2 changes: 1 addition & 1 deletion AerisWeather.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AerisWeather'
s.version = '2.2.2'
s.version = '2.3.0'
s.summary = 'Quickly integrate the Aeris Weather API data and map overlays into your iOS apps.'
s.description = <<-DESC
The Aeris iOS Weather Framework allows a developer to quickly and easily add weather content and functionality to their iOS applications quickly and easily without having to code anything themselves. It utilizes the Aeris API backend for data loading and is built on top of an object mapping system that efficiently loads requested weather content into third-party iOS applications, greatly reducing the amount of code and development needed on the developer end.
Expand Down
Binary file modified AerisWeatherSDK/Aeris.framework/Versions/A/Aeris
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// AWFPrecipitationEstimate.h
// Aeris
//
// Created by Nicholas Shipes on 4/5/16.
// Copyright © 2016 Aeris Weather, LLC. All rights reserved.
//

#import <Aeris/AWFGeographicObject.h>

@interface AWFPrecipitationEstimate : AWFGeographicObject

@property (strong, nonatomic) NSArray *periods;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// AWFPrecipitationLoader.h
// Aeris
//
// Created by Nicholas Shipes on 4/5/16.
// Copyright © 2016 Aeris Weather, LLC. All rights reserved.
//

#import <Aeris/AWFGeographicObjectLoader.h>

/**
* `AWFPrecipitationLoader` provides conveninece methods for interacting with the
* [`precip` endpoint](http://www.aerisweather.com/support/docs/api/reference/endpoints/precip) of the Aeris API. All requests will return
* instances of `AWFPrecipitationPeriod` that will be populated with the data returned from the API unless otherwise indicated.
*/
@interface AWFPrecipitationLoader : AWFGeographicObjectLoader

- (void)getEstimateForPlace:(AWFPlace *)place
options:(AWFRequestOptions *)options
completion:(AWFObjectLoaderCompletionBlock)completionBlock;

- (void)getEstimatesForPlace:(AWFPlace *)place
fromDate:(NSDate *)fromDate
toDate:(NSDate *)toDate
options:(AWFRequestOptions *)options
completion:(AWFObjectLoaderCompletionBlock)completionBlock;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// AWFPrecipitationPeriod.h
// Aeris
//
// Created by Nicholas Shipes on 4/5/16.
// Copyright © 2016 Aeris Weather, LLC. All rights reserved.
//

#import <Aeris/AWFGeographicObject.h>

@interface AWFPrecipitationPeriod : AWFGeographicObject

/**
* Date the period is for.
*/
@property (strong, nonatomic) NSDate *timestamp;
@property (strong, nonatomic) NSTimeZone *timeZone;

@property (strong, nonatomic) NSNumber *dailyIN;
@property (strong, nonatomic) NSNumber *dailyMM;
@property (strong, nonatomic) NSNumber *monthlyIN;
@property (strong, nonatomic) NSNumber *monthlyMM;
@property (strong, nonatomic) NSNumber *yearlyIN;
@property (strong, nonatomic) NSNumber *yearlyMM;

@end
35 changes: 35 additions & 0 deletions AerisWeatherSDK/Aeris.framework/Versions/A/Headers/AWFRequest.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// AWFRequest.h
// Aeris
//
// Created by Nicholas Shipes on 2/4/16.
// Copyright © 2016 Aeris Weather, LLC. All rights reserved.
//

@import Foundation;

@interface AWFRequest : NSObject

- (NSURLSessionDataTask *)get:(NSString *)URLPath
parameters:(id)parameters
success:(void (^)(NSURLSessionDataTask *task, id response))success
failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

- (NSURLSessionDataTask *)get:(NSString *)URLPath
parameters:(id)parameters
manager:(AFHTTPSessionManager *)manager
success:(void (^)(NSURLSessionDataTask *task, id response))success
failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

- (NSURLSessionDataTask *)getImage:(NSString *)URLPath
parameters:(id)parameters
success:(void (^)(NSURLSessionDataTask *task, UIImage *image))success
failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

- (NSURLSessionDataTask *)getImage:(NSString *)URLPath
parameters:(id)parameters
manager:(AFHTTPSessionManager *)manager
success:(void (^)(NSURLSessionDataTask *task, UIImage *image))success
failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

@end
26 changes: 26 additions & 0 deletions AerisWeatherSDK/Aeris.framework/Versions/A/Headers/AWFSnowDepth.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// AWFSnowDepth.h
// Aeris
//
// Created by Nicholas Shipes on 4/5/16.
// Copyright © 2016 Aeris Weather, LLC. All rights reserved.
//

#import <Aeris/AWFGeographicObject.h>

@interface AWFSnowDepth : AWFGeographicObject

@property (strong, nonatomic) NSArray *periods;

@end



@interface AWFSnowDepthPeriod : AWFObject

@property (strong, nonatomic) NSDate *timestamp;
@property (strong, nonatomic) NSTimeZone *timeZone;
@property (strong, nonatomic) NSNumber *depthIN;
@property (strong, nonatomic) NSNumber *depthCM;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#import <Foundation/Foundation.h>

typedef NS_ENUM (NSUInteger, AWFWeatherDataType) {
AWFWeatherDataTypeWeather = 0,
AWFWeatherDataTypeNone = 0,
AWFWeatherDataTypeWeather,
AWFWeatherDataTypeSkyCover,
AWFWeatherDataTypeLight,
AWFWeatherDataTypeVisibility,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// AWFWinterLoader.h
// Aeris
//
// Created by Nicholas Shipes on 4/5/16.
// Copyright © 2016 Aeris Weather, LLC. All rights reserved.
//

#import <Aeris/AWFGeographicObjectLoader.h>

/**
* `AWFWinterLoader` provides conveninece methods for interacting with the
* [`winter/snowdepth` endpoint](http://www.aerisweather.com/support/docs/api/reference/endpoints/winter/snowdepth) of the Aeris API. All requests will return
* instances of `AWFSnowDepth` that will be populated with the data returned from the API unless otherwise indicated.
*/
@interface AWFWinterLoader : AWFGeographicObjectLoader

- (void)getSnowDepthForPlace:(AWFPlace *)place
options:(AWFRequestOptions *)options
completion:(AWFObjectLoaderCompletionBlock)completionBlock;

- (void)getSnowDepthForPlace:(AWFPlace *)place
fromDate:(NSDate *)fromDate
toDate:(NSDate *)toDate
options:(AWFRequestOptions *)options
completion:(AWFObjectLoaderCompletionBlock)completionBlock;
@end
7 changes: 7 additions & 0 deletions AerisWeatherSDK/Aeris.framework/Versions/A/Headers/Aeris.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#import <Aeris/AWFObjectLoader.h>
#import <Aeris/AWFObject.h>
#import <Aeris/AWFGeographicObject.h>
#import <Aeris/AWFRequest.h>
#import <Aeris/AWFResponse.h>
#import <Aeris/AWFRequestOptions.h>
#import <Aeris/AWFRequestFilter.h>
#import <Aeris/AWFRequestQuery.h>
Expand Down Expand Up @@ -48,6 +50,8 @@
#import <Aeris/AWFPhrasesLoader.h>
#import <Aeris/AWFConvectiveLoader.h>
#import <Aeris/AWFDroughtLoader.h>
#import <Aeris/AWFPrecipitationLoader.h>
#import <Aeris/AWFWinterLoader.h>
#import <Aeris/AWFBatchLoader.h>

#import <Aeris/AWFPlace.h>
Expand Down Expand Up @@ -81,6 +85,9 @@
#import <Aeris/AWFStormThreat.h>
#import <Aeris/AWFConvectiveOutlook.h>
#import <Aeris/AWFDroughtIndex.h>
#import <Aeris/AWFPrecipitationEstimate.h>
#import <Aeris/AWFPrecipitationPeriod.h>
#import <Aeris/AWFSnowDepth.h>

#import <Aeris/NSBundle+Aeris.h>
#import <Aeris/AWFObject+AutoCoding.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,21 @@ extern NSUInteger const AerisAPIErrorCodeInvalidCoordinateBounds;
extern NSUInteger const AerisAPIErrorCodeInvalidPolygon;
extern NSUInteger const AerisAPIErrorCodeObjectNotExists;

typedef void (^AWFRequestCompletionBlock)(AFHTTPRequestOperation *operation, AWFResponse *response, NSError *error);
typedef void (^AWFRequestCompletionBlock)(NSURLSessionDataTask *operation, AWFResponse *response, NSError *error);

@interface AerisAPIClient : AFHTTPRequestOperationManager
@interface AerisAPIClient : AFHTTPSessionManager

@property (readonly, nonatomic) NSString *serverPath;

+ (instancetype)sharedClient;

- (AFHTTPRequestOperation *)GET:(NSString *)URLString
- (NSURLSessionDataTask *)GET:(NSString *)URLString
expires:(NSTimeInterval)expires
parameters:(NSDictionary *)parameters
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;
success:(void (^)(NSURLSessionDataTask *operation, id responseObject))success
failure:(void (^)(NSURLSessionDataTask *operation, NSError *error))failure;

//- (void)getPath:(NSString *)path
// expires:(NSTimeInterval)expires
// parameters:(NSDictionary *)parameters
// success:(void (^)(AFHTTPRequestOperation *, id responseObject))success
// failure:(void (^)(AFHTTPRequestOperation *, NSError *error))failure;

- (AFHTTPRequestOperation *)GET:(NSString *)URLString
- (NSURLSessionDataTask *)GET:(NSString *)URLString
expires:(NSTimeInterval)expires
parameters:(NSDictionary *)parameters
completion:(AWFRequestCompletionBlock)completionBlock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ extern NSTimeInterval const AWFYearInterval;

extern NSString * const AWFDateFormatYear;
extern NSString * const AWFDateFormatMonth;
extern NSString * const AWFDateFormatMonthWithZeroPadding;
extern NSString * const AWFDateFormatMonthName;
extern NSString * const AWFDateFormatMonthNameFull;
extern NSString * const AWFDateFormatDate;
Expand All @@ -56,6 +57,7 @@ extern NSString * const AWFDateFormatHourWithZeroPadding;
extern NSString * const AWFDateFormatHour24;
extern NSString * const AWFDateFormatHour24WithZeroPadding;
extern NSString * const AWFDateFormatMinutes;
extern NSString * const AWFDateFormatMinutesWithZeroPadding;
extern NSString * const AWFDateFormatSeconds;
extern NSString * const AWFDateFormatPeriod;
extern NSString * const AWFDateFormatTimeZoneName;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// AWFGMTextLabelAnnotation.h
// AerisGoogleMap
//
// Created by Nicholas Shipes on 2/11/16.
// Copyright © 2016 Aeris Weather, LLC. All rights reserved.
//

#import <AerisMap/AerisMap.h>
#import <AerisGoogleMap/AWFGMStyledAnnotation.h>

@interface AWFGMTextLabelAnnotation : AWFGMStyledAnnotation

@property (copy, nonatomic) NSString *labelValue;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#import <AerisGoogleMap/AWFGMAnnotation.h>
#import <AerisGoogleMap/AWFGMStyledAnnotation.h>
#import <AerisGoogleMap/AWFGMTextLabelAnnotation.h>
#import <AerisGoogleMap/AWFGMPolyline.h>
#import <AerisGoogleMap/AWFGMPolygon.h>
#import <AerisGoogleMap/AWFGMMultiShapeOverlay.h>
Binary file modified AerisWeatherSDK/AerisMap.framework/Versions/A/AerisMap
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

#import <AerisMap/AWFBarLegendStyle.h>

/**
* An `AWFAccumulatedPrecipLegendStyle` object provides the style specifications to be used for an accumulated precipitation legend view.
*/
@interface AWFAccumulatedPrecipLegendStyle : AWFBarLegendStyle

@end
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,33 @@

#import <MapKit/MapKit.h>

/**
* An `AWFAnnotation` object is the base class used for all annotations within the library.
*/
@interface AWFAnnotation : NSObject <MKAnnotation>

/**
* The string containing the annotation's title.
*/
@property (nonatomic, copy) NSString *title;

/**
* The string containing the annotation's subtitle.
*/
@property (nonatomic, copy) NSString *subtitle;

/**
* The center point (specified as a map coordinate) of the annotation.
*/
@property (readonly, nonatomic) CLLocationCoordinate2D coordinate;

/**
* Initializes and returns a newly allocated annotation object for the specified `coordinate`.
*
* @param coordinate The coordinate of the annotation
*
* @return An initialized annotation or `nil` if the object couldn't be created.
*/
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate;

@end
@end
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,29 @@
*/
@property (nonatomic, assign) BOOL shouldAnimate;

/**
* The number of seconds to display the annotation before hiding when part of a weather map animation.
*/
@property (nonatomic, assign) NSTimeInterval animationSecondsToHideAfterDisplaying;

/**
* The initial transform to apply to the annotation view when animating. Default is `CATransform3DIdentity`.
*/
@property (nonatomic, assign) CATransform3D transform;

/**
* The `CAAnimation` instance to use when presenting the annotation.
*/
@property (nonatomic, strong) CAAnimation *inAnimation;

/**
* The `CAAnimation` instance to use when dismissing the annotation.
*/
@property (nonatomic, strong) CAAnimation *outAnimation;

/**
* The image to display for the annotation.
*/
@property (nonatomic, strong) UIImage *icon;

/**
Expand Down Expand Up @@ -108,7 +125,18 @@
*/
- (UIImage *)imageFromStyle;

/**
* Presents the annotation view by applying the `inAnimation` animation to the specified `layer`.
*
* @param layer The layer to apply the animation to
*/
- (void)applyPresentationAnimationToLayer:(CALayer *)layer;

/**
* Dismisses the annotation view by applying the `outAnimation` animation to the specified `layer`.
*
* @param layer The layer to apply the animation to
*/
- (void)applyDismissAnimationToLayer:(CALayer *)layer;

@end
Loading

0 comments on commit e7ccb3e

Please sign in to comment.