-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Libraries and move to android embedded v2 * update packages * Update spotify_sdk.yml * Update spotify_sdk.yml * downgrade pedantic * update sdk version * Update spotify_sdk.yml * remove flutter upper bound * move some files to seperate folders * remove unneccessary changes * Update spotify_sdk.yml * downgrade packages * Update spotify_sdk.yml * donwgrade cupertino icons * revert changes from flutter beta * fix dartformat * readd automatically added changes * Update spotify_sdk.yml * Update spotify_sdk.yml * Update README.md * Update README.md * Update README.md
- Loading branch information
1 parent
b91e8a9
commit cb99bc8
Showing
18 changed files
with
106 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: spotify_sdk | ||
on: [push, pull_request] | ||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
|
@@ -13,15 +13,5 @@ jobs: | |
run: flutter format --set-exit-if-changed lib test example | ||
- name: Analyze | ||
run: flutter analyze lib test example | ||
- name: Run tests | ||
run: flutter test --no-pub --coverage --test-randomize-ordering-seed random | ||
- name: Check Code Coverage | ||
uses: ChicagoFlutter/[email protected] | ||
with: | ||
min_coverage: 3 | ||
path: coverage/lcov.info | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- run: flutter pub publish --dry-run | ||
- name: Publish dry run | ||
run: flutter pub publish --dry-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
example/android/app/src/main/kotlin/de/minimalme/spotify_sdk_example/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
package de.minimalme.spotify_sdk_example | ||
|
||
import android.os.Bundle | ||
import io.flutter.app.FlutterActivity | ||
import io.flutter.plugins.GeneratedPluginRegistrant | ||
import io.flutter.embedding.android.FlutterActivity; | ||
|
||
class MainActivity: FlutterActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
GeneratedPluginRegistrant.registerWith(this) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Jul 08 17:57:20 CEST 2020 | ||
#Sun Nov 01 19:28:37 CET 2020 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" | ||
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" | ||
#include "Generated.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" | ||
#include "Generated.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/// Holds the values from the spotify api for supported Image dimensions | ||
enum ImageDimension { | ||
/// large image | ||
large, | ||
|
||
///medium image | ||
medium, | ||
|
||
/// small image | ||
small, | ||
|
||
///xsmall image | ||
xSmall, | ||
|
||
/// thumbnail image | ||
thumbnail | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/// Holds the values from the spotify api for RepeatModes | ||
enum RepeatMode { | ||
/// repeat is off | ||
off, | ||
|
||
/// repeats the current track | ||
track, | ||
|
||
/// repeats the current context | ||
context, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:spotify_sdk/enums/image_dimension_enum.dart'; | ||
|
||
///Extension for formatting the ImageDimension enum to value | ||
extension ImageDimensionExtension on ImageDimension { | ||
///maps the value to the specified enum | ||
static const values = { | ||
ImageDimension.large: 720, | ||
ImageDimension.medium: 480, | ||
ImageDimension.small: 360, | ||
ImageDimension.xSmall: 240, | ||
ImageDimension.thumbnail: 144, | ||
}; | ||
|
||
/// returns the value | ||
int get value => values[this]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.