Skip to content

Commit 9aab4f4

Browse files
committed
Merge tag '4.0.0' into misc/sync-upstream
2 parents 6c1ebbe + 8b9ec7a commit 9aab4f4

19 files changed

+1016
-2384
lines changed

.asf.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,32 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
github:
19+
description: Apache Cordova Status Bar Plugin
20+
homepage: https://cordova.apache.org/
21+
22+
labels:
23+
- android
24+
- cordova
25+
- hacktoberfest
26+
- ios
27+
- java
28+
- javascript
29+
- library
30+
- mobile
31+
- nodejs
32+
- objective-c
33+
34+
features:
35+
wiki: false
36+
issues: true
37+
projects: true
38+
39+
enabled_merge_buttons:
40+
squash: true
41+
merge: false
42+
rebase: false
43+
1844
notifications:
1945
2046

.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ For usage and support questions, please check out the resources below. Thanks!
1313

1414
You can get answers to your usage and support questions about **Apache Cordova** on:
1515

16-
* Slack Community Chat: https://cordova.slack.com (you can sign-up at http://slack.cordova.io/)
16+
* GitHub Discussions: https://github.com/apache/cordova/discussions
17+
* Slack Community Chat: https://cordova.slack.com (you can sign-up at https://s.apache.org/cordova-slack)
1718
* StackOverflow: https://stackoverflow.com/questions/tagged/cordova using the tag `cordova`
1819

1920
---
@@ -22,6 +23,4 @@ If you are using a tool that uses Cordova internally, like e.g. Ionic, check the
2223

