Coder Social home page Coder Social logo

android-spotify-demo's Introduction

This project is paused!! 🙏

Some components may not work and some packages/dependencies are deprecated.

spotify-demo

Music player app using the Spotify Android SDK and Spotify Web API.

Screenshot

Getting Started

  • Clone this repo:
https://github.com/junlee91/android-spotify-demo.git
  • Open the project in Android Studio
  • Make sure to have buildToolsVersion "26.0.2"

Installing Spotify Android SDK

You can follow the Spotify Android SDK Tutorial to start the set up.

Quick step

  • Download the Spotify Android playback library zip and Spotify Android auth library zip from GitHub and unzip them.
  • In a file explorer (not Android Studio), drag the unzipped spotify-auth-version.aar and spotify-player-version.aar files into the /app/libs directory in your project’s root directory.
  • Playback library can be found when you unzip the zipfile. And simply copy this .aar into app/libs
  • Auth library needs some more steps.

Build .aar for auth library

  • Download and unzip
  • Remove the auth-sample directory since it is not needed to create .aar file
  • In the \android-auth-1.0\settings.gradle file, include ':app'
  • Create \android-auth-1.0\local.properties and add sdk.dir=/Users/%YOUR_PC_USERNAME%/Library/Android/sdk for path to the Android SDK
  • Run ./gradlew build and grab an artifact from auth-lib/build/outputs/aar/.

Generate SHA1

This step is needed for registering application fingerprint

echo -n password | shasum -a 1 | awk '{print $1}'

Get data from Spotify Web API

ScalingLayout

  • Follow the instructions from here

Dependency

If you use Android Studio as recommended, the following dependencies will automatically be installed by Gradle.

android{
    vectorDrawables.useSupportLibrary = true
}

repositories {
    mavenCentral()
    flatDir {
        dirs 'libs'
    }
    maven { url "https://jitpack.io" }
}

dependencies {
    ...
    compile 'com.github.iammert:ScalingLayout:1.1'
    compile 'com.android.support:recyclerview-v7:26.1.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'de.hdodenhof:circleimageview:2.2.0'

    compile 'com.spotify.sdk:spotify-android-auth-1.0.0@aar'
    compile 'com.spotify.sdk:spotify-player-24-noconnect-2.20b@aar'
    compile 'com.github.kaaes:spotify-web-api-android:0.4.1'
}

android-spotify-demo's People

Contributors

junlee91 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.