Skip to content

Commit 5c9d7c6

Browse files
committed
application v8.1.0
1 parent 49b41f2 commit 5c9d7c6

File tree

89 files changed

+389
-337
lines changed

Some content is hidden

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

89 files changed

+389
-337
lines changed
File renamed without changes.

docs/application/_includes/add-apm.md

Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
3+
:::info
4+
Note: All of the commands below should be run in a terminal / command prompt in the root directory of your application, generally the level above your source directory.
5+
:::
6+
7+
import SetupAPM from '../../_includes/apm/setup-apm.mdx'
8+
9+
<SetupAPM />
10+
11+
12+
### Install the extension
13+
14+
Install the extension by running:
15+
16+
```
17+
apm install com.distriqt.Application
18+
```
19+
20+
This will download and install the extension, required assets, and all dependencies.
21+
22+
Once complete `apm` will have created something like the following file structure:
23+
24+
```
25+
.
26+
|____ ane
27+
| |____ com.distriqt.Application.ane # Application extension
28+
| |____ [dependencies]
29+
|____ apm_packages # cache directory - ignore
30+
|____ project.apm # apm project file
31+
```
32+
33+
- Add the `ane` directory to your IDE. *See the tutorials located [here](/docs/tutorials/getting-started) on adding an extension to your IDE.*
34+
35+
36+
:::info
37+
We suggest you use the locations directly in your builds rather than copying the files elsewhere. The reason for this is if you ever go to update the extensions using `apm` that these updates will be pulled into your build automatically.
38+
:::
39+
40+

docs/application/_includes/add-manual-appdescriptor.md renamed to docs/application/_includes/add-manual-appdescriptor.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The following should be added to your `extensions` node in your application desc
1212
<extensionID>androidx.core</extensionID>
1313
<extensionID>com.distriqt.playservices.Base</extensionID>
1414
<extensionID>com.distriqt.playservices.AppSet</extensionID>
15+
<extensionID>com.jetbrains.kotlin</extensionID>
1516
</extensions>
1617
```
1718

@@ -64,6 +65,34 @@ Generally this is your AIR application id prefixed by `air.` unless you have spe
6465
```
6566

6667

68+
#### Android Gradle Version
69+
70+
We have updated the required gradle version used to build your application to be higher than the default AIR currently uses (April 2025).
71+
72+
To specify a higher version add the following to your android node in your application descriptor:
73+
74+
```xml
75+
<android>
76+
<gradleVersion>8.9</gradleVersion>
77+
<androidGradlePluginVersion>8.7.3</androidGradlePluginVersion>
78+
79+
...
80+
</android>
81+
```
82+
83+
If you don't do this you will see the following error when building your application:
84+
85+
```
86+
Unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed:
87+
FAILURE: Build failed with an exception.
88+
89+
...
90+
91+
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65
92+
```
93+
94+
95+
6796
#### MultiDex Applications
6897

6998
:::warning

docs/application/_includes/add-manual.md renamed to docs/application/_includes/add-manual.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ These libraries are specific to Android. There are no issues including these on
3636
This extension requires the following extensions:
3737

