You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/02/11 09:55:46 UTC
[royale-asjs] branch develop updated: remove in IOSUtils since we
already have BrowserInfo
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 919f0e9 remove in IOSUtils since we already have BrowserInfo
919f0e9 is described below
commit 919f0e9ab26525a6b105f09bbc576489e0917a56
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Mon Feb 11 10:55:38 2019 +0100
remove in IOSUtils since we already have BrowserInfo
---
.../projects/Core/src/main/royale/CoreClasses.as | 1 -
.../royale/org/apache/royale/utils/IOSUtils.as | 81 ----------------------
2 files changed, 82 deletions(-)
diff --git a/frameworks/projects/Core/src/main/royale/CoreClasses.as b/frameworks/projects/Core/src/main/royale/CoreClasses.as
index e3c5774..a06c1fc 100644
--- a/frameworks/projects/Core/src/main/royale/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/royale/CoreClasses.as
@@ -214,7 +214,6 @@ import org.apache.royale.events.ItemRemovedEvent; ItemRemovedEvent;
import org.apache.royale.utils.JXON; JXON;
import org.apache.royale.utils.MD5; MD5;
import org.apache.royale.utils.OSUtils; OSUtils;
- import org.apache.royale.utils.IOSUtils; IOSUtils;
import org.apache.royale.utils.LocaleUtils; LocaleUtils;
import org.apache.royale.utils.PointUtils; PointUtils;
import org.apache.royale.utils.StringPadder; StringPadder;
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/IOSUtils.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/IOSUtils.as
deleted file mode 100644
index 6d7117e..0000000
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/IOSUtils.as
+++ /dev/null
@@ -1,81 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.royale.utils
-{
- /**
- * The IOSUtils class is an all-static class with methods for
- * getting information about the IOS operating system.
- * You do not create instances of IOSUtils;
- * instead you call methods such as
- * the <code>IOSUtils.getDevice()</code> method.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Royale 1.0.0
- * @productversion Royale 0.9.6
- */
- public class IOSUtils
- {
- COMPILE::SWF
- {
- import flash.system.Capabilities;
- }
- public function OSUtils ()
- {
- }
- public static const IOS_OS:String = "iOS";
-
- public static const UNKNOWN_DEVICE:String = "Unknown Device";
- public static const IOS_IPAD:String = "iPad";
- public static const IOS_IPHONE:String = "iPhone";
- public static const IOS_IPOD:String = "iPod";
-
- /**
- * Gets the name of the operating system.
- */
- public static function getIOSDevice():String
- {
- COMPILE::SWF
- {
- if(!_iosDevice)
- {
- //TODO for SWF
- _iosDevice = UNKNOWN_DEVICE;
- }
- return _iosDevice;
- }
-
- COMPILE::JS
- {
- if(!_iosDevice)
- {
- _iosDevice = UNKNOWN_DEVICE;
- var appVersion:String = navigator.appVersion;
- if (appVersion.indexOf("iPad") != -1) _iosDevice = IOS_IPAD;
- if (appVersion.indexOf("iPhone") != -1) _iosDevice = IOS_IPHONE;
- if (appVersion.indexOf("iPod") != -1) _iosDevice = IOS_IPOD;
- }
- return _iosDevice;
- }
- }
-
- private static var _iosDevice:String;
- }
-}