-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from urbanairship/MB-2052
[MB-2052] Release 3.2.0
- Loading branch information
Showing
130 changed files
with
572 additions
and
300 deletions.
There are no files selected for viewing
Binary file modified
BIN
-3 Bytes
(100%)
Assets/Plugins/iOS/Airship/AirshipResources.bundle/Info.plist
Binary file not shown.
Binary file modified
BIN
+7 Bytes
(100%)
Assets/Plugins/iOS/Airship/AirshipResources.bundle/UADefaultMessageCenterListCell.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../Plugins/iOS/Airship/AirshipResources.bundle/UADefaultMessageCenterListViewController.nib
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
...ugins/iOS/Airship/AirshipResources.bundle/UADefaultMessageCenterMessageViewController.nib
Binary file not shown.
Binary file added
BIN
+1.9 KB
Assets/Plugins/iOS/Airship/AirshipResources.bundle/UAEvents.momd/UAEvents.mom
Binary file not shown.
Binary file added
BIN
+149 Bytes
Assets/Plugins/iOS/Airship/AirshipResources.bundle/UAEvents.momd/VersionInfo.plist
Binary file not shown.
Binary file modified
BIN
+7 Bytes
(100%)
Assets/Plugins/iOS/Airship/AirshipResources.bundle/UAInAppMessageView.nib
Binary file not shown.
Binary file removed
BIN
-7.12 KB
.../Plugins/iOS/Airship/AirshipResources.bundle/UAInAppMessageView~ipad.nib/objects-8.0+.nib
Binary file not shown.
Binary file removed
BIN
-7.14 KB
Assets/Plugins/iOS/Airship/AirshipResources.bundle/UAInAppMessageView~ipad.nib/runtime.nib
Binary file not shown.
Binary file removed
BIN
-7.17 KB
...lugins/iOS/Airship/AirshipResources.bundle/UAInAppMessageView~iphone.nib/objects-8.0+.nib
Binary file not shown.
Binary file removed
BIN
-7.17 KB
Assets/Plugins/iOS/Airship/AirshipResources.bundle/UAInAppMessageView~iphone.nib/runtime.nib
Binary file not shown.
Binary file added
BIN
+4.85 KB
Assets/Plugins/iOS/Airship/AirshipResources.bundle/UALandingPageOverlayView.nib
Binary file not shown.
106 changes: 106 additions & 0 deletions
106
Assets/Plugins/iOS/Airship/AirshipResources.bundle/UANativeBridge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
UAirship.callbackID = 0; | ||
|
||
UAirship.delegateCallURL = function() { | ||
if (!arguments.length) { | ||
throw new Error("UAirship.delegateCallURL expects at least one function argument"); | ||
} | ||
|
||
var argumentsArray = Array.prototype.slice.call(arguments); | ||
|
||
//treat the first arguments as the command name | ||
var name = argumentsArray[0]; | ||
|
||
//the rest are path arguments and query options | ||
var args = argumentsArray.slice(1); | ||
|
||
var uri = []; | ||
var dict = null; | ||
|
||
// get arguments and dictionary | ||
for (var i = 0; i < args.length; i++) { | ||
|
||
var arg = args[i]; | ||
|
||
if (arg === undefined || arg === null) { | ||
arg = ''; | ||
} | ||
|
||
if (typeof(arg) == 'object') { | ||
dict = arg; | ||
} else { | ||
uri.push(encodeURIComponent(arg)); | ||
} | ||
} | ||
|
||
// flatten arguments into url | ||
var url = "uairship://" + name + "/" + uri.join("/"); | ||
|
||
// flatten dictionary into url | ||
if (dict !== null) { | ||
var query_args = []; | ||
for (var name in dict) { | ||
query_args.push(encodeURIComponent(name) + "=" + encodeURIComponent(dict[name])); | ||
} | ||
|
||
if (query_args.length > 0) { | ||
url += "?" + query_args.join("&"); | ||
} | ||
} | ||
|
||
return url; | ||
} | ||
|
||
UAirship.invoke = function(url) { | ||
var frame = document.createElement('iframe'); | ||
frame.style.display = 'none'; | ||
frame.src = url; | ||
|
||
document.body.appendChild(frame); | ||
frame.parentNode.removeChild(frame); | ||
} | ||
|
||
UAirship.runAction = function(actionName, argument, callback) { | ||
var opt = {}; | ||
|
||
UAirship.callbackID++; | ||
var callbackKey = 'ua-cb-' + (UAirship.callbackID); | ||
|
||
opt[actionName] = JSON.stringify(argument); | ||
|
||
var url = UAirship.delegateCallURL('run-action-cb', callbackKey, opt); | ||
|
||
window[callbackKey] = onready; | ||
|
||
function onready(err, data) { | ||
delete window[callbackKey]; | ||
|
||
if (!callback) { | ||
return; | ||
} | ||
|
||
if(err) { | ||
callback(err); | ||
} else { | ||
callback(null, data); | ||
} | ||
} | ||
|
||
UAirship.invoke(url); | ||
} | ||
|
||
UAirship.finishAction = function(err, data, callbackKey) { | ||
if (callbackKey in window) { | ||
var cb = window[callbackKey]; | ||
cb(err, data); | ||
}; | ||
} | ||
|
||
UAirship.close = function() { | ||
UAirship.runAction('__close_window_action', null, null); | ||
} | ||
|
||
UAirship.isReady = true; | ||
|
||
var uaLibraryReadyEvent = document.createEvent('Event'); | ||
uaLibraryReadyEvent.initEvent('ualibraryready', true, true); | ||
document.dispatchEvent(uaLibraryReadyEvent); |
Binary file removed
BIN
-906 Bytes
...s/Plugins/iOS/Airship/AirshipResources.bundle/de.lproj/UAInteractiveNotifications.strings
Binary file not shown.
Binary file removed
BIN
-843 Bytes
...s/Plugins/iOS/Airship/AirshipResources.bundle/en.lproj/UAInteractiveNotifications.strings
Binary file not shown.
Binary file removed
BIN
-628 Bytes
Assets/Plugins/iOS/Airship/AirshipResources.bundle/en.lproj/UAMessageCenterUI.strings
Binary file not shown.
Binary file removed
BIN
-940 Bytes
...s/Plugins/iOS/Airship/AirshipResources.bundle/es.lproj/UAInteractiveNotifications.strings
Binary file not shown.
Binary file removed
BIN
-1.11 KB
...s/Plugins/iOS/Airship/AirshipResources.bundle/fr.lproj/UAInteractiveNotifications.strings
Binary file not shown.
Binary file removed
BIN
-940 Bytes
...s/Plugins/iOS/Airship/AirshipResources.bundle/it.lproj/UAInteractiveNotifications.strings
Binary file not shown.
Binary file removed
BIN
-902 Bytes
...s/Plugins/iOS/Airship/AirshipResources.bundle/ja.lproj/UAInteractiveNotifications.strings
Binary file not shown.
Binary file removed
BIN
-934 Bytes
...s/Plugins/iOS/Airship/AirshipResources.bundle/pt.lproj/UAInteractiveNotifications.strings
Binary file not shown.
Binary file removed
BIN
-814 Bytes
...gins/iOS/Airship/AirshipResources.bundle/zh-Hans.lproj/UAInteractiveNotifications.strings
Binary file not shown.
Binary file removed
BIN
-808 Bytes
...gins/iOS/Airship/AirshipResources.bundle/zh-Hant.lproj/UAInteractiveNotifications.strings
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.