Enable minification for release builds
This commit is contained in:
parent
cd4fc107e1
commit
fa9112e117
|
@ -10,14 +10,15 @@ android {
|
||||||
applicationId "org.joinmastodon.android"
|
applicationId "org.joinmastodon.android"
|
||||||
minSdk 23
|
minSdk 23
|
||||||
targetSdk 31
|
targetSdk 31
|
||||||
versionCode 16
|
versionCode 17
|
||||||
versionName "0.1"
|
versionName "0.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
shrinkResources true
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
debug{
|
debug{
|
||||||
debuggable true
|
debuggable true
|
||||||
|
@ -25,6 +26,7 @@ android {
|
||||||
appcenterPrivateBeta{
|
appcenterPrivateBeta{
|
||||||
initWith release
|
initWith release
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
|
shrinkResources false
|
||||||
versionNameSuffix "-priv-beta"
|
versionNameSuffix "-priv-beta"
|
||||||
}
|
}
|
||||||
appcenterPublicBeta{
|
appcenterPublicBeta{
|
||||||
|
|
|
@ -19,3 +19,23 @@
|
||||||
# If you keep the line number information, uncomment this to
|
# If you keep the line number information, uncomment this to
|
||||||
# hide the original source file name.
|
# hide the original source file name.
|
||||||
#-renamesourcefileattribute SourceFile
|
#-renamesourcefileattribute SourceFile
|
||||||
|
|
||||||
|
# Keep all model classes as they're used with gson and their names are shown in errors
|
||||||
|
-keep public class org.joinmastodon.android.model.**{
|
||||||
|
<fields>;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Inner classes in api requests are used with gson
|
||||||
|
-keepclassmembers class org.joinmastodon.android.api.**$*{
|
||||||
|
*;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Keep all enums for debugging purposes
|
||||||
|
-keepnames public enum * {
|
||||||
|
*;
|
||||||
|
}
|
||||||
|
|
||||||
|
-keepclassmembers,allowobfuscation class * {
|
||||||
|
@com.google.gson.annotations.SerializedName <fields>;
|
||||||
|
@com.squareup.otto.Subscribe <methods>;
|
||||||
|
}
|
|
@ -204,6 +204,7 @@
|
||||||
android:background="@drawable/edit_text_border"
|
android:background="@drawable/edit_text_border"
|
||||||
android:inputType="textPersonName|textCapWords"
|
android:inputType="textPersonName|textCapWords"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
android:elevation="0dp"
|
||||||
tools:text="Eugen" />
|
tools:text="Eugen" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
|
@ -218,6 +219,7 @@
|
||||||
android:background="@drawable/edit_text_border"
|
android:background="@drawable/edit_text_border"
|
||||||
android:inputType="textMultiLine|textCapSentences"
|
android:inputType="textMultiLine|textCapSentences"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
android:elevation="0dp"
|
||||||
tools:text="Founder, CEO and lead developer @Mastodon, Germany." />
|
tools:text="Founder, CEO and lead developer @Mastodon, Germany." />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
Loading…
Reference in New Issue