2324
* **Ionic Framework**
2425
* [Ionic Community Forum](https://forum.ionicframework.com/)
25-
* [Ionic Worldwide Slack](https://ionicworldwide.herokuapp.com/)
26-
* **PhoneGap**
27-
* [PhoneGap Developer Community](https://forums.adobe.com/community/phonegap)
26+
* [Ionic Discord](https://ionic.link/discord)

.github/workflows/android.yml

+15-26
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
test:
3434
name: Android ${{ matrix.versions.android }} Test
3535
runs-on: macos-latest
36+
continue-on-error: true
3637

3738
# hoist configurations to top that are expected to be updated
3839
env:
@@ -43,8 +44,8 @@ jobs:
4344

4445
# These are the default Java configurations used by most tests.
4546
# To customize these options, add "java-distro" or "java-version" to the strategy matrix with its overriding value.
46-
default_java-distro: adopt
47-
default_java-version: 8
47+
default_java-distro: temurin
48+
default_java-version: 11
4849

4950
# These are the default Android System Image configurations used by most tests.
5051
# To customize these options, add "system-image-arch" or "system-image-target" to the strategy matrix with its overriding value.
@@ -55,43 +56,31 @@ jobs:
5556
strategy:
5657
matrix:
5758
versions:
59+
# Test the lowest minimum supported APIs
5860
- android: 5.1
5961
android-api: 22
6062

61-
- android: 6
62-
android-api: 23
63-
64-
- android: 7
65-
android-api: 24
66-
67-
- android: 7.1
68-
android-api: 25
69-
70-
- android: 8
71-
android-api: 26
72-
73-
- android: 8.1
74-
android-api: 27
75-
system-image-target: default
76-
77-
- android: 9
78-
android-api: 28
79-
63+
# Test the last 3-4 supported APIs
8064
- android: 10
8165
android-api: 29
8266

8367
- android: 11
8468
android-api: 30
85-
java-version: 11
69+
70+
- android: 12
71+
android-api: 31
72+
73+
- android: 12L
74+
android-api: 32
8675

8776
timeout-minutes: 60
8877

8978
steps:
90-
- uses: actions/checkout@v2
91-
- uses: actions/setup-node@v2
79+
- uses: actions/checkout@v3
80+
- uses: actions/setup-node@v3
9281
with:
9382
node-version: ${{ env.node-version }}
94-
- uses: actions/setup-java@v2
83+
- uses: actions/setup-java@v3
9584
env:
9685
java-version: ${{ matrix.versions.java-version == '' && env.default_java-version || matrix.versions.java-version }}
9786
java-distro: ${{ matrix.versions.java-distro == '' && env.default_java-distro || matrix.versions.java-distro }}
@@ -113,7 +102,7 @@ jobs:
113102
npm ci
114103
115104
- name: Run paramedic install
116-
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
105+
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
117106
run: npm i -g github:apache/cordova-paramedic
118107

119108
- uses: reactivecircus/android-emulator-runner@5de26e4bd23bf523e8a4b7f077df8bfb8e52b50e

.github/workflows/ios.yml

+4-13
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
test:
3434
name: iOS ${{ matrix.versions.ios-version }} Test
3535
runs-on: ${{ matrix.versions.os-version }}
36+
continue-on-error: true
3637

3738
# hoist configurations to top that are expected to be updated
3839
env:
@@ -49,15 +50,11 @@ jobs:
4950
strategy:
5051
matrix:
5152
versions:
52-
- os-version: macos-10.15
53-
ios-version: 12.x
54-
xcode-version: 11.x
55-
56-
- os-version: macos-10.15
53+
- os-version: macos-11
5754
ios-version: 13.x
5855
xcode-version: 11.x
5956

60-
- os-version: macos-10.15
57+
- os-version: macos-11
6158
ios-version: 14.x
6259
xcode-version: 12.x
6360

@@ -87,14 +84,8 @@ jobs:
8784
npm i -g cordova@latest ios-deploy@latest
8885
npm ci
8986
90-
- name: Run setup iOS 12.x support
91-
if: ${{ matrix.versions.ios-version == '12.x' }}
92-
run: |
93-
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
94-
sudo ln -s /Applications/Xcode_10.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 12.4.simruntime
95-
9687
- name: Run paramedic install
97-
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
88+
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
9889
run: npm i -g github:apache/cordova-paramedic
9990

10091
- name: Run paramedic tests

README.md

+3-47
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Preferences
5555

5656
<preference name="StatusBarBackgroundColor" value="#000000" />
5757

58-
- __StatusBarStyle__ (status bar style, defaults to lightcontent). Set the status bar style (e.g. text color). Available options: `default`, `lightcontent`. `blacktranslucent` and `blackopaque` are also available, but __deprecated__, will be removed in next major release, use `lightcontent` instead.
58+
- __StatusBarStyle__ (status bar style, defaults to lightcontent). Set the status bar style (e.g. text color). Available options: `default`, `lightcontent`.
5959

6060
<preference name="StatusBarStyle" value="lightcontent" />
6161

@@ -118,8 +118,6 @@ Although in the global scope, it is not available until after the `deviceready`
118118
- StatusBar.overlaysWebView
119119
- StatusBar.styleDefault
120120
- StatusBar.styleLightContent
121-
- StatusBar.styleBlackTranslucent
122-
- StatusBar.styleBlackOpaque
123121
- StatusBar.backgroundColorByName
124122
- StatusBar.backgroundColorByHexString
125123
- StatusBar.hide
@@ -173,7 +171,6 @@ Supported Platforms
173171

174172
- iOS
175173
- Android 6+
176-
- Windows
177174

178175
StatusBar.styleLightContent
179176
=================
@@ -188,42 +185,6 @@ Supported Platforms
188185

189186
- iOS
190187
- Android 6+
191-
- Windows
192-
193-
StatusBar.styleBlackTranslucent
194-
=================
195-
196-
Note: `styleBlackTranslucent` is __deprecated__ and will be removed in next major release, use `styleLightContent` instead.
197-
198-
Use the blackTranslucent statusbar (light text, for dark backgrounds).
199-
200-
StatusBar.styleBlackTranslucent();
201-
202-
203-
Supported Platforms
204-
-------------------
205-
206-
- iOS
207-
- Android 6+
208-
- Windows
209-
210-
StatusBar.styleBlackOpaque
211-
=================
212-
213-
Note: `styleBlackOpaque` is __deprecated__ and will be removed in next major release, use `styleLightContent` instead.
214-
215-
Use the blackOpaque statusbar (light text, for dark backgrounds).
216-
217-
StatusBar.styleBlackOpaque();
218-
219-
220-
Supported Platforms
221-
-------------------
222-
223-
- iOS
224-
- Android 6+
225-
- Windows
226-
227188

228189
StatusBar.backgroundColorByName
229190
=================
@@ -241,8 +202,7 @@ Supported Platforms
241202
-------------------
242203

243204
- iOS
244-
- Android 5+
245-
- Windows
205+
- Android
246206

247207
StatusBar.backgroundColorByHexString
248208
=================
@@ -264,8 +224,7 @@ Supported Platforms
264224
-------------------
265225

266226
- iOS
267-
- Android 5+
268-
- Windows
227+
- Android
269228

270229
StatusBar.hide
271230
=================
@@ -280,7 +239,6 @@ Supported Platforms
280239

281240
- iOS
282241
- Android
283-
- Windows
284242

285243
StatusBar.show
286244
=================
@@ -295,7 +253,6 @@ Supported Platforms
295253

296254
- iOS
297255
- Android
298-
- Windows
299256

300257
StatusBar.isVisible
301258
=================
@@ -312,7 +269,6 @@ Supported Platforms
312269

313270
- iOS
314271
- Android
315-
- Windows
316272

317273
statusTap
318274
=========

RELEASENOTES.md

+38
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,44 @@
2020
-->
2121
# Release Notes
2222

23+
### 4.0.0 (Oct 27, 2023)
24+
25+
**Breaking:**
26+
27+
* [GH-238](https://github.com/apache/cordova-plugin-statusbar/pull/238) fix(android)!: `styleDefault` not working on new devices
28+
* [GH-245](https://github.com/apache/cordova-plugin-statusbar/pull/245) fix!: remove deprecated `windows` platform
29+
* [GH-255](https://github.com/apache/cordova-plugin-statusbar/pull/255) refactor(ios)!: drop support of **iOS** 10 and older
30+
* [GH-250](https://github.com/apache/cordova-plugin-statusbar/pull/250) refactor(android)!: `setStatusBarBackgroundColor`
31+
* [GH-229](https://github.com/apache/cordova-plugin-statusbar/pull/229) refactor!: remove deprecated methods
32+
* [GH-241](https://github.com/apache/cordova-plugin-statusbar/pull/241) chore!: require `cordova-android` >= 10
33+
34+
**Fixes:**
35+
36+
* [GH-230](https://github.com/apache/cordova-plugin-statusbar/pull/230) fix(browser): Remove invalid proxy function
37+
38+
**Chores:**
39+
40+
* [GH-269](https://github.com/apache/cordova-plugin-statusbar/pull/269) chore: rebuild `package-lock.json` (w/ v3)
41+
* [GH-265](https://github.com/apache/cordova-plugin-statusbar/pull/265) chore: Update `SUPPORT_QUESTION.md` template
42+
* [GH-262](https://github.com/apache/cordova-plugin-statusbar/pull/262) chore: fix engines in `package-lock.json`
43+
* [GH-253](https://github.com/apache/cordova-plugin-statusbar/pull/253) chore: updated `.asf.yml` w/ tag improvement
44+
* [GH-228](https://github.com/apache/cordova-plugin-statusbar/pull/228) chore(ios): Silence/fix warnings
45+
46+
**Refactors:**
47+
48+
* [GH-261](https://github.com/apache/cordova-plugin-statusbar/pull/261) refactor: remove hardcoded style with UIStatusBarStyleDarkContent
49+
* [GH-249](https://github.com/apache/cordova-plugin-statusbar/pull/249) refactor(android): simplify window & activity
50+
* [GH-252](https://github.com/apache/cordova-plugin-statusbar/pull/252) refactor(android): setStatusBarTransparent
51+
* [GH-251](https://github.com/apache/cordova-plugin-statusbar/pull/251) refactor(android): execute - convert if condition to switch case
52+
* [GH-248](https://github.com/apache/cordova-plugin-statusbar/pull/248) refactor(android): refactor setStatusBarStyle
53+
* [GH-247](https://github.com/apache/cordova-plugin-statusbar/pull/247) refactor(android): extract action & value strings as static constants
54+
* [GH-242](https://github.com/apache/cordova-plugin-statusbar/pull/242) refactor(android): Remove unused code
55+
56+
**Others:**
57+
58+
* [GH-237](https://github.com/apache/cordova-plugin-statusbar/pull/237) ci: sync workflow with paramedic
59+
* [GH-232](https://github.com/apache/cordova-plugin-statusbar/pull/232) ci(android): update java requirement for `cordova-android`@11
60+
2361
### 3.0.0 (Nov 25, 2021)
2462

2563
* [GH-224](https://github.com/apache/cordova-plugin-statusbar/pull/224) fix: update engines for working on 3.0.0

0 commit comments

Comments
 (0)