3838
- [androidx.core](https://github.com/distriqt/ANE-AndroidSupport/raw/master/lib/androidx.core.ane)
39+
- [com.jetbrains.kotlin](https://github.com/distriqt/ANE-AndroidSupport/raw/master/lib/com.jetbrains.kotlin.ane)
3940

4041
You can access these extensions here: [https://github.com/distriqt/ANE-AndroidSupport](https://github.com/distriqt/ANE-AndroidSupport).
4142

docs/application/add-the-extension.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ sidebar_label: Add the Extension
77
import Tabs from '@theme/Tabs'
88
import TabItem from '@theme/TabItem'
99

10-
import InstallAPM from './_includes/add-apm.md'
11-
import InstallManual from './_includes/add-manual.md'
10+
import InstallAPM from './_includes/add-apm.mdx'
11+
import InstallManual from './_includes/add-manual.mdx'
1212

13-
import AppDescriptorAPM from './_includes/add-apm-appdescriptor.md'
14-
import AppDescriptorManual from './_includes/add-manual-appdescriptor.md'
13+
import AppDescriptorAPM from './_includes/add-apm-appdescriptor.mdx'
14+
import AppDescriptorManual from './_includes/add-manual-appdescriptor.mdx'
1515

1616
Here we will show you how to add the extension to your development environment and make the necessary changes to your application descriptor to correctly support the extension.
1717

docs/application/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### 2025.08.08 [v8.1.0]
2+
3+
```
4+
fix(ios): resolve issue with scale not correctly reflecting state (resolves https://github.com/distriqt/ANE-Application/issues/300)
5+
```
6+
17
### 2024.12.11 [v8.0.0]
28

39
```

docs/application/display/display-metrics.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ trace( "screenHeight: " + Application.service.display.displayMetrics.screenHeigh
2020
trace( "screenWidth: " + Application.service.display.displayMetrics.screenWidth );
2121
trace( "xdpi: " + Application.service.display.displayMetrics.xdpi );
2222
trace( "ydpi: " + Application.service.display.displayMetrics.ydpi );
23+
trace( "scale: " + Application.service.display.displayMetrics.scale );
2324
trace( "nativeScale: " + Application.service.display.displayMetrics.nativeScale );
2425
```
2526

@@ -33,9 +34,24 @@ The iOS screen density is determined from a lookup and is not provided by the AP
3334

3435
### Native Scale
3536

36-
The `nativeScale` property is only valid on iOS.
37+
The `scale` & `nativeScale` property are only valid on iOS.
3738

38-
This value reflects the scale factor needed to convert from the default logical coordinate space into the device coordinate space of this screen. The default logical coordinate space is measured using points. For Retina displays, the scale factor may be 3.0 or 2.0 and one point can represented by nine or four pixels, respectively. For standard-resolution displays, the scale factor is 1.0 and one point equals one pixel.
39+
These value reflects the scale factor needed to convert from the default logical coordinate space into the device coordinate space of this screen. The default logical coordinate space is measured using points. For Retina displays, the scale factor may be 3.0 or 2.0 and one point can represented by nine or four pixels, respectively. For standard-resolution displays, the scale factor is 1.0 and one point equals one pixel.
3940

4041
This native scale property will change on an iOS device if the screen is put into it's "zoomed" display state and knowing this value can allow you to react accordingly.
4142

43+
The following logic is useful when checking for the zoomed state of a device:
44+
45+
```as3
46+
function isZoomed( displayMetrics:DisplayMetrics ):Boolean
47+
{
48+
return displayMetrics.scale < displayMetrics.nativeScale;
49+
}
50+
51+
if (isZoomed( Application.service.device.displayMetrics ))
52+
{
53+
// zoomed state
54+
}
55+
```
56+
57+

docs/application/display/display.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,18 @@ Application.service.display.setDisplayMode( DisplayMode.FULLSCREEN );
5555
5656
### Layout Modes
5757
58+
:::caution Android 15 (API v35)
59+
With Android 15 apps are edge-to-edge by default on devices running Android 15 if the app is targeting Android 15 (API level 35). This means that layout modes are ignored and SHORT_EDGES, NEVER, and DEFAULT are interpreted as ALWAYS so that users don't see a black bar caused by the display cutout and appear edge-to-edge.
60+
:::
61+
62+
5863
Modern devices are moving towards smaller bezels and larger aspect ratios. On these devices, *display cutouts* or *"notches"* are a popular way to achieve an edge-to-edge experience while providing space for important sensors on the front of the device.
5964
6065
We have two main options when displaying our content around cutouts, and how it will appear will depend on the display mode you are using.
6166
6267
- `LayoutMode.CUTOUT_SHORT_EDGES`: The window is allowed to extend into the cutout areas;
6368
- `LayoutMode.CUTOUT_NEVER`: The window is never allowed to overlap with the cutout area;
69+
- `LayoutMode.CUTOUT_ALWAYS`: Content is always allowed to extend into the cutout areas. **If your app targets SDK 35 and is running on an Android 15 device, this is the only allowed mode** ;
6470
6571
To set the layout mode, pass the required mode as the second parameter to the `setDisplayMode()` function:
6672
@@ -176,6 +182,7 @@ Ensure you place this within the `application` tag eg:
176182
<uses-permission android:name="android.permission.WAKE_LOCK" />
177183
178184
<application>
185+
<meta-data android:name="android.max_aspect" android:value="2.5" />
179186
</application>
180187
181188
</manifest>

static/asdocs/application/all-classes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- saved from url=(0014)about:internet --><html>
22
<head>
33
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4-
<title>All Classes - distriqt // Application</title>
4+
<title>All Classes - Application</title>
55
<base target="classFrame">
66
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
77
<link rel="stylesheet" href="print.css" type="text/css" media="print">
@@ -121,4 +121,4 @@ <h3><a href="class-summary.html" target="classFrame" style="color:black">All Cla
121121
</table>
122122
</body>
123123
</html>
124-
<!--Copyright distriqt 2016<br/>Wed Dec 11 2024, 02:02 PM +10:00 -->
124+
<!--Copyright Michael Archbold 2025<br/>Fri Aug 8 2025, 01:18 PM +10:00 -->

0 commit comments

Comments
 (0)