From 99b103563877982b6c692fe5a193fd8cd1f59f0b Mon Sep 17 00:00:00 2001 From: IllusionMan1212 Date: Sun, 5 Feb 2023 00:52:02 +0200 Subject: [PATCH] chore: sign app with release keys and change appId --- README.md | 7 +++++- android/app/build.gradle | 22 ++++++++++++++++--- android/app/src/debug/AndroidManifest.xml | 2 +- android/app/src/main/AndroidManifest.xml | 2 +- .../lyricsgrabbr/lyricsgrabbr/MainActivity.kt | 2 +- .../lyricsgrabbr/NotificationListener.kt | 2 +- .../lyricsgrabbr/NotificationStreamHandler.kt | 2 +- android/app/src/profile/AndroidManifest.xml | 2 +- pubspec.yaml | 2 +- 9 files changed, 32 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 2957abb..84e318f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # lyricsgrabbr - App that listens to your notifications and provides lyrics for the currently playing song. + +## Supported players +Any player that uses the MediaSession API _should_ be supported + +## License +The project is licensed under the GPL2 license while the assets (icon) are licensed under the creative commons license. diff --git a/android/app/build.gradle b/android/app/build.gradle index b1334e4..d3692f6 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -21,6 +21,12 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file("key.properties") +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +} + apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" @@ -42,17 +48,27 @@ android { } defaultConfig { - applicationId "com.illusionware.lyricsgrabbr" + applicationId "com.illusionman1212.lyricsgrabbr" minSdkVersion 23 targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } + signingConfigs { + release { + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null + storePassword keystoreProperties['storePassword'] + } + } + buildTypes { release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.release + } + debug { signingConfig signingConfigs.debug } } diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index 75907a3..dbf0756 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.illusionman1212.lyricsgrabbr"> diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 9f2afde..24a0987 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.illusionman1212.lyricsgrabbr"> diff --git a/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/MainActivity.kt b/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/MainActivity.kt index e0962ae..b09edb6 100644 --- a/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/MainActivity.kt +++ b/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/MainActivity.kt @@ -1,4 +1,4 @@ -package com.illusionware.lyricsgrabbr +package com.illusionman1212.lyricsgrabbr import android.content.Intent import android.os.Bundle diff --git a/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/NotificationListener.kt b/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/NotificationListener.kt index 6d178dc..4415a96 100644 --- a/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/NotificationListener.kt +++ b/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/NotificationListener.kt @@ -1,4 +1,4 @@ -package com.illusionware.lyricsgrabbr +package com.illusionman1212.lyricsgrabbr import android.app.Notification import android.app.NotificationChannel diff --git a/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/NotificationStreamHandler.kt b/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/NotificationStreamHandler.kt index b7f2d61..7018ac0 100644 --- a/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/NotificationStreamHandler.kt +++ b/android/app/src/main/kotlin/com/illusionware/lyricsgrabbr/lyricsgrabbr/NotificationStreamHandler.kt @@ -1,4 +1,4 @@ -package com.illusionware.lyricsgrabbr +package com.illusionman1212.lyricsgrabbr import io.flutter.plugin.common.EventChannel.StreamHandler import io.flutter.plugin.common.EventChannel.EventSink diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml index 75907a3..dbf0756 100644 --- a/android/app/src/profile/AndroidManifest.xml +++ b/android/app/src/profile/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.illusionman1212.lyricsgrabbr"> diff --git a/pubspec.yaml b/pubspec.yaml index d80bd78..f4b165d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.3.1+1 +version: 0.3.2+1 environment: sdk: ">=2.16.1 <3.0.0"