Maxlisui / lyrics_app

App which displays lyrics of currently playing song on Spotify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lyris App

Small Android and IOS App which lets you display the lyrics of the currently playing song in spotify.

Everything is WIP 🚧

Development

Common

  1. Head over to Spotify's Developer Dashboard and create a new App.

Android

  1. Create a new Android Package with com.maxlisui.lyrics_app as package name and your fingerprint. Your development fingerprint can be accessed using
# Bash
$ keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v | grep SHA1

# Windows Powershell
$ keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore -list -v | grep SHA1

IOS

  1. Insert maxlisui.lyrics-app as Bundle ID.

Common

  1. Think of a redirect URI. This should be unique. E.g. my-cool-spotify-app://auth

  2. Head over to Genius and create a new App. Also create a new client access token.

Android

  1. Now you should have a few keys, we don't need all of them. Create a new file in res/values. I suggest nameing it res.xml, so it gets ignored by git. The file should look something like this.
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="spotify_client_id">{{spotify client id}}</string>
    <integer name="requestCode">{{random int -> does not matter}}</integer>
    <string name="spotify_redirect_uri">{{redirect uri}}</string>
    <string name="genius_client_access_token">{{ genius client access token }}</string>
</resources>
  • spotify_client_id: Created in step 1
  • spotify_redirect_uri: Created in step 3
  • spotify_redirect_uri: Created in step 4

IOS

  1. Now you should have a few keys, we don't need all of them. Open Constants.swift and add your keys. The file should look something like this.
struct Constants {
    static var spotifyBaseUrl: String = "https://api.spotify.com/v1/"
    static var spotifyClientID: String = "{{spotify client id}}"
    static var spotifyClientSecret: String = "{{spotify client secret}}"
    static var spotifyRedirectURL: URL = URL.init(string: "{{redirect uri}}")!
    static var geniusAccessToken: String = "{{genius client access token}}"
    static var geniusBaseUrl: String = "https://api.genius.com/"
}
  • spotifyClientID: Created in step 1
  • spotifyClientSecret: Created in step 1
  • spotifyRedirectURL: Created in step 3
  • geniusAccessToken: Created in step 4

Wanna help?

Sure 😁

License

MIT

About

App which displays lyrics of currently playing song on Spotify

License:MIT License


Languages

Language:Swift 50.7%Language:Kotlin 48.2%Language:Ruby 1.1%