Skip to content

Commit ffc3822

Browse files
committed
Initial release
1 parent 4edf999 commit ffc3822

File tree

125 files changed

+4181
-2
lines changed

Some content is hidden

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

125 files changed

+4181
-2
lines changed

Diff for: .github/ISSUE_TEMPLATE.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
If you are reporting a bug please make sure you fill out the following information, otherwise delete this packagemanager and ask your question.
3+
4+
5+
##### Expected behaviour
6+
7+
8+
##### Actual behaviour
9+
10+
11+
##### Environment
12+
13+
- AIR SDK version:
14+
- Device OS:
15+
- Device version:
16+
- Development IDE:
17+
- Development OS:
18+
19+
20+
##### Logs
21+
22+
Device logs if relevant

Diff for: .github/SUPPORT.md

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Support
2+
3+
As you are a subscribed user of our extensions there are several special support channels that you have access to.
4+
5+
6+
7+
## Check the documentation
8+
9+
### [Wiki](../../../wiki)
10+
11+
The best place to start is in the wiki. This forms the most up-to-date documentation for the extensions and is an important place to start using the extensions.
12+
13+
Common issues include
14+
- Check you have all the required support extensions in the [Add the Extension](../../../wiki/i.Add-the-Extension) section;
15+
- Check you have correctly added and updated any manifest additions (Android) and Info Additions / Entitlements (iOS);
16+
- Check you have called `init( APP_KEY );` with your application key
17+
18+
[Wiki Home](../../../wiki)
19+
20+
21+
### Reference
22+
23+
ASDocs document each of the classes, interfaces, events, functions and properties that you will be using. It is the main reference for the extension. If it's not in the guide you will find it here!
24+
25+
26+
### Changelog
27+
28+
The changelog contains a record of all the changes we have done to the extension.
29+
There are more details in github, referenced with releases but this is publicly available to see the work being done on the extension.
30+
31+
32+
33+
## Search the forum
34+
35+
We use the issue tracker in this repository as a forum for subscribed users to ask questions and submit issues found with the extensions.
36+
37+
When you have a question it is likely someone has had a similar issue before and you can find an answer by searching the closed issues.
38+
39+
Simply use the search bar to search the repository and if you limit the results to **issues** you will see all related questions that have been asked by other users.
40+
41+
[Forum](../../../issues?utf8=✓&q=is%3Aissue%20)
42+
43+
44+
## Ask a question
45+
46+
If you can't find a solution in the existing issues, then feel free to start a new issue to ask your question.
47+
Remember there are no silly questions and we are here to help you as best we can!
48+
We just ask that you provide as much information about your problem as possible, such as platform, versions, AIR SDK used etc.
49+
50+
[Ask a question](../../../issues/new)

Diff for: CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
3+
###### 2019.04.08 [v1.1.025]
4+
5+
```
6+
Initial release
7+
```

Diff for: README.md

