Skip to content

Commit

Permalink
Merge pull request #253 from urbanairship/release-7.2.1
Browse files Browse the repository at this point in the history
Release 7.2.1
  • Loading branch information
crow authored Sep 25, 2018
2 parents a6e1c08 + 1153b14 commit 9d19c66
Show file tree
Hide file tree
Showing 39 changed files with 160 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/ios/Airship/libUAirship-9.4.0.a filter=lfs diff=lfs merge=lfs -text
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
=================================
Version 7.2.1 - September 20, 2018
=================================
- Updated iOS SDK to 9.4.0
- Updated Android SDK to 9.5.2

=================================
Version 7.2.0 - July 26, 2018
=================================
Expand Down
2 changes: 1 addition & 1 deletion config_sample.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.urbanairship.richpush" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.urbanairship.sample" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Test</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "urbanairship-cordova",
"version": "7.2.0",
"version": "7.2.1",
"description": "Urban Airship Cordova plugin",
"cordova": {
"id": "urbanairship-cordova",
Expand Down
5 changes: 3 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="urbanairship-cordova"
version="7.2.0"
version="7.2.1"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">

Expand Down Expand Up @@ -321,6 +321,7 @@
<header-file src="src/ios/Airship/Headers/UAChannelCapture.h" />
<header-file src="src/ios/Airship/Headers/UAWKWebViewDelegate.h" />
<header-file src="src/ios/Airship/Headers/UAInAppMessageBannerDisplayContent.h" />
<header-file src="src/ios/Airship/Headers/UAInAppMessageHTMLStyle.h" />
<header-file src="src/ios/Airship/Headers/UAOpenExternalURLAction.h" />
<header-file src="src/ios/Airship/Headers/UAMessageCenter.h" />
<header-file src="src/ios/Airship/Headers/UAInAppMessageButtonStyle.h" />
Expand All @@ -337,7 +338,7 @@
<resource-file src="src/ios/Airship/AirshipResources.bundle"/>

<!-- Airship library -->
<source-file framework="true" src="src/ios/Airship/libUAirship-9.3.3.a"/>
<source-file framework="true" src="src/ios/Airship/libUAirship-9.4.0.a"/>

<!-- System frameworks -->
<framework src="libsqlite3.dylib" />
Expand Down
4 changes: 2 additions & 2 deletions src/android/build-extras.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ allprojects {
}

dependencies {
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:support-annotations:27.1.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.urbanairship.android:urbanairship-fcm:9.4.1'
implementation 'com.urbanairship.android:urbanairship-fcm:9.5.2'
}

cdvPluginPostBuildExtras.push({
Expand Down
Binary file modified src/ios/Airship/AirshipResources.bundle/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified src/ios/Airship/AirshipResources.bundle/UARateAppPromptView.nib
Binary file not shown.
1 change: 1 addition & 0 deletions src/ios/Airship/Headers/AirshipLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
#import "UAInAppMessageFullScreenStyle.h"
#import "UAInAppMessageHTMLAdapter.h"
#import "UAInAppMessageHTMLDisplayContent.h"
#import "UAInAppMessageHTMLStyle.h"
#import "UAInAppMessageManager.h"
#import "UAInAppMessageMediaInfo.h"
#import "UAInAppMessageMediaStyle.h"
Expand Down
31 changes: 29 additions & 2 deletions src/ios/Airship/Headers/UAInAppMessageAudience.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@

NS_ASSUME_NONNULL_BEGIN

/**
* Audience check miss behaviors
*/
typedef NS_ENUM(NSInteger, UAInAppMessageAudienceMissBehaviorType) {
/**
* Cancel the message's schedule when the audience check fails.
*/
UAInAppMessageAudienceMissBehaviorCancel,

/**
* Skip the message's schedule when the audience check fails.
*/
UAInAppMessageAudienceMissBehaviorSkip,

/**
* Skip and penalize the message's schedule when the audience check fails.
*/
UAInAppMessageAudienceMissBehaviorPenalize,
};

/**
* Builder class for UAInAppMessageAudience.
Expand Down Expand Up @@ -39,6 +58,11 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property(nonatomic, strong, nullable) UAJSONPredicate *versionPredicate;

/**
* The audience check miss behavior.
*/
@property(nonatomic, assign) UAInAppMessageAudienceMissBehaviorType missBehavior;

/**
* Checks if the builder is valid and will produce a audience.
* @return YES if the builder is valid, otherwise NO.
Expand Down Expand Up @@ -77,6 +101,11 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property(nonatomic, readonly, nullable) UAJSONPredicate *versionPredicate;

/**
* The audience check miss behavior.
*/
@property(nonatomic, readonly, assign) UAInAppMessageAudienceMissBehaviorType missBehavior;

/**
* Factory method for building audience model from a builder block.
*
Expand All @@ -85,8 +114,6 @@ NS_ASSUME_NONNULL_BEGIN
*/
+ (instancetype)audienceWithBuilderBlock:(void(^)(UAInAppMessageAudienceBuilder *builder))builderBlock;



@end

NS_ASSUME_NONNULL_END
Expand Down
2 changes: 1 addition & 1 deletion src/ios/Airship/Headers/UAInAppMessageBannerStyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ extern NSString *const UABannerMaxWidthKey;
@property(nonatomic, strong, nullable) UAInAppMessageMediaStyle *mediaStyle;

/**
* The max width.
* The max width in points.
*/
@property(nonatomic, strong, nullable) NSNumber *maxWidth;

Expand Down
1 change: 1 addition & 0 deletions src/ios/Airship/Headers/UAInAppMessageDisplayContent.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ extern NSString *const UAInAppMessageDismissButtonColorKey;
extern NSString *const UAInAppMessageFooterKey;
extern NSString *const UAInAppMessageDurationKey;
extern NSString *const UAInAppMessageModalAllowsFullScreenKey;
extern NSString *const UAInAppMessageHTMLAllowsFullScreenKey;


/**
Expand Down
11 changes: 11 additions & 0 deletions src/ios/Airship/Headers/UAInAppMessageHTMLAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@

#import <Foundation/Foundation.h>
#import "UAInAppMessageAdapterProtocol.h"
#import "UAInAppMessageHTMLStyle.h"

/**
* HTML in-app message display adapter.
*/
@interface UAInAppMessageHTMLAdapter : NSObject <UAInAppMessageAdapterProtocol>

/**
* HTML in-app message display style defaults plist name.
*/
extern NSString *const UAHTMLStyleFileName;

/**
* HTML in-app message display style.
*/
@property(nonatomic, strong, nullable) UAInAppMessageHTMLStyle *style;

@end
22 changes: 22 additions & 0 deletions src/ios/Airship/Headers/UAInAppMessageHTMLDisplayContent.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property(nonatomic, copy, nullable) NSString *url;

/**
* The HTML message's border radius. Defaults to 0.
*/
@property(nonatomic, assign) NSUInteger borderRadius;

/**
* Flag indicating the HTML view should display as full screen on compact devices.
* Defaults to NO.
*/
@property(nonatomic, assign) BOOL allowFullScreenDisplay;

/**
* Checks if the builder is valid and will produce an display content instance.
* @return YES if the builder is valid, otherwise NO.
Expand Down Expand Up @@ -55,6 +66,17 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property(nonatomic, strong, readonly) UIColor *dismissButtonColor;

/**
* The HTML message's border radius. Defaults to 0.
*/
@property(nonatomic, assign, readonly) NSUInteger borderRadius;

/**
* Flag indicating the HTML view should display as full screen on compact devices.
* Defaults to NO.
*/
@property(nonatomic, assign, readonly) BOOL allowFullScreenDisplay;

/**
* Factory method for building HTML display content with a builder block.
*
Expand Down
64 changes: 64 additions & 0 deletions src/ios/Airship/Headers/UAInAppMessageHTMLStyle.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/* Copyright 2018 Urban Airship and Contributors */

#import "UAInAppMessageStyleProtocol.h"
#import "UAPadding.h"
#import "UAInAppMessageTextStyle.h"
#import "UAInAppMessageButtonStyle.h"
#import "UAInAppMessageMediaStyle.h"

NS_ASSUME_NONNULL_BEGIN

/**
* The key representing the dismissIconResource in a style plist.
*/
extern NSString *const UAHTMLDismissIconResourceKey;

/**
* The key representing the additionalPadding in a style plist.
*/
extern NSString *const UAHTMLAdditionalPaddingKey;

/**
* The key representing the max width in a style plist.
*/
extern NSString *const UAHTMLMaxWidthKey;

/**
* The key representing the max height in a style plist.
*/
extern NSString *const UAHTMLMaxHeightKey;

/**
* Model object representing a custom style to be applied
* to HTML in-app messages.
*/
@interface UAInAppMessageHTMLStyle : NSObject<UAInAppMessageStyleProtocol>

///---------------------------------------------------------------------------------------
/// @name HTML Style Properties
///---------------------------------------------------------------------------------------

/**
* The constants added to the default spacing between a view and its parent.
*/
@property(nonatomic, strong) UAPadding *additionalPadding;

/**
* The dismiss icon image resource name.
*/
@property(nonatomic, strong, nullable) NSString *dismissIconResource;

/**
* The max width in points.
*/
@property(nonatomic, strong, nullable) NSNumber *maxWidth;

/**
* The max height in points.
*/
@property(nonatomic, strong, nullable) NSNumber *maxHeight;

@end

NS_ASSUME_NONNULL_END

4 changes: 2 additions & 2 deletions src/ios/Airship/Headers/UAInAppMessageModalStyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ extern NSString *const UAModalMaxHeightKey;
@property(nonatomic, strong, nullable) NSString *dismissIconResource;

/**
* The max width.
* The max width in points.
*/
@property(nonatomic, strong, nullable) NSNumber *maxWidth;

/**
* The max height.
* The max height in points.
*/
@property(nonatomic, strong, nullable) NSNumber *maxHeight;

Expand Down
20 changes: 12 additions & 8 deletions src/ios/Airship/Headers/UAScheduleInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ extern NSUInteger const UAScheduleInfoMaxTriggers;
@property(nonatomic, assign) NSInteger priority;

/**
* Number of times the actions will be triggered until the schedule is
* finished.
* The max number of times the schedule may be executed.
*
* For in-app messages, if the audience condition checks fail, and
* the miss behavior is `skip`, the triggered schedule will not count towards
* the limit.
*/
@property(nonatomic, assign) NSUInteger limit;

/**
* Array of triggers. Triggers define conditions on when to run
* the actions.
* Array of triggers. Triggers define conditions on when to execute the schedule.
*/
@property(nonatomic, strong, nullable) NSArray<UAScheduleTrigger *> *triggers;

Expand Down Expand Up @@ -82,14 +84,16 @@ extern NSUInteger const UAScheduleInfoMaxTriggers;
@property(nonatomic, readonly) NSInteger priority;

/**
* Array of triggers. Triggers define conditions on when to run
* the actions.
* Array of triggers. Triggers define conditions on when to execute the schedule.
*/
@property(nonatomic, readonly) NSArray<UAScheduleTrigger *> *triggers;

/**
* Number of times the actions will be triggered until the schedule is
* canceled.
* The max number of times the schedule may be executed.
*
* For in-app messages, if the audience condition checks fail, and
* the miss behavior is `skip`, the triggered schedule will not count towards
* the limit.
*/
@property(nonatomic, readonly) NSUInteger limit;

Expand Down
Binary file removed src/ios/Airship/libUAirship-9.3.3.a
Binary file not shown.
3 changes: 3 additions & 0 deletions src/ios/Airship/libUAirship-9.4.0.a
Git LFS file not shown

0 comments on commit 9d19c66

Please sign in to comment.