Skip to content

Commit

Permalink
Merge pull request #8 from swrlab/dev/v1.5.2
Browse files Browse the repository at this point in the history
Update v1.5.2
  • Loading branch information
rafaelmaeuer authored Jan 2, 2023
2 parents b33de58 + 28c58fa commit cc729bb
Show file tree
Hide file tree
Showing 14 changed files with 2,405 additions and 2,942 deletions.
37 changes: 29 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
name: Build and Tests
on: push
name: Build and Test

on:
workflow_dispatch:
push:
branches:
- dev/*
- master

env:
NODE_VERSION: 18

jobs:
test:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- name: 👀 Checkout Code
uses: actions/checkout@v3

- name: ☕️ Use Java 11
uses: actions/setup-java@v3
with:
node-version: 12
- run: yarn install --frozen-lockfile
- run: yarn test
java-version: "11"

- name: 🏗 Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: 📦 Install Dependencies
run: yarn install --frozen-lockfile

- name: 🧪 Run Tests
run: yarn test
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: Publish

on: workflow_dispatch

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: "18.x"
- run: yarn install --frozen-lockfile
- run: npm publish
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ local.properties
/ios/Pods/
*.xcuserstate
xcuserdata
.xcode.env.local
build/
119 changes: 108 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,119 @@
## [0.10.6](https://github.com/tanguyantoine/react-native-music-control/compare/v0.10.5...v0.10.6) (2019-08-26)
## [1.5.2](https://github.com/swrlab/react-native-music-control/compare/v1.5.1...v1.5.2) (2023-01-02)

- feat: use xcpretty for xcodebuild logs
- fix: reactivate and update github actions
- fix: update project links (project archived)
- fix: update build:ios (iPhone 14, iOS 16)
- chore: update dev-dependencies and pods
- chore: update iOS deployment target to v13
- chore: replace npm version-shield with github
- chore: remove empty contributing file
- chore: remove tv-OS target and scheme
- security: update peer-dependencies

## [1.5.1](https://github.com/swrlab/react-native-music-control/compare/v1.5.0...v1.5.1) (2022-07-26)

- wrap forceForeground in try-catch block
- update dev-dependencies
- simplify xcodebuild command

## [1.5.0](https://github.com/swrlab/react-native-music-control/compare/v.1.4.0...v1.5.0) (2022-07-19)

- update project and readme
- add command line build for ios
- add foreground service type to startForeground()
- increase target and compile sdk to 30
- fix pod warning of inherited flags
- fix ios build by adding podfile
- update dependencies
- fix android build and add npm-script
- update spacing of java files and package.json
- update gradle and android deps
- Add foregroundServiceType to Android Manifest ([#402](https://github.com/tanguyantoine/react-native-music-control/issues/402) from tanguyantoine/bradleyflood-patch-1)
- Fix Android Apps crashing when targeting v12 / SDK31 ([#397](https://github.com/tanguyantoine/react-native-music-control/issues/397) from rafaelmaeuer/dev/fix-android-12-pending-intent-mutability)

## [1.4.0](https://github.com/swrlab/react-native-music-control/releases/tag/v.1.4.0) (2021-05-21)

- feat: upgrade dependencies
- update readme
- [#385](https://github.com/tanguyantoine/react-native-music-control/issues/385) from srobbin/chore/fix-readme-parenthesis
- [#386](https://github.com/tanguyantoine/react-native-music-control/issues/386) from dayze/patch-1
- Add singleTask Activity instructions to Readme ([#383](https://github.com/tanguyantoine/react-native-music-control/issues/383) from tanguyantoine/feature/ReadmeUpdateActivity)
- exception handling added and crash fixed ([#381](https://github.com/tanguyantoine/react-native-music-control/issues/381) from krunalbad/patch-1)
- Adding mavenCentral() as jcenter() is shutting ([#382](https://github.com/tanguyantoine/react-native-music-control/issues/382) from maheshwarimrinal/patch-1)
- Patch 2 - missing setNotificationId() added for android ([#368](https://github.com/tanguyantoine/react-native-music-control/issues/368))
- change order of Sections in readme ([#370](https://github.com/tanguyantoine/react-native-music-control/issues/370))

## [1.3.0](https://github.com/tanguyantoine/react-native-music-control/tree/f6ef12b9cdd858baff903c1433b56b0975208d2b) (2020-11-30)

- docs: update readme
- Exports MusicControl.Command ([#361](https://github.com/tanguyantoine/react-native-music-control/issues/361))
- fixed hide method to work with older SDKs ([#354](https://github.com/tanguyantoine/react-native-music-control/issues/354) from frknnay/fix/android-hide-for-older-sdks)
- Fix Xcode 12 build errors ([#363](https://github.com/tanguyantoine/react-native-music-control/issues/363))
- iOS Live Stream Indicator ([#353](https://github.com/tanguyantoine/react-native-music-control/issues/353))

## [1.2.1](https://github.com/tanguyantoine/react-native-music-control/tree/99a623fd918565f03a3f4e061547e57427ad97a0) (2020-10-12)

- ci: fix versioning
- fix: push version commit
- fix: set author
- ci: fix typo
- chore: remove github registry for now
- ci: add workflow dispatch
- fix: dependencies

## [1.0.0](https://github.com/tanguyantoine/react-native-music-control/compare/release-2020-02-16...release-2020-06-12) (2020-06-12)

- Fixes for [#266](https://github.com/tanguyantoine/react-native-music-control/issues/266) ([#344](https://github.com/tanguyantoine/react-native-music-control/issues/344) from rborn/master)
- Fix for session not always present when checking if active
- fix merge error for undefined NOTIFICATION_ID
- fix double definition
- Update MusicControlNotification.java
- modified to prevent crash
- Solve MusicControlModule exception issue
- replace prepack with prepublish script
- add lib dir back to the repo
- add react-native to dev dependencies
- try to bind service first
- add local binder instance
- Fixes crash android 9
- Adjust playback speed while playing ([#336](https://github.com/tanguyantoine/react-native-music-control/issues/336) from SBShane/master)
- Add setNotificationIds to Android ([#337](https://github.com/tanguyantoine/react-native-music-control/issues/337) from mixcloud/change-android-notification-ids)

## [0.12.0](https://github.com/tanguyantoine/react-native-music-control/compare/release-2020-02-16...release-2020-06-12) (2020-06-12)

- Fix: non initialised notification variable ([#334](https://github.com/tanguyantoine/react-native-music-control/issues/334) from rborn/bugfix/code_errors)
- Fix: Start foreground service ([#329](https://github.com/tanguyantoine/react-native-music-control/issues/329) from bunmiedee/startForegroundService)
- Readme Overhaul May 2020 ([#325](https://github.com/tanguyantoine/react-native-music-control/issues/325))
- Fixes android 7 api 24 compatibility issues

## [0.11.0](https://github.com/tanguyantoine/react-native-music-control/compare/release-2019-12-10...release-2020-02-16) (2020-02-16)

- Add Fast Forward and Rewind actions in compact view ([#318](https://github.com/tanguyantoine/react-native-music-control/issues/318))
- Stopping Foreground Service directly instead of starting the service and then stopping in onStartCommand ([#316](https://github.com/tanguyantoine/react-native-music-control/issues/316))

## [0.10.8](https://github.com/tanguyantoine/react-native-music-control/compare/v0.10.6...release-2019-12-10) (2019-12-09)

- feat: handle Audio onFocusChanged if paused ([#308](https://github.com/tanguyantoine/react-native-music-control/issues/308))
- Fix the app crash when run on android api level <= 23 ([#311](https://github.com/tanguyantoine/react-native-music-control/issues/311))
- Handled edge case NPE
- Added null check when abandoning audio focus
- Remove prepack
- Added JS compiled files
- Fix TSC script command
- addTarget:action: should return MPRemoteCommandHandlerStatus
- Temporary workaround for [#297](https://github.com/tanguyantoine/react-native-music-control/issues/297)
- Ignoring react native import
- Disable implicit any rule

## [0.10.6](https://github.com/tanguyantoine/react-native-music-control/compare/v0.10.5...v0.10.6) (2019-08-26)

### Bug Fixes

* **java:** Move stopForegroundService() to onStop event ([#294](https://github.com/tanguyantoine/react-native-music-control/issues/294)) ([e9b4679](https://github.com/tanguyantoine/react-native-music-control/commit/e9b4679))

## [0.10.5](https://github.com/tanguyantoine/react-native-music-control/compare/v0.10.4...v0.10.5) (2019-07-10)


### Bug Fixes

* **android:** error can't find symbol Notification ([b572320](https://github.com/tanguyantoine/react-native-music-control/commit/b572320))
Expand All @@ -18,65 +124,56 @@

## [0.10.4](https://github.com/tanguyantoine/react-native-music-control/compare/v0.10.3...v0.10.4) (2019-05-24)


### Bug Fixes

* Illegal null AudioFocusRequest exception ([#261](https://github.com/tanguyantoine/react-native-music-control/issues/261)) ([351a1ab](https://github.com/tanguyantoine/react-native-music-control/commit/351a1ab)), closes [#260](https://github.com/tanguyantoine/react-native-music-control/issues/260)

## [0.10.3](https://github.com/tanguyantoine/react-native-music-control/compare/v0.10.2...v0.10.3) (2019-05-23)


### Bug Fixes

* move variables around and trigger deploy ([6703bf7](https://github.com/tanguyantoine/react-native-music-control/commit/6703bf7))

## [0.10.2](https://github.com/tanguyantoine/react-native-music-control/compare/v0.10.1...v0.10.2) (2019-04-26)


### Bug Fixes

* **ios:** call beginReceivingRemoteControlEvents ([442b77b](https://github.com/tanguyantoine/react-native-music-control/commit/442b77b))
* **ios:** update playback state using :setPlaybackState in iOS 11+ ([b2b1acc](https://github.com/tanguyantoine/react-native-music-control/commit/b2b1acc)), closes [#242](https://github.com/tanguyantoine/react-native-music-control/issues/242)

## [0.10.1](https://github.com/tanguyantoine/react-native-music-control/compare/v0.10.0...v0.10.1) (2019-04-26)


### Bug Fixes

* do no skip prepack script ([51a2532](https://github.com/tanguyantoine/react-native-music-control/commit/51a2532))

# [0.10.0](https://github.com/tanguyantoine/react-native-music-control/compare/v0.9.9...v0.10.0) (2019-04-25)


### Features

* Android interuption ([#240](https://github.com/tanguyantoine/react-native-music-control/issues/240)) ([7c5fe92](https://github.com/tanguyantoine/react-native-music-control/commit/7c5fe92))

## [0.9.9](https://github.com/tanguyantoine/react-native-music-control/compare/v0.9.8...v0.9.9) (2019-02-09)


### Bug Fixes

* bump version ([c0c7754](https://github.com/tanguyantoine/react-native-music-control/commit/c0c7754))

## [0.9.8](https://github.com/tanguyantoine/react-native-music-control/compare/v0.9.7...v0.9.8) (2019-02-01)


### Bug Fixes

* controls not showing on Android lock screen ([#227](https://github.com/tanguyantoine/react-native-music-control/issues/227)) ([51a6fc2](https://github.com/tanguyantoine/react-native-music-control/commit/51a6fc2))
* remove extra pause event related to app suspension in IOS10+ ([6ee2a86](https://github.com/tanguyantoine/react-native-music-control/commit/6ee2a86))

## [0.9.7](https://github.com/tanguyantoine/react-native-music-control/compare/v0.9.6...v0.9.7) (2019-01-11)


### Bug Fixes

* stopForeground service ([36b1922](https://github.com/tanguyantoine/react-native-music-control/commit/36b1922))

## [0.9.6](https://github.com/tanguyantoine/react-native-music-control/compare/v0.9.5...v0.9.6) (2019-01-05)


### Bug Fixes

* release ([6efc1ad](https://github.com/tanguyantoine/react-native-music-control/commit/6efc1ad))
1 change: 0 additions & 1 deletion CONTRIBUTING.md

This file was deleted.

9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
# react-native-music-control

*Updated fork of archived [tanguyantoine/react-native-music-control](https://github.com/tanguyantoine/react-native-music-control)*

Display and manage media controls on lock screen and notification center for iOS and Android.

![NPM Version](https://img.shields.io/npm/v/react-native-music-control?style=flat-square 'NPM Version')
<!-- ![NPM Version](https://img.shields.io/npm/v/react-native-music-control?style=flat-square 'NPM Version') -->
[![Git Version](https://img.shields.io/github/package-json/v/swrlab/react-native-music-control.svg?style=flat)](https://github.com/swrlab/react-native-music-control)
![NPM Downloads](https://img.shields.io/npm/dm/react-native-music-control?style=flat-square 'NPM Downloads')

## Project

With Yarn:

```sh
yarn add react-native-music-control
yarn add swrlab/react-native-music-control
```

or with NPM:

```sh
npm install react-native-music-control --save
npm install swrlab/react-native-music-control --save
```

## iOS
Expand Down
10 changes: 10 additions & 0 deletions ios/.xcode.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This `.xcode.env` file is versioned and is used to source the environment
# used when running script phases inside Xcode.
# To customize your local environment, you can create an `.xcode.env.local`
# file that is not versioned.
# NODE_BINARY variable contains the PATH to the node executable.

# Customize the NODE_BINARY variable here.
# For example, to use nvm with brew, add the following line
. "$(brew --prefix nvm)/nvm.sh" --no-use
export NODE_BINARY=$(command -v node)
Loading

0 comments on commit cc729bb

Please sign in to comment.