+52-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,52 @@
1-
# ANE-PackageManager
2-
Package Manager ANE implementing access to the Android Package Manager from Adobe AIR
1+
built by [distriqt //](https://airnativeextensions.com)
2+
3+
![](images/hero.png)
4+
5+
# PackageManager
6+
7+
PackageManager is an AIR Native Extension to access certain features of the Android package manager.
8+
9+
10+
### Features
11+
12+
- Receive package added and removed events when other applications are installed or removed from the device
13+
- Single API interface - your code works across supported platforms with no modifications
14+
- Sample project code and ASDocs reference
15+
16+
17+
18+
19+
## Documentation
20+
21+
Latest documentation can be found in the [wiki](https://github.com/distriqt/ANE-PackageManager/wiki)
22+
23+
Quick Example:
24+
25+
```as3
26+
PackageManager.service.addEventListener( PackageManagerEvent.PACKAGE_REMOVED, packageRemovedHandler );
27+
28+
function packageRemovedHandler( event:PackageManagerEvent ):void
29+
{
30+
trace( "Package Removed::"+ event.packageName );
31+
}
32+
```
33+
34+
35+
More information here:
36+
37+
[com.distriqt.PackageManager](https://airnativeextensions.com/extension/com.distriqt.PackageManager)
38+
39+
40+
## License
41+
42+
You can purchase a license for using this extension:
43+
44+
[airnativeextensions.com](https://airnativeextensions.com/)
45+
46+
distriqt retains all copyright.
47+
48+
49+
![](images/promo.png)
50+
51+
52+

Diff for: docs/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
Gemfile
3+
_site
4+

Diff for: docs/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
3+
###### 2019.04.08 [v1.1.025]
4+
5+
```
6+
Initial release
7+
```

Diff for: docs/_config.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
title: PackageManager
2+
show_downloads: false
3+
google_analytics:
4+
5+
repository: distriqt/ANE-PackageManager
6+
exclude: ["_Sidebar.md, _Footer.md"]
7+
theme: jekyll-theme-minimal
8+
9+
gems:
10+
- jekyll-redirect-from
11+

Diff for: docs/_includes/Sidebar.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
3+
<br/><hr/>
4+
5+
<h4>Setup the Extension</h4>
6+
7+
1. <a href='i.Add the Extension'>Add the Extension</a><br/>
8+
9+
10+
<br/><hr/>
11+
12+
<h4>Usage</h4>
13+
14+
1. <a href='u.Package Events#package-removed'>Package Removed</a><br/>
15+
16+
17+
<br/><hr/>
18+
19+
<h4>External Links</h4>
20+
21+
- <a href='https://distriqt.github.io/ANE-PackageManager/asdocs/'>ASdocs</a><br/>

Diff for: docs/_layouts/default.html

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
<title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title>
7+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
8+
9+
<script src="https://use.fontawesome.com/8337fb8109.js"></script>
10+
<meta name="viewport" content="width=device-width">
11+
<!--[if lt IE 9]>
12+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13+
<![endif]-->
14+
</head>
15+
<body>
16+
<div class="wrapper">
17+
<header>
18+
19+
<h1 style="text-align: center">
20+
<a href="{{ site.github.url }}">
21+
<img src="images/icon.png" style="width:64px;" /><br/>
22+
{{ site.title | default: site.github.repository_name }}<br/>
23+
</a>
24+
</h1>
25+
26+
<h3>Adobe AIR native extension</h3>
27+
<p>{{ site.description | default: site.github.project_tagline }}</p>
28+
29+
<p>
30+
The extension is available here: <a href="{{ 'https://airnativeextensions.com/extension/com.distriqt.' | append: site.title }}">
31+
com.distriqt.{{ site.title }}
32+
</a>
33+
</p>
34+
35+
<h3>Documentation</h3>
36+
<div class="sidebar">
37+
{% include Sidebar.html %}
38+
</div>
39+
40+
</header>
41+
<section>
42+
43+
{{ content }}
44+
45+
</section>
46+
<footer>
47+
<p><a href="https://airnativeextensions.com">airnativeextensions</a> <br/>by <a href="http://distriqt.com">distriqt //</a>
48+
</footer>
49+
</div>
50+
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script>
51+
52+
53+
{% if site.google_analytics %}
54+
<script type="text/javascript">
55+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
56+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
57+
</script>
58+
<script type="text/javascript">
59+
try {
60+
var pageTracker = _gat._getTracker("{{ site.google_analytics }}");
61+
pageTracker._trackPageview();
62+
} catch(err) {}
63+
</script>
64+
{% endif %}
65+
</body>
66+
</html>

Diff for: docs/asdocs/AC_OETags.js

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
////////////////////////////////////////////////////////////////////////////////
2+
//
3+
// ADOBE SYSTEMS INCORPORATED
4+
// Copyright 2008 Adobe Systems Incorporated
5+
// All Rights Reserved.
6+
//
7+
// NOTICE: Adobe permits you to use, modify, and distribute this file
8+
// in accordance with the terms of the license agreement accompanying it.
9+
//
10+
////////////////////////////////////////////////////////////////////////////////
11+
12+
13+
//v1.0
14+
function AC_AddExtension(src, ext)
15+
{
16+
if (src.indexOf('?') != -1)
17+
return src.replace(/\?/, ext+'?');
18+
else
19+
return src + ext;
20+
}
21+
22+
function AC_Generateobj(objAttrs, params, embedAttrs)
23+
{
24+
var str = '<object ';
25+
for (var i in objAttrs)
26+
str += i + '="' + objAttrs[i] + '" ';
27+
str += '>';
28+
for (var i in params)
29+
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
30+
str += '<embed ';
31+
for (var i in embedAttrs)
32+
str += i + '="' + embedAttrs[i] + '" ';
33+
str += ' ></embed></object>';
34+
35+
document.write(str);
36+
}
37+
38+
function AC_FL_RunContent(){
39+
var ret =
40+
AC_GetArgs
41+
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
42+
, "application/x-shockwave-flash"
43+
);
44+
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
45+
}
46+
47+
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
48+
var ret = new Object();
49+
ret.embedAttrs = new Object();
50+
ret.params = new Object();
51+
ret.objAttrs = new Object();
52+
for (var i=0; i < args.length; i=i+2){
53+
var currArg = args[i].toLowerCase();
54+
55+
switch (currArg){
56+
case "classid":
57+
break;
58+
case "pluginspage":
59+
ret.embedAttrs[args[i]] = args[i+1];
60+
break;
61+
case "src":
62+
case "movie":
63+
args[i+1] = AC_AddExtension(args[i+1], ext);
64+
ret.embedAttrs["src"] = args[i+1];
65+
ret.params[srcParamName] = args[i+1];
66+
break;
67+
case "onafterupdate":
68+
case "onbeforeupdate":
69+
case "onblur":
70+
case "oncellchange":
71+
case "onclick":
72+
case "ondblClick":
73+
case "ondrag":
74+
case "ondragend":
75+
case "ondragenter":
76+
case "ondragleave":
77+
case "ondragover":
78+
case "ondrop":
79+
case "onfinish":
80+
case "onfocus":
81+
case "onhelp":
82+
case "onmousedown":
83+
case "onmouseup":
84+
case "onmouseover":
85+
case "onmousemove":
86+
case "onmouseout":
87+
case "onkeypress":
88+
case "onkeydown":
89+
case "onkeyup":
90+
case "onload":
91+
case "onlosecapture":
92+
case "onpropertychange":
93+
case "onreadystatechange":
94+
case "onrowsdelete":
95+
case "onrowenter":
96+
case "onrowexit":
97+
case "onrowsinserted":
98+
case "onstart":
99+
case "onscroll":
100+
case "onbeforeeditfocus":
101+
case "onactivate":
102+
case "onbeforedeactivate":
103+
case "ondeactivate":
104+
case "type":
105+
case "codebase":
106+
ret.objAttrs[args[i]] = args[i+1];
107+
break;
108+
case "width":
109+
case "height":
110+
case "align":
111+
case "vspace":
112+
case "hspace":
113+
case "class":
114+
case "title":
115+
case "accesskey":
116+
case "name":
117+
case "id":
118+
case "tabindex":
119+
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
120+
break;
121+
default:
122+
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
123+
}
124+
}
125+
ret.objAttrs["classid"] = classid;
126+
if (mimeType) ret.embedAttrs["type"] = mimeType;
127+
return ret;
128+
}
129+

0 commit comments

Comments
 (0)