Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-zhang committed Apr 15, 2014
1 parent 655ed57 commit 7550404
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Flash/.actionScriptProperties
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties analytics="false" mainApplicationPath="AZExitANE.as" projectUUID="161ad800-32b3-4ac9-96cb-70ff002de74c" version="11">
<compiler additionalCompilerArguments="-locale en_US" autoRSLOrdering="true" copyDependentFiles="false" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin" removeUnusedRSL="true" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="true" useDebugRSLSwfs="true" useFlashSDK="false" verifyDigests="true" warn="true">
<compiler additionalCompilerArguments="-locale en_US -swf-version 24" autoRSLOrdering="true" copyDependentFiles="false" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin" removeUnusedRSL="true" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="true" useDebugRSLSwfs="true" useFlashSDK="false" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="0">
<libraryPathEntry kind="4" path="">
Expand Down
14 changes: 7 additions & 7 deletions Flash/src/com/landinggearup/ane/exit/AZExitANE.as
Expand Up @@ -13,11 +13,14 @@ package com.landinggearup.ane.exit
{
super();

_extContext = ExtensionContext.createExtensionContext("com.landinggearup.ane.exit", "");

if(! _extContext){
throw new Error("Cannot create AZExitANE");
if(isIOS()){
_extContext = ExtensionContext.createExtensionContext("com.landinggearup.ane.exit", "");

if(! _extContext){
throw new Error("Cannot create AZExitANE");
}
}

}

private function isIOS():Boolean{
Expand All @@ -32,9 +35,6 @@ package com.landinggearup.ane.exit
if(this.isIOS()){
_extContext.call("AZExitANEExit", code);

}else if(this.isAndroid()){
NativeApplication.nativeApplication.exit(code);

}else{
NativeApplication.nativeApplication.exit(code);

Expand Down
Binary file modified Package/AZExitANE.ane
Binary file not shown.
5 changes: 1 addition & 4 deletions Package/extension.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension xmlns="http://ns.adobe.com/air/extension/3.1">
<extension xmlns="http://ns.adobe.com/air/extension/13.0">
<id>com.landinggearup.ane.exit</id>
<versionNumber>1.0.0</versionNumber>
<platforms>
Expand All @@ -10,9 +10,6 @@
<finalizer>AZExitANEFinalizer</finalizer>
</applicationDeployment>
</platform>
<platform name="Android-ARM">
<applicationDeployment/>
</platform>
<platform name="default">
<applicationDeployment/>
</platform>
Expand Down
4 changes: 0 additions & 4 deletions Package/package.sh
Expand Up @@ -7,22 +7,18 @@ rm -Rf tmp-default

mkdir tmp
mkdir tmp-ios
mkdir tmp-android
mkdir tmp-default

unzip -o -d tmp ../Flash/bin/AZExitANE.swc
cp -f tmp/library.swf tmp-ios
cp -f tmp/library.swf tmp-android
cp -f tmp/library.swf tmp-default
cp -f ../iOS/bin/libAZExitANE-universal.a tmp-ios

"${ADTPath}/adt" -package -target ane AZExitANE.ane extension.xml \
-swc ../Flash/bin/AZExitANE.swc \
-platform Android-ARM -C tmp-android . \
-platform iPhone-ARM -C tmp-ios . \
-platform default -C tmp-default .

rm -Rf tmp
rm -Rf tmp-ios
rm -Rf tmp-android
rm -Rf tmp-default

0 comments on commit 7550404

Please sign in to comment.