Skip to content

Commit 529036c

Browse files
authored
Chore/update libraries (#205)
* Update libraries * Running automated script * Update example app * remove env * update dependabot config * add release workflow * update release flow
1 parent 9cf5b94 commit 529036c

File tree

20 files changed

+104
-40
lines changed

20 files changed

+104
-40
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ updates:
99
directory: "/" # Location of package manifests
1010
schedule:
1111
interval: "weekly"
12+
- package-ecosystem: "pub"
13+
directory: "/example" # Location of package manifests in the example directory
14+
schedule:
15+
interval: "weekly"

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to pub.dev
2+
on:
3+
push:
4+
tags:
5+
- "[0-9]+.[0-9]+.[0-9]+*" # tag-pattern on pub.dev: ''
6+
7+
jobs:
8+
pana:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: subosito/flutter-action@v2
13+
14+
- name: Install Dependencies
15+
run: |
16+
flutter packages get
17+
flutter pub global activate pana
18+
sudo apt-get install webp
19+
20+
- name: Verify Pub Score
21+
run: ./.github/scripts/verify_pub_score.sh
22+
23+
publish:
24+
needs: pana
25+
permissions:
26+
id-token: write # Required for authentication using OIDC
27+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
28+
with:
29+
# Specify the github actions deployment environment
30+
environment: pub.dev

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 3.0.0-dev.3
2+
* Fix: prevent multiple iOS initializations (#203)
3+
* Chore: Update libraries (#202)
4+
* Feat: Automatic setup of the android integration of the spotify_sdk (#204)
5+
16
## 3.0.0-dev.2
27
* Feat: add set podcastPlaybackSpeed and switchToLocalDevice for android (#160)
38

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# spotify_sdk
22

33
<p align="center">
4-
<a href="https://pub.dev/packages/spotify_sdk"><img src="https://img.shields.io/badge/pub-3.0.0.dev.2-orange" alt="build"></a>
4+
<a href="https://pub.dev/packages/spotify_sdk"><img src="https://img.shields.io/badge/pub-3.0.0.dev.3-orange" alt="build"></a>
55
<a href="https://github.com/brim-borium/spotify_sdk"><img src="https://img.shields.io/github/stars/brim-borium/spotify_sdk?color=deeppink" alt="build"></a>
66
<a href="https://github.com/brim-borium/spotify_sdk/actions?query=workflow%3Aspotify_sdk"><img src="https://img.shields.io/github/actions/workflow/status/brim-borium/spotify_sdk/spotify_sdk.yml" alt="build"></a>
77
<a href="https://github.com/brim-borium/spotify_sdk/blob/main/LICENSE"><img src="https://img.shields.io/github/license/brim-borium/spotify_sdk?color=blue" alt="build"></a>

bin/precondition_checker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class PreconditionChecker {
4343

4444
if (prevRun) {
4545
logger.w('Warning: The setup may have already been executed. '
46-
'Please run the cleanup script before running this script again.');
46+
'Please run dart run spotify_sdk:android_setup --cleanup before running this script again.');
4747
return false;
4848
}
4949

example/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
```sh
2-
CLIENT_ID=61b2332ab76d45918a33f91c3268ec1e
3-
REDIRECT_URL=comspotifytestsdk://callback
2+
CLIENT_ID=
3+
REDIRECT_URL=
44
```

example/android/app/build.gradle

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,31 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29+
namespace 'de.minimalme.spotify_sdk_example'
2930
compileSdk 34
31+
ndkVersion flutter.ndkVersion
32+
33+
compileOptions {
34+
sourceCompatibility JavaVersion.VERSION_1_8
35+
targetCompatibility JavaVersion.VERSION_1_8
36+
}
37+
38+
kotlinOptions {
39+
jvmTarget = '1.8'
40+
}
3041

3142
sourceSets {
3243
main.java.srcDirs += 'src/main/kotlin'
3344
}
3445

35-
3646
defaultConfig {
47+
manifestPlaceholders = [redirectSchemeName: "spotify-sdk", redirectHostName: "auth"]
3748
applicationId "de.minimalme.spotify_sdk_example"
3849
minSdkVersion 21
3950
targetSdkVersion 34
4051
versionCode flutterVersionCode.toInteger()
4152
versionName flutterVersionName
4253
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
43-
manifestPlaceholders = [redirectSchemeName: "spotify-sdk", redirectHostName: "auth"]
4454
}
4555

4656
buildTypes {

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="de.minimalme.spotify_sdk_example">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="de.minimalme.spotify_sdk_example">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
43
calls FlutterMain.startInitialization(this); in its onCreate method.
54
In most cases you can leave this as-is, but you if you want to provide

0 commit comments

Comments
 (0)