Skip to content

Commit 978ee20

Browse files
committed
Add airpackage
1 parent d489fbd commit 978ee20

File tree

130 files changed

+3539
-268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+3539
-268
lines changed

.github/workflows/issues.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Close stale issues and PR'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v4
11+
with:
12+
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
13+
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
14+
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
15+
days-before-stale: 30
16+
days-before-close: 5
17+
days-before-pr-close: -1

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11

22

3+
###### 2021.12.06 [v3.0.8]
4+
5+
```
6+
Add airpackage
7+
```
8+
9+
310
###### 2021.03.12 [v3.0.007]
411

512
```

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
built by [distriqt //](http://airnativeextensions.com)
1+
built by [distriqt //](https://airnativeextensions.com)
22

33

4-
![Exceptions](images/promo.png)
4+
![Exceptions](https://raw.githubusercontent.com/distriqt/ANE-Exceptions/master/images/promo.png)
55

66

77
# Exceptions
@@ -67,7 +67,7 @@ The highest quality and widest range of Native Extensions for Adobe AIR
6767
With many native extensions available, we are the largest provider of native extensions for AIR developers.
6868
Our mobile solutions allow developers to fast-forward development and focus on building great games and apps.
6969

70-
http://airnativeextensions.com
70+
https://airnativeextensions.com
7171

7272

7373

build.xml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<project default="all" name="ane.build">
33

44
<import file="build_common.xml" />
5-
<import file="build_docsconversion.xml" />
65
<property file="${common.basedir}/build_config/build.config" description="build properties" />
76

87

@@ -28,21 +27,26 @@
2827
-->
2928

3029
<target name="version">
31-
<antcall target="version_increment" />
3230
<antcall target="version_write" />
3331
</target>
3432

3533
<target name="version_increment" if="${version.autoincrement}">
3634
<propertyfile file="./build_config/version.config">
37-
<entry key="version_build" type="int" operation="+" value="1" pattern="000" />
35+
<entry key="version_build" type="int" operation="+" value="1" />
3836
</propertyfile>
3937
</target>
4038

4139
<target name="version_write">
40+
<echo file="build/VERSION.md" append="false" >## Version Details
41+
42+
| Extension | Version | Android Lib | iOS Lib |
43+
| --- | --- | --- | --- |
44+
</echo>
45+
4246
<var name="version" value="${version_major}.${version_minor}.${version_build}" />
4347
<echo
4448
file="${output.dir}/VERSION.md"
45-
append="false"
49+
append="true"
4650
message="| ${output.name} | ${version} | ${version.android} | ${version.ios} |${line.separator}" />
4751
</target>
4852

@@ -203,6 +207,25 @@ _site
203207

204208

205209

210+
<!--
211+
//
212+
//
213+
// AIR PACKAGE
214+
//
215+
//
216+
-->
217+
218+
<target name="airpackage" >
219+
<iterate target="deploy" directory="package" />
220+
</target>
221+
222+
223+
<target name="clean_airpackage" >
224+
<iterate target="clean" directory="package" />
225+
</target>
226+
227+
228+
206229
<!--
207230
//
208231
//
@@ -238,9 +261,9 @@ _site
238261

239262
<target name="all" depends="version, build_platforms, build_extensions" />
240263

241-
<target name="clean" depends="clean_platforms, clean_extensions" />
264+
<target name="clean" depends="clean_platforms, clean_extensions, clean_airpackage" />
242265

243-
<target name="release" depends="docs, deploy" />
266+
<target name="release" depends="version, docs, deploy" />
244267

245268

246269
</project>

build/VERSION.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
| com.distriqt.Exceptions | 3.0.006 | | |
1+
## Version Details
2+
3+
| Extension | Version | Android Lib | iOS Lib |
4+
| --- | --- | --- | --- |
5+
| com.distriqt.Exceptions | 3.0.8 | | |

build/com.distriqt.Exceptions.ane

982 Bytes
Binary file not shown.
-7 Bytes
Binary file not shown.

build_common.xml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@
1515
<target name="bootstrap">
1616
<mkdir dir="${user.home}/.ant/lib"/>
1717
<get dest="${user.home}/.ant/lib/ant-contrib.jar" src="https://search.maven.org/remotecontent?filepath=ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar"/>
18+
19+
<get dest="${user.home}/.ant/lib/rhino.jar" src="https://repo1.maven.org/maven2/org/mozilla/rhino/1.7.14-RC1/rhino-1.7.14-RC1.jar"/>
20+
<get dest="${user.home}/.ant/lib/bsf.jar" src="http://search.maven.org/remotecontent?filepath=bsf/bsf/2.4.0/bsf-2.4.0.jar"/>
21+
<get dest="${user.home}/.ant/lib/commons-logging-api.jar" src="http://search.maven.org/remotecontent?filepath=commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar"/>
1822
</target>
1923

2024

21-
2225
<!-- PLATFORM INFORMATION -->
2326

2427
<condition property="isWindows" else="false">
@@ -67,19 +70,10 @@
6770
<attribute name="value" />
6871
<![CDATA[
6972
project.setProperty( attributes.get( "name" ),
70-
attributes.get( "value" ).replace( ".", "" ) );
73+
attributes.get( "value" ).replaceAll( "\\.", "" ) );
7174
]]>
7275
</scriptdef>
7376

74-
<scriptdef language="javascript" name="cleanpath">
75-
<attribute name="name" />
76-
<attribute name="value" />
77-
<![CDATA[
78-
project.setProperty( attributes.get( "name" ),
79-
attributes.get( "value" ).replace( /\/\/|\/\.\//g, "/" ) );
80-
]]>
81-
</scriptdef>
82-
8377
<scriptdef language="javascript" name="wrapxmltag">
8478
<attribute name="name" />
8579
<attribute name="input" />
@@ -96,6 +90,7 @@
9690
]]>
9791
</scriptdef>
9892

93+
9994
<scriptdef language="javascript" name="outputname">
10095
<attribute name="name" />
10196
<attribute name="prefix" />
@@ -104,12 +99,12 @@
10499
<![CDATA[
105100
var outputName = "";
106101
107-
var prefix = attributes.get( "prefix" );
102+
var prefix = String(attributes.get( "prefix" ));
108103
if (prefix.length > 0)
109104
outputName = prefix + ".";
110105
111-
var grp = attributes.get( "grp" ).toLowerCase();
112-
var projectname = attributes.get( "projectname" );
106+
var grp = String(attributes.get( "grp" ).toLowerCase());
107+
var projectname = String(attributes.get( "projectname" ));
113108
if (grp.length > 0)
114109
{
115110
outputName += grp + "." + projectname;
@@ -130,12 +125,12 @@
130125
<![CDATA[
131126
var packageName = "";
132127
133-
var prefix = attributes.get( "prefix" );
128+
var prefix = String(attributes.get( "prefix" ));
134129
if (prefix.length > 0)
135130
packageName = prefix + ".";
136131
137-
var grp = attributes.get( "grp" ).toLowerCase();
138-
var projectname = attributes.get( "projectname" ).toLowerCase();
132+
var grp = String(attributes.get( "grp" ).toLowerCase());
133+
var projectname = String(attributes.get( "projectname" ).toLowerCase());
139134
if (grp.length > 0)
140135
{
141136
packageName += grp + "." + projectname;
@@ -153,7 +148,7 @@
153148
<attribute name="value" />
154149
<![CDATA[
155150
project.setProperty( attributes.get( "name" ),
156-
attributes.get( "value" ).replace( /\./g, "/" ) );
151+
attributes.get( "value" ).replaceAll( "\\.", "/" ) );
157152
]]>
158153
</scriptdef>
159154

@@ -162,7 +157,7 @@
162157
<attribute name="value" />
163158
<![CDATA[
164159
project.setProperty( attributes.get( "name" ),
165-
attributes.get( "value" ).replace( /\./g, "-" ) );
160+
attributes.get( "value" ).replaceAll( "\\.", "-" ) );
166161
]]>
167162
</scriptdef>
168163

build_config/build.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
project.grp =
44
project.name = Exceptions
55

6+
github.repo = distriqt/ANE-Exceptions
7+
airpackage.name = Exceptions
8+
airpackage.description = Enable global exception handle for native exceptions
9+
610
DEBUG_MODE=false
711

812
package.basename = com.distriqt.extension

build_config/global.config

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# DEFAULTS
77
output.tmpdir = .tmp
88
codetmpl = ./build_config/_codetmpl
9+
airpackage.dir = ./package
10+
airpackage.tmpl = ${airpackage.dir}/_packagetmpl
911
version.autoincrement = true
1012
version.android =
1113
version.ios =
@@ -47,7 +49,9 @@ supportlibs.coreframework = ${supportlibs.corelibraries}/platform/ios/build
4749

4850
# WINDOWS
4951
windows.msbuildpath = C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe
50-
windows.outputdir = build
52+
windows.outputdir = build/x86
53+
windows.outputdir64 = build/x64
54+
windows.buildconfig = Release
5155

5256

5357
# MACOS

0 commit comments

Comments
 (0)