Browse Source

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

yattoz 5 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
         applicationId "fr.forum_thalie.tsumugi"
29
         applicationId "fr.forum_thalie.tsumugi"
30
         minSdkVersion 16
30
         minSdkVersion 16
31
         targetSdkVersion 29
31
         targetSdkVersion 29
32
-        versionCode 2
33
-        versionName "1.1dev"
32
+        versionCode 100
33
+        versionName "1.0.0"
34
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
34
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
35
         vectorDrawables.useSupportLibrary = true
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
     buildTypes {
40
     buildTypes {
38
         release {
41
         release {
39
             minifyEnabled true
42
             minifyEnabled true
41
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
44
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
42
         }
45
         }
43
     }
46
     }
47
+     */
44
 }
48
 }
45
 
49
 
46
 dependencies {
50
 dependencies {

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

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