Skip to content

Commit a66cf93

Browse files
committed
CB-12519 Updated version and RELEASENOTES.md for release 3.0.0
1 parent 41c2080 commit a66cf93

File tree

4 files changed

+153
-222
lines changed

4 files changed

+153
-222
lines changed

RELEASENOTES.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@
2020
-->
2121
# Release Notes
2222

23+
### 3.0.0 (Feb 28, 2017)
24+
* **Android:** fix `NullPointerException` in `AudioPlayer.readyPlayer`
25+
* **Android:** fix `java.lang.NullPointerException` on `resumeAllGainedFocus`
26+
* [CB-12493](https://issues.apache.org/jira/browse/CB-12493) (Tests) Fixed spec.21 flakyness
27+
* major version bump, added `cordovaDependencies` requirement for `cordova-android>=6.1.0`
28+
* Add engine tag for checking `cordova-android`
29+
* Make the output file of **Android** an `acc` file.
30+
* [CB-12422](https://issues.apache.org/jira/browse/CB-12422) **iOS:** Fix readme issue on background needed plist modification
31+
* [CB-12434](https://issues.apache.org/jira/browse/CB-12434) **Android:** fix Stoping a Paused Recording throws exception
32+
* [CB-12411](https://issues.apache.org/jira/browse/CB-12411) Stoping a Paused Recording throws illegal state exception
33+
* [CB-1187](https://issues.apache.org/jira/browse/CB-1187) **iOS:** Fix unused recording settings
34+
* [CB-12353](https://issues.apache.org/jira/browse/CB-12353) Corrected merges usage in `plugin.xml`
35+
* [CB-12369](https://issues.apache.org/jira/browse/CB-12369) Add plugin typings from DefinitelyTyped
36+
* [CB-12363](https://issues.apache.org/jira/browse/CB-12363) Added build badges for **iOS 9.3** and **iOS 10.0**
37+
* [CB-12230](https://issues.apache.org/jira/browse/CB-12230) Removed **Windows 8.1** build badges
38+
2339
### 2.4.1 (Dec 07, 2016)
2440
* [CB-12224](https://issues.apache.org/jira/browse/CB-12224) Updated version and RELEASENOTES.md for release 2.4.1
2541
* [CB-12034](https://issues.apache.org/jira/browse/CB-12034) (ios) Add mandatory iOS 10 privacy description

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-media",
3-
"version": "3.0.0-dev",
3+
"version": "3.0.0",
44
"description": "Cordova Media Plugin",
55
"types": "./types/index.d.ts",
66
"cordova": {

plugin.xml

Lines changed: 131 additions & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -1,195 +1,134 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!--
3-
Licensed to the Apache Software Foundation (ASF) under one
4-
or more contributor license agreements. See the NOTICE file
5-
distributed with this work for additional information
6-
regarding copyright ownership. The ASF licenses this file
7-
to you under the Apache License, Version 2.0 (the
8-
"License"); you may not use this file except in compliance
9-
with the License. You may obtain a copy of the License at
10-
11-
http://www.apache.org/licenses/LICENSE-2.0
12-
13-
Unless required by applicable law or agreed to in writing,
14-
software distributed under the License is distributed on an
15-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16-
KIND, either express or implied. See the License for the
17-
specific language governing permissions and limitations
18-
under the License.
19-
-->
20-
21-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
22-
xmlns:android="http://schemas.android.com/apk/res/android"
23-
id="cordova-plugin-media"
24-
version="3.0.0-dev">
25-
26-
<name>Media</name>
27-
<description>Cordova Media Plugin</description>
28-
<license>Apache 2.0</license>
29-
<keywords>cordova,media</keywords>
30-
<repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git</repo>
31-
<issue>https://issues.apache.org/jira/browse/CB/component/12320647</issue>
32-
33-
<engines>
34-
<engine name="cordova-android" version=">=6.1.0" />
35-
</engines>
36-
37-
<dependency id="cordova-plugin-file" version="^4.0.0" />
38-
<dependency id="cordova-plugin-compat" version="^1.0.0" />
39-
40-
<js-module src="www/MediaError.js" name="MediaError">
41-
<clobbers target="window.MediaError" />
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-media" version="3.0.0">
3+
<name>Media</name>
4+
<description>Cordova Media Plugin</description>
5+
<license>Apache 2.0</license>
6+
<keywords>cordova,media</keywords>
7+
<repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git</repo>
8+
<issue>https://issues.apache.org/jira/browse/CB/component/12320647</issue>
9+
<engines>
10+
<engine name="cordova-android" version=">=6.1.0"/>
11+
</engines>
12+
<dependency id="cordova-plugin-file" version="^4.0.0"/>
13+
<dependency id="cordova-plugin-compat" version="^1.0.0"/>
14+
<js-module src="www/MediaError.js" name="MediaError">
15+
<clobbers target="window.MediaError"/>
16+
</js-module>
17+
<js-module src="www/Media.js" name="Media">
18+
<clobbers target="window.Media"/>
19+
</js-module>
20+
<platform name="android">
21+
<config-file target="res/xml/config.xml" parent="/*">
22+
<feature name="Media">
23+
<param name="android-package" value="org.apache.cordova.media.AudioHandler"/>
24+
</feature>
25+
</config-file>
26+
<config-file target="AndroidManifest.xml" parent="/*">
27+
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
28+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
29+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
30+
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
31+
</config-file>
32+
<source-file src="src/android/AudioHandler.java" target-dir="src/org/apache/cordova/media"/>
33+
<source-file src="src/android/AudioPlayer.java" target-dir="src/org/apache/cordova/media"/>
34+
<source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/media"/>
35+
</platform>
36+
<platform name="amazon-fireos">
37+
<config-file target="res/xml/config.xml" parent="/*">
38+
<feature name="Media">
39+
<param name="android-package" value="org.apache.cordova.media.AudioHandler"/>
40+
</feature>
41+
</config-file>
42+
<config-file target="AndroidManifest.xml" parent="/*">
43+
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
44+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
45+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
46+
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
47+
</config-file>
48+
<source-file src="src/android/AudioHandler.java" target-dir="src/org/apache/cordova/media"/>
49+
<source-file src="src/android/AudioPlayer.java" target-dir="src/org/apache/cordova/media"/>
50+
<source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/media"/>
51+
</platform>
52+
<platform name="ubuntu">
53+
<config-file target="config.xml" parent="/*">
54+
<feature name="Media">
55+
<param policy_group="microphone" policy_version="1"/>
56+
<param policy_group="video" policy_version="1"/>
57+
</feature>
58+
</config-file>
59+
<header-file src="src/ubuntu/media.h"/>
60+
<source-file src="src/ubuntu/media.cpp"/>
61+
</platform>
62+
<platform name="ios">
63+
<config-file target="config.xml" parent="/*">
64+
<feature name="Media">
65+
<param name="ios-package" value="CDVSound"/>
66+
</feature>
67+
</config-file>
68+
<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
69+
<string>$MICROPHONE_USAGE_DESCRIPTION</string>
70+
</config-file>
71+
<header-file src="src/ios/CDVSound.h"/>
72+
<source-file src="src/ios/CDVSound.m"/>
73+
<preference name="MICROPHONE_USAGE_DESCRIPTION" default=" "/>
74+
</platform>
75+
<platform name="blackberry10">
76+
<source-file src="src/blackberry10/index.js" target-dir="Media"/>
77+
<config-file target="www/config.xml" parent="/widget">
78+
<feature name="Media" value="Media"/>
79+
</config-file>
80+
</platform>
81+
<platform name="wp7">
82+
<config-file target="config.xml" parent="/*">
83+
<feature name="Media">
84+
<param name="wp-package" value="Media"/>
85+
</feature>
86+
</config-file>
87+
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
88+
<Capability Name="ID_CAP_MEDIALIB"/>
89+
<Capability Name="ID_CAP_MICROPHONE"/>
90+
</config-file>
91+
<source-file src="src/wp/Media.cs"/>
92+
<source-file src="src/wp/AudioPlayer.cs"/>
93+
</platform>
94+
<platform name="wp8">
95+
<config-file target="config.xml" parent="/*">
96+
<feature name="Media">
97+
<param name="wp-package" value="Media"/>
98+
</feature>
99+
</config-file>
100+
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
101+
<Capability Name="ID_CAP_MEDIALIB_AUDIO"/>
102+
<Capability Name="ID_CAP_MEDIALIB_PLAYBACK"/>
103+
<Capability Name="ID_CAP_MICROPHONE"/>
104+
</config-file>
105+
<source-file src="src/wp/Media.cs"/>
106+
<source-file src="src/wp/AudioPlayer.cs"/>
107+
</platform>
108+
<platform name="windows8">
109+
<js-module src="src/windows/MediaProxy.js" name="MediaProxy">
110+
<runs/>
42111
</js-module>
43-
44-
<js-module src="www/Media.js" name="Media">
45-
<clobbers target="window.Media" />
112+
<config-file target="package.appxmanifest" parent="/Package/Capabilities">
113+
<DeviceCapability Name="microphone"/>
114+
</config-file>
115+
</platform>
116+
<platform name="windows">
117+
<js-module src="src/windows/MediaProxy.js" name="MediaProxy">
118+
<runs/>
46119
</js-module>
47-
48-
<!-- android -->
49-
<platform name="android">
50-
<config-file target="res/xml/config.xml" parent="/*">
51-
<feature name="Media" >
52-
<param name="android-package" value="org.apache.cordova.media.AudioHandler"/>
53-
</feature>
54-
</config-file>
55-
56-
<config-file target="AndroidManifest.xml" parent="/*">
57-
<uses-permission android:name="android.permission.RECORD_AUDIO" />
58-
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
59-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
60-
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
61-
</config-file>
62-
63-
<source-file src="src/android/AudioHandler.java" target-dir="src/org/apache/cordova/media" />
64-
<source-file src="src/android/AudioPlayer.java" target-dir="src/org/apache/cordova/media" />
65-
<source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/media" />
66-
</platform>
67-
68-
<!-- amazon-fireos -->
69-
<platform name="amazon-fireos">
70-
<config-file target="res/xml/config.xml" parent="/*">
71-
<feature name="Media" >
72-
<param name="android-package" value="org.apache.cordova.media.AudioHandler"/>
73-
</feature>
74-
</config-file>
75-
76-
<config-file target="AndroidManifest.xml" parent="/*">
77-
<uses-permission android:name="android.permission.RECORD_AUDIO" />
78-
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
79-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
80-
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
81-
</config-file>
82-
83-
<source-file src="src/android/AudioHandler.java" target-dir="src/org/apache/cordova/media" />
84-
<source-file src="src/android/AudioPlayer.java" target-dir="src/org/apache/cordova/media" />
85-
<source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/media" />
86-
</platform>
87-
88-
89-
<!-- ubuntu -->
90-
<platform name="ubuntu">
91-
<config-file target="config.xml" parent="/*">
92-
<feature name="Media">
93-
<param policy_group="microphone" policy_version="1" />
94-
<param policy_group="video" policy_version="1" />
95-
</feature>
96-
</config-file>
97-
<header-file src="src/ubuntu/media.h" />
98-
<source-file src="src/ubuntu/media.cpp" />
99-
</platform>
100-
101-
<!-- ios -->
102-
<platform name="ios">
103-
<config-file target="config.xml" parent="/*">
104-
<feature name="Media">
105-
<param name="ios-package" value="CDVSound" />
106-
</feature>
107-
</config-file>
108-
<header-file src="src/ios/CDVSound.h" />
109-
<source-file src="src/ios/CDVSound.m" />
110-
<preference name="MICROPHONE_USAGE_DESCRIPTION" default=" " />
111-
<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
112-
<string>$MICROPHONE_USAGE_DESCRIPTION</string>
113-
</config-file>
114-
</platform>
115-
116-
<!-- blackberry10 -->
117-
<platform name="blackberry10">
118-
<source-file src="src/blackberry10/index.js" target-dir="Media" />
119-
<config-file target="www/config.xml" parent="/widget">
120-
<feature name="Media" value="Media"/>
121-
</config-file>
122-
</platform>
123-
124-
<!-- wp7 -->
125-
<platform name="wp7">
126-
<config-file target="config.xml" parent="/*">
127-
<feature name="Media">
128-
<param name="wp-package" value="Media"/>
129-
</feature>
130-
</config-file>
131-
132-
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
133-
<Capability Name="ID_CAP_MEDIALIB"/>
134-
<Capability Name="ID_CAP_MICROPHONE"/>
135-
</config-file>
136-
137-
<source-file src="src/wp/Media.cs" />
138-
<source-file src="src/wp/AudioPlayer.cs" />
139-
</platform>
140-
141-
<!-- wp8 -->
142-
<platform name="wp8">
143-
<config-file target="config.xml" parent="/*">
144-
<feature name="Media">
145-
<param name="wp-package" value="Media"/>
146-
</feature>
147-
</config-file>
148-
149-
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
150-
<Capability Name="ID_CAP_MEDIALIB_AUDIO"/>
151-
<Capability Name="ID_CAP_MEDIALIB_PLAYBACK"/>
152-
<Capability Name="ID_CAP_MICROPHONE"/>
153-
</config-file>
154-
155-
<source-file src="src/wp/Media.cs" />
156-
<source-file src="src/wp/AudioPlayer.cs" />
157-
</platform>
158-
159-
<!-- windows8 -->
160-
<platform name="windows8">
161-
<js-module src="src/windows/MediaProxy.js" name="MediaProxy">
162-
<runs />
163-
</js-module>
164-
165-
<config-file target="package.appxmanifest" parent="/Package/Capabilities">
166-
<DeviceCapability Name="microphone" />
167-
</config-file>
168-
</platform>
169-
170-
<!-- windows -->
171-
<platform name="windows">
172-
<js-module src="src/windows/MediaProxy.js" name="MediaProxy">
173-
<runs />
174-
</js-module>
175-
176-
<config-file target="package.appxmanifest" parent="/Package/Capabilities">
177-
<DeviceCapability Name="microphone" />
178-
</config-file>
179-
</platform>
180-
181-
<!-- tizen -->
182-
<platform name="tizen">
183-
<js-module src="src/tizen/MediaProxy.js" name="MediaProxy">
184-
<runs/>
185-
</js-module>
186-
</platform>
187-
188-
<!-- browser -->
189-
<platform name="browser">
190-
<js-module src="www/browser/Media.js" name="BrowserMedia">
191-
<clobbers target="window.Media" />
192-
</js-module>
193-
</platform>
194-
120+
<config-file target="package.appxmanifest" parent="/Package/Capabilities">
121+
<DeviceCapability Name="microphone"/>
122+
</config-file>
123+
</platform>
124+
<platform name="tizen">
125+
<js-module src="src/tizen/MediaProxy.js" name="MediaProxy">
126+
<runs/>
127+
</js-module>
128+
</platform>
129+
<platform name="browser">
130+
<js-module src="www/browser/Media.js" name="BrowserMedia">
131+
<clobbers target="window.Media"/>
132+
</js-module>
133+
</platform>
195134
</plugin>

tests/plugin.xml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!--
3-
Licensed to the Apache Software Foundation (ASF) under one
4-
or more contributor license agreements. See the NOTICE file
5-
distributed with this work for additional information
6-
regarding copyright ownership. The ASF licenses this file
7-
to you under the Apache License, Version 2.0 (the
8-
"License"); you may not use this file except in compliance
9-
with the License. You may obtain a copy of the License at
10-
11-
http://www.apache.org/licenses/LICENSE-2.0
12-
13-
Unless required by applicable law or agreed to in writing,
14-
software distributed under the License is distributed on an
15-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16-
KIND, either express or implied. See the License for the
17-
specific language governing permissions and limitations
18-
under the License.
19-
-->
20-
21-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
22-
xmlns:rim="http://www.blackberry.com/ns/widgets"
23-
xmlns:android="http://schemas.android.com/apk/res/android"
24-
id="cordova-plugin-media-tests"
25-
version="2.4.2-dev">
26-
<name>Cordova Media Plugin Tests</name>
27-
<license>Apache 2.0</license>
28-
<js-module src="tests.js" name="tests">
29-
</js-module>
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:rim="http://www.blackberry.com/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-media-tests" version="3.0.0">
3+
<name>Cordova Media Plugin Tests</name>
4+
<license>Apache 2.0</license>
5+
<js-module src="tests.js" name="tests"/>
306
</plugin>

0 commit comments

Comments
 (0)