Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cjam/react-native-spotify-remote
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.11-1
Choose a base ref
...
head repository: cjam/react-native-spotify-remote
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Oct 17, 2021

  1. Remove NPM hooks (#164)

    - remove postinstall
    - remove postpack
    hoangvvo authored Oct 17, 2021
    Copy the full SHA
    f82bdee View commit details

Commits on Nov 11, 2021

  1. #169 add docs around android 11

    cjam committed Nov 11, 2021
    Copy the full SHA
    5c0a73c View commit details
  2. Copy the full SHA
    58ad3a1 View commit details
  3. chore: release 0.3.11-2

    cjam committed Nov 11, 2021
    Copy the full SHA
    6a3d69b View commit details

Commits on Dec 6, 2021

  1. Fix PlayerRestrictions key name (#172)

    canSkipPrev changed to canSkipPrevious
    shaurya2612 authored Dec 6, 2021
    Copy the full SHA
    0eba6fc View commit details

Commits on Dec 19, 2021

  1. Update Changelog

    - Update react-native-events #173
    cjam committed Dec 19, 2021
    Copy the full SHA
    0ccb120 View commit details
  2. chore: release 0.3.11-3

    cjam committed Dec 19, 2021
    Copy the full SHA
    b5b1333 View commit details

Commits on Jan 19, 2022

  1. Copy the full SHA
    a636c25 View commit details
  2. Copy the full SHA
    1b891f2 View commit details

Commits on Feb 10, 2022

  1. Update changelog

    cjam committed Feb 10, 2022
    Copy the full SHA
    d8e0b83 View commit details
  2. chore: release 0.3.11-4

    cjam committed Feb 10, 2022
    Copy the full SHA
    cb083ea View commit details
  3. Remove unused maven plugin (fix build error on react-native 0.67) (#177)

    * Remove unused maven plugin
    * Remove afterEvaluate since we no longer need its artifacts
    hoangvvo authored Feb 10, 2022
    Copy the full SHA
    1af4ae4 View commit details
  4. Update changelog

    cjam committed Feb 10, 2022
    Copy the full SHA
    eb6a350 View commit details
  5. chore: release 0.3.11-5

    cjam committed Feb 10, 2022
    Copy the full SHA
    30de476 View commit details

Commits on Mar 17, 2022

  1. Add existing projects

    cjam committed Mar 17, 2022
    Copy the full SHA
    7f688a2 View commit details

Commits on May 23, 2022

  1. Copy the full SHA
    5a4b4ae View commit details

Commits on Jun 4, 2022

  1. Copy the full SHA
    4463992 View commit details
  2. Copy the full SHA
    48c7e87 View commit details
  3. chore: release 0.3.11-6

    cjam committed Jun 4, 2022
    Copy the full SHA
    3721f16 View commit details

Commits on Jun 13, 2022

  1. Update gradle to direct include aar files (#199)

    * Update gradle to direct include aar files
    * Update Changelog
    gustavoggs authored Jun 13, 2022
    Copy the full SHA
    f820b55 View commit details
  2. feat: use react-native NativeEventEmitter (#189)

    * Use NativeEventEmitter
    * Adopt react-native event emitter signature
    * Update docs
    hoangvvo authored Jun 13, 2022
    Copy the full SHA
    1f99933 View commit details

Commits on Jun 17, 2022

  1. Fix iOS Build (#202)

    gustavoggs authored Jun 17, 2022
    Copy the full SHA
    f651d65 View commit details
  2. chore: release 1.0.0-1

    cjam committed Jun 17, 2022
    Copy the full SHA
    7700c25 View commit details

Commits on Jul 14, 2022

  1. gradle flatDir to sourceSets (#205)

    * gradle flatDir to sourceSets
    * updated as per contributor guide
    suryababus authored Jul 14, 2022
    Copy the full SHA
    7c13126 View commit details

Commits on Feb 24, 2024

  1. fix issue with event name (#239)

    0duaht authored Feb 24, 2024
    Copy the full SHA
    62974a2 View commit details

Commits on Jan 11, 2025

  1. Update README.md (#243)

    vinnybad authored Jan 11, 2025
    Copy the full SHA
    339933b View commit details
25 changes: 22 additions & 3 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -121,10 +121,29 @@
]
},
{
"login": "hoang",
"login": "hoangvvo",
"name": "Hoang",
"avatar_url": "https://avatars.githubusercontent.com/u/170571?v=4",
"profile": "https://github.com/hoang",
"avatar_url": "https://avatars.githubusercontent.com/u/40987398?v=4",
"profile": "https://github.com/hoangvvo",
"contributions": [
"code"
]
},
{
"login": "pretorh",
"name": "Hendri Pretorius",
"avatar_url": "https://avatars.githubusercontent.com/u/4050990?v=4",
"profile": "https://github.com/pretorh",
"contributions": [
"bug",
"code"
]
},
{
"login": "suryababus",
"name": "suryababus",
"avatar_url": "https://avatars.githubusercontent.com/u/53492132?v=4",
"profile": "https://github.com/suryababus",
"contributions": [
"code"
]
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Fixes # .

Changes introduced in this pull request:

-
-
-
-

## Tasks
- [ ] Add yourself as contributor via `yarn contribute`
- [ ] Update `Unreleased` section of `CHANGELOG.md` with changes ([Convention](https://keepachangelog.com/en/1.0.0/))


@cjam

3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -19,4 +19,5 @@ gradlew
gradlew.bat
.idea
local.properties
*.iml
*.iml
yarn-error.log
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,59 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Gradle Change

- Updated gradle to import sdks using sourceSets

## [1.0.0-1] - 2022-06-17


### Refactor

- feat: use react-native NativeEventEmitter (#189)

### Fix

- Update gradle to direct include aar files to fix [#194](https://github.com/cjam/react-native-spotify-remote/issues/194)


## [0.3.11-6] - 2022-06-04

### Fix

- Android null check to fix [#191](https://github.com/cjam/react-native-spotify-remote/issues/191) (Thanks @pretorh)

## [0.3.11-5] - 2022-02-10

### Fix

- Remove unused maven plugin (fix build error on react-native 0.67) (#177)

## [0.3.11-4] - 2022-02-10

### Update

- update legacy double-quoted import for `react-native` (#175)
- update `react-native-events` to `^1.0.21` (#174)

## [0.3.11-3] - 2021-12-19

### Fix

- Update react-native-events (Fix [#173](https://github.com/cjam/react-native-spotify-remote/issues/173))
- Fix PlayerRestrictions key name ([#172](https://github.com/cjam/react-native-spotify-remote/issues/172))

## [0.3.11-2] - 2021-11-11

### Documentation

- Add note for Android 11 setup

### Chore

- Fix build scripts, add back the postpack script
- update `.npmignore`

## [0.3.11-1] - 2021-10-17

### Update
5 changes: 5 additions & 0 deletions PROJECTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Projects using this library

The following projects are using this library to do great things:

- https://github.com/hardcore-study-group/music-shorts
59 changes: 32 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Spotify App Remote for React Native

NOTE: This library is not being actively maintained!

[![npm version](https://badge.fury.io/js/react-native-spotify-remote.svg)](https://badge.fury.io/js/react-native-spotify-remote)

[![Spotify iOS SDK Version](https://img.shields.io/badge/Spotify%20iOS%20SDK-v1.2.2-brightgreen)](https://github.com/spotify/ios-sdk/commit/f9a7d53967de5ea633845c2387b7fc8f90b96265)
@@ -67,9 +69,15 @@ or
npm install --save react-native-spotify-remote
```

> **Android 11 and Above**
>
> Add the following to your Android Manifest:
>
> `<queries> <package android:name="com.spotify.music" /> </queries>`
## Linking

As of React Native `> 0.61`, auto linking should work for both iOS and Android. There shouldn't be any modifications necessary and it _Should_ work out of the box. The one caveat, is that `react-native-events` needs to be linked as it doesn't yet support auto linking. If you do run into issues or are using an older version of React Native, the following sections should help get you up and running.
As of React Native `> 0.61`, auto linking should work for both iOS and Android. There shouldn't be any modifications necessary and it _Should_ work out of the box. If you do run into issues or are using an older version of React Native, the following sections should help get you up and running.

### iOS

@@ -80,7 +88,6 @@ As of React Native `> 0.61`, auto linking should work for both iOS and Android.
By far the easiest way to integrate into your project. In your `ios/PodFile` add the following lines to your projects target:

```rb
pod 'RNEventEmitter', :path => "../node_modules/react-native-events"
pod 'RNSpotifyRemote', :path => '../node_modules/react-native-spotify-remote'
```

@@ -133,15 +140,12 @@ Modifications are needed for the `AppDelegate.m`:
If you need to link your project manually, here are some things you'll need to do.
> ### `react-native-events` does not support autolinking at this point and will need to be manually linked into your application
1. Open up `android/app/src/main/java/[...]/MainApplication.java`
- Add the following imports to the top of the file
```
import com.reactlibrary.RNSpotifyRemotePackage;
import com.lufinkey.react.eventemitter.RNEventEmitterPackage;
```
- Add to the list returned by `getPackages()` for example:
@@ -152,7 +156,6 @@ import com.lufinkey.react.eventemitter.RNEventEmitterPackage;
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
packages.add(new RNEventEmitterPackage());
packages.add(new RNSpotifyRemotePackage());
return packages;
}
@@ -163,15 +166,11 @@ import com.lufinkey.react.eventemitter.RNEventEmitterPackage;
```
include ':react-native-spotify-remote'
project(':react-native-spotify-remote').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-spotify-remote/android')
include ':react-native-events'
project(':react-native-events').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-events/android')
```

3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```
implementation project(':react-native-spotify-remote')
implementation project(':react-native-events')
```
4. As per the [Spotify Android SDK Docs](https://developer.spotify.com/documentation/android/guides/android-authentication/) Insert the following lines into `android/app/src/AndroidManifest.xml`

@@ -264,35 +263,41 @@ Please do not open issues about getting the module to work unless you have tried
Big thanks to [@lufinkey](https://github.com/lufinkey) and all of the great work that he has done in the [react-native-spotify](https://github.com/lufinkey/react-native-spotify) repo which was the original source of inspiration and some useful patterns for this package.

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

[![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors-)

[![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/cjam"><img src="https://avatars2.githubusercontent.com/u/1000288?v=4" width="100px;" alt=""/><br /><sub><b>Colter McQuay</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=cjam" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/lufinkey"><img src="https://avatars3.githubusercontent.com/u/7820113?v=4" width="100px;" alt=""/><br /><sub><b>Luis Finke</b></sub></a><br /><a href="#ideas-lufinkey" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/YozhikM"><img src="https://avatars0.githubusercontent.com/u/27273025?v=4" width="100px;" alt=""/><br /><sub><b>Stanislav</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=YozhikM" title="Code">💻</a></td>
<td align="center"><a href="https://djwillcaine.com"><img src="https://avatars3.githubusercontent.com/u/5376687?v=4" width="100px;" alt=""/><br /><sub><b>Will Caine</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=djwillcaine" title="Code">💻</a></td>
<td align="center"><a href="http://www.estuderevisapp.com/"><img src="https://avatars0.githubusercontent.com/u/7197169?v=4" width="100px;" alt=""/><br /><sub><b>Everaldo Rosa de Souza Junior</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=juniorklawa" title="Code">💻</a></td>
<td align="center"><a href="http://www.cankalya.com"><img src="https://avatars.githubusercontent.com/u/33005883?v=4" width="100px;" alt=""/><br /><sub><b>İbrahim Can KALYA</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=IbrahimCanKALYA" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/uptotec"><img src="https://avatars.githubusercontent.com/u/38630967?v=4" width="100px;" alt=""/><br /><sub><b>Mahmoud Ashraf Mahmoud</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=uptotec" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/cjam"><img src="https://avatars2.githubusercontent.com/u/1000288?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Colter McQuay</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=cjam" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/lufinkey"><img src="https://avatars3.githubusercontent.com/u/7820113?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Luis Finke</b></sub></a><br /><a href="#ideas-lufinkey" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/YozhikM"><img src="https://avatars0.githubusercontent.com/u/27273025?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Stanislav</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=YozhikM" title="Code">💻</a></td>
<td align="center"><a href="https://djwillcaine.com"><img src="https://avatars3.githubusercontent.com/u/5376687?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Will Caine</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=djwillcaine" title="Code">💻</a></td>
<td align="center"><a href="http://www.estuderevisapp.com/"><img src="https://avatars0.githubusercontent.com/u/7197169?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Everaldo Rosa de Souza Junior</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=juniorklawa" title="Code">💻</a></td>
<td align="center"><a href="http://www.cankalya.com"><img src="https://avatars.githubusercontent.com/u/33005883?v=4?s=100" width="100px;" alt=""/><br /><sub><b>İbrahim Can KALYA</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=IbrahimCanKALYA" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/uptotec"><img src="https://avatars.githubusercontent.com/u/38630967?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mahmoud Ashraf Mahmoud</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=uptotec" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://linkedin.com/in/serafettinaytekin"><img src="https://avatars.githubusercontent.com/u/19591219?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Şerafettin Aytekin</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=srfaytkn" title="Code">💻</a></td>
<td align="center"><a href="http://reteps.github.io"><img src="https://avatars.githubusercontent.com/u/13869303?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Peter Stenger</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=reteps" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/reinhardholl"><img src="https://avatars.githubusercontent.com/u/4051986?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Reinhard Höll</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/issues?q=author%3Areinhardholl" title="Bug reports">🐛</a> <a href="https://github.com/cjam/react-native-spotify-remote/commits?author=reinhardholl" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/gustavoggs"><img src="https://avatars.githubusercontent.com/u/793491?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Gustavo Graña</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/issues?q=author%3Agustavoggs" title="Bug reports">🐛</a> <a href="https://github.com/cjam/react-native-spotify-remote/commits?author=gustavoggs" title="Code">💻</a></td>
<td align="center"><a href="https://www.companjenapps.com"><img src="https://avatars.githubusercontent.com/u/12894112?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dylan</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=dylancom" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/hoangvvo"><img src="https://avatars.githubusercontent.com/u/40987398?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hoang</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=hoangvvo" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/pretorh"><img src="https://avatars.githubusercontent.com/u/4050990?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hendri Pretorius</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/issues?q=author%3Apretorh" title="Bug reports">🐛</a> <a href="https://github.com/cjam/react-native-spotify-remote/commits?author=pretorh" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://linkedin.com/in/serafettinaytekin"><img src="https://avatars.githubusercontent.com/u/19591219?v=4" width="100px;" alt=""/><br /><sub><b>Şerafettin Aytekin</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=srfaytkn" title="Code">💻</a></td>
<td align="center"><a href="http://reteps.github.io"><img src="https://avatars.githubusercontent.com/u/13869303?v=4" width="100px;" alt=""/><br /><sub><b>Peter Stenger</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=reteps" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/reinhardholl"><img src="https://avatars.githubusercontent.com/u/4051986?v=4" width="100px;" alt=""/><br /><sub><b>Reinhard Höll</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/issues?q=author%3Areinhardholl" title="Bug reports">🐛</a> <a href="https://github.com/cjam/react-native-spotify-remote/commits?author=reinhardholl" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/gustavoggs"><img src="https://avatars.githubusercontent.com/u/793491?v=4" width="100px;" alt=""/><br /><sub><b>Gustavo Graña</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/issues?q=author%3Agustavoggs" title="Bug reports">🐛</a> <a href="https://github.com/cjam/react-native-spotify-remote/commits?author=gustavoggs" title="Code">💻</a></td>
<td align="center"><a href="https://www.companjenapps.com"><img src="https://avatars.githubusercontent.com/u/12894112?v=4" width="100px;" alt=""/><br /><sub><b>Dylan</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=dylancom" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/hoang"><img src="https://avatars.githubusercontent.com/u/170571?v=4" width="100px;" alt=""/><br /><sub><b>Hoang</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=hoang" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/suryababus"><img src="https://avatars.githubusercontent.com/u/53492132?v=4?s=100" width="100px;" alt=""/><br /><sub><b>suryababus</b></sub></a><br /><a href="https://github.com/cjam/react-native-spotify-remote/commits?author=suryababus" title="Code">💻</a></td>
</tr>
</table>

<!-- markdownlint-enable -->
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

## Projects using this library

Checkout existing [Projects](./PROJECTS.md) that are using this library.
Loading