Skip to content

Commit

Permalink
🔨 Load spotify-auth dependency via bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoLegends committed Sep 6, 2017
1 parent 6b18df4 commit 1577e95
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 31 deletions.
20 changes: 0 additions & 20 deletions install-android.sh

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-spotify-oauth",
"version": "0.1.2",
"version": "0.1.3",
"description": "Cordova plugin for authenticating with Spotify",
"main": "www/build/spotify-oauth.min.js",
"repository": "https://github.com/Festify/cordova-spotify-oauth.git",
Expand Down
9 changes: 0 additions & 9 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<dependency id="es6-promise-plugin"/>

<platform name="android">
<hook type="before_plugin_install" src="install-android.sh"/>

<config-file target="config.xml" parent="/*">
<feature name="SpotifyOAuth">
<param name="android-package" value="rocks.festify.SpotifyOAuthPlugin"/>
Expand All @@ -27,14 +25,7 @@

<source-file src="src/android/SpotifyOAuthPlugin.java" target-dir="src/rocks/festify"/>

<!--
Because Cordova doesn't like linking to AARs, we do some black magic
gradle trickery to link against the file.
-->
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
<resource-file
src="src/android/spotify-auth/auth-lib/build/outputs/aar/spotify-android-auth-1.0.0.aar"
target="libs/spotify-auth.aar" />
</platform>

<platform name="ios">
Expand Down
2 changes: 1 addition & 1 deletion src/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repositories {
}

dependencies {
compile(name:'spotify-auth', ext:'aar')
compile 'com.spotify.android:auth:1.0.0-alpha'
}

android {
Expand Down

0 comments on commit 1577e95

Please sign in to comment.