Browse Source

tweaked launcher & Now Playing logo, removed shrinker (crash on API19-)

yattoz 4 years ago
parent
commit
00b2632407
2 changed files with 9 additions and 5 deletions
  1. 6 2
      app/build.gradle
  2. 3 3
      app/src/main/res/layout/fragment_nowplaying.xml

+ 6 - 2
app/build.gradle View File

@@ -29,11 +29,14 @@ android {
29 29
         applicationId "fr.forum_thalie.tsumugi"
30 30
         minSdkVersion 16
31 31
         targetSdkVersion 29
32
-        versionCode 2
33
-        versionName "1.1dev"
32
+        versionCode 100
33
+        versionName "1.0.0"
34 34
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
35 35
         vectorDrawables.useSupportLibrary = true
36 36
     }
37
+    // Note: I noticed that enabling these make the release app crash on API19-.
38
+    // So I'll disable it as of now for maximum compatibility, even if the app size is a tad bigger.
39
+    /*
37 40
     buildTypes {
38 41
         release {
39 42
             minifyEnabled true
@@ -41,6 +44,7 @@ android {
41 44
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
42 45
         }
43 46
     }
47
+     */
44 48
 }
45 49
 
46 50
 dependencies {

+ 3 - 3
app/src/main/res/layout/fragment_nowplaying.xml View File

@@ -30,13 +30,13 @@
30 30
         <ImageView
31 31
             android:id="@+id/streamerPicture"
32 32
             android:layout_width="0dp"
33
-            android:layout_height="wrap_content"
33
+            android:layout_height="0dp"
34 34
             android:layout_gravity="top|center_horizontal"
35 35
             android:adjustViewBounds="true"
36 36
             android:contentDescription="dj-image"
37
-            android:scaleType="fitCenter"
37
+            android:scaleType="fitStart"
38 38
             app:layout_constraintEnd_toEndOf="parent"
39
-
39
+            app:layout_constraintBottom_toBottomOf="parent"
40 40
             app:layout_constraintStart_toStartOf="@id/imageGuideline"
41 41
             app:layout_constraintTop_toTopOf="parent"
42 42
             app:srcCompat="@drawable/logo_roundsquare"