forked from mesmotronic/air-ane-fullscreen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved window.clearFlags call to ShowSystemUiFunction.java to resolve …
…issue mesmotronic#16 on Samsung Galaxy S3 Neo; added build.xml ant script by wastedabuser
- Loading branch information
1 parent
4578fb7
commit 7d8d190
Showing
8 changed files
with
98 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
Binary file not shown.
Binary file not shown.
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
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,7 @@ | ||
name = AndroidFullScreen | ||
name.jar = fullscreen-ane-jar | ||
|
||
flex.sdk = Your path to flex sdk for example i am using D:/programs/FlashDevelop/Apps/ascsdk/17.0.0 | ||
flex.sdk.ext = .bat | ||
|
||
android.sdk = Your path to adt for example i am using D:/programs/adt-bundle-windows-x86_64-20131030/sdk/platforms/android-19 |
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,81 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="Air Native Extension Build Scripts" default="all"> | ||
|
||
<!-- Config --> | ||
<property file="build.config"/> | ||
|
||
<!-- All --> | ||
<target name="all" depends="android,swc,package" description="Full build of extension"/> | ||
|
||
<!-- Android --> | ||
<target name="android" description="Build Android Library"> | ||
<delete dir="../temp-java"/> | ||
<mkdir dir="../temp-java"/> | ||
|
||
<echo message="Using Java version ${ant.java.version}."/> | ||
|
||
<javac source="1.6" srcdir="../android-jar/src" destdir="../temp-java" includeantruntime="false"> | ||
<src path="../android-jar/src"/> | ||
<classpath> | ||
<pathelement location="${android.sdk}/android.jar"/> | ||
<pathelement location="${flex.sdk}/lib/android/FlashRuntimeExtensions.jar"/> | ||
<!-- <pathelement location="../android-jar/libs/android-support-v4.jar"/> --> | ||
</classpath> | ||
</javac> | ||
|
||
<delete file="android/${name.jar}.jar"/> | ||
<jar basedir="../temp-java" destfile="android/${name.jar}.jar"/> | ||
<!-- <copy file="../android-jar/libs/android-support-v4.jar" todir="../temp/android/"/> --> | ||
|
||
<delete dir="../temp-java"/> | ||
</target> | ||
|
||
<!-- Actionscript --> | ||
<target name="swc" description="Build SWC library"> | ||
<delete dir="../temp-swc/"/> | ||
<mkdir dir="../temp-swc"/> | ||
|
||
<fileset dir="../android-swc/src" casesensitive="yes" id="classfiles"> | ||
<include name="**/*.as"/> | ||
</fileset> | ||
|
||
<pathconvert property="classlist" refid="classfiles" pathsep=" " dirsep="."> | ||
<regexpmapper from=".*src.(.*)\.as" to="\1"/> | ||
</pathconvert> | ||
|
||
<exec executable="${flex.sdk}/bin/compc${flex.sdk.ext}" failonerror="true"> | ||
<env key="AIR_SDK_HOME" value="${flex.sdk}"/> | ||
<arg line='-source-path ../android-swc/src'/> | ||
<arg line='-output ../temp-swc/${name}.swc'/> | ||
<arg line='-swf-version=28'/> | ||
<arg line='-external-library-path+="${flex.sdk}/frameworks/libs/air/airglobal.swc"'/> | ||
<arg line='-include-classes ${classlist}'/> | ||
</exec> | ||
|
||
<unzip src="../temp-swc/${name}.swc" dest="../temp-swc" overwrite="true"/> | ||
<copy file="../temp-swc/library.swf" todir="android" overwrite="true"/> | ||
<copy file="../temp-swc/library.swf" todir="default" overwrite="true"/> | ||
|
||
</target> | ||
|
||
<!-- Package --> | ||
<target name="package" description="Create the extension package"> | ||
|
||
<delete file="${name}.ane"/> | ||
|
||
<exec executable="${flex.sdk}/bin/adt${flex.sdk.ext}" failonerror="true"> | ||
<arg value="-package"/> | ||
<arg value="-target"/> | ||
<arg value="ane"/> | ||
<arg value="./${name}.ane"/> | ||
<arg value="extension.xml"/> | ||
<arg line="-swc ../temp-swc/${name}.swc"/> | ||
<arg line="-platform Android-ARM -C android/ ."/> | ||
<arg line="-platform Android-x86 -C android/ ."/> | ||
<arg line="-platform default -C default/ ."/> | ||
</exec> | ||
|
||
<delete dir="../temp-swc/"/> | ||
</target> | ||
|
||
</project> |