From cf31e37b1b583b11d6b7db31217cd76862d0c3ad Mon Sep 17 00:00:00 2001 From: Emre Date: Fri, 24 Nov 2023 12:30:23 +0100 Subject: [PATCH] For GOOGLE PLAY --- Sources/justMUSIC/android/app/build.gradle | 17 ++++++++-- .../lib/screens/detail_post_screen.dart | 3 -- .../justMUSIC/lib/screens/profile_screen.dart | 34 ------------------- Sources/justMUSIC/pubspec.yaml | 2 +- 4 files changed, 16 insertions(+), 40 deletions(-) diff --git a/Sources/justMUSIC/android/app/build.gradle b/Sources/justMUSIC/android/app/build.gradle index c881d9a..a9b3f6d 100644 --- a/Sources/justMUSIC/android/app/build.gradle +++ b/Sources/justMUSIC/android/app/build.gradle @@ -22,6 +22,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 plugin: 'com.google.gms.google-services' @@ -56,12 +62,19 @@ android { 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.debug + signingConfig signingConfigs.release } } } diff --git a/Sources/justMUSIC/lib/screens/detail_post_screen.dart b/Sources/justMUSIC/lib/screens/detail_post_screen.dart index 34c6dcb..f1b8227 100644 --- a/Sources/justMUSIC/lib/screens/detail_post_screen.dart +++ b/Sources/justMUSIC/lib/screens/detail_post_screen.dart @@ -400,8 +400,6 @@ class _DetailPostScreenState extends State { ) ], ), - SvgPicture.asset("assets/images/add.svg", - semanticsLabel: 'Add playlist Logo'), GestureDetector( onTap: () async { var bool = await MyApp.musicViewModel @@ -462,7 +460,6 @@ class _DetailPostScreenState extends State { semanticsLabel: 'Save Logo', color: isSaved() ? primaryColor : Colors.white, )), - SvgPicture.asset("assets/images/report.svg", semanticsLabel: 'Report Logo'), ], ), ), diff --git a/Sources/justMUSIC/lib/screens/profile_screen.dart b/Sources/justMUSIC/lib/screens/profile_screen.dart index d68a3ae..e0f484c 100644 --- a/Sources/justMUSIC/lib/screens/profile_screen.dart +++ b/Sources/justMUSIC/lib/screens/profile_screen.dart @@ -114,21 +114,11 @@ class _ProfileScreenState extends State { label: 'Historiques des capsules', action: _openHistoric, ), - const SettingPartComponent( - icon: JustMusicIcon.spotify, - label: 'Lier un compte Spotify', - action: null, - ), SettingPartComponent( icon: JustMusicIcon.password, label: 'Modifier mon mot de passe', action: _openPassword, ), - const SettingPartComponent( - icon: JustMusicIcon.trash, - label: 'Supprimer mon compte', - action: null, - ), SettingPartComponent( icon: JustMusicIcon.cross, label: 'Déconnexion', @@ -138,30 +128,6 @@ class _ProfileScreenState extends State { ], ), ), - Padding( - padding: const EdgeInsets.only(bottom: 12, left: defaultPadding, top: 40), - child: Text( - "Préférences", - style: GoogleFonts.plusJakartaSans(color: grayText, fontWeight: FontWeight.w800, fontSize: 16), - ), - ), - ClipRRect( - borderRadius: BorderRadius.circular(8), - child: const Column( - children: [ - SettingPartComponent( - icon: JustMusicIcon.theme, - label: 'Thême de l\'application', - action: null, - ), - SettingPartComponent( - icon: JustMusicIcon.notification, - label: 'Notifications', - action: null, - ), - ], - ), - ) ], ), ), diff --git a/Sources/justMUSIC/pubspec.yaml b/Sources/justMUSIC/pubspec.yaml index 494ee35..402d414 100644 --- a/Sources/justMUSIC/pubspec.yaml +++ b/Sources/justMUSIC/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.0+1 +version: 1.0.2+12 environment: sdk: '>=2.18.2 <3.0.0'