Skip to content

Commit

Permalink
Merge tag '4.0.0' into misc/sync-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
andredestro committed Aug 9, 2024
2 parents 6c1ebbe + 8b9ec7a commit e24f03b
Show file tree
Hide file tree
Showing 19 changed files with 1,018 additions and 2,384 deletions.
26 changes: 26 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,32 @@
# specific language governing permissions and limitations
# under the License.

github:
description: Apache Cordova Status Bar Plugin
homepage: https://cordova.apache.org/

labels:
- android
- cordova
- hacktoberfest
- ios
- java
- javascript
- library
- mobile
- nodejs
- objective-c

features:
wiki: false
issues: true
projects: true

enabled_merge_buttons:
squash: true
merge: false
rebase: false

notifications:
commits: commits@cordova.apache.org
issues: issues@cordova.apache.org
Expand Down
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ For usage and support questions, please check out the resources below. Thanks!

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

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

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

* **Ionic Framework**
* [Ionic Community Forum](https://forum.ionicframework.com/)
* [Ionic Worldwide Slack](https://ionicworldwide.herokuapp.com/)
* **PhoneGap**
* [PhoneGap Developer Community](https://forums.adobe.com/community/phonegap)
* [Ionic Discord](https://ionic.link/discord)
41 changes: 15 additions & 26 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
test:
name: Android ${{ matrix.versions.android }} Test
runs-on: macos-latest
continue-on-error: true

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

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

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

- android: 6
android-api: 23

- android: 7
android-api: 24

- android: 7.1
android-api: 25

- android: 8
android-api: 26

- android: 8.1
android-api: 27
system-image-target: default

- android: 9
android-api: 28

# Test the last 3-4 supported APIs
- android: 10
android-api: 29

- android: 11
android-api: 30
java-version: 11

- android: 12
android-api: 31

- android: 12L
android-api: 32

timeout-minutes: 60

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.node-version }}
- uses: actions/setup-java@v2
- uses: actions/setup-java@v3
env:
java-version: ${{ matrix.versions.java-version == '' && env.default_java-version || matrix.versions.java-version }}
java-distro: ${{ matrix.versions.java-distro == '' && env.default_java-distro || matrix.versions.java-distro }}
Expand All @@ -113,7 +102,7 @@ jobs:
npm ci
- name: Run paramedic install
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
run: npm i -g github:apache/cordova-paramedic

- uses: reactivecircus/android-emulator-runner@5de26e4bd23bf523e8a4b7f077df8bfb8e52b50e
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
test:
name: iOS ${{ matrix.versions.ios-version }} Test
runs-on: ${{ matrix.versions.os-version }}
continue-on-error: true

# hoist configurations to top that are expected to be updated
env:
Expand All @@ -49,15 +50,11 @@ jobs:
strategy:
matrix:
versions:
- os-version: macos-10.15
ios-version: 12.x
xcode-version: 11.x

- os-version: macos-10.15
- os-version: macos-11
ios-version: 13.x
xcode-version: 11.x

- os-version: macos-10.15
- os-version: macos-11
ios-version: 14.x
xcode-version: 12.x

Expand Down Expand Up @@ -87,14 +84,8 @@ jobs:
npm i -g cordova@latest ios-deploy@latest
npm ci
- name: Run setup iOS 12.x support
if: ${{ matrix.versions.ios-version == '12.x' }}
run: |
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
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
- name: Run paramedic install
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
run: npm i -g github:apache/cordova-paramedic

- name: Run paramedic tests
Expand Down
50 changes: 3 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Preferences

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

- __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.
- __StatusBarStyle__ (status bar style, defaults to lightcontent). Set the status bar style (e.g. text color). Available options: `default`, `lightcontent`.

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

Expand Down Expand Up @@ -118,8 +118,6 @@ Although in the global scope, it is not available until after the `deviceready`
- StatusBar.overlaysWebView
- StatusBar.styleDefault
- StatusBar.styleLightContent
- StatusBar.styleBlackTranslucent
- StatusBar.styleBlackOpaque
- StatusBar.backgroundColorByName
- StatusBar.backgroundColorByHexString
- StatusBar.hide
Expand Down Expand Up @@ -173,7 +171,6 @@ Supported Platforms

- iOS
- Android 6+
- Windows

StatusBar.styleLightContent
=================
Expand All @@ -188,42 +185,6 @@ Supported Platforms

- iOS
- Android 6+
- Windows

StatusBar.styleBlackTranslucent
=================

Note: `styleBlackTranslucent` is __deprecated__ and will be removed in next major release, use `styleLightContent` instead.

Use the blackTranslucent statusbar (light text, for dark backgrounds).

StatusBar.styleBlackTranslucent();


Supported Platforms
-------------------

- iOS
- Android 6+
- Windows

StatusBar.styleBlackOpaque
=================

Note: `styleBlackOpaque` is __deprecated__ and will be removed in next major release, use `styleLightContent` instead.

Use the blackOpaque statusbar (light text, for dark backgrounds).

StatusBar.styleBlackOpaque();


Supported Platforms
-------------------

- iOS
- Android 6+
- Windows


StatusBar.backgroundColorByName
=================
Expand All @@ -241,8 +202,7 @@ Supported Platforms
-------------------

- iOS
- Android 5+
- Windows
- Android

StatusBar.backgroundColorByHexString
=================
Expand All @@ -264,8 +224,7 @@ Supported Platforms
-------------------

- iOS
- Android 5+
- Windows
- Android

StatusBar.hide
=================
Expand All @@ -280,7 +239,6 @@ Supported Platforms

- iOS
- Android
- Windows

StatusBar.show
=================
Expand All @@ -295,7 +253,6 @@ Supported Platforms

- iOS
- Android
- Windows

StatusBar.isVisible
=================
Expand All @@ -312,7 +269,6 @@ Supported Platforms

- iOS
- Android
- Windows

statusTap
=========
Expand Down
38 changes: 38 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,44 @@
-->
# Release Notes

### 4.0.0 (Oct 27, 2023)

**Breaking:**

* [GH-238](https://github.com/apache/cordova-plugin-statusbar/pull/238) fix(android)!: `styleDefault` not working on new devices
* [GH-245](https://github.com/apache/cordova-plugin-statusbar/pull/245) fix!: remove deprecated `windows` platform
* [GH-255](https://github.com/apache/cordova-plugin-statusbar/pull/255) refactor(ios)!: drop support of **iOS** 10 and older
* [GH-250](https://github.com/apache/cordova-plugin-statusbar/pull/250) refactor(android)!: `setStatusBarBackgroundColor`
* [GH-229](https://github.com/apache/cordova-plugin-statusbar/pull/229) refactor!: remove deprecated methods
* [GH-241](https://github.com/apache/cordova-plugin-statusbar/pull/241) chore!: require `cordova-android` >= 10

**Fixes:**

* [GH-230](https://github.com/apache/cordova-plugin-statusbar/pull/230) fix(browser): Remove invalid proxy function

**Chores:**

* [GH-269](https://github.com/apache/cordova-plugin-statusbar/pull/269) chore: rebuild `package-lock.json` (w/ v3)
* [GH-265](https://github.com/apache/cordova-plugin-statusbar/pull/265) chore: Update `SUPPORT_QUESTION.md` template
* [GH-262](https://github.com/apache/cordova-plugin-statusbar/pull/262) chore: fix engines in `package-lock.json`
* [GH-253](https://github.com/apache/cordova-plugin-statusbar/pull/253) chore: updated `.asf.yml` w/ tag improvement
* [GH-228](https://github.com/apache/cordova-plugin-statusbar/pull/228) chore(ios): Silence/fix warnings

**Refactors:**

* [GH-261](https://github.com/apache/cordova-plugin-statusbar/pull/261) refactor: remove hardcoded style with UIStatusBarStyleDarkContent
* [GH-249](https://github.com/apache/cordova-plugin-statusbar/pull/249) refactor(android): simplify window & activity
* [GH-252](https://github.com/apache/cordova-plugin-statusbar/pull/252) refactor(android): setStatusBarTransparent
* [GH-251](https://github.com/apache/cordova-plugin-statusbar/pull/251) refactor(android): execute - convert if condition to switch case
* [GH-248](https://github.com/apache/cordova-plugin-statusbar/pull/248) refactor(android): refactor setStatusBarStyle
* [GH-247](https://github.com/apache/cordova-plugin-statusbar/pull/247) refactor(android): extract action & value strings as static constants
* [GH-242](https://github.com/apache/cordova-plugin-statusbar/pull/242) refactor(android): Remove unused code

**Others:**

* [GH-237](https://github.com/apache/cordova-plugin-statusbar/pull/237) ci: sync workflow with paramedic
* [GH-232](https://github.com/apache/cordova-plugin-statusbar/pull/232) ci(android): update java requirement for `cordova-android`@11

### 3.0.0 (Nov 25, 2021)

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

0 comments on commit e24f03b

Please sign in to comment.