Skip to content

Commit a5adbfc

Browse files
committed
audiorecorder v4.0.0
1 parent c31c775 commit a5adbfc

Some content is hidden

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

56 files changed

+265
-334
lines changed

docs/audiorecorder/_includes/add-apm-appdescriptor.md renamed to docs/audiorecorder/_includes/add-apm-appdescriptor.mdx

File renamed without changes.

docs/audiorecorder/_includes/add-apm.md

Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
:::info
3+
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.
4+
:::
5+
6+
import SetupAPM from '../../_includes/apm/setup-apm.mdx'
7+
8+
<SetupAPM />
9+
10+
11+
### Install the extension
12+
13+
Install the extension by running:
14+
15+
```
16+
apm install com.distriqt.AudioRecorder
17+
```
18+
19+
This will download and install the extension, required assets, and all dependencies.
20+
21+
Once complete `apm` will have created something like the following file structure:
22+
23+
```
24+
.
25+
|____ ane
26+
| |____ com.distriqt.AudioRecorder.ane # AudioRecorder extension
27+
| |____ [dependencies]
28+
|____ apm_packages # cache directory - ignore
29+
|____ project.apm # apm project file
30+
```
31+
32+
- Add the `ane` directory to your IDE. *See the tutorials located [here](/docs/tutorials/getting-started) on adding an extension to your IDE.*
33+
34+
35+
:::info
36+
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.
37+
:::
38+
39+
40+
- You will need to set some configuration values. Call the following to step through the configuration values for this extension:
41+
42+
```
43+
apm project config set com.distriqt.AudioRecorder
44+
```
45+

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

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

2-
## Extension IDs
2+
### Extension IDs
33

44
The following should be added to your `extensions` node in your application descriptor to identify all the required ANEs in your application:
55

66
```xml
77
<extensions>
88
<extensionID>com.distriqt.AudioRecorder</extensionID>
99
<extensionID>com.distriqt.Core</extensionID>
10-
1110
<extensionID>androidx.core</extensionID>
11+
<extensionID>com.jetbrains.kotlin</extensionID>
1212
</extensions>
1313
```
1414

1515

1616

17-
## Android
17+
### Android
1818

1919

20-
### Manifest Additions
20+
#### Manifest Additions
2121

2222
The AudioRecorder extension requires a few additions to the manifest to be able to
2323
start certain activities and get access to the users microphone.
@@ -33,7 +33,7 @@ request permissions at runtime.
3333
<uses-permission android:name="android.permission.INTERNET"/>
3434

3535
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
36-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
36+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />
3737

3838
<application>
3939

docs/audiorecorder/_includes/add-manual.md

Lines changed: 0 additions & 101 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
:::info
3+
The following guide is used to manually install the extension, download dependencies and update the application descriptor. We highly recommend installing extensions using `apm`. Using `apm` will automate the installation and automatically handle updates and dependencies along with greatly simplifying the application descriptor generation.
4+
:::
5+
6+
7+
First step is always to add the extension to your development environment. Download the extension from the repository and then follow the tutorial located [here](/docs/tutorials/getting-started) to add the extension to your development environment.
8+
9+
10+
### Dependencies
11+
12+
Many of our extensions use some common libraries, for example, the Android Support libraries.
13+
14+
We have to separate these libraries into separate extensions in order to avoid multiple versions of the libraries being included in your application and causing packaging conflicts. This means that you need to include some additional extensions in your application along with the main extension file.
15+
16+
You will add these extensions as you do with any other extension, and you need to ensure it is packaged with your application.
17+
18+
19+
#### Core ANE
20+
21+
The Core ANE is required by this ANE. You must include and package this extension in your application.
22+
23+
The Core ANE doesn't provide any functionality in itself but provides support libraries and frameworks used by our extensions.
24+
It also includes some centralised code for some common actions that can cause issues if they are implemented in each individual extension.
25+
26+
- [com.distriqt.Core](https://github.com/distriqt/ANE-Core/raw/master/lib/com.distriqt.Core.ane)
27+
28+
You can access this extension here: [https://github.com/distriqt/ANE-Core](https://github.com/distriqt/ANE-Core).
29+
30+
31+
#### Android Support
32+
33+
The Android Support libraries encompass the Android Support, Android X and common Google libraries.
34+
35+
These libraries are specific to Android. There are no issues including these on all platforms, they are just **required** for Android.
36+
37+
This extension requires the following extensions:
38+
39+
- [androidx.core](https://github.com/distriqt/ANE-AndroidSupport/raw/master/lib/androidx.core.ane)
40+
- [com.jetbrains.kotlin](https://github.com/distriqt/ANE-AndroidSupport/raw/master/lib/com.jetbrains.kotlin.ane)
41+
42+
You can access these extensions here: [https://github.com/distriqt/ANE-AndroidSupport](https://github.com/distriqt/ANE-AndroidSupport).
43+

docs/audiorecorder/add-the-extension.mdx

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

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

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

1515

1616
The simplest way to install and manage your AIR native extensions and libraries is to use the AIR Package Manager (`apm`). We highly recommend using `apm`, as it will handle downloading all required dependencies and manage your application descriptor (Android manifest additions, iOS info additions etc).

docs/audiorecorder/changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
### 2025.09.24 [v4.0.0]
2+
3+
```
4+
feat(airpackage): update dependencies (resolves https://github.com/airnativeextensions/ANE-AudioRecorder/issues/13)
5+
feat(android): correct required permissions on recent android api versions
6+
feat(ios): update for latest xcode
7+
feat(docs): update playback + installation docs
8+
```
9+
110
### 2023.01.13 [v3.1.0]
211

312
```

docs/audiorecorder/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,4 @@ You can purchase a license for using this extension:
5151

5252
[airnativeextensions.com](https://airnativeextensions.com/)
5353

54-
distriqt retains all copyright.
55-
56-
5754
![](images/promo.png)

0 commit comments

Comments
 (0)