Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
myflashlab committed Dec 14, 2018
1 parent c40cc3d commit ebae8cf
Show file tree
Hide file tree
Showing 39 changed files with 32 additions and 128 deletions.
19 changes: 2 additions & 17 deletions AIR/AIR.iml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<dependency linkage="Merged" />
</entry>
</entries>
<sdk name="AIR_30.107" />
<sdk name="AIR_31.96" />
</dependencies>
<compiler-options>
<map>
Expand All @@ -27,21 +27,6 @@
<packaging-ios enabled="true" use-generated-descriptor="false" custom-descriptor-path="$MODULE_DIR$/Main-app.xml" package-file-name="Main">
<files-to-package>
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/icons" path-in-package="icons" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-375w-667h@2x~iphone.png" path-in-package="Default-375w-667h@2x~iphone.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-414w-736h@3x~iphone.png" path-in-package="Default-414w-736h@3x~iphone.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-568h@2x~iphone.png" path-in-package="Default-568h@2x~iphone.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-Landscape-414w-736h@3x~iphone.png" path-in-package="Default-Landscape-414w-736h@3x~iphone.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-Landscape~ipad.png" path-in-package="Default-Landscape~ipad.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-LandscapeLeft@2x~ipad.png" path-in-package="Default-LandscapeLeft@2x~ipad.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-LandscapeRight@2x~ipad.png" path-in-package="Default-LandscapeRight@2x~ipad.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-LandscapeRight~ipad.png" path-in-package="Default-LandscapeRight~ipad.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-Landscapet@2x~ipad.png" path-in-package="Default-Landscapet@2x~ipad.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-Portrait@2x~ipad.png" path-in-package="Default-Portrait@2x~ipad.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-Portrait~ipad.png" path-in-package="Default-Portrait~ipad.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-PortraitUpsideDown@2x~ipad.png" path-in-package="Default-PortraitUpsideDown@2x~ipad.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default-PortraitUpsideDown~ipad.png" path-in-package="Default-PortraitUpsideDown~ipad.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default@2x~iphone.png" path-in-package="Default@2x~iphone.png" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/icons/Default~iphone.png" path-in-package="Default~iphone.png" />
</files-to-package>
<AirSigningOptions keystore-path="$MODULE_DIR$/cert/dev.p12" provisioning-profile-path="$MODULE_DIR$/cert/comDoitflash.mobileprovision" />
</packaging-ios>
Expand All @@ -54,7 +39,7 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="AIR_30.107" jdkType="Flex SDK Type (new)" />
<orderEntry type="jdk" jdkName="AIR_31.96" jdkType="Flex SDK Type (new)" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="lib" level="project" />
<orderEntry type="module-library" exported="">
Expand Down
15 changes: 5 additions & 10 deletions AIR/Main-app.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<application xmlns="http://ns.adobe.com/air/application/30.0">
<application xmlns="http://ns.adobe.com/air/application/31.0">
<id>com.doitflash.exFileBrowser</id>
<versionNumber>4.1.6</versionNumber>
<supportedProfiles>mobileDevice</supportedProfiles>
Expand Down Expand Up @@ -29,9 +29,6 @@
</manifest>]]></manifestAdditions>
</android>
<iPhone>
<!--https://developer.apple.com/library/ios/documentation/general/reference/infoplistkeyreference/Articles/iPhoneOSKeys.html-->
<!--http://help.adobe.com/en_US/air/build/WSfffb011ac560372f7e64a7f12cd2dd1867-8000.html-->
<!-- A list of plist key/value pairs to be added to the application Info.plist -->
<InfoAdditions>

