flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject git commit: [flex-asjs] [refs/heads/release0.8.0] - Cordova Application now extends AirApplication. Changed storage directory to more common "dataDirectory" which is available on more platforms.
Date Fri, 02 Jun 2017 15:43:32 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/release0.8.0 f021c8f75 -> f72cf762d


Cordova Application now extends AirApplication. Changed storage directory to more common "dataDirectory"
which is available on more platforms.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f72cf762
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f72cf762
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f72cf762

Branch: refs/heads/release0.8.0
Commit: f72cf762dd3b2e44615aed803f507fbd23820656
Parents: f021c8f
Author: Peter Ent <pent@apache.org>
Authored: Fri Jun 2 11:43:30 2017 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Fri Jun 2 11:43:30 2017 -0400

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/cordova/Application.as     | 4 ++--
 .../flex/storage/providers/AndroidExternalStorageProvider.as | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f72cf762/frameworks/projects/Mobile/src/main/flex/org/apache/flex/cordova/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/cordova/Application.as
b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/cordova/Application.as
index 52de8d6..b2f21a9 100644
--- a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/cordova/Application.as
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/cordova/Application.as
@@ -19,7 +19,7 @@
 package org.apache.flex.cordova
 {
 	import org.apache.flex.events.Event;
-	import org.apache.flex.core.Application;
+	import org.apache.flex.core.AirApplication;
 	import org.apache.flex.core.IFlexInfo;
 
 	/**
@@ -30,7 +30,7 @@ package org.apache.flex.cordova
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 */
-	public class Application extends org.apache.flex.core.Application implements IFlexInfo
+	public class Application extends org.apache.flex.core.AirApplication implements IFlexInfo
 	{
 		/**
 		 * FalconJX will inject html into the index.html file.  Surround with

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f72cf762/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AndroidExternalStorageProvider.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AndroidExternalStorageProvider.as
b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AndroidExternalStorageProvider.as
index 99234de..ff3be38 100644
--- a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AndroidExternalStorageProvider.as
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AndroidExternalStorageProvider.as
@@ -96,7 +96,7 @@ package org.apache.flex.storage.providers
 		public function readTextFromDataFile( fileName:String ) : void
 		{
 			COMPILE::JS {
-				var fullPath:String = String(cordova["file"]["externalDataDirectory"]) + fileName;
+				var fullPath:String = String(cordova["file"]["dataDirectory"]) + fileName;
 				
 				window.resolveLocalFileSystemURL(fullPath, function (fileEntry):void {
 					fileEntry.file(function (file):void {
@@ -140,7 +140,7 @@ package org.apache.flex.storage.providers
 		public function openInputDataStream( fileName:String ) : void
 		{
 			COMPILE::JS {
-				var fullPath:String = String(cordova["file"]["externalDataDirectory"]) + fileName;
+				var fullPath:String = String(cordova["file"]["dataDirectory"]) + fileName;
 				
 				window.resolveLocalFileSystemURL(fullPath, function (fileEntry):void {
 					fileEntry.file(function (file):void {
@@ -180,7 +180,7 @@ package org.apache.flex.storage.providers
 		public function writeTextToDataFile( fileName:String, text:String ) : void
 		{
 			COMPILE::JS {
-				var fullPath:String = String(cordova["file"]["externalDataDirectory"]) + fileName;
+				var fullPath:String = String(cordova["file"]["dataDirectory"]) + fileName;
 		
 				window.resolveLocalFileSystemURL(fullPath, function (fileEntry):void {
 						fileEntry.createWriter(function (fileWriter):void {
@@ -231,7 +231,7 @@ package org.apache.flex.storage.providers
 		public function openOutputDataStream( fileName:String ) : void
 		{
 			COMPILE::JS {
-				var fullPath:String = String(cordova["file"]["externalDataDirectory"]) + fileName;
+				var fullPath:String = String(cordova["file"]["dataDirectory"]) + fileName;
 				
 				window.resolveLocalFileSystemURL(fullPath, function (directoryEntry):void {
 					directoryEntry.getFile(fileName, { 'create': true }, function (fileEntry):void {


Mime
View raw message