<![CDATA[
Expand Down Expand Up @@ -76,16 +73,14 @@
<systemChrome>standard</systemChrome>
</initialWindow>
<icon>
<image36x36>icons/icon_36.png</image36x36>
<image48x48>icons/icon_48.png</image48x48>
<image57x57>icons/icon_57.png</image57x57>
<image72x72>icons/icon_72.png</image72x72>
<image76x76>icons/icon_76.png</image76x76>
<image96x96>icons/icon_96.png</image96x96>
<image114x114>icons/icon_114.png</image114x114>
<image120x120>icons/icon_120.png</image120x120>
<image144x144>icons/icon_144.png</image144x144>
<image152x152>icons/icon_152.png</image152x152>
<!--<image512x512>icons/icon_512.png</image512x512>-->
<image192x192>icons/icon_192.png</image192x192>
<image512x512>icons/icon_512.png</image512x512>
<image1024x1024>icons/icon_1024.png</image1024x1024>
</icon>
<extensions>

Expand Down
Binary file removed AIR/icons/Default-375w-667h@2x~iphone.png
Binary file not shown.
Binary file removed AIR/icons/Default-414w-736h@3x~iphone.png
Binary file not shown.
Binary file removed AIR/icons/Default-568h@2x~iphone.png
Binary file not shown.
Binary file removed AIR/icons/Default-Landscape-414w-736h@3x~iphone.png
Binary file not shown.
Binary file removed AIR/icons/Default-LandscapeLeft@2x~ipad.png
Binary file not shown.
Binary file removed AIR/icons/Default-LandscapeRight@2x~ipad.png
Binary file not shown.
Binary file removed AIR/icons/Default-LandscapeRight~ipad.png
Binary file not shown.
Binary file removed AIR/icons/Default-Landscapet@2x~ipad.png
Binary file not shown.
Binary file removed AIR/icons/Default-Landscape~ipad.png
Binary file not shown.
Binary file removed AIR/icons/Default-Portrait@2x~ipad.png
Binary file not shown.
Binary file removed AIR/icons/Default-PortraitUpsideDown@2x~ipad.png
Binary file not shown.
Binary file removed AIR/icons/Default-PortraitUpsideDown~ipad.png
Binary file not shown.
Binary file removed AIR/icons/Default-Portrait~ipad.png
Binary file not shown.
Binary file removed AIR/icons/Default@2x~iphone.png
Binary file not shown.
Binary file removed AIR/icons/Default~iphone.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_100.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_114.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_120.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_128.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_152.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_16.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_29.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_32.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_40.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_50.png
Binary file not shown.
Binary file removed AIR/icons/icons/icon_57.png
Diff not rendered.
Binary file removed AIR/icons/icons/icon_58.png
Diff not rendered.
Binary file removed AIR/icons/icons/icon_60.png
Diff not rendered.
Binary file removed AIR/icons/icons/icon_76.png
Diff not rendered.
Binary file removed AIR/icons/icons/icon_80.png
Diff not rendered.
2 changes: 0 additions & 2 deletions AIR/icons/sizeInfo.txt

This file was deleted.

12 changes: 12 additions & 0 deletions AIR/lib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Copy the purchased [fileChooserExtension.ane](http://www.myflashlabs.com/product/file-image-pick-ane-adobe-air-native-extension/) here along with the following dependency ANEs:

1. permissionCheck.ane - [Download from here](https://github.com/myflashlab/PermissionCheck-ANE/)
1. androidSupport-core.ane
1. androidSupport-v4.ane
1. googlePlayServices_base.ane
1. googlePlayServices_basement.ane
1. googlePlayServices_drive.ane
1. googlePlayServices_tasks.ane
1. overrideAir.ane

Download dependency ANEs from here: https://github.com/myflashlab/common-dependencies-ANE
13 changes: 0 additions & 13 deletions AIR/lib/ReadMe.txt

This file was deleted.

Binary file removed AIR/lib/fileChooserExtension.ane
Binary file not shown.
17 changes: 8 additions & 9 deletions AIR/src/MainFinal.as
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ public class MainFinal extends Sprite

public function MainFinal():void
{
OverrideAir.enableDebugger(myDebuggerDelegate);
// Remove OverrideAir debugger in production builds
OverrideAir.enableDebugger(function ($ane:String, $class:String, $msg:String):void
{
trace($ane+" ("+$class+") "+$msg);
});

Multitouch.inputMode = MultitouchInputMode.GESTURE;
NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, handleActivate);
Expand Down Expand Up @@ -106,11 +110,6 @@ public class MainFinal extends Sprite
checkPermissions();
}

private function myDebuggerDelegate($ane:String, $class:String, $msg:String):void
{
trace("\t" + $ane + ": " + $msg);
}

private function onInvoke(e:InvokeEvent):void
{
NativeApplication.nativeApplication.removeEventListener(InvokeEvent.INVOKE, onInvoke);
Expand Down Expand Up @@ -221,7 +220,7 @@ public class MainFinal extends Sprite

var btn2:MySprite = createBtn("select file!"); // NOT SUPPORTED ON iOS
btn2.addEventListener(MouseEvent.CLICK, selectFile);
if(_ex.os != FileChooser.IOS) _list.add(btn2);
if(OverrideAir.os != OverrideAir.IOS) _list.add(btn2);

function selectFile(e:MouseEvent):void
{
Expand All @@ -232,7 +231,7 @@ public class MainFinal extends Sprite

var btn3:MySprite = createBtn("select video!"); // NOT SUPPORTED ON iOS
btn3.addEventListener(MouseEvent.CLICK, selectVideo);
if(_ex.os != FileChooser.IOS) _list.add(btn3);
if(OverrideAir.os != OverrideAir.IOS) _list.add(btn3);

function selectVideo(e:MouseEvent):void
{
Expand All @@ -243,7 +242,7 @@ public class MainFinal extends Sprite

var btn4:MySprite = createBtn("select text file!"); // NOT SUPPORTED ON iOS
btn4.addEventListener(MouseEvent.CLICK, selectText);
if(_ex.os != FileChooser.IOS) _list.add(btn4);
if(OverrideAir.os != OverrideAir.IOS) _list.add(btn4);

function selectText(e:MouseEvent):void
{
Expand Down
65 changes: 5 additions & 60 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# FileChooser ANE V4.1.6 (Android+iOS)
# FileChooser ANE (Android+iOS)
FileChooser is a very easy to work with extension and lets you choose a file from your device and use it inside your AIR project. you can use the choose method and pass the type of file you need by passing its mimetype. \*/\* for example means any file with any mimetype! but image/\* means any image file while image/png means any png image file! on iOS, due to the OS limitations, no matter what input you set, it will allow you to pick images only at the moment. (in future versions, we will support picking video files on iOS too)

This extension can also optionally resize the picked image as fast as a few milliseconds for you so you don't have to load a huge image into your app!

# asdoc
[find the latest asdoc for this ANE here.](http://myflashlab.github.io/asdoc/com/myflashlab/air/extensions/fileChooser/package-detail.html)

[Download demo ANE](https://github.com/myflashlab/fileChooser-ANE/tree/master/AIR/lib)
[find the latest **asdoc** for this ANE here.](http://myflashlab.github.io/asdoc/com/myflashlab/air/extensions/fileChooser/package-detail.html)

# AIR Usage
For the complete AS3 code usage, see the [demo project here](https://github.com/myflashlab/fileChooser-ANE/blob/master/AIR/src/MainFinal.as).
Expand Down Expand Up @@ -98,58 +95,6 @@ https://www.myflashlabs.com/product/file-image-pick-ane-adobe-air-native-extensi

2. You have the option to resize the images because in a real life scenario you surely don't want to load a big image like 5MB into your app, right? Although you can resize the picked image in flash and maybe with using threads (Actionscript workers) but it will be a VERY slow process. so we decided to put a native image scaler inside the ```choose``` method to scale down the selected image with keeping the aspect ratio untouched. This will make working with this extension very exceptional.

# Changelog
*Nov 17, 2018 - V4.1.6*
* Works with OverrideAir ANE V5.6.1 or higher
* Works with ANELAB V1.1.26 or higher

*Sep 22, 2018 - V4.1.5*
* Removed androidSupport dependency
* Fixed a bug where Files from GoogleDrive where throwing an exception when selected. From this version, you can pick a file from GoogleDrive to your AIR app with no problem.
* Introduced new dependencies:
* [permissionCheck.ane](https://github.com/myflashlab/PermissionCheck-ANE/)
* overrideAir.ane
* googlePlayServices_base.ane
* googlePlayServices_basement.ane
* googlePlayServices_drive.ane
* googlePlayServices_tasks.ane

*May 12, 2018 - V4.1.4*
* On Android, the chooser activity used to open in portrait always. This problem is now fixed. And if your app is in landscape, the chooser activity also opens in landscape mode.

*Dec 15, 2017 - V4.1.3*
* Optimized for [ANE-LAB software](https://github.com/myflashlab/ANE-LAB).

*Sep 28, 2017 - V4.1.2*
* Fixed duplicated windows on landscape apps reported [here issue:18](https://github.com/myflashlab/fileChooser-ANE/issues/18).

*Mar 17, 2017 - V4.1.1*
* Fixed the white screen problem on iOS
* Updated with the new OverrideAir ANE.
* Even if you are building for iOS only, you still need to add the OverrideAir dependency.

*Nov 10, 2016 - V4.1.0*
* Optimized for Android manual permissions if you are targeting AIR SDK 24+
* From now on, this ANE will depend on androidSupport.ane and overrideAir.ane on the Android side

*Feb 07, 2016 - V4.0.2*
* Fixed missing onError dispatch on Android platform when no file was selected by the user

*Feb 04, 2016 - V4.0.1*
* Fixed resizing/scaling of images in Android and iOS

*Jan 21, 2016 - V4.0.0*
* Now you can optionally resize an image with native speed as soon as you pick an image. simply pass in an object like this _ex.choose("image/*", "pick an image!", {width:500, height:500, quality:50});
* bypassing xCode 7.2 bug causing iOS conflict when compiling with AirSDK 20 without waiting on Adobe or Apple to fix the problem. This is a must have upgrade for your app to make sure you can compile multiple ANEs in your project with AirSDK 20 or greater. https://forums.adobe.com/thread/2055508 https://forums.adobe.com/message/8294948

*Dec 20, 2015 - V3.9.1*
* minor bug fixes

*Nov 03, 2015 - V3.9*
* doitflash devs merged into MyFLashLab Team

*Oct 15, 2015 - V3.0*
* Added iOS support (for picking images only at the moment)

*May 06, 2013 - V1.0*
* beginning of the journey!
# Premium Support #
[![Premium Support package](https://www.myflashlabs.com/wp-content/uploads/2016/06/professional-support.jpg)](https://www.myflashlabs.com/product/myflashlabs-support/)
If you are an [active MyFlashLabs club member](https://www.myflashlabs.com/product/myflashlabs-club-membership/), you will have access to our private and secure support ticket system for all our ANEs. Even if you are not a member, you can still receive premium help if you purchase the [premium support package](https://www.myflashlabs.com/product/myflashlabs-support/).
17 changes: 0 additions & 17 deletions issue_template.md

This file was deleted.

0 comments on commit ebae8cf

Please sign in to comment.